Stringsubstr; File Operations; Tracetofile - Siemens SINUMERIK 840D sl Operating Manual

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

Advertisement

Example
Use the name of the input archive for the name of the package execution logbook.
Up.$Dialog.PackageEnd.LogName = StringReplace(Up.
$Dialog.ArcSelection.ArchiveIn, "\.arc","")
The use of an ""NC.ARC"" input archive by this instruction produces the "NC.htm" logbook.
As the file extension is replaced with an empty string and the package automatically adds the
"*.htm" extension when the logbook is saved.
4.6.8.5

StringSubStr

StringSubStr("<string>", <pos>, <len>)
The StringSubStr() function returns a subcharacter string from the <string> character
string, which starts at the <pos> position and has the length <len>.
The <pos> and <len> arguments are of the decimal number type.
Note that the first character in the <string> is on the 0 position. Spaces in the <string>
are also characters, non-printable characters.
If the subcharacter string was not found, a "" empty string is returned.
Example
Up.Str=StringSubStr("Ingenuity for life", 0, 9)
Up.Str=StringSubStr("Ingenuity for life", 10, 3)
Up.Str=StringSubStr("Ingenuity for life", 30, 9)
Up.Str=StringSubStr("Ingenuity for life", 0, 0)
If Up.Str == ""
MSG("No subcharacter strings found!")
EndIf
4.6.9

File operations

4.6.9.1

TraceToFile

TraceToFile("<path>", "<string>")
The TraceToFile() procedure adds a <string> character string to a <path> file.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Create MyConfig - Expert
4.6 Script language
; Up.Str =
"Ingenuity"
; Up.Str = "for"
; Up.Str = ""
; Up.Str = ""
293

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents