11 - 470 11 - 470
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Available only in execution mode
ZSTART
Instruction
Z START
• Starts up the specified program.
ZSTART <number>
ZSTART <number>,"[<drive number>:][<system name>\]<file name>"
number
• • • •
Specify the number of the task area where the
program is started up.
drive number
• • • •
Specify the memory card, FD, or HD that stores the
program to be started up.
system name
• • • •
Specify the system name under which the program
to be started up is stored.
Syntax
file name
• • • •
Specify the file name of the program to be started
up.
ZSTART 5
• • • •
Starts up the program stored in the task area No. 5.
Examples
ZSTART 2,
"0:PRO\TEST.BAS"
• • • •
Starts up after reading the program stored with file
name TEST.BAS under system name PRO in the
memory card mounted in the AD51H-S3 MEMORY
CARD 1 drive into BASIC task area No. 2.
Description
• The ZSTART instruction starts up a program in the specified task area.
When starting a program already resident in memory of the communication module
• Specify only <number>, then the program stored in the task area specified by the
<number> is started up.
• In order to start up a program using this method, it is necessary that the task area specified
by <number> is in one of the following conditions:
(1) When the task area is set to "BOOT" by the SET command in system mode of the
communication module.
(2) When the task area is set to "START" by the SET command in system mode of the
communication module and the started program has been stopped by the END
instruction.
(3) When the program has been started by the ZSTART instruction or by an interrupt from
the PLC CPU and subsequently stopped by the END instruction.
• An error occurs if a program is not stored in the task area specified by <number>.
REMARK
See the AD51H-BASIC Programming Manual (Program Editing and Compiling) for
the details about the multitask operations and system mode of the communication
module.