MODBUS Protocol
Function Codes
Thermo Fisher Scientific
Model 42
i
Trace Level Instruction Manual
C-3
A Slave address is not required in MODBUS over TCP/IP because the
higher-level protocols include device addressing. The unit identifier is not
used by the instrument.
The function code is a single byte in length. The following function codes
are supported by the instrument:
Read Coils
:
0x01
Read Inputs
: 0x02
Read Holding Registers
: 0x03
Read Input Registers
: 0x04
Force (Write) Single Coil
: 0x05
Read Exception Status
: 0x06
If a function code is received that is not in this list, an invalid function
exception is returned.
The data field varies depending on the function. For more description of
these data fields, see “Function Codes” below.
In MODBUS over Serial an error check is included in the message. This is
not necessary in MODBUS over TCP/IP because the higher-level protocols
ensure error-free transmission. The error check is a two-byte (16 bit) CRC
value.
This section describes the various function codes that are supported by the
Model 42
i
Trace Level.
Read Coils / Inputs read the status of the digital outputs (relays) in the
instrument. Issuing either of these function codes will generate the same
response.
These requests specify the starting address, i.e. the address of the first
output specified, and the number of outputs. The outputs are addressed
starting at zero. Therefore, outputs numbered 1–16 are addressed as 0–15.
Function Code
Data
Error Check
Function Codes
(0x01/0x02) Read Coils /
Read Inputs