3. CC-Link Communication Function
[SMF-2008-A]
– 3-9 –
ii) Writing command code
Fig. 3.3. Timing chart for writing command code execution
Set the writing command code as a command code (RWwn+2) and set the written data as written
data (RWwn+3 and RWwn+4) and, as necessary, a parameter number (RWwn+5).
Turn on the command code execution request (RY (n+2) 1) and write into data designated with the
command code.
Written 32-bit data pieces are divided into the upper 16 bits and lower 16 bits when they are stored
in remote registers.
All data is in hexadecimals. At this time, after writing, the command code execution completion
(RX (n+2) 1) is turned on.
If a command code not included in specifications is set as a command code (RWwn+2), an error
code (1) is set in the response code. If a user tries to write into a parameter that cannot be
set by parameter setting, an error code (2) is set. If a user tries to write an excessive value,
an error code (3) is set.
If the writing command code is executed during the processing of the communication command
input into CN1, an error code (4) is set.
Turn the command code execution request (RY (n+2) 1) off after the command code execution
completion (RX (n+2) 1) is turned on.
3.3.3. Response code
If the monitor code or command code specified in the remote register is out of the allowable setting
range, an error code is specified as a response code (RWrn+2). If they are normal, "0000" is set.
Fig. 3.4. Description of error of response code
Written data, lower 16 bits
(RWwn+3)
Written data, upper 16 bits
(RWwn+4)
Parameter number
(RWwn+5)
Command code execution request
(RY(n+2)1)
Command code execution completion
(RX(n+2)1)
Writing is being executed
Error corresponding to monitor code 1 or monitor code 2
Error corresponding to command code or loaded or written data