Omron CS1W-CT041 Operation Manual page 174

High-speed counter units
Hide thumbs Also See for CS1W-CT041:
Table of Contents

Advertisement

K#*2'5-H#%+&"#>#*'
Ladder Program
A 2 0 0 11
First Cycle Flag
O N
Always ON flag
2 0 1 6 0 0
Rising edge D2
on Digital input l1
0 0 0 1 0 0
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 CS1-CPU.
2 0 1 9 0 2
Data Transfer Busy
M O V R (560)
R S E T
I O R D (2 2 2 )
C P S L (11 5 )
S E T
Object too small
C P S L (11 5 )
S E T
Object too big
M O V L (4 9 8 )
Write physical memory address of
E M 1 0 0
EM 100 into Index Register IR 0
(data of improperly sized objects
IR 0
is stored in EM starting from EM 100)
Reset flag of improperly
sized objects
0 0 0 1 0 0
# 1 C 0 2
Read Captured Value
(i.e. Measured length of object)
# 0 0 0 2 0 0 0 0
of counter 1 with Machine Number 0
and store in memory location D 100
D 100
Check if Captured Value
D 100
is too small
# 0 0 0 0 1 3 2 4
Object is improperly sized
(too small: <= 4900 (=00001324
0 0 0 1 0 0
Check if Captured Value
D 100
is too big
# 0 0 0 0 1 3 E C
Object is improperly sized
(too big: >= 5100 (=000013EC
0 0 0 1 0 0
Write measured length of
improperly sized objects to
D 100
EM starting from EM 100
,IR 0+
Section 6-2
))
H
))
H
$(,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-ct021

Table of Contents