Omron CJ2 CPU UNIT SOFTWARE User Manual page 123

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

Advertisement

Used by All Tasks
Task 0
D20000 to D24999
W200.0 to W299.15
D0 to D19999
D20000 to D24999
D25000 to D29999
D30000 to D31999
D32000 to D32767
• Use one task to start and stop other tasks and thus control the overall user program.
Good Example: Define a master-slave relationship between tasks.
Task
management
(master)
Bad Example: Control is difficult if starting and stopping tasks is performed in a disorganized man-
ner.
Task 0
Task 2
• Allocate lower numbers to high-priority interrupt tasks.
• A task in READY status will be executed in subsequent cycles as long as the task itself or another
task does not change it to STANDBY status. Be sure to insert a TKOF(821) (TASK OFF) instruction
for other tasks if processing is to be branched between tasks.
• Use the Initial Task Execution Flag (A200.15) or the Task Start Flag (A200.14) in the execution condi-
tion to execution instructions to initialize tasks. The Initial Task Execution Flag will be ON during the
first execution of each task. The Task Start Flag each time a task enters READY status.
CJ2 CPU Unit Software User's Manual
D0 to D19999
W0.0 to W199.15
Task 1
D25000 to D29999
W300.0 to W399.15
DM Area
W0.0 to W199.15
Used by all tasks.
W200.0 to W299.15
Task 0
W300.0 to W399.15
Task 1
Task 2
W400.0 to W499.15
Not used
W500.0 to W511.15
Task 1 (slave)
Task 2 (slave)
Task 3 (slave)
Task 1
Task 3
5 Understanding Programming
Task 2
D30000 to D31999
W400.0 to W499.15
Work Area
Used by all tasks.
Task 0
Task 1
Task 2
Not used
5
5-31

Advertisement

Table of Contents
loading

Table of Contents