Multitask Processing - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

8 MULTITASK PROCESSING

8 MULTITASK PROCESSING
8.1 Multitask Processing
Multitask processing refers to executing multiple programs simultaneously on a single
device. In AD51H-BASIC, it is possible to perform multitask processing of a maximum
of eight BASIC programs on the AD51H-S3, a maximum of two on the A1SD51S, and
a maximum of two on the QD51(-R24).
Multitasking means executing multiple (multi) programs (tasks).
There is only one main CPU (central processing unit) in the communication module.
Multitasking accomplishes parallel operations by successively switching between the
execution of multiple programs. The processing speed of the main CPU is very fast, so
to the human eye it appears as if it is processing multiple programs simultaneously.
When there are four tasks
Simultaneously executed BASIC programs operate for the execution time allocated by
the OS (50ms or 100ms) and are then switched by the OS.
The switching of the execution of each program by the OS (scheduling by the OS)
during the parallel processing occurs according to the priority of each program (refer to
Section 8.4, Execution Priority) and when any of the following situations occurs.
• When a data input/output (communication) instruction is executed to the screen,
keyboard, disk, peripheral device, or external device.
• When an instruction for controlling the program execution (interrupt, stop, or
terminate), or an instruction for controlling multitasking (synchronizing the execution,
starting, changing priorities) is executed
• When the interrupt status of the program execution is released (when input/output is
finished, specified time has elapsed, etc.)
• When the program has been executed continuously for a specified time (50ms or
100ms) (execution of multi-statements, etc.)
See Appendix 3 for the instructions for switching the program execution.
8 - 1
The numbers in the
circles indicate the
1)
order of processing
by the CPU.
5)
9)
REMARK
• Changing the execution time is supported by the AD51H-S3 only. The execution
time is fixed to 50ms for the A1SD51S and QD51 (-R24).
• Use the DIP switch of the AD51H module to switch the execution time (to 50ms or
100ms). For details, see the AD51H User's Manual (Hardware).
• The switching between tasks according to the above-mentioned execution time
may occur in the middle of executing an instruction, but the processing is carried
out normally.
Task
Task
Task
No.1
No.2
No.3
2)
3)
4)
6)
7)
8)
10)
MELSEC-Q
Task
No.4
Indicates the task
being executed.
Indicates the
switching between
the tasks.
8 - 1
8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents