IM 05C01E22-10E
3-17
Chapter 3 PC Link Communication
WRS
Specifies the D registers and I relays to be monitored on a word-by-word basis.
●
Function
Specifies the numbers of the registers to be monitored on a word-by-word basis. Note that this
command simply specifies the registers. Actual monitoring is performed by the WRM command after
the register numbers are specified by this command.
If the volume of data is large and you wish to increase the communication rate, it is useful to use a
combination of the WRS and WRM commands rather than the WRD command. If the power supply is
turned off, the register numbers specified will be erased.
• The number of words to be specified 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 the checksum, do not include the 2-byte checksum command element in the command.
●
Command/Response (for normal operation)
Number of
Bytes
Command
element
1
STX
2
Address
number
(ADR)
2
Number
of words
(n)
5
Register
number
1
5
Register
number
2
1
Comma
or space
1
Comma
or space
5
Register
number
n
2
CPU
number
01
3
WRS
1
0
Number of
Bytes
Response
element
1
STX
2
Address
number
(ADR)
2
CPU
number
01
2
OK
…
…
2
Checksum
2
Checksum
1
ETX
1
CR
1
ETX
1
CR
Command (continued)
●
Example: Monitoring the measured input value of UT150L with address number 01
The following command monitors the measured input value (D0002) at address number 01.
(This command simply specifies the registers.)
[Response] STX$+
“0101OK5C” +ETX$+CR$
[Command] STX$+
“01010WRS01D000255” +ETX$+CR$
“OK” is returned as the response to the above command.
D register number: D0002
CPU number: 01
Содержание UT150L
Страница 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...
Страница 2: ......
Страница 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...
Страница 12: ...IM 05C01E22 10E 1 4...
Страница 14: ...IM 05C01E22 10E 2 2...
Страница 38: ...IM 05C01E22 10E 3 24...
Страница 48: ...IM 05C01E22 10E 4 10...
Страница 54: ...IM 05C01E22 10E 6 2...
Страница 56: ...IM 05C01E22 10E App 2...
Страница 58: ......
Страница 59: ......