Mathround; Version - Siemens SINUMERIK 840D sl Operating Manual

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

4.6.12.9

MathRound

MathRound(<value>, <precision>)
The MathRound() function rounds values.
Note
Compatibility
The function name has been changed from Round() to MathRound().
For compatibility reasons, the Round() function name is still tolerated in this CMC version.
Round() will no longer be supported in subsequent CMC versions.
Only use the MathRound() function. Change all earlier calls to this new function name.
Example
The <value> argument designates the identifier, e.g. Up variable, machine data, NC data,
drive data, display data, whose value is to be rounded.
Specify the number of places to be rounded to via the <precision> argument. The rounded
value is assigned to the specified variable. All identifiers, which have values that can be of the
corresponding result format of the function are permitted as variables, e.g. Up variables,
machine data, NC data, drive data, display data.
Round(<value>, <precision>)
4.6.12.10

Version

Version(<area>, "<app>")
The Version() function determines the version of an installed application.
The <area> argument specifies from which control area the version is determined. Possible
values for <area> are NCU or PCU.
Observe that only those versions which have also been activated in the project folder when
the package was configured can be queried in the areas.
For package area PCU, all SIEMENS applications installed on the PCU entered in the PCU
registry with key HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\AUTSW are determined.
For package area NCU/PPU, the versions are determined from the /siemens/
versions.xml file.
The <app> argument specifies the application whose version is queried. If the version of the
specified application <app> cannot be determined, the function returns the value null. In this
way, it is possible to react when a version cannot be found.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Up.pVerst = round(0.12345, 3) -> 0.123
Up.pVerst = round(p1460[0], 2) -> 0.62
Create MyConfig - Expert
4.6 Script language
331

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents