3. Instructions
1140
CS/CJ/NSJ Series Instructions Reference Manual (W474)
SFCPR/SFCPRN
Applicable Program Areas
Operands
Cyclic Task
N: &0 to &31 (Correspond to cyclic tasks 0 to 31.) For CJ2 CPU Units, &0 to &127 are available.
Extra Task
N: &8000 to &8255 (Correspond to interrupt tasks 0 to 255.)
Flags
Function
z SFCPR(793)
Execution of the SFC task specified by N is paused. All outputs from the paused task are reset. When
the paused task is restarted with the SFCON(789) instruction, it is executed from the status that existed
before it was paused.
z SFCPRN(791)
Execution of the SFC task specified by N is paused. All outputs from the paused task are held. When
the paused task is restarted with the SFCON(789) instruction, it is executed from the status that existed
before it was paused.
Instruction Mnemonic Variations
Function
code
Function
SFC PAUSE WITH RESET SFCPR --- 793
Pauses execution of an SFC task. The status of all
outputs is reset. When execution of a paused task
is restarted, execution will start from the step that
was active when the task was paused.
SFC PAUSE WITH NO RESET SFCPRN --- 791
Pauses execution of an SFC task. The status of all
outputs is held. When execution of a paused task
is restarted, execution will start from the step that
was active when the task was paused.
Symbol
SFCPR SFCPRN
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK Not allowed OK
Operand Description Data type Size
N SFC task number --- 1
Operand Task name
&0 to &127 Cyclic tasks 0 to 127
&8000 Extra task 0 (interrupt task 0)
&8001 Extra task 1 (interrupt task 1)
... ...
&8255 Extra task 255 (interrupt task 255)
Name Label Operation
Error Flag P_ER • OFF if the specified task does not exist.
• OFF if the instruction is executed in the interrupt tasks
N: SFC task number
SFCPR(793)
N
N: SFC task number
SFCPRN(791)
N