SFC Progrmming-1-2
SFC Progrmming-1-2
Training Department
Factory Automation Engineering Centre
Factory Automation & Industrial Division
Mitsubishi Electric India Private Limited
[email protected]
Objective
• Prerequisites
– GX Developer/ GX WORKS2 Programming
– Ladder Programming
– SFC
Contents
• Introduction
• Description
• SFC programming Elements
• Steps
• Transition
• SFC Program Control Instruction
• SFC Information Device
• SFC Operation Mode Setting
Introduction
Transition 0
Sequence
Step 1
Operation -1
Transition 1
Sequence
Step 2
Operation -2
Transition 2
End
Process End
Description
Transition 0
Sequence
Step 1
Operation -1
Transition 1
Sequence
Step 2
Operation -2
Transition 2
End
Process End
Description
Transition 0
Sequence
Operation -1 Step 1
Transition 1
Sequence
Operation -2 Step 2
Transition 2
Transition 0
Sequence
Operation -1 Step 1
Transition 1
Sequence
Operation -2 Step 2
Transition 2
• Initial step
– Initial step represents the beginning of a block, Max 32 steps per block.
– If steps are selectively coupled in the block that has more than one active
initial steps, the step immediately after the coupling becomes active if any
of the transition conditions immediately before the coupling is satisfied.
Coupling
Point
Steps
Transition
Active Step
Steps
• Dummy Step
– A dummy step is a waiting step , which contains no operation output
program.
– Transition condition following the corresponding step is always checked
during execution of a dummy step.
– Dummy step changes to a step when an operation output program is
created and vice versa.
• Coil HOLD step
– Coil HOLD step is a step where the coil output status is maintained in the
transition to the next step.
– During normal SFC program operation, the coil ON status is automatically
switched OFF before proceeding to the next step.
– By designating an operation output step as a “coil HOLD step”, the coil ON
status will remain in effect when proceeding to the next step.
Steps
• Reset Step
– Reset step is a step which used for a forced deactivation of another
specified step (operation output).
– When deactivating only the designated step, Set the step number to be
deactivated to the specified step number Sn. (n: Step no.)
– When deactivating all steps set n=999.
Steps
Check next
Transition and
End of Called block
Steps
Check next
Transition
•
Steps
• END step
– End step indicates that a series of processings in the corresponding block is
all ended.
– All steps in the block are deactivated.
– Coil outputs turned ON by the OUT instruction are all turned OFF.(including
Hold Steps)
– Coil outputs turned ON by the OUT instruction in HOLD step can be hold by
using special relay SM327. If SM327 is ON output can be hold at END
instruction.
– Special relay SM328 is turned ON at processing of END step.
Transition
Serial Transition
“Serial transition” is the transition in which processing proceeds to
the step immediately below the current step when the transition
condition is satisfied.
Transition
Selection Transition
“Selection transition” is the transition in which several steps are
branch/coupled in a parallel manner, however processing occurs only
at the step where the transition condition is satisfied first.
Selection Transition (Branch Operation)
Transition
Parallel Transition
“Parallel transition” is the transition in which several steps linked in
parallel manner and are processed simultaneously depend on
transition condition is satisfied.
• Couplings must be provided when the parallel transition format is
used.
• As a rule, a waiting step/dummy step must be created prior to the
coupling.
Transition
• Parallel Transition
Transition
• Jump Transition
“Jump transition” is a jump to a specified step within the same block
which occurs when the transition condition is satisfied.
SFC Program Control Instruction