
9.
REGISTERING, EDITING, AND OUTPUTI-ING PROGRAMS
9.2 Editing Programs
9.22 Editing custom macros
(1)
( 1
a
(b)
i’_
64
-. )
NJ)
(2)
(3)
Deleting, altering, and inserting a program
Men editing a custom macro already entered, the user can move the cursor to
each editing unit that starts with any of the following characters and symbols:
Address
# located at the start of the left side of a substitution statement
I(
=, and ;
First character of IF, WHILE, GOTO, END, and DO
On the CRT screen, a blank is placed before each of the above characters and
symbols. In program deletion, alteration, or insertidn, a character string where
the cursor is placed is handled as a unit.
(Example) Head positions where the cursor is placed
NO01 X400;_
#1 =G3i
No0212 2( [12#3] ;
NO03 g-SQRT [#3!37#4 + l]] 1
NO04 x#2 Y#ll
NO05 #5 =T+ 24101
F [#1 iJE<] GOTOlOi
-WHILE [#2 L&ID 011
F[200+#2) &Oi
L=_#?+li
ENDi
A
Custom macro abbreviations
\Nhen a custom macro word is altered or inserted, the first two characters or
more can replace the entire word.
Namely,
WHILE + WH.
GOT0 --+ GO
XOR -+ X0.
AND +AN.
SIN + Sl
cos + co.
TAN -+TA.
ATAN +AT
SQRT + SQ.
ABS+AB. BCD --) BC
BIN -+ BI,
FIX --) Fl, FUP -+ FU
R.OUND -+ RO. END + EN
(Example) Keying in
W [AB [#2 ] LE
RO [#3 ] ]
has lthe same effect as
WHILE [ABS [#2 ] LE ROUND [#3 ] ]
The program is also displayed in this way.
Control-out/in
A comment can be coded in a program.
(Example) 00001 (FANUC Power Mate);
(Note 1) A macro word abbreviation entered in a comment is not amwxted
tothemacrowwd. Note,
~r~thataanabbraviationis~intwoormo~se~operationsbypressingthe <INSERT>
key during input operation, the abbreviation is comMed to the macro word.
2-58