11 - 57 11 - 57
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
DELETE
Instruction
DELETE
• Deletes the specified range of the program.
DELETE [ [ <line number 1> ] -] [ <line number 2> ]
line number 1
• • • •
Specify the first line to delete.
Syntax
line number 2
• • • •
Specify the last line to delete.
DELETE 100 – 150
• • • •
Deletes from line 100 to line 150 of the program.
DELETE 50 -
• • • •
Deletes from line 50 to the end of the program.
DELETE - 200
• • • •
Deletes from the beginning to line 200 of the
program.
Examples
DELETE 70
• • • •
Deletes line 70 of the program.
Description
• The DELETE instruction deletes the range of the program specified by <line number 1>
and <line number 2>.
• When both <line number 1> and <line number 2> are specified, all the lines included in this
range are deleted.
• When <line number 1> and a hyphen (“-“) are specified, lines starting from the specified
line through the end of the program are deleted.
• When only a hyphen (“-“) and <line number 2> are specified, lines starting at the beginning
of the program through the specified line are deleted.
• When only <line number 1> is specified, only this line is deleted.
• The following occurs when the DELETE instruction is executed in the program.
In edit mode
The program waits for the next instruction.
In execution mode
The program becomes in the idling state.
• An “Illegal function call” error occurs if the line number specified by <line number> does not
exit.
REMARK
See the CHAIN instruction and Section 3.2.3.