Omron CJ - 12-2004 Manual page 133

Id sensor units
Table of Contents

Advertisement

Sample Programming
Timing Chart (n = CIO 2000 + (10 × (0 + 1)) = CIO 2010)
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
Error End
Word (n+7), bit 02
Resulting Information
Word (n+8)
Data storage area
Note 1. If communications with the Data Carrier fail or an error occurs, communications will be aborted at that
point, the error flags in the Results Information (word (n + 8)) will turn ON accordingly, and the error
code will be placed in the Processing Results Monitor (word (n + 9)). The previous read data will not
be changed.
2. If an auto wait time is set and the set time expires while waiting for a Data Carrie, the command op-
eration will be aborted at that point, the Data Carrier Missing Error Flag (word (n + 8), bit 10) in the
Results Information will turn ON, and an error code will be placed in the Processing Results Monitor
(word (n + 9)).
3. When the communications specification is set to repeat auto, either the Normal End Flag or the Error
End Flag will turn ON every scan for consecutive scans. The execution results can be correctly de-
termined by using the ON status of both the Normal End Flag and the Error End Flag in Unit Status.
4. 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.
5. Do not turn ON the Command Execution Bit during command execution (i.e., while the ID Busy Flag
is ON). It will be ignored.
114
Read
Waiting for
Communications
Waiting for
Data Carrier
processing
1 scan
Data Carrier
0000
Normal end
Communications
Waiting for
processing
1 scan
Data Carrier
More than 15 s
elapsed.
0000
Normal end
Read data A
Read data B
Appendix B
1 scan
Missing error

Advertisement

Table of Contents
loading

Table of Contents