Siemens SINUMERIK 840D sl Programming Manual page 386

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Fundamentals
2.15 Other information
Operator
/
DIV
MOD
Note
Only variables of the same type may be linked by these operations.
Relational operators
Operator
==
>
<
>
<=
>=
Boolean operators
Operator
NOT
AND
OR
XOR
Bit logic operators
Operator
B_OR
B_AND
B_XOR
B_NOT
386
Meaning
● Division in synchronous actions: INT / INT ⇒ INT
● Division in synchronous actions with REAL result by using the function ITOR():
ITOR( INT ) / ITOR( INT ) ⇒ REAL
● Division in NC programs: INT / INT ⇒ REAL
Integer division: INT / INT ⇒ INT
Modulo division (only for type INT) supplies remainder of an INT division
Example: 3 MOD 4 = 3
Meaning
Equal to
Not equal to
Less than
Greater than
Less than or equal to
Greater than or equal to
Meaning
NOT
AND
OR
Exclusive OR
Meaning
Bit-by-bit OR
Bit-by-bit AND
Bit-by-bit exclusive OR
Bit-by-bit negation
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents