![background image](http://html.mh-extra.com/html/omron/scara-yrcx-series/scara-yrcx-series_programming-manual_1633413068.webp)
1
2
3
4
5
6
6-2 Chapter 6 Multi-tasking
3
Task status and transition
There are 6 types of task status.
1. STOP status
A task is present but the task processing is stopped.
2. RUN status
A task is present and the task processing is being executed by the CPU.
3. READY status
A task is present and ready to be allocated to the CPU for task processing.
4. WAIT status
A task is present and waiting for an event to begin the task processing.
5. SUSPEND status
A task is present but suspended while waiting to begin the task processing.
6. NON EXISTENT status
No tasks exist in the program. (The START command is used to perform a call.)
Task state transition
Delete
Call
NON EXISTENT
Restart
Start
Suspend
Wait condition
Cancel waiting
Stop
Stop
Stop
Stop
CPU assignment
Wait for CPU assignment
STOP
RUN
SUSPEND
READY
WAIT
33601-R9-00
3.1
Starting tasks
When the START command is executed, a specified program is registered in the task and placed in
RUN status. If the task number (1 to 16) is not specified by the START command, the task with the
smallest number among the tasks yet to be started is automatically specified. For details regarding
the START command, refer to "123 START" in Chapter 8.
• When the LOAD command is executed, a specified program is registered in the task and placed
in a STOP status. For details of the LOAD command, refer to "1. Register task" of "2.1 Program
operations" in Chapter 12.
• If another program is already registered in the task number specified by the START command or
the LOAD command, the "6.215: Task running" error will occur.
• When programs are registered in all task numbers and the START command or the LOAD command
is executed without specifying the task number, the "6.263: Too many Tasks" error will occur.
• When the HALTALL command is executed, all tasks termitate and the task enters the NON
EXISTENT (no task registration) status. When the main program is specified, the HALTALL
command registers the main program in the task 1 and stops at the beginning line. When the
main program is not specified, the HALTALL command registers the program that has been
executed last (current program) in the task 1 and stops at the beginning line.
For details regarding the main program, refer to "Setting the main program" of YRCX operator's
manual.
MEMO
Summary of Contents for SCARA YRCX Series
Page 1: ... 7 6HULHV DW 1R 1 5 5RERW RQWUROOHU 352 5 00 1 0 18 6 5 5RERWV 5 6HULHV ...
Page 2: ......
Page 20: ......
Page 26: ......
Page 27: ...Chapter 2 Constants 1 1 Outline 2 1 2 2 Numeric constants 2 1 3 3 Character constants 2 2 ...
Page 28: ......
Page 32: ......
Page 52: ......
Page 54: ......
Page 61: ...Chapter 5 Multiple Robot Control 1 1 Overview 5 1 2 2 Command list with a robot setting 5 2 ...
Page 62: ......
Page 66: ......
Page 76: ......
Page 78: ......
Page 92: ......
Page 328: ......
Page 408: ......
Page 409: ...Chapter 11 User program examples 1 1 Basic operation 11 1 2 2 Application 11 8 ...
Page 410: ......
Page 432: ......
Page 488: ......
Page 489: ...Chapter 13 Appendix 1 1 Reserved word list 13 1 2 2 Changes from conventional models 13 3 ...
Page 490: ......
Page 496: ......
Page 497: ...Index ...
Page 498: ......
Page 504: ......
Page 505: ......
Page 506: ... DW 1R 1 XWKRUL HG LVWULEXWRU 3ULQWHG LQ XURSH ...