
Programming manual
20
CNC 8070
1.
CREATI
N
G A
P
R
OGRAM
Par
a
m
e
te
rs
,
c
onst
ant
s and expr
ess
ion
s
(S
OFT
V02.0
X
)
16
1.5.2
Operators and functions
An operator is a symbol that indicates the mathematical or logic
operations to carry out. The CNC offers the following types of
operators.
Arithmetic
To perform arithmetic operations.
In the operation, when using the parameter or variable storing the
result, the add, subtract, multiply and divide operators may be used
as follows:
Relational
Used for doing comparisons.
Binary
Used for doing binary comparisons between constants and/or
arithmetic expressions.
If the constant or the result of the arithmetic expression is a decimal
number, the decimal portion will be ignored.
+
Add
P1 = 3+4
P1=7
-
Subtract
Change sign
P2 = 5-2
P2 = -[3+4]
P2=3
P2 = -7
*
Multiply
P3 = 2*3
P3=6
/
Divide
P4 = 9/2
P4=4.5
MOD
Module or remainder of a division
P5 = 5 MOD 2
P5=1
**
Exponent
P6 = 2**3
P6=8
+=
Compounded addition
P1 += 3
P1=P1+3
-=
Compounded subtraction
P2 -= 5
P2=P2-5
*=
Compounded multiplication
P3 *= 2
P3=P3*2
/=
Compounded division
P4 /= 9
P4=P4/9
==
Equal to
P1 == 4
!=
Different from, other than
P2 != 5
>=
Greater than or equal to
P3 >= 10
<=
Smaller than or equal to
P4 <= 7
>
Greater than
P5 > 5
<
Smaller than
P6 < 5
&
Binary AND
P 1 = P 1 1 &
P12
|
Binary OR
P2 = P21 | P22
^
Exclusive OR (XOR)
P 3 = P 3 1 ^
P32
INV[...]
Inverse
P4 = INV[P41]
Summary of Contents for CNC 8070
Page 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Page 2: ......
Page 4: ......
Page 6: ......
Page 12: ......
Page 14: ......
Page 16: ......
Page 22: ......
Page 26: ......
Page 28: ......
Page 30: ......
Page 32: ......
Page 34: ......
Page 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Page 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Page 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Page 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...