EasyManua.ls Logo

YASKAWA yasnac i80m - Page 264

YASKAWA yasnac i80m
684 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2.14
MACROPROGRAM
(G65,
G66,
G67)*
A
set
of
instructions
is
provided
for
this
system.
By
using
these
instructions,
the
tool
machine
manufacturers
or
the
users
of
the
system
can
produce
a
program
to
implement
their
original
functions.
This
program
is
called
a
macroprogram,
which
can
be
called
and
executed
by
a
single-block
command
using
G65
or
G66.
A
macroprogram
makes
the
following
possible:
(T>
Variables
can
be
used.
Arithmetic
operations
using
variables
and
constants
are
possible.
<3>
Branch
or
repeat
control
is
possible.
f-11
Messages
and
dates
can
be
output.
Argument
specification
is
possible.
Therefore,
macroprogram
permits
creating
a
program
to
execute
complex
arithmetic
operations
or
operations
requiring
conditional
judgment.
The
differences
between
a
macroprogram
and
subprogram
are
as
follows:
(1)
Although
macroprogram
call
(G65,
G661
can
specify
an
argument,
subprogram
call
(M98)
cannot
specify
an
argument.
(2)
When
a
M98
block
contains
any
command
other
than
P,
Q,
or
L,
control
jumps
to
a
subprogram
after
it
is
executed.
On
the
other
hand,
any
command
other
than
P
or
L
in
G65
and
G66
is
assumed
to
be
argument
specification,
so
that
control
immediately
jumps
to
a
macroprogram.
(3)
Local
variables.used
in
a
macroprogram
have
levels
corresponding
to
the
level
of
-that
macroprogram.
Local
variables
used
in
a
subprogram
have
levels
which
are
unchanged.
That
is.
local
variables
in
a
macroprogram
are
different
before
and
after
the
macroprogram
is
called:
local
variables
in
a
subprogram
are
the
same.
-
240
-

Table of Contents

Related product manuals