41
Program Examples
Section 3-1
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.
Program Example 2:
The Auto Write Command
Operation
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.
10901
ID busy
MOV (21)
#0008
101
10901
10901
10400
Sets the number of words in the
command data (8 in this example)
Word n+1
Sets the beginning word where the
command data is stored (example
shows DM 0100).
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)
#0100
102
10000
Command data in the CPU
15
DM 0100
DM 0101
DM 0102
DM 0103
DM 0104
DM 0105
DM 0106
41
57
48
31
00
0B
15
16
17
18
19
1A
1B
2A
00
AW (auto write)
H1 (Hexadecimal, Head 1)
Beginning address in which the data
is to be written in the Data Carrier
Data to be written to the Data Carrier,
15 through 1B (7 bytes)
If the number of bytes to be written to the Data
Carrier is odd, shift codes 2A and 0D forward
one byte and write 00 into the last 8 bits.
Auto write is
executed.
15
17
19
16
18
000B
000C
000D
000E
000F
Data to be written
to Data Carrier
Address 7
0
Data cannot be written to
write-protected areas.
DM 0106
0D
00
1B
1A
0010
0011
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...