4-7
IM 77C01H01-10EN
PC Link Communication
4
4.2 Command and Response
BRD Reads I relays on a bit-by-bit basis
Function
Reads the ON/OFF statuses of a sequence of contiguous I relays by the specified number of
bits, starting at a specified I relay number.
• The number of bits to be read at a time is 1 to 164.
• 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 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
5
1
3
2
1
1
Command
element
STX
Station
number
(ST-NO)
CPU
number
(01)
Time to
wait for
response
(0)
BRD
I relay
number
Comma
or
space
Number
of bits
(n)
Checksum
ETX
CR
Number
of Bytes
1
2
2
2
1
1
1
…
1
2
1
1
Response
element
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
d1
d2
d3
…
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 164)
(
dn = 0 (OFF)
)
dn = 1 (ON)
Example
Read the input overrange for the input full scale (relay symbol: IN_OVER) flag of the
UPM100 at station number 01.
The following command reads the input overrange flag for the input full scale (I0001).
[Command]
[STX]01010BRDI0001, 00191 [ETX] [CR]
The following response is returned with respect to the above command.
[Response]
[STX]0101OK15D [ETX] [CR]
I0001 has been ON since 1 was returned.
Содержание UPM100
Страница 2: ......
Страница 14: ...Blank ...
Страница 58: ...Blank ...
Страница 74: ...Blank ...
Страница 82: ...Blank ...
Страница 86: ...Blank ...
Страница 100: ...Blank ...
Страница 102: ...Blank ...
Страница 103: ......
Страница 104: ......