Omron SYSMAC C200H-IDS01-V1 Operation Manual page 59

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

Advertisement

Program Examples
Program Example 5:
The Auto Read Command
Command
execution input
10903
10903
Data in the Data Carrier
Address 7
0
001A
38
001B
39
3A
001C
3B
001D
001E
3C
Operation
44
10902 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 turned ON. When the Read 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
Command data in the CPU
15
DM 0400
41
52
DM 0401
48
31
1A
DM 0402
00
05
DM 0403
00
DM 0404
2A
0D
When the command execution is ON, the number of words in the command
(fixed to 5), the beginning word where the command is stored (DM 0400), and
the beginning word of the receiving area in the CPU (DM 0500) 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 command.
Sets the number of words in the
MOV (21)
command data (fixed to 5 words).
#0005
Word n+1
101
Sets the beginning word where the
command data is stored (example
MOV (21)
shows DM 0400).
#0400
102
Word n+2
Sets the receiving area (in the
CPU) where the data to be read
MOV (21)
will be transferred. (DM 0500 in
this example.)
#0500
103
Word n+3
(Bit in IR area) Holds the status
10903
until the ID Sensor Unit begins
executing the command.
Command execution flag
10000
00
AR (Auto read command)
H1 (Hexadecimal, Head 1)
Beginning address of the data in
the Data Carrier
Number of bytes to be read
If the number of bytes to be read is odd,
shift codes 2A and OD forward one byte
and write 00 into the last 8 bits.
Receiving area in the CPU
DM 0500
Auto Read is
DM 0501
executed.
DM 0502
If the number of by
tes to be read is odd,
the last 8 bits of data
are undefined.
Section 3-1
15
00
38
39
3A
3B
3C
XX

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200h-ids21

Table of Contents