11 - 18 11 - 18
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
CHAIN
Instruction
CHAIN
• 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>”
[, <line number1> :] [, ALL]
CHAIN MERGE ” [<drive number>:] [<system name> \] <file name>” [, <line number 1> :]
[, ALL] [, DELETE <line number 2> - <line number 3>]
drive number
• • • •
Specify the memory card or FD where the program
to be read is stored.
system name
• • • •
Specify the system name where the program to be
read is stored.
file name
• • • •
Specify the file name of a program to be read.
line number 1
• • • •
Specify the execution starting line of the program.
line number 2
• • • •
Specify the area to be deleted by the DELETE
option.
Syntax
line number 3
• • • •
Specify the area to be deleted by the DELETE
option.
CHAIN “0:PRGM-A”
• • • •
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.
CHAIN “1:PRGM-A”, 200,
ALL
• • • •
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.
CHAIN MERGE “A:SUB-A”,
DELETE 1000-2000
• • • •
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.
Examples
CHAIN MERGE, “0:TEST”,
1000, DELETE 1000-1500
• • • •
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.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...