Reading From The Data Carrier - Omron SYSMAC C200H-IDS01-V1 Operation Manual

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

Advertisement

Program Examples
3-1-2

Reading from the Data Carrier

Program Example 4:
The Read Command
Command execution
input
10902
10902
Data in the Data Carrier
Address 7
0
000A
14
000B
15
16
000C
17
000D
18
000E
19
000F
Operation
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.
Note Clearall clears all memory areas, including those that are write-protected.
This section shows program examples for the Read and Auto Read com-
mands.
10400
ID busy
Command data in the CPU
15
52
44
DM 0200
48
31
DM 0201
0A
00
DM 0202
06
00
DM 0203
2A
0D
DM 0204
When the execution command input is ON, the number of words in the com-
mand (fixed to 5 words), the beginning word where the command is stored
(DM 0200), and the beginning word number of the receiving area in the CPU
are set using MOV, and the command execution flag (10000) is turned ON. IR
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 0200).
#0200
Word n+2
102
Sets the receiving area (in the
CPU) where the data to be read
will be transferred. (DM 0300 in
MOV (21)
this example.)
#0300
Word n+3
103
(Bit in IR area) Holds the status
10902
until the ID Sensor Unit begins
executing the command.
Command execution flag
10000
00
RD (Read)
H1 (Hexadecimal, Head 1)
Beginning address of the data to
be read from 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.
Area in the CPU to which the data is
read
DM 0300
Read is exe-
DM 0301
cuted.
DM 0302
If the number of by-
tes to be read is odd,
the last 8 bits of data
are undefined.
Section 3-1
15
00
14
15
16
17
19
18
43

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200h-ids21

Table of Contents