9. EDITING PROGRAMS
This section outlines the procedure for inserting, modifying, and deleting
a word in a program registered in memory.
Inserting, altering and deleting a word
1 Select EDIT mode.
3 Select a program to be edited.
If a program to be edited is selected, perform the operation 4.
If a program to be edited is not selected, search for the program
4 Search for a word to be modified.
Word search method
5 Perform an operation such as altering, inserting, or deleting a word.
A word is an address followed by a number. With a custom macro, the
concept of word is ambiguous.
So the editing unit is considered here.
The editing unit is a unit subject to alteration or deletion in one operation.
In one scan operation, the cursor indicates the start of an editing unit.
An insertion is made after an editing unit.
Definition of editing unit
(i) Program portion from an address to immediately before the next
(ii) An address is an alphabet,
IF, WHILE, GOTO, END, DO=, or ; (EOB).
According to this definition, a word is an editing unit.
The word “word,” when used in the description of editing, means an
editing unit according to the precise definition.
The user cannot continue program execution after altering, inserting, or deleting data of the
program by suspending machining in progress by means of an operation such as a single block
stop or feed hold operation during program execution. If such a modification is made, the
program may not be executed exactly according to the contents of the program displayed on
the screen after machining is resumed. So, when the contents of memory are to be modified
by part program editing, be sure to enter the reset state or reset the system upon completion
of editing before executing the program.
DELETING A WORD
Concept of word and