76
ID Sensor Unit Operation
Section 6-1
6-1-3
Commands Used to Write Data
The following commands are used to write data: Write, Bit Set, Bit Clear,
Mask Bit Write, Calculation Write, Data Fill, Data Check, and Number of
Writes Control
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 data will be transferred from the specified data storage area. Data
transfer from CPU Unit memory will be split into transmissions of 160 bytes
each.
6.
The ID Sensor Unit will execute the processing specified by the command
for the Data Carrier.
7.
If command execution ends normally, the Results Information (word (n +
8)) and Processing Results Monitor (word (n + 9)) will be set.
8.
The Normal End Flag (word (n + 7), bit 01) will turn ON, and the ID Busy
Flag will turn OFF.
9.
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)
(5)
(6)
(6)
(6)
(6)
(4)
(8) (9)
(7)
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
Содержание CJ - 12-2004
Страница 2: ...SYSMAC CS CJ Series ID Sensor Units Operation Manual Revised December 2004...
Страница 3: ...iv...
Страница 11: ...xii...
Страница 55: ...36 Connections and Wiring Section 3 4...
Страница 69: ...50 I O Data Allocations Section 4 3...
Страница 91: ...72 Data Check Section 5 7...
Страница 141: ...122 Sample Programming Appendix B...
Страница 147: ...128 Revision History...