Siemens SINUMERIK 840Di sl Programming Manual page 60

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Comparison and logic operators
Comparison and logic
operators
==
<>
>
<
>=
<=
AND
OR
NOT
XOR
In arithmetic expressions, the execution order of all the operators can be specified by
parentheses, in order to override the normal priority rules.
value assignments
Values can be assigned to the addresses. The method of value assignment depends on the
type of address identifier.
An "=" sign must be inserted between the address identifier and the value if
• The address identifier comprises more than one letter,
• The value includes more than one constant.
The "="-sign can be omitted if the address identifier is a single letter and the value consists
of only one constant. Signs are allowed and separators are permitted after the address letter.
Example of value assignments
X10
X1=10
FGROUP(X1, Y2)
AXDATA[X1]
AX[X1]=10
X=10*(5+SIN(37.5)
)
60
Meaning
Equal to
Not equal to
Greater than
Less than
Greater than or equal to
Less than or equal to
AND
OR
Negation
Exclusive OR
;Value assignment (10) to address X, "=" not required
;Value assignment (10) to address (X) with
;numeric extension (1), "=" required
;Axis names from passed parameters
;Axis name as an index when accessing axis data
;Indirect axis programming
;Value assignment by means of a numeric expression
;"=" required
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents