K#*2'5-H#%+&"#>#*'
Section 6-2
$(,
Ladder Program
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.
M O V R
(560)
E M 100
IR0
A 20011
201600
201902
I O R D (222)
#1C 02
#00020000
D 100
C P S L(115)
D 100
#00001324
C P S L(115)
D 100
#000013E
C
000100
M O V L(498)
D 100
,IR0+
R SE T
000100
O N
S E T
000100
S E T
000100
First Cycle Flag
Always ON flag
Rising edge D2
on Digital input l1
Data Transfer Busy
Rising edge of improperly
sized objects
Write physical memory address of
EM 100 into Index Register IR 0
(data of improperly sized objects
is stored in EM starting from EM 100)
Reset flag of improperly
sized objects
Read Captured Value
(i.e. Measured length of object)
of counter 1 with Machine Number 0
and store in memory location D 100
Check if Captured Value
is too small
Check if Captured Value
is too big
Object is improperly sized
(too small: <= 4900 (=00001324
H
))
Object is improperly sized
(too big: >= 5100 (=000013EC
H
))
Write measured length of
improperly sized objects to
EM starting from EM 100
Object too small
Object too big
W902-E2-03.book Seite 159 Donnerstag, 7. Oktober 2004 2:06 14
Содержание CS1W-CT021
Страница 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Страница 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Страница 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Страница 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Страница 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Страница 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Страница 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...