Yaskawa J50M Instructions User Manual
Page 123

I
When the value of the parameter is
the
hole pattern listed in the above table is pro-
vided.
2. When the codes shown below are output from
the NC unit for punch-out or other purposes,
the upper code ( UC) or lower code
is out-
put immediately before.
a. Codes preceded by UC . . . #, +, $, ?,
b. Code preceded by LC . . .
c. Codes preceded by UC only at parameter
designation . . . ( ,).
2.11.11
ALARM NUMBER OF USER MACROS
Shown below are the user–macro-associated alarms
and their causes.
105
106
——— —
107
108
——_ —
109
. — —
110
—
—
111
Cause
MACRO ERROR
The number of constants is in excess of
the specified range.
MACRO ERROR
— —
— ——— ———— _—— — —
—
There are too many
cancel codes.
MACRO ERROR (
FO
R
MAT
)
——— —
A format other than expression has an
error.
M A C R O E R R O R
———
—
——_ ____
The
not defined as a variable num-
ber is designated.
MACRO ERROR ( #NO NOT LEFT)
— — — —
The variable of assignment statement is
the one that is disabled for assignment.
MACRO ERROR ( ] 5 LIMIT)
— — —
— — — — —
—
The bracket nesting level is in excess of
the upper limit (5) .
MACRO
(
MOVE
G66 - M99)
————
——_ ___ _____ __
A move command is specified in the macro
end command M99 called by G66.
Code
Cause
112
MACRO ERROR (5)
— — —
— _ , _ _ _ _ _ _ _ _ _ _ _ _ _
The macro call nesting level is in excess
of the upper limit (4) .
113
—
— — — — — — — —
— .
— —
— —
114
MACRO ERROR (DO FORMAT)
DO and END are not paired.
115
117
MACRO ERROR ( [ ] UNMATCH)
—
— — — —
The format of
MACRO ERROR
- END NO. )
— —
DO m is not in the range of m 3.
118
MACRO ERROR
N)
—
—
GOTO n is not in the range of O n <9999.
2.11.12 EXERCISES OF USER MACRO
( 1 ) C a n n e d - c y c l e
T
(Teacher) :
We have discussed many complicated
rules you have to understand to
write user macros.
Now, let’s
create some user macros as exer-
cises.
Let’s take G82 Spot Facing
Cycle of canned
cycles for ex-
ample, because it is a simple
tion.
S (Student) :
Where shall we start?
T :
An example of usual G82 command takes the
following format:
( P i )
Incremental Designation)
G82 X1OO. Y50. R-80. Z-40.
O F250 ;
This command is divided into the following
and executed within the NC unit:
115