IM 05C01E22-10E
3-8
BWR
Writes data into I relays on a bit-by-bit basis.
●
Function
Writes ON/OFF data into a sequence of contiguous I relays at intervals of the specified number of bits
and starting at a specified I relay number.
• The number of bits to be written 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 a checksum function. When performing communication
without 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 32)
dn = 0 (OFF)
dn = 1 (ON)
Number of
Bytes
Command
element
1
STX
2
Address
number
(ADR)
5
I relay
number
1
Comma
or space
1
Comma
or space
3
Number
of bits
(n)
2
CPU
number
01
3
BWR
1
d1
1
d2
1
0
1
dn
…
…
2
Checksum
1
ETX
1
CR
Command (continued)
Write information is “0” when it is OFF or “1” when it is ON.
Number of
Bytes
Response
element
1
STX
2
Address
number
(ADR)
2
CPU
number
01
2
OK
2
Checksum
1
ETX
1
CR
●
Example: Setting the user-defined flag of UT150L with address number 01 to ON.
The following command writes ON into the user-defined flag (I0018) at address number 01.
[Command] STX$+
“01010BWRI0018, 001, 1AC” +ETX$+CR$
Note: The user-defined flag is a flag the user can read/write without restraint. 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$+
“0101OK5C” +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: ......