Omron CJ1W-CT021 Operation Manual page 173

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Length Measurement
Ladder Program
A2001 1
First Cycle Flag
ON
Always ON flag
201600
Rising edge D2
on Digital input l1
000100
Rising edge of improperly
sized objects
A short ladder program for the PLC is written to read and store the measured
length of improper sized objects in EM starting from EM100 of the CJ-series CPU
Unit.
201902
Data Transfer Busy
Object too small
MO VR (560)
RSET
I ORD(222)
CPSL(115)
SET
CPSL(115)
SET
Object too big
M OVL(498)
Write physical memory address of
EM 100
EM 100 into Index Register IR 0
(data of improperly sized objects
IR0
is stored in EM starting from EM 100)
Reset flag of improperly
sized objects
000100
#1C02
Read Captured Value
(i.e. Measured length of object)
#00020000
of counter 1 with Machine Number 0
and store in memory location D 100
D100
Check if Captured Value
D100
is too small
#00001324
Object is improperly sized
(too small: <= 4900 (=00001324
000100
Check if Captured Value
D100
is too big
#000013EC
Object is improperly sized
(too big: >= 5100 (=000013EC
000100
Write measured length of
improperly sized objects to
D100
EM starting from EM 100
IR 0+
Section 6-2
))
H
))
H
153

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents