87
Using the C200H ID Sensor Unit with CS1-series PCs
Appendix D
Program Example
Note
Although the ID Busy flag normally turns OFF upon completion of the command, if the command execu-
tion flag is ON at this time, the ID Busy flag will stay ON. Therefore, design the program so that the com-
mand execution flag will be turned OFF when the ID Busy flag turns ON, as in the example.
Command data in CPU
15
D00000
D00001
D00002
D00003
D00004
D00005
D00006
57
54
48
31
00
06
10
11
12
13
14
2A
0D
00
00
WT (Write)
H1 (Hexadecimal, Head 1)
Beginning address in which data is
to be written in Data Carrier
Data to be written to Data Carrier,
numbers 10 through 14 (5 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.
Write is executed.
10
12
14
11
13
0006
0007
0008
0009
000A
Data to be written
to Data Carrier
Address 7
0
Data cannot be written to
write-protected areas.
Waiting for
command
execution
7 words
n+1
(number of com-
mand data words)
D00000
n+2
(command data
storage area ad-
dress)
Holds status until ID
Sensor Unit starts
executing the command
If input condition a is
ON for one cycle and
the ID Busy Flag is
OFF, sets the number
of command data
words to 7.
At the same time, sets
the command storage
area beginning
address to D00000.
(word n, bit 00)
Command
execution flag
Example: DM Area used as
command data storage area at
the CPU Unit
DIFU (013)
a
Execution input
MOV (021)
#0007
2001
a
MOV (021)
#0000
2002
200400
(word n+4, bit00)
ID busy
b
200000
b
b
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...