
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
Содержание SCARA YRCX Series
Страница 1: ... 7 6HULHV DW 1R 1 5 5RERW RQWUROOHU 352 5 00 1 0 18 6 5 5RERWV 5 6HULHV ...
Страница 2: ......
Страница 20: ......
Страница 26: ......
Страница 27: ...Chapter 2 Constants 1 1 Outline 2 1 2 2 Numeric constants 2 1 3 3 Character constants 2 2 ...
Страница 28: ......
Страница 32: ......
Страница 52: ......
Страница 54: ......
Страница 61: ...Chapter 5 Multiple Robot Control 1 1 Overview 5 1 2 2 Command list with a robot setting 5 2 ...
Страница 62: ......
Страница 66: ......
Страница 76: ......
Страница 78: ......
Страница 92: ......
Страница 328: ......
Страница 408: ......
Страница 409: ...Chapter 11 User program examples 1 1 Basic operation 11 1 2 2 Application 11 8 ...
Страница 410: ......
Страница 432: ......
Страница 488: ......
Страница 489: ...Chapter 13 Appendix 1 1 Reserved word list 13 1 2 2 Changes from conventional models 13 3 ...
Страница 490: ......
Страница 496: ......
Страница 497: ...Index ...
Страница 498: ......
Страница 504: ......
Страница 505: ......
Страница 506: ... DW 1R 1 XWKRUL HG LVWULEXWRU 3ULQWHG LQ XURSH ...