Modbus Function Codes in MOTCP
Modbus Function Codes in MOTCP
The three function codes associated with the holding registers in the table are 03, 06, and 16.
Examples follow to illustrate the configuration that determines the use of each. Other function
codes are executed to read/write values associated with 0X, 1X and 3X addresses/data types.
Colored text denotes the following items in the Output Window’s Protocol Analyzer display.
Transaction Identifier Protocol Identifier Length Station Function Code Starting Address
Total Addresses Value(s)
The Read and Write Protocol Analyzer data on the following pages was captured using
the Adroit Mod_RSSim Modbus Simulator package, and IWS’s MOTCP driver.
Data shown is for each read and write method available with this driver, for each of the
0X, 1X, 3X, 4X and FP modbus register types.
Mod_Sim
Discrete Outputs
*****************************************************************
Discrete Inputs
*****************************************************************
Analog Inputs
*****************************************************************
***************************************************************
Analog Output Floats
****************************************************************