Siemens sinumerik 840d Programming Manual page 42

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.7
Comparison and logic operators
840D
840D
NCU 571
NCU 572
NCU 573
Logic operators
Logic operators are used to logically combine truth
values.
AND, OR, NOT and XOR can generally only be used
on variables of type BOOL, however, they can also
be used on the data types CHAR, INT and REAL by
means of implicit type conversion.
Spaces must be inserted between Boolean
operands and operators.
In logic (Boolean) operations the following applies to
the data types BOOL, CHAR, INT and REAL:
0 is equivalent to FALSE
not equal to 0 is equivalent to TRUE
Meaning of the logic operators
AND
OR
NOT
XOR
Parentheses can be used in arithmetic expressions
to define the order of execution for all operators and
thus to override the normal priority rules.
Programming example
IF (R10<50) AND ($AA_IM[X]>=17.5) GOTOF DEST
IF NOT R10 GOTOB START
NOT refers only to an operand.
1-42
FM-NC
810D
840Di
AND
OR
NOT
Exclusive OR
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents