Omron WS02-CXPC1-V8 - V8.1 REV 02-2009 Operation Manual page 140

Sfc programming
Table of Contents

Advertisement

SFC Task Control Instruction Specifications
B-1
SFC ON (SFCON)/SFC OFF (SFCOFF)
SFCON Instruction
Outline
Restarts execution of an SFC task that was ended
or paused using one of the other SFC Task
Control Instructions.
Symbol
SFCON
N
N: SFC task number
Operands
Cyclic Task
For CJ2
N: &0 to &128 (Correspond to cyclic tasks 0 to
128.)
For other models
N: &0 to &31 (Correspond to cyclic tasks 0 to 31.)
Description
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.
Variations
Executed Each Cycle for ON
Condition
Variations
Executed Once for Upward
Differentiation
Immediate Refreshing Specification
124
SFCOFF Instruction
Outline
Ends execution of an SFC task. The status of all
outputs is held. When execution of the SFC task is
restarted, it is executed from the initial step.
Symbol
SFCOFF
N
Operands
Cyclic Task
For CJ2
N: &0 to &128 (Correspond to cyclic tasks 0 to
128.)
For other models
N: &0 to &31 (Correspond to cyclic tasks 0 to 31.)
Description
The SFC task specified by N is ended.
The status of all outputs is held.
When execution is restarted with the SFCON
instruction, the task is executed from the initial
step.
Variations
SFCON
Variations
None
None
Immediate Refreshing Specification
Applicable Program Areas
SFCON/SFCOFF
Function
Area
block
definitions
Usage
OK
Operand Data
SFCON/SFCOFF
Task name
Cyclic tasks
Extra task 0 (interrupt task 0)
Extra task 1 (interrupt task 1)
....
Extra task 255 (interrupt task 255)
Condition Flags
Name
Error Flag
Appendix B
N: SFC task number
Executed Each Cycle for ON
Condition
Executed Once for Upward
Differentiation
Block
Step
Sub-
program
program
routines
areas
areas
OK
OK
OK
0 to 128 (for CJ2)
0 to 31 (for other models)
Label
Status
P_ER
OFF
SFCOFF
None
None
Interrupt
task
programs
OK
Operand
&0 to &128
&0 to &31
&8000
&8001
...
&8255

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents