
4-12
Chapter 4. CPL Communication
WS command (decimal format consecutive data write)
z
WS command instruction message
This is a command—in one message—to consecutively write the contents of
multiple consecutive data addresses starting at the specified start data address.
The application layer of the write instruction consists of the following three types of
data.
Write instruction code
Write start data address
1st data record to write
2nd data record to write
02H 30H 31H 30H 30H 58H 57H 53H 2CH 31H 30H 30H 31H 57H 2CH 32H 2CH 36H 35H 03H 46H 45H 0DH 0AH
STX 0
1
0
0
X
W
S
,
1
0
0
1
W
,
2
,
6
5 ETX F
E CR LF
Data link layer
Application layer
Data link layer
• Data is delimited by commas (“,” = hex character code 2CH).
• It is not necessary to specify the number of data records to write.
• All numbers are in base 10.
• The figure above shows an example of an instruction message used to write “2”
and “65” to addresses “1001” and “1002” respectively.
1. Write instruction code (WS)
Role
: This is a command for writing data in decimal format.
Description : Two characters, "WS" (57H, 53H).
2. Write start data address
Role
: This specifies by a decimal number the data address at which to
begin writing.
6 - 2 Communication Data Table (p. 6-3)
(for the relationship
between data addresses and write data)
Be sure to add “W” (57H) to the end of the data address.
3. Write data
Role
: This is the data used to be written to consecutive data addresses
starting from the specified data address.
Description : The range of values that can be written varies depending on the
data address.
•
Data is delimited by commas (2CH).
•
The address to which to write data is sequentially incremented by 1
following the starting data address.
•
Up to 10 data records can be written in one message.
Содержание F4Q
Страница 10: ......
Страница 14: ......
Страница 46: ......
Страница 66: ...7 2 Chapter 7 Device Operation by Communication Commands...
Страница 68: ......
Страница 70: ......
Страница 71: ...Revision History CP SP 1458E Printed Edn New Page No Description June 2021 1...
Страница 72: ......
Страница 73: ......