Home / PROTOCOL DRIVERPROTOCOL DRIVER
ATMI TGM Serial
FieldServer protocol driver · FS-DRV-0005
FS-DRV-0005 / DOCUMENTATION
Protocol driver downloads.
Read the available driver datasheet, setup instructions and examples directly from this website. Use the configuration manual and sample file for your selected driver, role and hardware.
MSA FIELDSERVER · FS-DRV-0005
What this protocol driver does
Connect the selected equipment using this FieldServer protocol driver. Select the documented client or server role, interfaces and data functions, then map the agreed values to a separately configured destination protocol for the BMS, SCADA or monitoring application.
PROTOCOL DRIVER TECHNICAL REFERENCE
Technical scope, functions
and configuration.
ATMI TGM Serial · FS-DRV-0005
Based on the published FieldServer driver literature.Manual ↗ · 24 pages reviewed. Details below apply to the driver and document revision; hardware and software selection remain part of the complete configuration.
- Operating role
- Serial monitoring client; no write capability
- Interface
- RS232; ATMI-TGM printer / console port
- Connected devices
- One TGM device per FieldServer serial port
- Direction
- Monitoring client; no TGM emulation or device writes
Manufacturer-described protocol scope
The ATMI-TGM driver allows the FieldServer to transfer data to and from devices over RS-232 using the ATMI-TGM printer port protocol. This driver connects to an ATMI-TGM device using a serial connection. One device may be connected per FieldServer port. (This limitation exists because the protocol is node-less; that is, messages do not contain information about the node and thus messages from different TGM devices could not be distinguished if they were connected on the same port). The driver reports Gas and sensor readings and …
Short scope extract · Manual ↗
Monitoring coverage
- Gas and sensor readings.
- Gas alarm and warning status.
- TGM module malfunction indications.
- Gas identification through configured gas-name index mappings and the TGM calibration report.
It is not possible to use this driver to write to the TGM device.| FieldServer Mode | Nodes | Comments |
|---|
| Client | 1 | Only 1 Client node per port allowed |
|---|
| Server | 1 | Server capability not provided |
|---|
Manual · page 4 ↗
data.| Column Title | Function | Legal Values |
|---|
| Data_Array_Name | Provide name for Data Array. | Up to 15 alphanumeric characters |
|---|
| Data_Array_Format | Provide data format. Each Data Array can only take on one format. | Float, Bit, Byte, Uint16, Uint32, Sint16, Sint32 |
|---|
| Data_Array_Length | Number of Data Objects. Must be larger than the data storage area required by the Map Descriptors for the data being placed in this array. | 1-10000 |
|---|
Manual · page 6 ↗
5.1 Client Side Connection Descriptions| Column Title | Function | Legal Values |
|---|
| Port | Specify which port the device is connected to the FieldServer. | P1-P2, R1-R21 |
|---|
| Protocol | Specify protocol used. | TGM-Serial, ATMI-TGM- Serial |
|---|
| Baud* | Specify baud rate. | 110 – 19200, standard baud rates only (Vendor limitation) |
|---|
| Parity* | Specify parity. | None (Vendor limitation) |
|---|
| Data_Bits* | Specify data bits. | 8 (Vendor limitation) |
|---|
| Stop_Bits* | Specify stop bits. | 1 |
|---|
| Poll _Delay* | Time between internal polls. | 0-32000 seconds, 1 second |
|---|
Manual · page 7 ↗
5.2 Client Side Node Descriptors| Column Title | Function | Legal Values |
|---|
| Node_Name | Provide name for Node. | Up to 32 alphanumeric characters |
|---|
| Node_ID | This parameter is not required for the TGM driver. However, if you intend to use the Node_Status function with a Data Array then the Node_ID must be specified. | 1-255 |
|---|
| Protocol | Specify protocol used. | TGM-Serial, ATMI-TGM-Serial |
|---|
| Connection | Specify which port the device is connected to the FieldServer. | P1-P2, R1-R2 |
|---|
Manual · page 8 ↗
Configuration parameters| Column Title | Function | Legal Values |
|---|
| Map_Descriptor_Name | Name of this Map Descriptor. | Up to 32 alphanumeric characters |
|---|
| Data_Array_Name | Name of Data Array where data is to be stored in the FieldServer. | One of the Data Array names from “Data Array” section above |
|---|
| Data_Array_Offset | Starting location in Data Array. | 0 to maximum specified in “Data Array” section above |
|---|
| Function | Function of Client Map Descriptor. The driver cannot write to the TGM device. | RDBC, ARS |
|---|
Manual · page 8 ↗
Configuration parameters| Column Title | Function | Legal Values |
|---|
| Node_Name | Name of Node to fetch data from. | One of the Node names specified in “Client Node Descriptor” above |
|---|
| Data_Type | This commonly used driver parameter is not used by the driver. | — |
|---|
| Address | This commonly used driver parameter is not used by the driver. | — |
|---|
| Length | Length of Map Descriptor. The parameter is not used by the driver but is used by the FieldServer Kernel to reserve space in the Data Array. Set the Length according to the function. | QIR Report: Length = 100 CALR Report: Variable. Depends on number of gases reported in CALR report. Start with a length of 100 and increase if necessary. QLA Report: If the config has no sensors and port x is the max port number, then make the array (x+1) * 10 elements long. If the config has any sensors and sensor x is the max sensor number then make the array 200 + (x+1) * 10 elements long. |
|---|
Manual · page 9 ↗
Configuration parameters| Column Title | Function | — | Legal |
|---|
| Values |
|---|
| Scan_Interval | Rate at which data is polled. For CALR report use a long interval (600s) as the TGM configuration seldom changes. Set the Scan_Interval for the QLA and QIR reports to zero to have the driver poll for this data as often as possible. | ≥0.001s | — |
|---|
Manual · page 9 ↗
RD_CALR , DA_CALR , 0 , RDBC , Node_A , 0| , Length | , Scan_Interval | , TGM_Funtion |
|---|
| , 100 | , 600s | , CALR |
|---|
Manual · page 10 ↗
RD_QLA , DA_CALR , 0 , RDBC , Node_A , 0| , Length | , Scan_Interval | , DA_Byte_Name | , DA_Bit_Name | , TGM_Funtion |
|---|
| , 300 | , 1.0s | , DA_GAS_UNITS | , DA_QLA_GAS | , QLA |
|---|
Manual · page 11 ↗
RD_QIR , DA_MALFUNC , 0 , RDBC , Node_A , 0| , Length | , Scan_Interval | , TGM_Funtion |
|---|
| , 100 | , 2.0s | , QIR |
|---|
Manual · page 11 ↗
The table may be extended/modified using the configuration file. Refer to Section 7.4.| Gas Name | Index Value |
|---|
| Error / Unknown | -1 |
|---|
| NONE | 1 |
|---|
| ASH3 | 3 |
|---|
| B2H6 | 6 |
|---|
| CH4 | 9 |
|---|
| CH4AC | 12 |
|---|
| CL2 | 15 |
|---|
| DET | 18 |
|---|
| F123 | 21 |
|---|
| GEH4 | 24 |
|---|
| H2 | 27 |
|---|
| H2AC | 30 |
|---|
| H2S | 33 |
|---|
| H2SE | 36 |
|---|
| HCL | 39 |
|---|
| HF | 42 |
|---|
| N2O | 45 |
|---|
| NF3 | 48 |
|---|
| NH3 | 51 |
|---|
| O2 | 54 |
|---|
| O3 | 57 |
|---|
| PH3 | 60 |
|---|
| POCL | 63 |
|---|
| POCL3 | 66 |
|---|
| SIHX | 69 |
|---|
| SIHx | 70 |
|---|
| TMBP | 75 |
|---|
| WF6 | 78 |
|---|
Manual · page 12 ↗
file, the driver can use a config.dat file to directly customize the table – see Section 7.7.| Offset | Malfunction | Return to Normal |
|---|
| 20 | BASELINE OUT OF RANGE | BASELINE BACK TO NORMAL |
|---|
| 22 | IGNITER SWITCH IS ON | IGNITER SWITCH IS OFF |
|---|
| 24 | FLAME IGNITION DISABLED | FLAME IGNITION ENABLED |
|---|
| 26 | LOW VACUUM | VACUUM BACK TO NORMAL |
|---|
| 28 | FLAMEOUT RESTART | FLAMEOUT BACK TO NORMAL |
|---|
| 30 | LINE LEAK TEST MALFUN | LINE LEAK BACK TO NORMAL |
|---|
| 32 | POWER FAILURE | POWER RESTORED |
|---|
| 38 | FAILED TO LOAD PROGRAM | — |
|---|
| 39 | DPM TIMEOUT | DPM BACK TO NORMAL |
|---|
| 41 | RELAY FILE ERROR | OPERATIONS CHECK DONE |
|---|
| 45 | CHECK I/O AND FUSES | I/O AND FUSES OK NOW |
|---|
| 47 | TGM IN DEBUG MODE | — |
|---|
| 48 | DISK NEARLY FULL | ADEQUATE DISK STORAGE NOW |
|---|
| 50 | FLAMEOUT CONDITION | RETURN FROM FLAMEOUT |
|---|
| 52 | FAILED FLAME TEST | FLAME TEST OK NOW |
|---|
| 54 | FAILED RESPONSE TEST | RESPONSE TEST OK NOW |
|---|
| 56 | FAILED BLOCK LEAK CHECK | BLOCK LEAK CHECK OK NOW |
|---|
| 58 | ANALOG SUBSYSTEM FAILURE | ANALOG SUBSYSTEM NORMAL |
|---|
| 60 | ANALOG CHANNEL FAILURE | ANALOG CHANNEL NORMAL |
|---|
| 62 | PRINTER OFF LINE | PRINTER BACK TO NORMAL |
|---|
| 64 | REMOTE OFF LINE | REMOTE BACK TO NORMAL |
|---|
| 66 | DISK READ/WRITE ERR | DISK BACK TO NORMAL |
|---|
| 68 | LAN READ/WRITE ERROR | LAN BACK TO NORMAL |
|---|
| 70 | DISK FULL - DATA LOST | DISK NO LONGER FULL |
|---|
| 75 | HIGH SAMPLE VARIANCE | SAMPLE VARIANCE OK NOW |
|---|
| 80 | COUS SENSOR TIMEOUT | COUS TIMEOUT CORRECTED |
|---|
| 82 | COUS GETTER INOPERATIVE | COUS GETTER OK NOW |
|---|
| 84 | ACOUSTIC SENSOR FAILURE | ACOUSTIC SENSOR RECOVERD |
|---|
| 86 | GETTER TEMPERATURE LOW | GETTER TEMPERATUR OK NOW |
|---|
| 88 | LOW SAMPLE FLOW | SAMPLE FLOW OK NOW |
|---|
| 90 | TGM HYDROGEN LEAK | HYDROGEN LEAK REPAIRED |
|---|
Manual · page 13 ↗
The table may be extended/modified using the configuration file. Refer to Section 7.3.| Engineering Units | Index Value |
|---|
| Error / Unknown | -1 |
|---|
| ARU | 1 |
|---|
| PPM | 2 |
|---|
| PPB | 3 |
|---|
| LEL | 4 |
|---|
| % | 5 |
|---|
| PCT | 6 |
|---|
Manual · page 14 ↗
should be added to the offsets specified here.| Relative | Contents |
|---|
| 0 | Port Number. |
|---|
| 1 | Set to 'P' for a port. Set to 'S' for a sensor. |
|---|
| 2 | Gas concentration Value. Can be scaled by applying Map Descriptor scaling using the parameters Data_Array_Low_Scale, Data_Array_High_Scale, Node_Low_Scale, Node_High_Scale. |
|---|
| 3 | Gas Conc. Engineering Units as an index value. Stores –1 if units are not recognized. Index value is based on lookup table – Section 6.3. |
|---|
| 4 | Gas Status. 0=Normal; 1=Warn; 2=Alarm; 4=Error |
|---|
| 5 | Gas Name index (based on CALR report). A list of gas names and index values is built when the CALR report is parsed. It is not possible to provide a list of index values vs gas names in advance because this is dependent on the TGM configuration. To facilitate debugging your application the driver stores the list it builds in a Data Array which can be read by an upstream device or which can be seen by using the FS-GUI page, accessed through the FieldServer (check FieldServer Start-up Guide). If the gas name is not recognized, then the driver stores a value of –1. |
|---|
| 6 | Gas Name index based on looking up the gas name in the table provided in Section 6.1. If the gas name is not recognized by the lookup then a value of –1 is stored. |
|---|
| 0 | Gas Name is stored character for character to a max of 9 characters. The name of the Map Descriptor parameter is confusing. The Data Array specified with this parameter can have any format - ‘BYTE’ format is recommended. |
|---|
| 0 | Gas Concentration Engineering Units are stored character for character to a max of 9 characters. The name of the Map Descriptor parameter is confusing. The Data Array specified with this parameter can have any format and in fact the ‘BYTE’ format is recommended. |
|---|
Manual · page 16 ↗
8.1 Driver Error Messages| Message | Notes and Corrective Action |
|---|
| TGM:#1 Err. Diagnostic #1. | If this message is printed an internal diagnostic has been generated. Contact FieldServer tech support for help. |
|---|
| TGM:#2 Err. TGM_Function not specified. | Each Map Descriptor must have the parameter called “TGM_Function” set. 2 |
|---|
| TGM:#3 FYI. Use an Array called <%s> to expose diagnostics. | This message may be ignored. For more information read Section 8.2. |
|---|
| TGM: #4c Err. Bad format in latest area report. Discarding data. | 4a: The text string “CUR=” could not be found in the QLA report. 4b: The text string “GAS=” could not be found in the QLA report. 4c: The text string “STATUS=” could not be found in the QLA report. If the error is printed rarely and data is being stored correctly then the error probably arises from a corrupted message. If the error occurs frequently then it is possible that the report format has changed, and the driver firmware may require an update. To facilitate the evaluation of the problem, take a serial communications log, ensuring at least one of the errors occurs during the log, and then contact Tech Support. |
|---|
| TGM: #5 FYI. atmitgm.ini being used for malfunctions | This message is printed to alert you to the fact that the malfunction list is being based on the contents of a TGM config file. Refer to Section 7.7. If you expect the driver to be using this list, ignore the message. |
|---|
| TGM: #6 FYI. You could have used a TGM config file to define malfunctions. Working with hard coded list. | This message is printed to alert you to the possibility that the TGM config file can be used with this driver. Refer to Section 7.7. |
|---|
| TGM: #7 Err. Driver cannot write. MD=%s | The Map Descriptor function has been set so that the driver will attempt to write to the TGM. Writing is not possible. Change the function to a read. 2 |
|---|
| TGM: #8 Err. Array=%s too short. Act/Rqd=%d/%d | This error is printed when the driver attempts to store data from the QLA report. Modify the length of the Data Array as discussed in Section 4.2 |
|---|
| TGM: #9 FYI. Duplicate Gas Name=<%s>. Value has been updated from=%d to=%d | This message may be safely ignored. It is printed to alert you to the fact that the driver has updated the Gas Name table so that default values have been modified. |
|---|
| TGM: #10 Err. No space. Reject Gas Name=<%s> Index Value=%d | An attempt has been made to extend the gas name table. There is insufficient space to add more names. Remove this entry from the configuration CSV file. 2 |
|---|
| TGM: #11 FYI. User added Gas Name=<%s> Index Value=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the Gas Name table by adding a new gas name and index value. Ensure that index values are unique. |
|---|
| TGM: #12 FYI. Duplicate Gas Units=<%s>. Value has been updated from=%d to=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the Gas Engineering Unit table so that default values have been modified. |
|---|
Manual · page 20 ↗
Additional Information| Message | Notes and Corrective Action |
|---|
| TGM: #13 Err. No space. Reject Gas Units=<%s> Index Value=%d | An attempt has been made to extend the Fas Engineering Units table. There is insufficient space to add more names. Remove this entry from the configuration CSV file. 2 |
|---|
| TGM: #14 FYI. User added Gas Units=<%s> Index Value=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the Gas Engineering Units Table by adding a new gas name and index value. Ensure that index values are unique. |
|---|
| TGM: #15 FYI. Duplicate Malfunction=<%s>. Index Val has been updated from=%d to=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the Malfunction Table so that default values have been modified. Ensure that the index value is less than 100. |
|---|
| TGM: #16 Err. No space. Reject Malfunction=<%s> Index Val=%d | An attempt has been made to extend the Malfunction Table. There is insufficient space to add more names. Remove this entry from the configuration CSV file. 3 |
|---|
| TGM: #17 FYI. User added Malfunction=<%s> Index Val=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the Malfunction Table by adding a new gas name and index value. Ensure that index values are unique and that the index value is less than 100. |
|---|
| TGM: #18 FYI. Duplicate Normal Event=<%s>. Index Val has been updated from=%d to=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the ‘Return to Normal’ Table so that default values have been modified. Ensure that the index value is less than 100. |
|---|
| TGM: #19 Err. No space. Reject Normal Event=<%s> Index Val=%d | An attempt has been made to extend the ‘Return to Normal’ Table. There is insufficient space to add more names. Remove this entry from the configuration CSV file. 3 |
|---|
| TGM: #20 FYI. User added Normal Event=<%s> Index Val=%d | This message may be ignored. It is printed to alert you to the fact that the driver has updated the ‘Return to Normal’ Table by adding a new gas name and index value. Ensure that index values are unique and that the index value is less than 100. |
|---|
| TGM: #21 FYI. Malfunction. Don’t recognize <%s> But sounds like <%s>. | The driver has found a malfunction but could not match it exactly to a malfunction in the Malfunction Table. The driver used a soundex function which looks for matches based on a ‘sounds like’ evaluation. As the match is not exact the driver provides the alert. To suppress this message in the future, note the message and add it to the Malfunction Table. Section 7.5 provides information on how to do this. |
|---|
| TGM: #22 FYI. Return to Normal. Don’t recognize <%s>But sounds like <%s>. | The driver has found an event description that is being evaluated as a potential ‘Return to Normal’ message, but could not match it exactly to a ‘Return to Normal’ in the Malfunction Table. The driver used a soundex function which looks for matches based on a ‘sounds like’ evaluation. As the match is not exact the driver provides the alert. To suppress this message in the future, note the message and add it to the ‘Return to Normal' Table. Section 7.6 provides information on how to do this. |
|---|
Manual · page 21 ↗
Additional Information| Message | Notes and Corrective Action |
|---|
| TGM: #23 FYI. Duplicate Malfunction Number=<%d>.Text has been updated from=<%s> to=<%s> | If these messages are produced, then the driver processes the TGM config file. Read Section 7.7 for more information. |
|---|
| TGM: #26a Err. Malfunction=%s Index value=%d > 99. | The maximum malfunction index value is 99. Use the procedure in Section 7.5 to modify the malfunction index value.4 |
|---|
| TGM: #27 Err. Event=%s is Unknown. Read manual. | It is almost impossible for the driver to distinguish between ‘Return to Normal’ events and those events not associated with a malfunction. When a non-malfunction event is found that doesn’t match the entries in the Return to Normal Table then this message is printed. It is printed 20 times and then suppressed. Ignore the messages if they clearly are not ‘Return to Normal’ events that correspond to Malfunctions. If, however, they are obviously associated with Malfunctions then add the description to the ‘Return to Normal’ Table. Section 7.6 provide information on how to do this. |
|---|
| TGM: #28 Err TGM_Function=%s invalid. | This message is printed during Map Descriptor Validation. The function is not recognized. Correct the configuration using information found in Section 5.3.2.4 |
|---|
Manual · page 22 ↗
do not consider the port number in calculating the actual offset.| Stat Relative | Notes |
|---|
| 1 | Increments each time client sends a poll. |
|---|
| 2 | Total of all the bytes sent to the TGM device. |
|---|
| 3 | Increments each time the client receives a complete response as indicated by the prompt character. |
|---|
| 4 | Increments each time the client receives a CR-lf pair in a response. |
|---|
| 5 | Count of all the bytes received by the client in response to TGM polling. |
|---|
| 6 | Count of all the messages that were sent to the parse function. |
|---|
| 8 | Count of all the message that were parsed successfully. |
|---|
| 9 | Increments by 1 each time a poll times out. |
|---|
| 10 | *When set to 1 the driver dumps the contents of its gas name lookup table to the error log. Driver resets to zero after dump. |
|---|
| 11 | *When set to 1 the driver dumps the contents of its gas engineering units lookup table to the error log. Driver resets to zero after dump. |
|---|
| 12 | *When set to 1 the driver dumps the contents of its CALR gas lookup table to the error log. Driver resets to zero after dump. |
|---|
| 13 | *When set to 1 the driver dumps the contents of its Malfunction Lookup table to the error log. Driver resets to zero after dump. |
|---|
| 14 | *When set to 1 the driver dumps the contents of its 'Return to Normal' Lookup table to the error log. Driver resets to zero after dump. |
|---|
| 15 | When set to 1 the driver does not use the soundex function. |
|---|
| 16 | Increments by 1 each time a response line is too large to fit the connection in buffer. |
|---|
| 17 | Increments by 1 each time a response is too large to fit the in the report buffer. |
|---|
Manual · page 23 ↗
Commission the complete data path.
Match the equipment model and interface, select the documented driver role, and agree the data map and permissions. Verify representative values and any supported commands against the equipment. Additional destination protocols require their own compatible drivers and configuration.