Omron TJ2-MC64 Hardware Reference Manual page 37

Trajexia machine control system
Hide thumbs Also See for TJ2-MC64:
Table of Contents

Advertisement

System philosophy
CPU slot
Operation
CPU slot 4
Execute whichever comes first in the list:
High priority BASIC Program, or
PLC, or
Low priority BASIC Program
In each of the three CPU slots (1, 2 and 4) the type (High or Low priority
BASIC programs or PLC) is executed which comes first in the list. Only
processes of that type will then be executed in that slot. Processes of the
same type will be executed alternately.
2.6.4
Multi-tasking examples
In the example 1, there are two high-priority processes (20 and 21) and 3
low-priority processes (0, 1 and 2). The first slot will execute low-priority
processes (first in the list). The second and fourth slots will execute the high-
priority processes. In this example the high-priority processes are executed
every cycle. The low-priority processes are executed once every 3 cycles.
Therefore the high-priority processes run 3 times faster than the low-priority
processes.
In the middle example, there is only one high-priority process (21). The high-
priority process now runs twice every cycle and theerfore runs 6 times faster
than the low-priority processes.
In the lower example, there are no high-priority processes. Therefore, all
slots can be used for the low-priority processes. All 3 processes get (in
average) the same number of slots per cycle and therefore run with the
same speed.
HARDWARE REFERENCE MANUAL
1ms
1ms
1
2
21
20
1
21
SYS
SYS
1ms
1ms
2
2
21
21
1
21
SYS
SYS
1ms
1ms
3
2
1
2
1
0
SYS
SYS
fig. 24
1ms
1ms
20
0
21
20
2
21
SYS
1ms
1ms
21
0
21
21
2
21
SYS
1ms
1ms
0
2
1
0
2
1
SYS
20
SYS
21
SYS
0
SYS
32

Advertisement

Table of Contents
loading

Table of Contents