4-15
IM 77C01H01-10EN
PC Link Communication
4
WRR Reads D registers and I relays on a word-by-word basis in random order
Function
Reads the statuses of the individual registers, on a word-by-word basis, specified in a
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 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to read I relays on a word-by-word basis. Data of 16
bits starting at the leading I relay are to be read.
Command/Response (for normal operation)
Number
of Bytes
1
2
2
1
3
2
5
1
5
1
Command
element
STX
Station
number
(ST-NO)
CPU
number
(01)
Time to
wait for
response
(0)
WRR
Number
of words
(n)
Register
number
1
Comma
or
space
Register
number
2
Comma
or
space
Command (continued)
…
5
2
1
1
…
Register
number
(n)
Checksum
ETX
CR
Number
of Bytes
1
2
2
2
4
4
…
4
2
1
1
Response
element
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
dddd1
dddd2
…
ddddn Checksum
ETX
CR
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 = character string in hexadecimal
)
n = 1 to 32 words
Example
Read the instantaneous voltage 1 (register symbol: V1 L and V1 H) and instantaneous
current 1 (register symbol: I1 L and I1 H) of the UPM100 at station number 01.
The following command reads the instantaneous voltage 1 (D 0009 and D0010) and
instantaneous current 1 (D0015 and D0016).
[Command]
[STX]01010WRR04D0009,D0010,D0015,D0016FC[ETX][CR]
The data 800V for the instantaneous voltage 1 and 50A for the instantaneous current 1 are
returned in response to the above command.
[Response]
[STX]0101OK000044480000424882[ETX][CR]
800 [V] and 50 [A] in decimal. See the Note below.
Note: To use the response data as the reading, reverse the order of the upper and lower words.
Instantaneous voltage 1: floating-point hex data 0000 4448→ (reversed) → Hex 4448 0000
→ Decimal 800
Instantaneous current 1: floating-point hex data 0000 4248→ (reversed) → Hex 4248 0000
→ Decimal 50
4.2 Command and Response
Summary of Contents for UPM100
Page 2: ......
Page 14: ...Blank ...
Page 58: ...Blank ...
Page 74: ...Blank ...
Page 82: ...Blank ...
Page 86: ...Blank ...
Page 100: ...Blank ...
Page 102: ...Blank ...
Page 103: ......
Page 104: ......