RLL
P
LUS
Stage
Programming
7--11
RLL
PLUS
Stage Programming
DL105 PLC User Manual, 3rd Edition
Now we are ready to draw the state transition diagram. Like the previous light bulb
controller example, this application also has just one switch for the command input.
Refer to the figure below.
S
When the door is down (DOWN state), nothing happens until X0
energizes. Its push and release brings us to the RAISE state, where
output Y1 turns on and causes the motor to raise the door.
S
We transition to the UP state when the up limit switch (X1) energizes,
and turns off the motor.
S
Then nothing happens until another X0 press-release cycle occurs. That
takes us to the LOWER state, turning on output Y2 to command the
motor to lower the door. We transition back to the DOWN state when the
down limit switch (X2) energizes.
The equivalent stage program is shown to the
right. For now, we will assume the door is down at
powerup, so the desired powerup state is DOWN.
We make S0 an initial stage (ISG). Stage S0
remains active until the door control pushbutton
activates. Then we transition (JMP) to Push-UP
stage, S1.
A push-release cycle of the pushbutton takes us
through stage S1 to the RAISE stage, S2. We use
the always-on contact SP1 to energize the
motor’s raise command, Y1. When the door
reaches the fully-raised position, the up limit
switch X1 activates. This takes us to the UP
Stage S3, where we wait until another door
control command occurs.
In the UP Stage S3, a push-release cycle of the
pushbutton will take us to the LOWER Stage S5,
where we activate Y2 to command the motor to
lower the door. This continues until the door
reaches the down limit switch, X2. When X2
closes, we transition from Stage S5 to the DOWN
stage S0, where we began.
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
X0
Push--UP
UP
Push--DOWN
DOWN
X0
LOWER
RAISE
X0
X1
X0
X2
Output equations:
Y2 = LOWER
Y1 = RAISE
S5
JMP
SG
S4
X0
Push--DOWN State
OUT
Y2
SP1
S0
X2
JMP
SG
S5
LOWER State
Powerup
NOTE:
The only special thing about an initial stage
(ISG) is that it is automatically active at powerup.
Afterwards, it is just like any other.
Draw the State
Diagram
Содержание 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...