42
Program Examples
Section 3-1
While the ID Sensor Unit is executing the command, the ID Busy flag (word
n+4 bit 00) is turned ON. When the Auto Write operation is complete, the ID
Busy flag turns OFF.
While the ID Sensor Unit is waiting for the Data Carrier to approach the
antenna, the Data Carrier waiting flag (word n+4 bit 01) is ON.
Although the ID Busy flag normally turns OFF upon completion of the com-
mand, if the command execution flag is ON at this time, the ID Busy flag will
stay ON. Therefore, design the program so that the command execution flag
will be turned OFF when the ID Busy flag turns ON, as in the example.
Program Example 3:
The Clear-all Command
Operation
When the command execution input is ON, the number of words in the com-
mand (fixed to 3 words) and the beginning word where the command is stored
(DM 0600) are set using MOV, and the command execution flag (10000) is set
turned ON. IR (10904) keeps the status until the ID Sensor Unit begins exe-
cuting the command.
While the ID Sensor Unit is executing the command, the ID Busy flag (word
n+4 bit 00) is turned ON. When the Clear-all operation is complete, the ID
Busy flag turns OFF.
Although the ID Busy flag normally turns OFF upon completion of the com-
mand, if the command execution flag is ON at this time, the ID Busy flag will
10904
ID busy
MOV (21)
#0003
101
10904
10904
10400
Sets the number of words in the
command data (fixed to 3 words).
Word n+1
Sets the beginning word where the
command data is stored (example
shows DM 0600).
Word n+2
Command execution flag
(Bit in IR area) Holds the status
until the ID Sensor Unit begins ex-
ecuting the command.
Command
execution input
MOV (21)
#0600
102
10000
Command data in the CPU
15
0000
43
41
00
31
2A
0D
00
Head 1
Clear-all is
executed.
* If the number of bytes to be cleared is
odd, shift codes 2A and OD forward one
byte and write 00 into the last 8 bits.
0001
0002
0003
07FE
XX
00
00
XX
00
address 7
0
DM 0600
DM 0602
DM 0601
CA (Clear-all)
Contents of Data Carrier's memory
after Clear-all execution
07FF
00
Addresses 0000 to
0001 in the Data Car-
rier's memory are
reserved for register-
ing the Data Carrier's
production date and
cannot be cleared.
*
Summary of Contents for SYSMAC C200H-IDS01-V1
Page 1: ...OPERATION MANUAL ID Sensor SYSMAC C200H IDS01 V1 IDS21 Cat No W153 E1 04...
Page 3: ...iv...
Page 5: ...vi...
Page 7: ...viii TABLE OF CONTENTS Glossary 89 Index 91 Revision History 95...
Page 9: ......
Page 15: ...xvi Application Precautions 5...
Page 25: ......
Page 95: ......
Page 97: ......
Page 99: ......
Page 103: ......
Page 109: ......
Page 111: ......
Page 114: ...SYSMAC C200H IDS01 V1 IDS21 ID Sensor Cat No W153 E1 04 OPERATION MANUAL...