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