Function, Command/response (for normal operation), Example – Yokogawa JUXTA M Series Digital Limit Alarms MVTK User Manual
Page 29

<Toc> <Ind>
<3. PC Link Communication >
3-15
IM 77J04J11-01E 1st Edition : 2006.08.25-00
WRR Reads D registers and I relays on a word-by-word basis in random
order
●
Function
Reads the statuses of the individul registers on a word-by-word basis specified in random
order by the specified number of words.
•
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 checksum, do not include the 2-byte
checksum element in the command.
●
Command/Response (for normal operation)
Number of Bytes
1
2
2
1
3
2
5
1
5
1
Command
element
STX
Address
number
(ADR)
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
2
2
4
4
4
2
1
1
Number of Bytes
• • •
Response
element
STX
Address
number
(ADR)
CPU
number
01
OK
dddd1 dddd2
ETX
CR
• • •
ddddn
Checksum
The response is returned in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: read data of the specified number of words
ddddn is a character string in hexadecimal.
n=1 to 32
5
2
1
1
• • •
Register
number n
ETX
CR
• • •
Checksum
●
Example:
Reading the alarm-1 setpoint (D0101) and alarm-2 setpoint (D0102) of the M Series with
address number 01.
[Command]
[STX]01010WRR02D0101,D010288[ETX][CR]
The alarm-1 setpoint 500 (01F4 [HEX]) and alarm-2 setpoint 500 (01F4 [HEX]) are re-
turned with respect to the above command (50.0 is expressed as 500).
[Response]
[STX]0101OK01F401F4FC[ETX][CR]
500 in decimal
(Alarm-1 setpoint is 50.0.)
500 in decimal
(Alarm-2 setpoint is 50.0.)