SECTION 2 CompoWay/F Communications Protocol
22
Error Occurred
Note: With the Write Variable Area service,
“command too long” errors
do not occur. If there is sufficient data for the number of elements
in the service request PDU, the error is processed as a
“number
of elements/data mismatch” error.
■ Writing Timer and Counter Set Values
● Reading and Writing Timer Set Values
Timer set values (SVs) can be read and written. The rightmost and
leftmost four bytes contain the ON time and OFF time for twin timers
and the rightmost four bytes contain the ON time for other timers.
Example 1: Writing the SV of Timers Other Than Twin Timers
Command
Example 2: Reading the SV of Timers Other Than Twin Timers
Command
[STX]000000101C10000000001
Response
Example 3: Writing the SV of Twin Timers
Command
Example 4: Writing the SV of Twin Timers
Command
[STX]000000101C10000000001
Response
code
Error name Cause
1002 Command too short The command is too short.
1101 Area type error The variable type is wrong.
1003 Number of elements/
data mismatch
The number of data does not
match the number of elements.
1100 Parameter error • Bit position is not 00.
• The write data is out of the set-
ting range.
• The bit number is out of range.
3003 Read-only error Variable type “C0” was written to.
2203 Operation error Unit error (Memory error
occurred, or unused command
was sent.)
[STX]000000102C100000000010000270F
ON
time: 9999 (H'270F)
[STX]00000010100000000270F
ON
time: 9999 (H'270F)
[STX]000000102C100000000010064 270F
ON time: 100 (H'64)
OFF time: 9999 (H'270F)