EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
822 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...
Flexible NC programming
1.24 Roundup (ROUNDUP)
Job planning
148 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
1.24 Roundup (ROUNDUP)
Function
Input values, type REAL (fractions with decimal point) can be rounded up to the next higher
integer number using the ROUNDUP" function.
Syntax
ROUNDUP(<value>)
Significance
ROUNDUP: Command to roundup an input value
<value>: Input value, type REAL
Note
Input value, type INTEGER (an integer number) are returned unchanged.
Examples
Example 1: Various input values and their rounding up results
Example Rounding up result
ROUNDUP(3.1)
4.0
ROUNDUP(3.6)
4.0
ROUNDUP(-3.1)
-3.0
ROUNDUP(-3.6)
-3.0
ROUNDUP(3.0)
3.0
ROUNDUP(3)
3.0
Example 2: ROUNDUP in the NC program
Program code
N10 X=ROUNDUP(3.5) Y=ROUNDUP(R2+2)
N15 R2=ROUNDUP($AA_IM[Y])
N20 WHEN X=100 DO Y=ROUNDUP($AA_IM[X])
...

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals