Omron CJ - 12-2004 Manual page 137

Id sensor units
Table of Contents

Advertisement

Sample Programming
Timing Chart (n = CIO 2000 + (10 × 55) = CIO 2550)
Command Execution Bit
Word n, bit 00
Command
Words (n+1) to (n+4)
ID Busy
Word (n+7), bit 00
Normal End
Word (n+7), bit 01
Word (n+7), bit 02
Data storage area
Note 1. To confirm the execution results from the user program, use the ON status of the Normal End Flag or
Error End Flag in the Unit Status.
2. Do not turn ON the Command Execution Bit during command execution (i.e., while the ID Busy Flag
is ON). It will be ignored.
Copy, Communications Specification: Single Auto
Outline
This example shows how to read data from the memory of Data Carrier A when it approaches R/W Head 1 and
then write the data to Data Carrier B in the communications area of R/W Head 2.
Data Carrier A
R/W Head 1
118
Write
Communications
processing
Error End
1. The Data Carrier is
detected when it
enters the area and
the contents of
memory is read.
Data Carrier
Bit
Bit
Address
7
0
(hex)
0020
0
0
0021
0
1
0022
0
2
Copy command
executed
0023
0
3
0024
0
4
002E
1
5
002F
1
6
Write
1 scan
0000
Normal end
Write data
Data Carrier B
Communications
areas
R/W Head 2
Data Carrier
Bit
Address
7
(hex)
0010
0
0011
0
0012
0
0013
0
0014
0
001E
1
001F
1
Appendix B
Waiting for
Data Carrier
1 scan
0000
Missing error
2. The data is written
to the Data Carrier
in the area when
the read operation
is finished.
Bit
0
0
1
2
3
4
5
6

Advertisement

Table of Contents
loading

Table of Contents