IM 05C01E22-10E
3-13
Chapter 3 PC Link Communication
WRD
Reads D registers and I relays on a word-by-word basis.
●
Function
Reads a sequence of contiguous register information on a word-by-word basis, by the specified
number of words, and starting at the specified register number.
• The number of words to be read at a time is 1 to 32.
• 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
Response
element
1
STX
3
WRD
2
Address
number
(ADR)
2
CPU
number
01
4
dddd1
4
dddd2
4
ddddn
2
OK
…
…
2
Checksum
1
ETX
1
CR
Number of
Bytes
Command
element
1
STX
2
Address
number
(ADR)
2
CPU
number
01
1
Comma
or space
2
Number
of words
(n)
1
0
2
Checksum
5
Register
number
1
ETX
1
CR
Read data of the specified number of words
ddddn = character string in a hexadecimal pattern
n = 1 to 32
The response is returned in a 4-digit character string (0000 to FFFF) in a hexadecimal pattern.
●
Example: Reading a measured input value of the UT150L with address number 03
The following command reads the measured input value (D0002) at address number 03.
[Command] STX$+
“03010WRDD0002, 0174” +ETX$+CR$
The measured input value 200 (00C8 (HEX)) is returned as the response to the above command.
[Response] STX$+
“0301OK00C839” +ETX$+CR$
Содержание 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: ......