EasyManua.ls Logo

Siemens SINUMERIK 840Di sl - Page 60

Siemens SINUMERIK 840Di sl
560 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Fundamentals
60 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Comparison and logic operators
Comparison and logic
operators
Meaning
== Equal to
<> Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
AND AND
OR OR
NOT Negation
XOR Exclusive OR
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
;Value assignment (10) to address X, "=" not required
X1=10
;Value assignment (10) to address (X) with
;numeric extension (1), "=" required
FGROUP(X1, Y2)
;Axis names from passed parameters
AXDATA[X1]
;Axis name as an index when accessing axis data
AX[X1]=10
;Indirect axis programming
X=10*(5+SIN(37.5)
)
;Value assignment by means of a numeric expression
;"=" required

Table of Contents

Other manuals for Siemens SINUMERIK 840Di sl

Related product manuals