Reset SFC (SFR)
This information applies to the
CompactLogix
5370, ControlLogix
5570, Compact GuardLogix
5370, GuardLogix
5570, Compact GuardLogix
5380, CompactLogix
5380, CompactLogix
5480, ControlLogix
5580, and GuardLogix
5580 controllers.The SFR instruction resets the execution of an SFC routine at a specified step.
Available Languages
Ladder Diagram
Function Block
This instruction is not available in function block.
Structured Text
SFR(SFCRoutineName,StepName);
Operands
Ladder Diagram
Operand | Type | Format | Description |
SFCRoutineName | ROUTINE | name | SFC routine to reset |
StepName | SFC_STEP | tag | Target step where to resume execution |
Structured Text
Operand | Type | Format | Description |
SFCRoutineName | ROUTINE | name | SFC routine to reset |
StepName | SFC_STEP | tag | Target step where to resume execution |
See Structured Text Syntax for more information on the syntax of expressions within structured text.
Description
When the SFR instruction is enabled:
- In the specified SFC routine, all stored actions stop executing (reset).
- The SFC begins executing at the specified step.
- If the target step is 0, the chart will be reset to is initial step.
The Logix implementation of the SFR instruction differs from that in the
PLC-5
controller. In the PLC-5
controller, the SFR executes when the rung condition is true. After reset, the SFC would remain paused until the rung containing the SFR became false. This allowed the execution following a reset to be delayed. This pause/un-pause feature of the PLC-5
SFR instruction was decoupled from the rung condition and moved into the SFP instruction.Affects Math Status Flags
No
Fault Conditions
A major fault will occur if: | Fault Type | Fault Code |
The routine type is not an SFC routine | 4 | 85 |
Specified target step does not exist in the SFC routine | 4 | 89 |
See Common Attributes for operand-related faults.
Execution
Ladder Diagram
Condition/State | Action Taken |
Prescan | N/A |
Rung-condition-inis false | N/A |
Rung-condition-in is true | The instruction reset the specified SFC routine execution to a particular step. |
Postscan | N/A |
Structured Text
Condition/State | Action Taken |
Prescan | N/A |
Normal execution | The instruction reset the specified SFC routine execution to a particular step. |
Postscan | N/A |
Example
Ladder Diagram
Provide Feedback