RLL
P
LUS
Stage
Programming
7--6
RLL
PLUS
Stage Programming
DL105 PLC User Manual, 3rd Edition
We can mark our desired powerup state
as shown to the right, which helps us
remember to use the appropriate Initial
Stages when creating a stage program. It
is permissible to have as many initial
stages as the process requires.
OFF
ON
X0
X1
Powerup
You may recall that a stage is just a section of ladder program which is either active or
inactive at a given moment. All stage bits (S0 to S77) reside in the PLC’s image
register as individual status bits. Each stage bit is either a boolean 0 or 1 at any time.
Program execution always reads ladder rungs from top to bottom, and from left to
right. The drawing below shows the effect of stage bit status. The ladder rungs below
the stage instruction continuing until the next stage instruction or the end of program
belong to stage 0. Its equivalent operation is shown on the right. When S0 is true, the
two rungs have power flow.
S
If Stage bit S0 = 0, its ladder rungs
are not
scanned (executed).
S
If stage bit S0 = 1, its ladder rungs
are
scanned (executed).
SG
S0
Actual Program Appearance
Functionally Equivalent Ladder
S0
(includes all rungs in stage)
The inline stage boxes on the left power
rail divide the ladder program rungs into
stages. Some stage rules are:
S
Execution
-- Only logic in active
stages are executed on any scan.
S
Transitions
-- Stage transition
instructions take effect on the next
occurrence of the stages involved.
S
Octal numbering
-- Stages are
numbered in octal, like I/O points,
etc. So “S8” is not valid.
S
Total Stages
-- The DL105 offers up
to 256 stages (S0 to S377 in octal).
S
No duplicates
-- Each stage number
is unique and can be used just once.
S
Any order
-- You can skip numbers
and sequence the stage numbers in
any order.
S
Last Stage
-- the last stage in the
ladder program includes all rungs
from its stage box until the end coil.
SG
S0
SG
S1
SG
S2
END
What Stage Bits Do
Stage Instruction
Characteristics
Содержание 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...