String Concatenation (Concatenate-Operator) - 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
The following rules must be observed when using the replacement operator:
● It can only be used with package variables, see Package variables (Page 247).
● During replacement, inverted commas are removed from string values.
● It can be nested.
The replacement operator can, for example, be used in the following, in:
● Sections, e.g.: [$(up.doX.pspath)] or [B3_S$(Up.slave)_PS$(Up.doNr)]
● Operations under Manipulate and Change, e.g.: $MA_MAX_AX_VELO[AX$
(UP.AXNr)]=1000
● Control structures under Manipulate, e.g.: If p107[$(Up.i)] == 254
● Step scripts, e.g.: Version(PCU, "HMI Advanced")>=$(Up.HMI)
● Functions and procedures under Manipulate, e.g.:
MSG("Machine number: $(Up.Masch_Nr)")
● Command lines for "Execution of:", e.g.: Setup.exe > Log_$(Up.Masch_Nr).txt
● Message texts of the steps, e.g.: "The machine number is: $(Up.Masch_Nr)"
Note
Instruction lines in which a replacement operator is used cannot be checked for correct
syntax in a verification run.
Note
The replacement operator can not be used in the property fields of the configuration
(register package, dialogs, steps).
4.6.9.6

String concatenation (Concatenate-Operator)

The string concatenation operator can be used to create combinations of constant strings and
variables into a resulting string.
This operator is mainly intended for the assignment of UP variablesfor their use in functions
or procedures with string parameters.
The string concatenation operator can also be directly used in functions (Page 257) and
procedures (Page 279). Exceptions include Prepare and Patch; in this case, the string
concatenation operator cannnot be used.
Example
Up.real = 12.34
Up.text = "units"
Up.para = "Value of Up.real: " << Up.real << " " << Up.text
Log(Up.para)
256
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