EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 810D

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 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
Page #84 background imageLoading...
Page #84 background image
Flexible NC programming
1.24 ROUNDUP: Round up
Job planning
1-70 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Example
N10 DEF INT ERROR
N20 DEF STRING[16] MY_CHECKSUM
N30 DEF INT MY_VAR[4,4]
N40 MY_VAR=...
N50 ERROR=CHECKSUM (CHECKSUM;"MY_VAR", 0, 2)
...
returns in MY_CHECKSUM the value "A6FC3404E534047C"
1.24 1.24 ROUNDUP: Round up
Function
The ROUNDUP function returns for
• positive input values
the next larger integer
• negative input values
the next smaller integer
If the input value is an integer type value (a whole number), the value is returned unmodified.
Programming
ROUNDUP(Variable Real)
Parameters
ROUNDUP Rounds up to the next larger integer (observing the
sign).
Variable Input value of the type real
Real Variables type for fractions containing decimal points
ROUNDUP in the NC parts program
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])
Examples
ROUNDUP(3.1) produces 4.0
ROUNDUP(3.6) produces 4.0
ROUNDUP(-3.1) produces -3.0
ROUNDUP(-3.6) produces -3.0
ROUNDUP(3.0) produces 3.0
ROUNDUP(3) produces 3.0

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals