Yaskawa J50M Instructions User Manual
Page 120

2.11.8 REGISTRATION OF USER MACROS
(1) How to Make Registration of User Macros
The registration and edit of user macro bodies (macro
programs) are performed in the same manner as usual
part programs and subprograms. Hence, there is no
program size restriction that applies to the user macro
body
Part programs, subprograms, and macro
programs can be stored together in the part program
memory to its
capacity.
(2) Classification of Program
N u m b e r s
The program numbers are classified into the
Macro nesting level
(O: Macro not in execution)
I I
II
S E T T I N G M A C R O
N0035
LEVEL O
-12345678. 12345678
0.00000001
3. 00000000
I
following:
Program No.
01 to
07999
08000 to
08999
09000 to
09999
Classification
Sample Display of Common Variables
These programs can be registered,
erased, or edited without restric-
tions.
When D4 of #6004 is set to 1, the
registration, erase, and edit of
programs are disabled.
When D7 of #6021 is set to 1, the
registration, erase, and edit of
programs are disabled.
2.11.9 DISPLAY AND WRITE OF LOCAL VARIABLES
AND
COMMON VARIABLES
Local variables (#1 through #33) and common var-
iables (#100 through #149, #500 through #559)
can be displayed and written by the following
operations:
(1)
D i s p l a y O p e r a t i o n s
A .
Display of Variables
a.
Depress
function key. Mode select position
can be provided anywhere.
b.
Key-in the variable number and press
m
L
,
‘
ey
‘r
‘
ey
”
However, # need not be
k e y e d - i n .
Ten sets of variable numbers includ-
ing the specified variable number and their data
are displayed.
The data is displayed in the
signed 8-digit integer part and the 8-digit
tion part.
play can be scrolled up or down.
B. Remarks
a. Common variables can always be displayed for
b. For local variables, those of the macro cur-
rently executed are displayed. Consequently,
when a macro of a nesting level is in execution,
the local variables of the macros of the other
nesting levels cannot be seen.
The local varia-
bles
completion of execution are all rest to
“blank. “
(2)
Operations
A. Write of Values to Variables
a.
Depress
function key. Mode select position
may be provided anywhere.
Key-in the variable number to the written.
‘
e y
‘ r
ever. # need not be keved-in. The keyed-in
variable number is
and the cursor is
positioned to it.
c.
Key-in the value to be written. Press WR
key.
The keyed-in value is stored as the data
of the variable number with the cursor positioned.
‘
e y
‘ r
d . D e p r e s s c u R s O R k e y o r
k
ey
or
e.
Repeat operations in c. and d. to write the
values to the desired variables.
112