5.2 Composition of Message.........................................................................................................................8
5.3 Response of Slave Station.......................................................................................................................9
5.4 Function Code.......................................................................................................................................10
5.5 Calculation of Error Check Code (CRC-16)......................................................................................... 11
5.6 Transmission Control Procedure...........................................................................................................13
6. DETAILS OF MESSAGE ............................................................................................................. 15
6.1 Word data readout [Function code: 03H]...............................................................................................15
6.2 Reading Read-Only Word Data [Function Code: 04H] .........................................................................16
6.3 Writing Word Data (unit of 1word) [function code: 06H] .....................................................................17
6.4 Writing Continuous Word Data [Function code: 10H] ..........................................................................18
7. ADDRESS MAP AND DATA FORMAT .................................................................................... 19
7.1 Data format ...........................................................................................................................................19
7.1.1 Transmission data format............................................................................................................19
7.1.2 Handling of decimal point position and measurement unit ........................................................19
7.1.3 Handling at measurement data over-range..................................................................................19
To a relevant message, the slave station creates and sends back a response message which corresponds to
the command message. The composition of message in this case is the same as in Section 5.2.
Contents of the data field depend on the function code. For details, refer to chapter 6.
(2) Response for abnormal command
If there are problems (such as specification of a nonexistent function code) with the contents of the
command message other than transmission error, the slave creates and replies with an error response
message without following the command.
The composition of response message at error detection is as shown in Fig. 5-2 the value used for function
code field is function code of command message plus 80
Table 5-1 gives error codes.
Station No. (1 byte)
.
H
Function code + 80H (1 byte)
Error code (1 byte)
Error check code (CRC-16) (2 bytes)
Fig. 5-2 Response message at error detection
Table 5-1 Error Code
Error code Contents Explanation
01H Illegal function code Non-actual function code is designated.
Check for the function code.
02H Faulty address for coil or register A relative address of a coil number or resister
number to which the designated function
code can not be used.
03H Illegal data value Because the designation of number is too
much, the area where resister numbers do not
exist is designated.
(3) No response
Under any of the following items, the slave station takes no action of the command message and sends
back no response.
• A station number transmitted in the command message differs from the station number specified to
the slave station.
• An error check code is not matched, or a transmission error (parity error, etc.) is detected.
• The time interval between the composition data of the message becomes longer than the time
corresponding to 24 bits. (Refer to Section 5.6 Transmission Control Procedure)
INZ-TN5A0506-E
9
5.4 Function Code
According to MODBUS protocol, register numbers are assigned by function codes. Each function code acts on
specific register number.
This correspondence is shown in Table 5-2, and the message length by function is shown in Table 5-3.
Table 5-2 Correspondence between function codes and objective address
Function Code Register No.
No. Function Remedy No. Contents
03H reading (continuance) Holding register 4xxxxReading/writing Word data
04H reading (continuance) Input register 3xxxxReading Word data
06H Writing Holding register 4xxxxReading/writing Word data
10H Writing (continuance) Holding register 4xxxxReading/writing Word data
Table 5-3 Function code and message length
[UNIT: byte]
Function Code Contents
03H Read word data 64 words
04H Read word (Read only) 64 words
06H Write word data 1 word 888 8
10H Write continuous word data 64 words
Designated
data
Command
message
Mini.Max.Mini. Max.
887 133
887 133
111378 8
Response
message
10
INZ-TN5A0506-E
Loading...
+ 25 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.