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]
Содержание CNC 8070
Страница 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 12: ......
Страница 14: ......
Страница 16: ......
Страница 22: ......
Страница 26: ......
Страница 28: ......
Страница 30: ......
Страница 32: ......
Страница 34: ......
Страница 54: ...Programming manual 20 CNC 8070 1 CREATING A PROGRAM Parameters constants and expressions SOFT V02 0X 20...
Страница 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Страница 154: ...Programming manual 120 CNC 8070 6 TOOL PATH CONTROL Manual intervention G200 G201 G202 SOFT V02 0X 120...
Страница 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Страница 188: ...Programming manual 154 CNC 8070 8 ADDITIONAL PREPARATORY FUNCTIONS Probing G100 SOFT V02 0X 154...
Страница 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Страница 446: ...Programming manual 412 CNC 8070 14 CNC VARIABLES Alphabetical listing of variables SOFT V02 0X 412...
Страница 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...