
Programming manual.
CNC 8070
1.
CR
EA
TING A PROGRAM.
Arithmetic and
l
ogic expre
s
si
ons.
·52·
(R
EF
: 1709)
1.12
Arithmetic and logic expressions.
An expression is any valid combination of operators, constants, parameters and variables.
Expressions may be used to program the numerical portion of any function, statement, etc.
The priorities of the operators and the way they can be associated determine how these
expressions are calculated:
Brackets should be used in order to clarify the order in which the expression is to be
evaluated. Using redundant or additional brackets will neither cause errors nor slow down
the execution.
P3 = P4/P5 - P6 * P7 - P8/P9
P3 = [P4/P5] - [P6 * P7] - [P8/P9]
Arithmetic expressions.
Their result is a numerical value. They consist of a combination of arithmetic and binary
operators with constants, parameters and variables.
This type of expressions may also be used to assign values to parameters and variables:
P100 = P9
P101 = P[P7]
P102 = P[P8 + SIN[P8*20]]
P103 = V.G.TOOL
V.G.FIXT[1].X=20
V.G.FIXT[1].Y=40
V.G.FIXT[1].Z=35
Relational expressions.
Their result is a TRUE or a FALSE. They combine relational and logic operators with
arithmetic expressions, constants, parameters and variables.
... [P8==12.6] ...
It compares if the value of P8 is equal to 12.6.
... ABS[SIN[P4]] > 0.8 ...
It compares if the absolute value of the sine of P4 is greater than 0.8.
... [[P8<=12] + [ABS[SIN[P4]] >=0.8] * [V.G.TOOL==1]] ...
Priority from highest to lowest
To be associated
Functions, - (change sign)
from right to left.
** (exponent), MOD (remainder)
from left to right.
* (multiplication, logic AND), / (division)
from left to right.
+ (suma, OR lógico), - (resta)
from left to right.
Relational operators
from left to right.
& (AND),^ (XOR)
from left to right.
| (OR)
from left to right.
Summary of Contents for 8070 BL
Page 1: ... Ref 1709 8070 CNC Programming manual ...
Page 8: ...BLANK PAGE 8 ...
Page 12: ...BLANK PAGE 12 ...
Page 14: ...BLANK PAGE 14 ...
Page 26: ...BLANK PAGE 26 ...
Page 28: ...BLANK PAGE 28 ...
Page 30: ...BLANK PAGE 30 ...
Page 60: ...Programming manual CNC 8070 2 MACHINE OVERVIEW Home search 60 REF 1709 ...
Page 72: ...Programming manual CNC 8070 3 COORDINATE SYSTEM Coordinate programming 72 REF 1709 ...
Page 96: ...Programming manual CNC 8070 5 ORIGIN SELECTION Polar origin preset G30 96 REF 1709 ...
Page 178: ...Programming manual CNC 8070 9 TOOL PATH CONTROL MANUAL INTERVENTION Variables 178 REF 1709 ...
Page 304: ...Programming manual CNC 8070 16 C AXIS Machining of the turning side of the part 304 REF 1709 ...
Page 442: ...Programming manual CNC 8070 23 CNC VARIABLES 442 REF 1709 ...
Page 443: ...Programming manual CNC 8070 443 User notes REF 1709 ...