Programming manual
CNC 8055
CNC 8055i
HIGH-LEVEL LANGUAGE PROGRAMMING
13.
·M· & ·EN· MODELS
SOFT: V02.2X
·393·
Expressions
13.5.2 Relational expressions
These are arithmetic expressions joined by relational operators.
(IF (P8 EQ 12.8)
; It checks if the value of P8 is equal to 12.8.
(IF (ABS(SIN(P24)) GT SPEED)
;Analyzes if the sine is greater than the spindle speed.
(IF (CLOCK LT (P9 * 10.99))
; Analyzes if the clock count is less than (P9 * 10.99)
At the same time these conditions can be joined by means of logic operators.
(IF ((P8 EQ 12.8) OR (ABS(SIN(P24)) GT SPEED)) AND (CLOCK LT (P9 * 10.99)) ...
The result of these expressions is either true or false.