Omron SYSMAC C200H-IDS01-V1 Operation Manual page 60

Id sensor
Hide thumbs Also See for SYSMAC C200H-IDS01-V1:
Table of Contents

Advertisement

Program Examples
Program Example 6:
The Auto Read/Write Abort Command
Command
execution input
10905
10905
Operation
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.
10401
MOV (21)
ID busy
#0002
101
MOV (21)
#0700
102
10905
10000
Command data in the CPU
15
DM 0700
41
DM 0701
00
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.
Sets the number of words in the
command data (fixed to 2 words)
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
00
41
AA (Auto Read/Write Abort)
31
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.
Section 3-1
45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200h-ids21

Table of Contents