
9.
REGISTERING, EDITING, AND OUTPUTTING PROGRAMS
9.2
Editing Programs
(4
Inserting, altering, and deleting a word
The contents of a program registered in memory can be modified.
0 Select EDIT mode.
@ Press <PROG>.
@ Select a program to be edited.
If a program to be edited is selected, perform the operation
if a program to be edited is not selected, search for the program number.
@ Search for a word to be modified.
(a) Scan method
(b) Word search method
@ Perform an operation such as altering, inserting,, or deleting a word.
Concept of word and editing unit
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
address
(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.
(Note)
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 exactiy
according to the contents of the programdisplayed on the screen after machining is resumed.
So, when the
mritents 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.
(a) Word search
(i) Scan method
Scan operation is performed word by word.
Press the cursor key < +a
The cursor moves forward word by word on the screen; the cursor is
displayed at a selected word.
Press the cursor key < +>
The cursor moves backward word by word on the screen; the cursor is
displayed at a selected word.
2-50