
3-32
IM 05P07A01-01EN
WRS Specifying 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
effective 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 registers to be specified at a time is 1 to 32 (decimal).
• For details on the response format at an error, see “3.2.3 Configuration of Response.”
• The command/response shown below includes the checksum function. When
performing communication without the checksum, do not include the 2-byte checksum
element in the command.
Command/Response (during normal operation)
Number of
bytes
1
2
2
1
3
2
5
1
5
1
Command
element
STX
Address
No.
(ADR)
CPU
No. (01)
Response
waiting
time
WRS
Number
of words
(n)
Register
No. 1
, or
space
Register
No. 2
, or
space
Continuation of command
• • •
5
2
1
1
• • •
Register
number n
Checksum
ETX
CR
Number of
bytes
1
2
2
2
4
4
• • •
4
2
1
1
Response
element
STX
Address
No.
(ADR)
CPU
No. (01)
OK
dddd1
dddd2
• • •
ddddn Checksum
ETX
CR
WRM Monitoring the D registers and I relays on a word-by-word basis
Function
Reads the information of the registers that have been specified in advance by the WRS
command.
• Before executing this command, the WRS command must always be executed to
specify which registers are to be monitored. If no register has been specified, error
code 06 is returned.
• For details on the response format at an error, see “3.2.3 Configuration of Response.”
• The command/response shown below includes the checksum function. When
performing communication without the checksum, do not include the 2-byte checksum
element in the command.
Command/Response (during normal operation)
Number of
bytes
1
2
2
1
3
2
1
1
Command
element
STX
Address
No.
(ADR)
CPU
No. (01)
Response
waiting
time
WRM
Checksum
ETX
CR
Number of
bytes
1
2
2
2
4
4
• • •
4
2
1
1
Response
element
STX
Address
No.
(ADR)
CPU
No. (01)
OK
dddd1
dddd2
• • •
ddddn Checksum
ETX
CR
Responses are returned as a 4-digit character string in Hex (0000 to FFFF).
ddddn: Read data of the number of words specified by the WRS command
ddddn is a Hex character string. (n = 1 to 32)
3.2 PC Link Communication
Содержание UTAdvanced Series
Страница 17: ...Blank Page...
Страница 77: ...Blank Page...
Страница 285: ...Blank Page...
Страница 325: ...Blank Page...
Страница 467: ...Blank Page...
Страница 557: ...Blank Page...
Страница 825: ...Blank Page...
Страница 861: ...Blank Page...
Страница 863: ...Blank Page...
Страница 865: ...Blank Page...