Chgpri - Omron SCARA YRCX Series Programming Manual

Robot controller
Hide thumbs Also See for SCARA YRCX Series:
Table of Contents

Advertisement

13

CHGPRI

Changes the priority ranking of a specified task
Format

CHGPRI

Values
Explanation
SAMPLE
START <SUB_PGM>,T2,33
*ST:
GOTO *ST
HALTALL
Program name:SUB_PGM
'SUBTASK ROUTINE
*SUBTASK:
GOTO *SUBTASK
EXIT TASK
Related commands
Tn
<program name>
PGm
m: Program number ..............0 to 100
n: Task number .....................1 to 16
p: Task priority ranking .........1 to 64
Directly changes the priority ranking of the specified task ("n") to "p".
The smaller the priority number, the higher the priority (high priority: 1 ⇔ low
priority: 64).
When a READY status occurs at a task with higher priority, all tasks with lower
priority also remain in a READY status.
MOVE P,P0,P1
IF DI(20) = 1 THEN
CHGPRI T2,32
ELSE
CHGPRI T2,33
ENDIF
IF LOC3(WHERE) > 10000 THEN
DO(20) = 1
GOTO *SUBTASK
ENDIF
DO(20) = 0
CUT, EXIT TASK, RESTART, SUSPEND, START
,p
CHGPRI
8-31
8
A
B
C
D
E
F
G
H
I
J
K
L
M

Advertisement

Table of Contents
loading

Table of Contents