
<Toc> <Ind> <3. PC Link Communication >
3-11
IM 77J01J11-01E
3.2.7 WRR Reading D Registers/I Relays on a Word-by-word
Basis in a Random Order
● Function
Reads the statuses of specified registers on a word-by-word basis in a random order.
• 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 a checksum, do not include the 2-byte checksum command
element in the command.
● Command/Response (for normal operation)
Number of Bytes 1221325151
Command
Element
STX Address
number
(ADDRESS)
CPU
number
01
0 WRR Number
of words
(n)
Register
number 1
Comma
or space
Register
number 2
Comma
or space
Command (continued)
1 2 224 4 4 2 11Number of Bytes
• • •
Response
Element
STX Address
number
(ADDRESS)
CPU
number
01
OK dddd1 dddd2 ETX CR• • • ddddn Checksum
030217E.EPS
The response is returned in a 4-digit character string (0000 to FFFF) in a hexadecimal pattern.
Reads data of the specified number of words
ddddn is a character string in a hexadecimal pattern.
n=1 to 32
5211
• • •
Register
number n
ETX CR• • • Checksum
● Example:
Reading the input and output values of the VJ Series signal conditioner with communica-
tion address-1
The following command reads the input value (
D0004) and output value (D0008) at com-
munication address-1.
[Command]
[STX]01010WRR02D0004,D00088F[ETX][CR]
With respect to the above command, the input value 500 (01F4 (HEX)) and output value
500 (
01F4 (HEX)) are returned as responses (50.0% is expressed as 500).
[Response]
[STX]0101OK01F401F4FC[ETX][CR]
500 in decimal
(input is 50.0 %)
500 in decimal
(output is 50.0 %)
3rd Edition : Oct. 15, 2007-00
Komentarze do niniejszej Instrukcji