Sfcon/Sfcoff - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

SFCON/SFCOFF

Instruction
SFC ON
SFC OFF
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
SFC task number
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.)
Operand
&0 to &127
&8000
Extra task 0 (interrupt task 0)
&8001
Extra task 1 (interrupt task 1)
...
&8255
Extra task 255 (interrupt task 255)
Flags
Name
Error Flag
Function
SFCON(789)
The SFC task specified by N is started. If an ended task is started, it is executed from the initial step. If
a paused task is started, it is executed from the status that existed before it was paused.
SFCOFF(790)
The SFC task specified by N is ended. The status of all outputs is held. When execution is restarted
with the SFCON(789) instruction, the task is executed from the initial step.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SFCON
---
SFCOFF
---
SFCON
SFCON(789)
N: SFC task number
N
Block program areas
Step program areas
OK
OK
Description
Task name
Cyclic tasks 0 to 127
...
Label
P_ER
• OFF if the specified task does not exist.
• OFF if the instruction is executed in the interrupt tasks.
Function
code
Restarts execution of an SFC task that was ended
789
or paused using one of the other SFC Task Con-
trol Instructions.
Ends execution of an SFC task. The status of all
790
outputs is held. When execution of the SFC task is
restarted, it is executed from the initial step.
SFCOFF
SFCOFF(790)
N
Subroutines
Interrupt tasks
OK
Not allowed
Data type
---
Operation
3. Instructions
Function
N: SFC task number
SFC action or
transition programs
OK
Size
1
1119
3

Advertisement

Table of Contents
loading

Table of Contents