GetAnalogVersion: Returns the Expansion Module Reference and Version
This function block returns the reference and version number of the TM2...N analog expansion module.
NOTE:
The function blocks works only with the following TM2...N expansion modules:
oTM2AMI2HTN
oTM2AMI4HTN
oTM2AMO2HTN
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
The following table describes the input variable:
Input |
Type |
Comment |
---|---|---|
SlotNum |
BYTE |
Indicates the slot number. Range: 1...7 NOTE: 16 I/O and 24 I/O M218 controllers support a maximum of 4 expansion modules. |
The following table describes the output variables:
Output |
Type |
Comment |
---|---|---|
Error |
BYTE |
Indicates if the module version and reference are valid. 0: valid 1: invalid |
Version |
WORD |
Returns the expansion module version. Valid only if Error = 0 |
ModuleType |
Returns the expansion module reference. Valid only if Error = 0 |