RLL
P
LUS
Stage
Programming
7--13
RLL
PLUS
Stage Programming
DL105 PLC User Manual, 3rd Edition
The finished modified program is shown to
the right. The shaded areas indicate the
program additions.
In the Push-UP stage S1, we add the Set
Stage Bit S6 instruction. When contact X0
opens, we transition from S1 and go to two
new active states: S2 and S6. In the
Push-DOWN state S4, we make the same
additions. So, any time someone presses
the door control pushbutton, the light turns
on.
Most new stage programmers would be
concerned about where to place the Light
Stage in the ladder, and how to number it.
The good news is that it doesn’t matter!
S
Just choose an unused stage
number, and use it for the new stage
and as the reference from other
stages.
S
Placement in the program is not
critical, so we place it at the end.
You might think that each stage has to be
directly under the stage that transitions to
it. While it is good practice, it is not
required (that’s good, because our two
locations for the Set S6 instruction make
that impossible). Stage numbers and how
they are used determines the transition
paths.
In stage S6, we turn on the safety light by
energizing Y3. Special relay contact SP1
is always on. Timer T0 times at 0.1 second
per count. To achieve 3 minutes time
period, we calculate:
The timer has power flow whenever stage
S6 is active. The corresponding timer bit
T0 is set when the timer expires. So three
minutes later, T0=1 and the instruction
Reset S6 causes the stage to be inactive.
While Stage S6 is active and the light is on,
stage transitions in the primary path
continue normally and independently of
Stage 6. That is, the door can go up, down,
or whatever, but the light will be on for
precisely 3 minutes.
S1
X0
JMP
ISG
S0
S2
JMP
SG
S1
OUT
Y1
DOWN State
SP1
S3
X1
JMP
SG
S2
SG
S3
X0
S4
JMP
X0
Push--UP State
RAISE State
UP State
S5
JMP
SG
S4
X0
Push--DOWN State
OUT
Y2
SP1
S0
X2
JMP
SG
S5
LOWER State
OUT
Y3
SP1
S6
T0
RST
SG
S6
LIGHT State
TMR
K1800
T0
S6
SET
S6
SET
3 min. x 60 sec/min
0.1 sec/count
K=1800 counts
K=
Using a Timer
Inside a Stage
Содержание DL105
Страница 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Страница 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Страница 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Страница 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Страница 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...
Страница 329: ...1F European Union Directives CE In This Appendix European Union EU Directives Basic EMC Installation Guidelines...