198
SECTIO
N
8
Sample Pro
g
ramming
RFID System
User's Manual
SECTION 8
Appendices
• Programming Example
Execute the IOWR instruction before starting execution of the write command.
When the command 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 following ladder programming uses the Write command and the IOWR instruction to write 512
bytes of data.
The IOWR instruction is executed twice to write 256 bytes (128 words) each time.
IOWR
D20920
#0000
ASL
0010
IOWR
First word specification
First source word specification
Number of words specification
2007.00
Error end
2007.14
2007.15
0010.00
#00800000
P_EQ
Destination unit number
P_ER
IOWR
D21048
#0000
ASL
0010
Error end
0010.01
#00800000
P_EQ
P_ER
MOV
2001
#0101
MOV
2002
#0020
MOV
2003
#0200
ASL
0010
Specification of write
start address.
0010.02
0010.03
Command execution command
MOV
0010
#0000
Clears work words
2000.00
2007.01
Normal End Flag
Normal end
2007.02
Error End Flag
Error end
IOWR execution
(work bit 1)
ID Busy
Test Mode
Unit Busy
IOWR execution
(work bit 2)
Waiting for command
execution (work bit 3)
Specification of number
of write bytes.
Command execution
command start (work bit 4)
IOWR execution
(work bit 2)
IOWR
First word specification
First source word specification
Number of words specification
Destination unit number
Waiting for command
execution (work bit 3)
Waiting for command
execution (work bit 4)
Specification of command,
communications
specifications, and write
data storage order.
Summary of Contents for CJ1W-V680C11
Page 213: ......