- Home
- Domestic appliances
- Climate control
- Temperature & humidity sensors
- RKC INSTRUMENT
- SA200
- User manual
advertisement
5. MODBUS COMMUNICATION PROTOCOL
The master controls communication between master and slave. A typical message consists of a request (query message) sent from the master followed by an answer (response message) from the slave. When master begins data transmission, a set of data is sent to the slave in a fixed sequence.
When it is received, the slave decodes it, takes the necessary action, and returns data to the master.
5.1 Message Format
The message consists of four parts: slave address, function code, data, and error check code which are always transmitted in the same sequence.
Slave address
Function code
Data
Error check CRC-16
Message format
The slave address is a number from 1 to 99 manually set at the front key panel of the controller.
For details, see 3.3 Device Address (Slave Address) Setting (P. 7).
Although all connected slaves receive the query message sent from the master, only the slave with the slave address coinciding with the query message will accept the message.
The function codes are the instructions set at the master and sent to the slave describing the action to be executed. The function codes are included when the slave responds to the master.
For details, see 5.2 Function Code (P. 31).
The data to execute the function specified by the function code is sent to the slave and corresponding data returned to the master from the slave.
For details, see 5.6 Message Format (P. 35), 5.7 Data Configuration (P. 38) and
5.8 Communication Data List (P. 40).
30
An error checking code (CRC-16: Cyclic Redundancy Check) is used to detect an error in the signal transmission.
For details, see 5.5 Calculating CRC-16 (P.33).
IMR01D02-E3
advertisement
Related manuals
advertisement
Table of contents
- 7 1. SPECIFICATIONS
- 9 2. WIRING
- 11 3. SETTING
- 11 3.1 Communication Setting Mode
- 12 3.2 Setting the Communication Parameters
- 13 3.3 Device Address/Slave Address Setting
- 15 3.4 Communication Speed Setting
- 17 3.5 Data Configuration Setting
- 19 3.6 Interval Time Setting
- 20 3.7 Communication Requirements
- 23 4. RKC COMMUNICATION PROTOCOL
- 23 4.1 Polling
- 24 4.1.1 Polling procedures
- 27 4.1.2 Polling procedure example
- 28 4.2 Selecting
- 28 4.2.1 Selecting procedures
- 31 4.2.2 Selecting procedure example
- 32 4.3 Communication Identifier List
- 36 5. MODBUS COMMUNICATION PROTOCOL
- 36 5.1 Message Format
- 37 5.2 Function Code
- 37 5.3 Communication Mode
- 38 5.4 Slave Response
- 39 5.5 Calculating CRC
- 41 5.6 Message Format
- 41 5.6.1 Reading holding registers [03H]
- 42 5.6.2 Preset single resister [06H]
- 43 5.6.3 Diagnostics (loopback test) [08H]
- 44 5.7 Data Configuration
- 44 5.7.1 Data range
- 45 5.7.2 Data processing precautions
- 46 5.8 Communication Data List
- 50 6. INPUT RANGE TABLES
- 54 7. TROUBLESHOOTING
- 57 8. ASCII 7-BIT CODE TABLE