IM 05C01E22-10E
3-15
Chapter 3 PC Link Communication
WRR
Reads D registers and I relays on a word-by-word basis in random order.
●
Function
Reads the statuses of registers on a word-by-word basis, by the specified number of words and in a
random order.
• The number of words to be read at a time is 1 to 16.
• For the format of response in the event of failure, see subsection 3.1.2.
• The command shown below includes the checksum function. When performing communication
without the checksum, do not include the 2-byte checksum command element in the command.
●
Command/Response (for normal operation)
Number of
Bytes
Command
element
1
STX
2
Address
number
(ADR)
2
Number
of words
(n)
5
Register
number
1
5
Register
number
2
1
Comma
or space
1
Comma
or space
5
Register
number
(n)
2
CPU
number
01
3
WRR
1
0
Number of
Bytes
Response
element
1
STX
2
Address
number
(ADR)
2
CPU
number
01
4
dddd1
4
dddd2
4
ddddn
2
OK
…
…
…
…
2
Checksum
2
Checksum
1
ETX
1
CR
1
ETX
1
CR
Command (continued)
ddddn = character string in a hexadecimal pattern (n = 1 to 16)
The response is returned in a 4-digit character string (0000 to FFFF) in a hexadecimal pattern.
●
Example: Reading the measured input and output values of the UT150L with address number 10.
The following command reads the measured input value (D0002) and the target setpoint (D0003) at
address number 10.
[Response] STX$+
“1001OK00C80032FC” +ETX$+CR$
[Command] STX$+
“10010WRR02D0002, D000388” +ETX$+CR$
The measured input value 200 (00C8 (HEX)) and output value 50 (0032 (HEX)) are returned as
the response to the above command.
Содержание UT150L
Страница 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...
Страница 2: ......
Страница 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...
Страница 12: ...IM 05C01E22 10E 1 4...
Страница 14: ...IM 05C01E22 10E 2 2...
Страница 38: ...IM 05C01E22 10E 3 24...
Страница 48: ...IM 05C01E22 10E 4 10...
Страница 54: ...IM 05C01E22 10E 6 2...
Страница 56: ...IM 05C01E22 10E App 2...
Страница 58: ......
Страница 59: ......