8 - 13 8 - 13
MELSEC-Q
8 MULTITASK PROCESSING
8.4 Start Another Program from within a Program
It is possible to start a new program using the ZSTART instruction to specify any task
area while executing multitask processing.
ZSTART
Task area
m
Task area
n
Before starting a program using the ZSTART instruction,
set the applicable task area to 'START', 'BOOT', 'IT', or 'ON' using the SET command in
system mode. A program cannot be started in the task area using the ZSTART instruction
if the task area is set to 'OFF'.
There are two ways to start a program using the ZSTART instruction.
1) Read a program from a memory card to the specified task area and start it.
ZSTART<task area>, <program to be read>
MITSUBISHI
MEMORY CARD
A6MEM-512KA-W
A program can be read from
the FD or HD as well.
Read a program to the
area of the specified
BASIC number.
The program in the specified
task area is executed.
2) Start a program already residing in the task area, which has currently been put in
the stop status by the END instruction.
A program that was in the
sleep status is executed.
ZSTART<task area>