Siemens SINUMERIK Commissioning Manual page 460

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.8 Operators
2.8
Operators
2.8
Overview
The following operators can be used when programming:
● Mathematical operators
● Relational operators
● Logic (Boolean) operators
● Bit operators
● Trigonometric functions
2.8.1
Mathematical operators
Overview
Mathematical operators
+
-
*
/
MOD
( )
AND
OR
NOT
ROUND
Example:
ROUND
The ROUND operator is used to round off numbers with up to 12 decimal places during
execution of a dialog configuration. The variable fields cannot accept the decimal places in
the display.
Use
ROUND is controlled by the user with two parameters:
VAR1 = 5,2328543
VAR2 = ROUND( VAR1, 4 )
Result:
2-110
VAR1.VAL = 45 * (4 + 3)
VAR2 = 5,2339
Identifier
Addition
Subtraction
Multiplication
Division
Modulo operation
Parentheses
AND operator
OR operator
NOT operator
Round off numbers with decimal places
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents