Planning Your Application Program
And the response should be:
Chapter 6
Figure 6-2: Response Comment Structure
6-3-2 Modbus Function Code Introduction
To full-fill the programming requirement, there is a series of function code
standard for user’s reference...
Code (Hex) Name
Usage
01
Read Coil Status
Read Discrete Output Bit
02
Read Input Status
Read Discrete Input Bit
03
Read Holding Registers
Read 16-bit register. Used to read integer or
04
Read Input Registers
floating point process data.
05
Force Single Coil
Write data to force coil ON/OFF
06
Preset Single Register
Write data in 16-bit integer format
08
Loopback Diagnosis
Diagnostic testing of the communication port
15
Force Multiple Coils
Write multiple data to force coil ON/OFF
16
Preset Multiple Registers
Write multiple data in 16-bit integer format
Table 6-1: Response Comment Structure
Function Code 01
The function code 01 is used to read the discrete output’s ON/OFF sta-
tus of ADAM-5000/TCP in a binary data format. Request message
format for function code 01:
Command Body
Station
Address
Function
Code
Start
Address
High Byte
Start
Address
Low Byte
Requested
Number of Coil
High Byte
Requested
Number of
Coil Low Byte
ADAM-5000/TCP
User’s Manual
6-33
Summary of Contents for ADAM-5000/TCP Series
Page 1: ......
Page 23: ......
Page 44: ...4 I O modules...
Page 148: ......
Page 183: ......
Page 218: ......
Page 300: ...Appendix A Design Worksheets...
Page 307: ...Appendix A Design Worksheets A 8 ADAM 5000 TCP User s Manual...
Page 308: ...Appendix B Data Formats and I O Ranges...
Page 323: ...Appendix B Data Formats and I O Ranges B 13 ADAM 5000 TCP User s Manual...
Page 324: ...Appendix C Grounding Reference...
Page 331: ...Appendix C Grounding Reference Figure C 6 wire impedancC C 8 ADAM 5000 TCP User s Manual...