EasyManua.ls Logo

YASKAWA yasnac i80m

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...
MACRO
I
LEVEL
3)
MAIN
PROGRAM
MACRO
i
LEVEL
2
1
MACRO
(LEVEL
4)
MACRO
(
LEVEL
1
1
CALL
Gijfi
I’***
GO
5
I’***
GOG
I1***
Gl-G
1’***
M
:?
t
>
Mon
MUH
M'.f.i
MOO
RETURN
CAN
BE
READ
OR
WRITTEN
l
*
I
tt
1
tt
1
#
I
it
I
i
i
i
i
i
it
3
it
S3
it
3
3
it
A
it
S3
LOCAL
VARIABLE
I
LEVEL
2
1
LOCAL
VARIABLE
(LEVEL
3
1
LOCAL
VARIABLE
(LEVEL
(II
LOCAL
VARIABLE
l
LEVEL
1
1
LOCAL
VARIABLE
(LEVEL
41
Local
variable
of
level
0
is
secured
for
the
main
program;
local
variables(levels
1
to
4)
corresponding
to
the
called
macro
level
are
secured
for
others.
When
a
macro
is
called
by
G65.
for
example,
the
local
variable
of
the
level
of
the
calling
side
is
saved,
and
a
local
variable
of
the
level
of
the
newly
called
side
is
secured.
In
this
case,
argument
can
be
passed
to
the
macro.
Consequently,
even
for
the
same
macro,
if
the
called
timing
is
different,
the
local
variable
of
that
macro
level
has
different
values.
When
a
macro
returns
to
one
level
lower
than
that
by
instruction
of
M99.
the
local
variable
of
that
macro
level
is
cleared
to
(blank).
The
local
variable
of
the
returned
macro
level
becomes
the
local
variable
that
was
saved
when
called.
MDI
write
of
local
variable
:
Do
not
write
in
the
local
variable
by
MDI
during
macro
program
execution
Interrupt
the
operation
by
single-block,
stop
and
make
sure
that
variable
can
be
rewritten.
Local
variables
can
be
used
in
a
subprogram,
too.
In
this
case,
the
local
variables
that
can
be
used
are
those
of
the
current
macro
level.
However,
when
a
subprogram
is
called,
argument
cannot
be
specified.
When
a
subprogram
returns
by
instruction
of
M99,
the
local
variable
of
the
current
macro
level
is
not
(blank)
either.
1
2
3
4
5
Fig.
2.14.4
Local
Variable
-
255
-

Table of Contents

Related product manuals