Logical and Comparative Terms

LOGICAL TERMS

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

Statement

Symbol

True/false Table

OR

¦

0-0= False

 

 

0-1

= True

 

 

1-0

= True

 

 

1-1

= True

 

 

 

EXCLUSIVE

^

0-0= False

OR

 

0-1= True

 

 

1-0= True

 

 

1-1

= False

 

 

 

AND

&

0-0= False

 

 

0-1= False

1-0= False

True

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.

11.4 Advanced Programming

ACU-RITE 3500i

425

Page 451
Image 451
Acu-Rite CNC 3500i user manual Logical and Comparative Terms, Statement Symbol True/false Table, 425