7-10
Chapter 7. CPL Communication Function
Fixed-length continuous data write command (WD command)
This command writes continuous data in two-byte units. This command is suitable
for handling data in ladder programs sent by PLC communications as the data is of
a fixed length.
The starting word address is expressed as four hexadecimal digits. Data is expressed
as four × n (n is a positive integer) hexadecimal digits.
z
Instruction message
The write starting word address (four hexadecimal digits) and data to be written
(four × n hexadecimal digits) is sent.
• Writing of one data record
W D
(1) (2) (3)
• Writing of multiple data records
W D
(1) (2) (3) (4) (5)
(1) Fixed-length continuous data write command
(2) Starting word address
(3) Write data 1
(4) Write data 2 to (n-1)
(5) Write data n
z
Response message
If data is written, a termination code indicating success (two decimal digits) is
returned. If only part of the data is written, a termination code indicating warning
(two decimal digits) is returned. If none of the data is written, a termination code
indicating error (two decimal digits) is returned.
• Normal termination
0 0
(1)
• Abnormal termination or warning
X X
A termination code indicating an error is entered in place of XX.
7 - 6 List of Termination Codes (p.7-15) (for details about termination
codes)
(1)
(1) Termination code
z
Maximum write data count per message
64 words