3 - 36
3. CC-LINK COMMUNICATION FUNCTIONS
3.6.2 Instruction codes
(1) Read instruction codes (0000h to 0A1Fh)
Instruction code
(RWwn+2)
Data read period
Instruction code
execution demand
(RYn9)
Instruction code
execution completion
(RXn9)
Reading data
(RWrn+3)
Respond code
(RWrn+2)
Set the read instruction code (refer to section 3.5.4 (1)) to Instruc tion code (RWwn+2) and turn Instruction
code execution demand (RYn9) to ON. Turning I nstruction code execution demand (RYn9) to ON sets the
data corresponding to the preset read code to Reading data ( RWrn+3). Data are all hexadecimal numbers.
At this time, Instruction code execution com pletion (RXn9) turns to ON at the same time.
Read the read data set to Reading data (RWrn+3) while I nstruction code execution completion (RXn9) is
ON. The data set to Reading data (RWrn+3) is held until t he next read instruction code is set and
Instruction code execution demand (RYn9) is t urned to ON.
If the instruction code not in the specificat ions is set to Instruction code (RWwn+2), the cor responding error
code ( 1) is set to respond code. If any unusable parameter, point tabl e is read, the corresponding
error code ( 2) is set.
Turn Instruction code execution demand (RYn9) to OFF after completion of data read.