·392·
Programming manual
CNC 8055
CNC 8055i
13.
HIGH-LEVEL LANGUAGE
PR
OGRAMMING
·M· & ·EN· M
ODELS
S
OFT
: V02.2
X
Expressions
13.5
Expressions
An expression is any valid combination of operators, constants, parameters and variables.
All expressions must be placed between brackets, but if the expression is reduced to an integer,
the brackets can be removed.
13.5.1
Arithmetic expressions
These are formed by combining functions and arithmetic, binary and trigonometric operators with
the constants and variables of the language.
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.
(P3 = P4/P5 - P6 * P7 - P8/P9 )
(P3 = (P4/P5)-(P6 * P7)-(P8/P9))
Using redundant or additional brackets will neither cause errors nor slow down the execution.
In functions, brackets must be used except when these are applied to a numerical constant, in which
case they are optional.
(SIN 45) (SIN (45))
they're both valid and equivalent.
(SIN 10+5)
the same as ((SIN 10)+5).
Expressions can be used also to reference parameters and tables:
(P100 = P9)
(P100 = P(P7))
(P100 = P(P8 + SIN(P8 * 20)))
(P100 = ORGX 55)
(P100 = ORGX (12+P9))
(PLCM5008 = PLCM5008 OR 1)
; Selects single block execution mode (M5008=1)
(PLCM5010 = PLCM5010 AND $FFFFFFFE)
; Frees feedrate override (M5010=0)
Priority from highest to lowest
To be associated
NOT, functions, - (negative)
from right to left.
EXP, MOD
from left to right.
* , /
from left to right.
+,- (add, subtract)
from left to right.
Relational operators
from left to right.
AND, XOR
from left to right.
OR
from left to right.
Содержание 8055 EN
Страница 1: ...CNC 8055 M EN Programming manual Ref 1711 Soft V02 2x...
Страница 8: ...8 Programming manual CNC 8055 CNC 8055i SOFT V02 2X...
Страница 12: ...12 CNC 8055 CNC 8055i Declaration of conformity and Warranty conditions...
Страница 16: ...16 CNC 8055 CNC 8055i Version history...
Страница 22: ...22 CNC 8055 CNC 8055i Returning conditions...
Страница 24: ...24 CNC 8055 CNC 8055i Additional notes...
Страница 26: ...26 CNC 8055 CNC 8055i Fagor documentation...
Страница 238: ...238 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 2D pockets...
Страница 284: ...284 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 3D pockets...
Страница 336: ...336 Programming manual CNC 8055 CNC 8055i 12 PROBING M EN MODELS SOFT V02 2X PROBE 12 Tabletop probe calibration...
Страница 394: ...394 Programming manual CNC 8055 CNC 8055i 13 HIGH LEVEL LANGUAGE PROGRAMMING M EN MODELS SOFT V02 2X Expressions...
Страница 442: ...442 Programming manual CNC 8055 CNC 8055i 15 COORDINATE TRANSFORMATION M EN MODELS SOFT V02 2X TCP Transformation G48...
Страница 448: ......
Страница 454: ...454 Programming manual CNC 8055 CNC 8055i B M EN MODELS SOFT V02 2X Program control instructions...
Страница 462: ...462 Programming manual CNC 8055 CNC 8055i C M EN MODELS SOFT V02 2X Summary of internal CNC variables...
Страница 463: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 463 Key code KEY CODE Alpha numeric keyboard and monitor...
Страница 464: ...464 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 465: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 465 Key code Alphanumeric operator panel...
Страница 466: ...466 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code MC operator panel...
Страница 467: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 467 Key code...
Страница 468: ...468 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 469: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 469 Key code MCO TCO operator panel...
Страница 470: ...470 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code Alphanumeric keyboard...
Страница 471: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 471 Key code 11 LCD Monitor...
Страница 472: ...472 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 478: ...478 Programming manual CNC 8055 CNC 8055i F M EN MODELS SOFT V02 2X Maintenance...
Страница 479: ...Programming manual CNC 8055 CNC 8055i F SOFT V02 2X 479...
Страница 480: ...480 Programming manual CNC 8055 CNC 8055i F SOFT V02 2X...
Страница 481: ......