4-9
IM 77C01H01-10EN
PC Link Communication
4
4.2 Command and Response
BRR Reads I relays on a bit-by-bit basis in a random order
Function
Reads the ON/OFF statuses of the individual I relays specified in a random order by the
specified number of bits.
• The number of bits 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 a checksum function. When performing
communication without the 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
Station
number
(ST-NO)
CPU
number
(01)
Time to
wait for
response
(0)
BWR
Number
of bits
(n)
I relay
number
1
Comma
or
space
I relay
number
2
Comma
or
space
Command (continued)
…
5
2
1
1
…
I relay
number
n
Checksum
ETX
CR
Number
of Bytes
1
2
2
2
1
1
…
1
2
1
1
Response
element
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
d1
d2
…
dn
Checksum
ETX
CR
The response is “0” when the status is OFF or “1” when ON.
dn: read data of the specified number of bits (n = 1 to 32)
(
dn = 0 (OFF)
)
dn = 1 (ON)
Example
Read the user area (relay symbol: USERAREA) flag of the UPM100 at station number 01.
The following command reads the user area (I0101 and I0103) flag.
[Command]
[STX]01010BRR02I0101, I010381 [ETX] [CR]
The following response is returned with respect to the above command.
[Response]
[STX]0101OK108D [ETX] [CR]
User area (I0101) is ON, and user area (I0103) is OFF.
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: ......