Chain ( Reads Program Or Combine To Execute ) - Mitsubishi QD51 Programming Manual

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
CHAIN
Instruction
• Erases or partly deletes the program that is currently being executed, and reads and
executes the specified program.
CHAIN "[<drive number>:] [<system name> \] <file name>"
Syntax
[, <line number1> :] [, ALL]
CHAIN MERGE " [<drive number>:] [<system name> \] <file name>" [, <line number 1> :]
[, ALL] [, DELETE <line number 2> - <line number 3>]
drive number
system name
file name
line number 1
line number 2
line number 3
CHAIN "0:PRGM-A"
Examples
CHAIN "1:PRGM-A", 200,
ALL
CHAIN MERGE "A:SUB-A",
DELETE 1000-2000
CHAIN MERGE, "0:TEST",
1000, DELETE 1000-1500
11 - 18
CHAIN
• • • •
Specify the memory card or FD where the program
to be read is stored.
• • • •
Specify the system name where the program to be
read is stored.
• • • •
Specify the file name of a program to be read.
• • • •
Specify the execution starting line of the program.
• • • •
Specify the area to be deleted by the DELETE
option.
• • • •
Specify the area to be deleted by the DELETE
option.
• • • •
Erases the current program and reads the program
stored in the "PRGM-A.BAS" file from the memory
card inserted in the M-CARD0. Then, executes the
program after handing over the variables specified
by the COMMON instruction.
• • • •
Erases the current program and reads the program
written in the "PRGM-A.BAS" file of "1". Then, hands
over all variables, etc., and starts executing from line
number 200 of the program just read.
• • • •
Erases line number 1000 through 2000 of the current
program and reads the program written in the "SAB-
A.BAS" file of "0." Then, merges them into one
program and starts executing from line number 1000.
• • • •
Erases line number 1000 through 1500 of the current
program and reads the program written in the
"TEST.BAS" file of "0." Then, merge them into one
program and starts executing from line number 1000.
MELSEC-Q
11 - 18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents