Embedded systems. Connected possibilities.
Technical support ↗
Home / PROTOCOL DRIVER

PROTOCOL 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 ModeNodesComments
Client1Only 1 Client node per port allowed
Server1Server capability not provided

Manual · page 4 ↗

data.
Column TitleFunctionLegal Values
Data_Array_NameProvide name for Data Array.Up to 15 alphanumeric characters
Data_Array_FormatProvide data format. Each Data Array can only take on one format.Float, Bit, Byte, Uint16, Uint32, Sint16, Sint32
Data_Array_LengthNumber 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 TitleFunctionLegal Values
PortSpecify which port the device is connected to the FieldServer.P1-P2, R1-R21
ProtocolSpecify 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 TitleFunctionLegal Values
Node_NameProvide name for Node.Up to 32 alphanumeric characters
Node_IDThis 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
ProtocolSpecify protocol used.TGM-Serial, ATMI-TGM-Serial
ConnectionSpecify which port the device is connected to the FieldServer.P1-P2, R1-R2

Manual · page 8 ↗

Configuration parameters
Column TitleFunctionLegal Values
Map_Descriptor_NameName of this Map Descriptor.Up to 32 alphanumeric characters
Data_Array_NameName 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_OffsetStarting location in Data Array.0 to maximum specified in “Data Array” section above
FunctionFunction of Client Map Descriptor. The driver cannot write to the TGM device.RDBC, ARS

Manual · page 8 ↗

Configuration parameters
Column TitleFunctionLegal Values
Node_NameName of Node to fetch data from.One of the Node names specified in “Client Node Descriptor” above
Data_TypeThis commonly used driver parameter is not used by the driver.—
AddressThis commonly used driver parameter is not used by the driver.—
LengthLength 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 TitleFunction—Legal
Values
Scan_IntervalRate 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 NameIndex Value
Error / Unknown-1
NONE1
ASH33
B2H66
CH49
CH4AC12
CL215
DET18
F12321
GEH424
H227
H2AC30
H2S33
H2SE36
HCL39
HF42
N2O45
NF348
NH351
O254
O357
PH360
POCL63
POCL366
SIHX69
SIHx70
TMBP75
WF678

Manual · page 12 ↗

file, the driver can use a config.dat file to directly customize the table – see Section 7.7.
OffsetMalfunctionReturn to Normal
20BASELINE OUT OF RANGEBASELINE BACK TO NORMAL
22IGNITER SWITCH IS ONIGNITER SWITCH IS OFF
24FLAME IGNITION DISABLEDFLAME IGNITION ENABLED
26LOW VACUUMVACUUM BACK TO NORMAL
28FLAMEOUT RESTARTFLAMEOUT BACK TO NORMAL
30LINE LEAK TEST MALFUNLINE LEAK BACK TO NORMAL
32POWER FAILUREPOWER RESTORED
38FAILED TO LOAD PROGRAM—
39DPM TIMEOUTDPM BACK TO NORMAL
41RELAY FILE ERROROPERATIONS CHECK DONE
45CHECK I/O AND FUSESI/O AND FUSES OK NOW
47TGM IN DEBUG MODE—
48DISK NEARLY FULLADEQUATE DISK STORAGE NOW
50FLAMEOUT CONDITIONRETURN FROM FLAMEOUT
52FAILED FLAME TESTFLAME TEST OK NOW
54FAILED RESPONSE TESTRESPONSE TEST OK NOW
56FAILED BLOCK LEAK CHECKBLOCK LEAK CHECK OK NOW
58ANALOG SUBSYSTEM FAILUREANALOG SUBSYSTEM NORMAL
60ANALOG CHANNEL FAILUREANALOG CHANNEL NORMAL
62PRINTER OFF LINEPRINTER BACK TO NORMAL
64REMOTE OFF LINEREMOTE BACK TO NORMAL
66DISK READ/WRITE ERRDISK BACK TO NORMAL
68LAN READ/WRITE ERRORLAN BACK TO NORMAL
70DISK FULL - DATA LOSTDISK NO LONGER FULL
75HIGH SAMPLE VARIANCESAMPLE VARIANCE OK NOW
80COUS SENSOR TIMEOUTCOUS TIMEOUT CORRECTED
82COUS GETTER INOPERATIVECOUS GETTER OK NOW
84ACOUSTIC SENSOR FAILUREACOUSTIC SENSOR RECOVERD
86GETTER TEMPERATURE LOWGETTER TEMPERATUR OK NOW
88LOW SAMPLE FLOWSAMPLE FLOW OK NOW
90TGM HYDROGEN LEAKHYDROGEN LEAK REPAIRED

Manual · page 13 ↗

The table may be extended/modified using the configuration file. Refer to Section 7.3.
Engineering UnitsIndex Value
Error / Unknown-1
ARU1
PPM2
PPB3
LEL4
%5
PCT6

Manual · page 14 ↗

should be added to the offsets specified here.
RelativeContents
0Port Number.
1Set to 'P' for a port. Set to 'S' for a sensor.
2Gas 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.
3Gas Conc. Engineering Units as an index value. Stores –1 if units are not recognized. Index value is based on lookup table – Section 6.3.
4Gas Status. 0=Normal; 1=Warn; 2=Alarm; 4=Error
5Gas 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.
6Gas 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.
0Gas 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.
0Gas 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
MessageNotes 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 malfunctionsThis 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=%sThe 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/%dThis 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=%dThis 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=%dAn 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=%dThis 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=%dThis 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
MessageNotes and Corrective Action
TGM: #13 Err. No space. Reject Gas Units=<%s> Index Value=%dAn 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=%dThis 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=%dThis 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=%dAn 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=%dThis 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=%dThis 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=%dAn 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=%dThis 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
MessageNotes 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 RelativeNotes
1Increments each time client sends a poll.
2Total of all the bytes sent to the TGM device.
3Increments each time the client receives a complete response as indicated by the prompt character.
4Increments each time the client receives a CR-lf pair in a response.
5Count of all the bytes received by the client in response to TGM polling.
6Count of all the messages that were sent to the parse function.
8Count of all the message that were parsed successfully.
9Increments 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.
15When set to 1 the driver does not use the soundex function.
16Increments by 1 each time a response line is too large to fit the connection in buffer.
17Increments 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.

LET’S CONNECT THE POSSIBILITIES

Have a problem worth solving?

Tell us what you need to connect, control or create.

Discuss your project

Find your connection.