Omron CS1W-LC001 Operation Manual page 233

Loop control unit
Table of Contents

Advertisement

How to Use the Step Ladder Program Block
Example of Step Ladder Program
S t a r t o f
o p e r a t i o n
0 0 0 - 0 1 9
M o v e
c o n d i t io n
a
I n t e r n a l s w i t c h
A
M o v e
c o n d it i o n
b
I n t e r n a l s w i t c h
B
Note
A contact ITEM that has been turned ON by the OUT command stays ON even if program
execution moves to the next STEP. For this reason, care must be taken when using the OUT
command when performing step progression control. To turn OFF the contact ITEM, that has
been turned ON by the OUT command, by movement between STEPs, use the RESET
command to reset the contact ITEM.
216
S T E P 0 1
D e c la r e S T E P 0 1 .
I T E M s e t t i n g
1 0 2 - 0 3 9
S
S e n d a l l P 1 , I 1 a n d D 1 f r o m I T E M S e t t in g b lo c k a t b l o c k
a d d r e s s 1 0 2 a t s t a r t o f o p e r a t io n .
B a s i c P I D
0 0 1 - 0 8 6
S
S e t b a s ic P I D a t b lo c k a d d r e s s 0 0 1 t o A u t o .
I n t e r n a l s w i t c h
1 0 0 - 0 1 2
T u r n p u m p s e t t i n g O N .
R
S t a r t o f o p e r a t i o n
0 0 0 - 0 1 9
R e s e t R u n S t a r t f la g .
S
I n t e r n a l s w i t c h
M o v e t o n e x t S T E P 0 2 w h e n s t e p m o v e c o n d it i o n a t u r n s
A
O N , a n d s e t i n t e r n a l s w i t c h A . ( A r e m a i n s O N e v e n if
p r o g r a m e x e c u t io n m o v e s t o S T E P 0 1 . )
S T E P 0 2
D e c la r e S T E P 0 2 .
I T E M s e t t in g
1 0 3 - 0 3 9
S
S e n d a l l P 2 , I 2 a n d D 2 f r o m I T E M S e t t in g b lo c k a t b l o c k
a d d r e s s 1 0 3 a s in t e r n a l s w it c h A is O N w h e n S T E P 0 2 i s
m o v e d t o .
I n t e r n a l s w i t c h
A
R
R e s e t in t e r n a l s w it c h A .
I n t e r n a l s w i t c h
B
M o v e t o n e x t S T E P 0 3 w h e n s t e p m o v e c o n d it i o n b t u r n s
S
O N , a n d s e t i n t e r n a l s w i t c h B . ( A r e m a i n s O N e v e n if
p r o g r a m e x e c u t io n m o v e s t o S T E P 0 1 . )
D e c la r e S T E P 0 3 .
S T E P 0 3
I T E M s e t t i n g
1 0 4 - 0 3 9
S
S e n d a l l P 3 , I 3 a n d D 3 f r o m I T E M S e t t in g b lo c k a t b l o c k
a d d r e s s 1 0 4 a s in t e r n a l s w it c h A is O N w h e n S T E P 0 3 i s
m o v e d t o .
I n t e r n a l s w it c h
1 0 0 - 0 1 2
R
T u r n p u m p O F F .
B
R
R e s e t in t e r n a l s w it c h B .
Appendix 1

Advertisement

Table of Contents
loading

Table of Contents