Omron SYSMAC C200H-IDS01-V1 Operation Manual page 56

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

Advertisement

Program Examples
Operation
Program Example 2:
The Auto Write Command
Command
execution input
10901
10901
Command data in the CPU
15
DM 0100
41
DM 0101
48
DM 0102
00
DM 0103
15
DM 0104
17
DM 0105
19
DM 0106
1B
DM 0106
0D
Operation
When the command execution input is ON, the number of words in the com-
mand (7) and the beginning word where the command is stored (DM 0000)
are set using MOV, and the command execution flag (10000) is turned ON.
IR 10900 holds this status until the ID Sensor Unit begins executing the com-
mand. While the ID Sensor Unit is executing the command, the ID Busy flag
(word n+4 bit 00) is set to ON. When the write 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
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.
10400
ID busy
00
57
AW (auto write)
31
H1 (Hexadecimal, Head 1)
Beginning address in which the data
0B
is to be written in the Data Carrier
16
Data to be written to the Data Carrier,
18
15 through 1B (7 bytes)
1A
2A
If the number of bytes to be written to the Data
00
Carrier is odd, shift codes 2A and 0D forward
one byte and write 00 into the last 8 bits.
When the command execution input is ON, the number of words in the com-
mand (8) and the beginning word where the command data is stored (DM
0100) are set using MOV, and the command execution flag (10000) is turned
ON. IR 10901 holds this status until the ID Sensor Unit starts executing the
command.
Sets the number of words in the
MOV (21)
command data (8 in this example)
#0008
Word n+1
101
Sets the beginning word where the
command data is stored (example
MOV (21)
shows DM 0100).
#0100
102
Word n+2
(Bit in IR area) Holds the status
10901
until the ID Sensor Unit begins ex-
ecuting the command.
Command execution flag
10000
Data to be written
to Data Carrier
Address 7
000B
000C
Auto write is
executed.
000D
000E
000F
0010
0011
Data cannot be written to
write-protected areas.
Section 3-1
0
15
16
17
18
19
1A
1B
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200h-ids21

Table of Contents