Function, Command/response (for normal operation), Example – Yokogawa JUXTA VJ Series Limit Alarms User Manual
Page 24

3-10
<Toc> <Ind>
<3. PC Link Communication >
IM 77J01J11-01E
3.2.6
WRD Reading D Registers/I Relays on a Word-by-word
Basis
●
Function
Reads a sequence of contiguous register information starting at the specified register
number on a word-by-word basis, by the specified number of words.
•
The number of words to be read at a time is 1 to 64.
•
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
• • •
1
2
2
2
4
4
4
2
1
1
CR
Response
Element
STX
OK
dddd1
dddd2
ETX
Address
number
(ADDRESS)
CPU
number
01
• • •
ddddn
Checksum
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 64
Number of Bytes
1
2
2
1
3
5
1
2
2
1
1
Command
Element
STX
Address
number
(ADDRESS)
CPU
number
01
Register
number
Comma
or space
Number
of words
(n)
Checksum
0
WRD
ETX
CR
030215E.EPS
●
Example:
Reading the output value of the VJ Series signal conditioner with communication address-1.
The following command reads the output value (D0008) at communication address-1.
[Command]
[STX]01010WRDD0008,0178[ETX][CR]
With respect to the above command, the output value 500 (01F4 (HEX)) is returned as
response (50.0% is expressed as 500).
[Response]
[STX]0101OK01F437[ETX][CR]
500 in decimal (output is 50.0%)
030231E.EPS
3rd Edition : Oct. 15, 2007-00