1133
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
SFC Instructions
3
SFC Task Control Instruction
SFC Task Control Instruction
The following type of control can be achieved by using the SFC Task Control Instructions
• Ending SFC task execution using the SFCOFF instruction
• Pausing SFC task execution and resetting outputs using the SFCPR instruction
• Pausing SFC task execution and holding outputs using the SFCPRN instruction
• Restarting execution of SFC tasks that have been ended or paused using the SFCON instruction
SFC OFF: SFCOFF Ends execution of an SFC task. The outputs from any actions that are being executed in the task that is ended will be
held and processing will be ended. When execution is started again with the SFCON instruction, it will start from the
initial step.
SFC PAUSE WITH
RESET: SFCPR
All outputs in the task that is paused will be reset and processing will be paused. Be careful when using this command
if any outputs that will be reset are used in other tasks. When execution is started again with the SFCON instruction, it
will start from the step that was active before the task was paused. The Step Timer for the paused step will continue to
operate even while the step is paused.
SFC PAUSE WITH NO
RESET: SFCPRN
Pauses execution of an SFC task. The outputs from any actions that are being executed in the task that is paused will
be held and processing will be paused. When execution is started again with the SFCON instruction, it will start from
the step that was active before the task was paused. The Step Timer for the paused step will continue to operate even
while the step is paused.
SFC ON: SFCON Restarts execution of an SFC task that was ended or paused using one of the other SFC Task Control Instructions.
Executed
Ended
SFCOFF
SFC task
SFCON
Executed
Outputs held
Executed from initial step
Executed
Pauses
SFCPR
SFC task
SFCON
Executed
Outputs reset
Executed from status before pause
Executed
Pauses
SFCPRN
SFC task
SFCON
Executed
Outputs held
Executed from status before pause