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...
2.14
MACROPROGRAM
(G65,
G66,
G67)*(Cont’d)
2.14.6
Arithmetic
Commands
By
performing
general
arithmetic
operations
in
which
local
variables,
common
variables,
system
variables,
and
constants
are
-combined
with
operations
or
functions,
it
is
possible
to
substitute
the
results
of
operation
for
a
given
variable.
Using
variables
in
these
arithmetic
operations
means
reading
the
required
data
from
the
internal
variable
data
area,
and
substituting
the
results
of
operation
means
writing
the
operation
result
data
into
the
internal
variable
data
area.
The
write
cycle
is
completed
when
the
execution
of
one
block
is
completed.
The
basic
formula
of
arithmetic
operation
is
#i
=
(expression).
:
The
following
operations
and
functions
can
be
used:
(1)
Definition
or
replacement
of
variable
#i=#j
Definition
or
replacement
#i=#
C#j
=
#kl
Indirect
specification
(2)
Add
calculations
#i
=
#j
+
#k
Sum
Difference
#i=#jOR#k
Logical
sum
(for
each
bit
in
binary
32
bits)
Exclusive
logical
sum
(for
each
bit
in
binary
32
bits)
#i=#j.\OR#k
(3)
Multiply
calculations
Product
Si
=
»j*#k
Quotient
#i=#j
#k
#i=#jAND#k
Logical
product
(for
each
bit
in
binary
32
bits)
Residue
(For
#j
and
ffk.
the
residue
is
obtained
after
being
rounded
to
an
integer.
If
#j
is
negative,
#i
also
becomes
negative.)
#i
-#jMOD#k
286
-

Table of Contents

Related product manuals