Status Transitions - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Programming with Tasks
Instruction-activated
Tasks
Operation-activated Tasks
Note
RUN Status
Standby Status
Note
2-1-7

Status Transitions

INI (Disabled) status
Note
A TASK ON instruction (TKON(820)) is used to switch an instruction-activated
cyclic task from Disabled status or Standby status to READY status.
An operation-activated cyclic task will switch from Disabled status to READY
status when the operating mode is changed from PROGRAM to RUN or
MONITOR mode. This applies only to normal cyclic tasks.
The CX-Programmer can be used to set one or more tasks to go to READY
status when operation is started for task numbers 0 through 31. The setting,
however, is not possible with extra cyclic tasks.
A cyclic task that is READY will switch to RUN status and be executed when
the task obtains the right to execute.
A TASK OFF (TKOF(821)) instruction can be used to change a cyclic task
from Disabled status to Standby status.
The task programs for CP-series PLCs can be monitored online from the CX-
Programmer to see if they are executing or stopped. The status indications on
the CX-Programmer are as follows:
• Running: The task is in READY or RUN status. (There is no way to tell the
difference between these.)
• Stopped: The task is in INI or WAIT status. (There is no way to tell the dif-
ference between these.)
Activated at the start of
operation (See note 1.) or the
TKON(820) instruction
READY status
TKON(820) instruction
Standby status
(1) Activation at the start of operation is possible for normal cyclic tasks only.
It is not possible for extra cyclic tasks.
(2) A task in RUN status will be put into Standby status by the TKOF(821) in-
struction even when the TKOF(821) instruction is executed within that
task.
Standby status functions exactly the same way as a jump (JMP-JME). Output
status for the Standby task will be maintained.
Right to execute obtained.
Executed
TKOF(821) instruction (See note 2.)
Standby status
Section 2-1
RUN status
Jump
57

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Table of Contents