Omron CS1G/H-CPUxx-EV1 Programming Manual page 209

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Using Tasks
Flags Related to All Tasks
Task Error Flag (A29512)
Task Number when
Program Stopped (A294)
Examples of Tasks
The Task Error Flag will turn ON if one of the following task errors occurs.
• No cyclic tasks (including extra cyclic tasks) are READY during a cycle.
• The program allocated to a cyclic task (including extra cyclic tasks) does
not exist. (This situation will not occur when using the CX-Programmer or
a Programming Console.)
• No program is allocated to an activated interrupt task.
The type of task and the current task number when a task stops execution
due to a program error will be stored as follows:
Type
Cyclic task
0000 to 001F Hex (correspond to task numbers 0 to 31)
Interrupt task 8000 to 80FF Hex (correspond to interrupt task numbers 0 to 255)
This information makes it easier to determine where the fatal error occurred,
and it will be cleared when the fatal error is cleared. The program address
where task operation stopped is stored in A298 (rightmost bits of the program
address) and in A299 (leftmost bits of the program address).
An overall control task that is set to go to READY status at the start of opera-
tion is generally used to control READY/Standby status for all other cyclic
tasks (including extra cyclic tasks). Of course, any cyclic task can control the
READY/Standby status of any other cyclic task as required by the application.
Task Start Flag
A20014
Initialization
processing
A294
Section 4-2
173

Advertisement

Table of Contents
loading

Table of Contents