How to Use the Step Ladder Program Block
Appendix 1
216
Example of Step Ladder Program
R
R
I n t e r n a l s w i t c h
A
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 i t i o n b t u r n 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 i f
p r o g r a m e x e c u t i o n m o v e s t o S T E P 0 1 . )
M o v e
c o n d i t i o n
b
S T E P 0 3
D e c l a r e S T E P 0 3 .
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 i n g b l o c k a t b l o c k
a d d r e s s 1 0 4 a s i n t e r n a l s w i t c h A i s 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 i t c h
B
T u r n p u m p O F F .
R e s e t i n t e r n a l s w i t c h B .
S
S
S T E P 0 1
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 i n g b l o 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 i o n .
S t a r t o f
o p e r a t i o n
0 0 0 - 0 1 9
D e c l a r e S T E P 0 1 .
S e t b a s i c P I D a t b l o c k a d d r e s s 0 0 1 t o A u t o .
T u r n p u m p s e t t i n g O N .
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 i t i o n a t u r n s
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 i f
p r o g r a m e x e c u t i o n m o v e s t o S T E P 0 1 . )
M o v e
c o n d i t i o n
a
S T E P 0 2
D e c l a r e S T E P 0 2 .
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 i n g b l o c k a t b l o c k
a d d r e s s 1 0 3 a s i n t e r n a l s w i t c h A i s 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 e s e t i n t e r n a l s w i t c h A .
R e s e t R u n S t a r t f l a g .
S
S
R
S
S
R
I T E M s e t t i n g
1 0 2 - 0 3 9
B a s i c P I D
0 0 1 - 0 8 6
I n t e r n a l s w i t c h
1 0 0 - 0 1 2
S t a r t o f o p e r a t i o n
0 0 0 - 0 1 9
I T E M s e t t i n g
1 0 3 - 0 3 9
I n t e r n a l s w i t c h
B
I T E M s e t t i n g
1 0 4 - 0 3 9
I n t e r n a l s w i t c h
1 0 0 - 0 1 2
I n t e r n a l s w i t c h
A
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.