YASKAWA yasnac i80m Instruction Manual page 312

Cnc system for machining centers
Table of Contents

Advertisement

2.14
MACROPROGRAM
(G65,
G66, G67)K(Cont'd)
(6)
Altering
the
sequence
of
operations by
( ]
By enclosing a
part
with
[
]
,
it is
possible
to
perform
the calculation
of that
part
over the other
parts.
[
]
can be used
for
up
to
five
duplications including the function
[ )
(Example)#
i
=
SIN
£[[#j+#k) *#l
+
#m)
*#r0
:
PRIORITY
©
©
©
©
!
NOTE
O
Constants
without
the
decimal
point used
in
(expression) arc
assumed
to
have
the decimal
point
at
the end
of the
constant.
The
constant
values that
can
be used
in
(expression)
are
±
99991)
999.9H99999
/
S
digits befor
thr'i
/7
digits alter
the\
decimal point
I
(decimal
point
/
©
Although
function ROUND
converts
numbers into
integers by rounding
them
to
the
nearest
whole
number,
the
digits that
are
rounded off are
as
follows:
(a)
If used
in
an
operation command,
conditional
expression
IF or WHILE, the
digits
after the decimal
point are rounded off.
(b)
If
used
in
address
data,
the
digits
less
than
the minimum
setting unit of that
address are rounded
off.
_
(Example
1)
When :8 10 = 12.3758
81 =
ROUND
(8101
becomes
81
=
12.0.
ROUND
[810J
in IF
[8
10 GT ROUND
(810)1
is 12.0.
(Example
2)
When
8 10 =
12.3758
GOO X
[ROUND ( 8 10) )
:
(assuming
that the
minimum
setting
unit
is 0.001
mml
is
equivalent
to
GOO X12.376.
©
The numeric data handled in
macroprograms
are
in
a
floating point
format.
M
*2E
M: one sign bit
+
52-bit
binary
data
E:
one
sign
bit
+
10-bit
binary
data
When single block
input
is on
When the
single block -input
(SBK)
is
on,
calculation commands
are controlled
by
pm0007 D1 as
follows:
pmOOOT
D1=0: Do
not stop
in single-block.
I:
Stop in single-block.
-
288
-

Advertisement

Table of Contents
loading

Table of Contents