IM 05C01E22-10E
3-10
BRW
Writes data into I relays on a bit-by-bit basis in a random order.
●
Function
Writes ON/OFF statuses into I relays at intervals of the specified number of bits on a per-I relay basis
and in random order.
• The number of bits to be written at a time is 1 to 16.
• 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)
dn: write data to the extent of the specified number of bits (n = 1 to 16)
dn = 0 (OFF)
dn = 1 (ON)
Number of
Bytes
Command
element
1
STX
1
ETX
1
CR
2
Address
number
(ADR)
5
I relay
number
1
5
I relay
number
2
1
Comma
or space
1
Comma
or space
2
Number
of bits
(n)
2
CPU
number
01
3
BRW
1
d1
1
0
I relay
number
n
1
5
Comma
or space
1
Comma
or space
…
…
1
Comma
or space
1
d2
1
dn
Command (continued)
2
Checksum
Number of
Bytes
Response
element
1
STX
1
ETX
1
CR
2
Address
number
(ADR)
2
CPU
number
01
2
OK
2
Checksum
Write information is “0” when it is OFF or “1” when it is ON.
●
Example: Setting four user-defined flags of the UT150L with address number 05 to ON, OFF,
OFF, and ON.
The following command sets the four user-defined flags (I0025, I0026, I0027, and I0028) at address
number 05 to ON, OFF, OFF, and ON respectively.
[Command] STX$+
“05010BRW04I0025, 1, I0026, 0, I0027, 0, I0028, 181” +ETX$+CR$
Note: The user-defined flags (I relays) are flags that the user can freely read/write. For areas available
to the user, see Chapter 6, Functions and Applications of I Relays.
“OK” is returned as the response to the above command.
[Response] STX$+
“0501OK60” +ETX$+CR$
Summary of Contents for UT150L
Page 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...
Page 2: ......
Page 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...
Page 12: ...IM 05C01E22 10E 1 4...
Page 14: ...IM 05C01E22 10E 2 2...
Page 38: ...IM 05C01E22 10E 3 24...
Page 48: ...IM 05C01E22 10E 4 10...
Page 54: ...IM 05C01E22 10E 6 2...
Page 56: ...IM 05C01E22 10E App 2...
Page 58: ......
Page 59: ......