Logical and comparative terms – ACU-RITE CNC 3500i User Manual

Page 453

Advertising
background image

ACU-RITE 3500i

427

1

1

.4 A

d

v

a

nced Pr

ogr

a

mming

Logical and Comparative Terms

LOGICAL TERMS

All logical operations can be carried out using the following command
characters or combinations of characters.

COMPARATIVE TERMS

You can compare variables with variables and variables with constants
using equality and inequality operators.

N740 IF (#130 = #360) THEN (or GOTO)

N710 ------------

-- --

-- --

-- --

-- --

N740 IF (#120 = #125) THEN (or GOTO)

Block N700 compares the contents of variable #120 with the contents
of variable #125. If the contents are equal, then the expression is true
and THEN or GOTO directs the program. Otherwise, the expression is
false. At Block N740, the contents of variable #130 are compared with
the constant 360. The result of the comparison is identical to the first
case.

Statement

Symbol

True/false Table

OR

¦

0-0= False
0-1 = True
1-0 = True
1-1 = True

EXCLUSIVE
OR

^

0-0= False
0-1= True
1-0= True
1-1 = False

AND

&

0-0= False
0-1= False
1-0= False
True

Advertising