![background image](http://html1.mh-extra.com/html/omron/cj-12-2004/cj-12-2004_manual_740789094.webp)
75
ID Sensor Unit Operation
Section 6-1
6-1-2
Read Command: Read
1,2,3...
1.
Use the MOV, OUT, or other instructions in the user program to set data in
the Special I/O Unit Area.
2.
Turn ON the Command Execution Bit (word n, bit 00).
3.
The ID Sensor Unit will interpret the command when the Command Exe-
cution Bit is turned ON.
4.
If the command is correct, the ID Busy Flag (word (n + 7), bit 00) will turn
ON. If there is an error in the command or data storage area specifications,
the Command Error Flag (word (n + 8), bit 00) or Data Storage Area Error
Flag (word (n + 8), bit 01) will turn ON and processing will end.
5.
The ID Sensor Unit will execute the processing specified by the command
for the Data Carrier.
6.
If command execution ends normally, the Results Information and Pro-
cessing Results Monitor will be set and the read data will be transferred to
the data storage area. Data transfer to CPU Unit memory will be split into
transmissions of 160 bytes each.
7.
After data is stored, the Normal End Flag (word (n + 7), bit 01) will turn ON,
and the ID Busy Flag will turn OFF.
8.
The Normal End Flag will turn ON for one scan only, but the Results Infor-
mation will be held until the Error Reset Bit is turned ON or until the next
communications command is received.
Note
If communications with the Data Carrier fail or an error occurs, communica-
tions will be aborted at that point, the bits in the Results Information (word (n +
8)) will turn ON accordingly and the error code will be placed in the Process-
ing Results Monitor (word (n + 9)). Then the Error End Flag (word (n + 7), bit
02) will turn ON and the ID Busy Flag will turn OFF. The Error End Flag will
turn ON for one scan only.
R/W
Head
(1) (2)
(6)
(5)
(5)
(5)
(5)
(4)
(7) (8)
(6)
Special I/O
Unit Area
n to (n + 6)
(n + 7)
Data storage
area
Read
data
CS/CJ-series CPU Unit
ID Sensor Unit
(n + 8)
to (n + 9)
(3)
Data Carr
ier
Summary of Contents for CJ - 12-2004
Page 2: ...SYSMAC CS CJ Series ID Sensor Units Operation Manual Revised December 2004...
Page 3: ...iv...
Page 11: ...xii...
Page 55: ...36 Connections and Wiring Section 3 4...
Page 69: ...50 I O Data Allocations Section 4 3...
Page 91: ...72 Data Check Section 5 7...
Page 141: ...122 Sample Programming Appendix B...
Page 147: ...128 Revision History...