IM 05C01E22-10E
4-7
Chapter 4 MODBUS Communication
06
Writes data into D register.
●
Function
This function code writes data into a specified D register number.
• The maximum number of D registers into which data is written at a time is 1.
• For the format of response in the event of failure, see subsection 4.2.4.
• Lets you specify broadcast (by setting “00” to the address number).
●
Message (for normal operation)
Element
Number of bytes in
RTU mode
Number of bytes in
ASCII mode
1
Write Data
(Upper Digit)
2
Start of
Message
Mark (:)
None
1
Write Data
(Lower Digit)
1
2
Error
Check
2
2
Address
Number
(ADR)
1
2
None
End of Message
Mark
(CR + LF)
2
Function Code
(06)
1
2
D-Register
Number
(Upper Digit)
1
2
2
1
D-Register
Number
(Lower Digit)
Message (continued)
●
Response (for normal operation)
Element
Number of bytes in
RTU mode
Number of bytes in
ASCII mode
1
Write Data
(Upper Digit)
2
Start of
Message
Mark (:)
None
1
Write Data
(Lower Digit)
1
2
Error
Check
2
2
Address
Number
(ADR)
1
2
None
End of Message
Mark
(CR + LF)
2
Function Code
(06)
1
2
D-Register
Number
(Upper Digit)
1
2
2
1
D-Register
Number
(Lower Digit)
Response (continued)
●
Example: Setting 70.0 to the target setpoint of UT150L with address number 01.
The following message writes “700” to the target setpoint (D0120) at address number 01 in the ASCII
mode.
[Message] [
:
: ]0106007702BCC4[CR][LF]
Start of message mark
“01”: address number 01, “06”: function code 06, “0077”: D-register address 0120, “02BC”: target
setpoint 70.0, and “C4”: error check
* Numbers in quotation marks are hexadecimal.
The response of the same contents is returned with respect to the above message.
[Response] [
:
: ]0106007702BCC4[CR][LF]
Target setpoint: 70.0
Summary of Contents for UT150L
Page 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...
Page 2: ......
Page 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...
Page 12: ...IM 05C01E22 10E 1 4...
Page 14: ...IM 05C01E22 10E 2 2...
Page 38: ...IM 05C01E22 10E 3 24...
Page 48: ...IM 05C01E22 10E 4 10...
Page 54: ...IM 05C01E22 10E 6 2...
Page 56: ...IM 05C01E22 10E App 2...
Page 58: ......
Page 59: ......