166
SECTIO
N
8
Sample Pro
g
ramming
RFID System
User's Manual
SECTION 8
Appendices
• Programming Example
The following ladder programming uses the Read command and the IORD instruction to read 512
bytes of data. The IORD instruction is executed twice to read 256 bytes (128 words) each time.
When the execution input turns ON, settings are made in the Special I/O Unit Area using MOV
instructions and the command is executed. When communications with the RF Tag have been
completed, the Normal End Flag (CIO n+7, bit 01) or Error End Flag (CIO n+7, bit 02) is turned ON.
The IORD instruction is executed after the Normal End Flag (CIO n+7, bit 01) turns ON.
To end command execution while waiting for the RF Tag, turn ON the Abort Input.
MOV
2001
#0000
MOV
2002
#0020
MOV
2003
#0200
ASL
0010
2000.00
0010.00
0010.01
2007.02
2007.00
2007.14
2007.15
ASL
0010
IORD
#00800000
#0000
IORD
First word specification
Number of words specification
Source unit number
0010.02
2007.01
D20920
ASL
0010
P_EQ
P_ER
First destination word specification
IORD
#00800000
#0000
IORD
First word specification
Number of words specification
Source unit number
0010.03
D21048
Error end
P_EQ
P_ER
First destination word specification
Normal end
MOV
#0000
0100
IORD execution
(work bit 3)
ID Busy
Waiting for command
execution (work bit)
Test Mode
Unit Busy
Specification of first
read address.
Specification of number
of read bytes.
Command execution
command start (work bit 2)
Error End Flag
Normal End Flag
Waiting for command
execution (work bit 2)
Error end
Clears work words
Results information
is read here.
Command execution command
IORD execution (work bit 3)
Specification of command,
communications
specifications, and read data
storage order.
IORD execution
(work bit 4)
IORD execution
(work bit 4)
Error end
Summary of Contents for CJ1W-V680C11
Page 213: ......