476 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 11 Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)
SFC Pause (SFP)
The SFP instruction pauses an SFC routine.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder SFP instruction.
Description: The SFP instruction lets you pause an executing SFC routine. If an SFC routine is
in the paused state, use the SFP instruction again to change the state and resume
execution of the routine.
Also, use the SFP instruction to resume SFC execution after using an SFR
instruction (see page 478
) to reset an SFC routine.
Arithmetic Status Flags: Not affected
Fault Conditions:
Execution:
Operand Type Format Description
SFCRoutine
Name
ROUTINE Name SFC routine to pause
TargetState DINT Immediate
Tag
Select one:
Executing (or enter 0)
Paused (or enter 1)
SFP(SFCRoutineName,
TargetState);
A major fault will occur if Fault type Fault code
Routine type is not an SFC routine 4 85
Condition Relay Ladder Action Structured Text Action
Prescan The rung-condition-out is set to false. No action taken.
Rung-condition-in is false The rung-condition-out is set to false. N/A
Rung-condition-in is true The instruction executes.
The rung-condition-out is set to true.
N/A
EnableIn is set N/A EnableIn is always set.
The instruction executes.
Instruction execution The instruction pauses or resumes execution of the specified SFC routine.
Postscan The rung-condition-out is set to false. No action taken.