Ladder Language Instructions That Cannot Be Used In Action Programs And Transition Programs; Task Allocation - Omron WS02-CXPC1-V8 - V8.1 REV 02-2009 Operation Manual

Sfc programming
Table of Contents

Advertisement

Precautions When Creating SFC Programs
1-5-4
Ladder Language Instructions That Cannot Be Used in
Action Programs and Transition Programs
The following instructions cannot be used for action programs and transition programs.
Block programming instructions (All instructions, including BPRG and BEND)
Subroutine instructions (SBS, GSBS, RET, MCRO, SBN, GSBN, and GRET)
Jump instructions (JMP, CJP, CJPN, and JME)
Step ladder instructions (STEP and SNXT)
I/O refresh instruction (IORF)
TMHH and TMHHX instructions
Special instructions (FRMCV and TOCV)
Record position manipulation instructions (PUSH, FIFO, LIFO, SETR, and
GETR)
Failure point detection Instruction (FPD)
Index register setting instruction (MOVRW)
1-5-5

Task Allocation

SFC programs are assigned to cyclic tasks to use them. (See note.) Refer to 3-1-3
Allocating an SFC Program to a Task for information on allocating tasks.
Note: Do not use SFC programs in interrupt tasks. They will not execute normally.
Allocating Extra Tasks
The CS/CJ-series PLCs provide 32 cyclic tasks (128 cyclic tasks only for CJ2-series
PLCs). In addition to this, up to 256 extra tasks can be used. (Extra tasks are interrupt
tasks that are executed each cycle as cyclic tasks.) (See note 1.)
The CX-Programmer can be used to create SFC programs, ladder diagrams, or ST
programs in either cyclic tasks or extra tasks. Extra tasks containing SFC programs are
started and stopped using the SFCON and SFCOFF instructions from other tasks.
(See note 2.) The following numbers are used in the SFCON and SFCOFF instructions
to specify the task numbers. Refer to Appendix B SFC Task Control Instruction
Specifications for specifying methods.
Extra task 0 (interrupt task 0)
Extra task 1 (power OFF task)
Extra task 2 (scheduled interrupt task 1)
Extra task 3 (scheduled interrupt task 2)
Extra tasks 4 to 99 (interrupt tasks 4 to 99)
Extra tasks 100 to 131 (I/O interrupt tasks)
Extra tasks 132 to 255 (interrupt tasks 132 to 255)
Note 1. When using extra tasks, be sure to refer to the CJ2H Programmable Controllers Software
Unsupported instructions
Task
User's Manual (Cat. No. W473) and the CS/CJ/NSJ Programming Manual (Cat. No.
W394) and confirm application methods. If the conditions to execute extra tasks as
interrupt tasks are met, the task will not execute normally.
2.Do not use the TKON and TKOFF instructions to stop and start tasks with SFC programs.
The instructions will not function normally.
Section 1-5
Number
8000
8001
8002
8003
8004 to 8099
8100 to 8131
8132 to 8255
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents