45
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 Auto Write is complete, the ID Busy flag turns
OFF. While the ID Sensor Unit is waiting for the Data Carrier to approach, 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 6:
The Auto Read/Write Abort Command
Operation
When the execution command input is ON, the number of words in the com-
mand (fixed to 2 words) and the beginning word where the command is stored
(DM 0700) are set using MOV, and the command execution flag (10000) is
turned ON. IR (10905) holds the status until the ID Sensor Unit aborts the
auto command (i.e. the Data Carrier waiting flag is OFF).
While the ID Sensor Unit is executing the command, the Data Carrier waiting
flag (word n+4 bit 01) and the ID Busy flag (word n+4 bit 00) are turned OFF.
The Auto Read/Write Abort end flag (word n+4 bit 02) is turned ON, signifying
completion of the operation.
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 DC waiting flag turns OFF, as in the example.
10905
ID busy
MOV (21)
#0002
101
10905
10905
10401
Word n+1
Sets the beginning word where the
command data is stored (DM 0700
in this example).
Word n+2
(Bit in IR area) Holds the status
until the ID Sensor Unit begins ex-
ecuting the command.
Command execution flag
Command
execution input
MOV (21)
#0700
102
10000
Sets the number of words in the
command data (fixed to 2 words)
Command data in the CPU
15
41
41
00
31
00
DM 0700
DM 0701
AA (Auto Read/Write Abort)
If the number of bytes to be read is odd,
shift codes 00 and 31 forward one byte and
write 00 into the last 8 bits.
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...