Cyclic Task Status - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming

Cyclic Task Status

READY Status
Cyclic tasks are executed in order starting with the lowest task number. Tasks for which the Acti-
vated at the start of operation Property is set will be executable when the operating mode is
changed from PROGRAM mode to RUN or MONITOR mode. A TASK ON instruction can be used to
change the status from STANDBY status to READY status. If a TASK OFF instruction is used to stop
the local task, the task will not be executed beyond the TASK OFF instruction.
STANDBY Status
Instructions will not be executed for tasks in STANDBY status. Using a TASK OFF instruction will
change the status from READY status to STANDBY status. The cycle time can be shortened by
dividing the overall user program into tasks then starting and stopping the tasks with the Task Con-
trol Instructions. The program can be divided into tasks according to when different parts of the over-
all program need to be executed.
Status Transitions
STANDBY status
Additional Information
STANDBY status functions exactly the same way as a jump (JMP-JME). Output status from a
STANDBY task will be maintained.
5-16
A
B
Standby status
C
Activated at the start of operation
TASK ON instruction
TASK OFF instruction
A
JMP
B
Jump
JME
C
READY status
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents