Round; Match - Siemens SINUMERIK 840D sl Operating Manual

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

Advertisement

Create MyConfig - Expert
4.6 Script language
Figure 4-86
4.6.10.8

Round

Round("<value>", "<precision>")
Values can be rounded using the Round function.
The <value> argument describes the identifier (Up variable, machine data, NC data, drive
data, display data, etc.), having a value that is to be rounded.
The number of places to be rounded to is specified via the argument <precision>. The
rounded value is assigned to the specified variable. All identifiers having values that can be of
the corresponding result format of the function are permitted as variables (Up variables,
machine data, NC data, drive data, display data, etc.).
Round("<value>", "<precision>")
4.6.10.9

Match

Match("<string>","<pattern>")
The function Match searches in the character string ("<string>") according to the search
pattern ("<pattern>"), which is specified via regular expressions.
Regular expressions are used as search pattern.
Example
Up.NCU = match("NCU720.3 PN", "NCU([0-9]+)") -> "720"
Up.NCU = match(Up.$Env.NCU, "NCU([0-9.]+)") -> "720.3"
268
Example of buttons displayed one below the other
Up.pVerst = round(0.12345, 3) -> 0.123
Up.pVerst = round(p1460[0], 2) -> 0.62
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents