Siemens SINUMERIK 840D sl Operating Manual page 304

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
Note
Warning in the logbook if the file is not an XML file
If the specified file is not an XML file, the function behaves as if the specified path is invalid.
The function provides the return value "Null" and writes the message of the invalid path as
warning in the logbook.
Command line example
Up.valCustomerId = QueryXml( "/card/user/sinumerik/hmi/data/version/
identity.xml", "/Config_Identity/Addresses/Manufacturer/ Customer-
Id/text()")
Example 1
The content of the "Customer-Id" element should be read from the "identity.xml" file and written
in a file.
The content of the "identity.xml" file:
<Config_Identity>
<Machine>
</Machine>
<Addresses>
</Addresses>
</Config_Identity>
Content of the script:
;Initialization of the output file (text)
Up.pathToOutput = "Example1\Output.txt"
;If the output file exists on the RTS, it will be deleted
if FileExist(RTS,Up.pathToOutput)
FileDelete(RTS,Up.pathToOutput)
endif
304
<Type>L121234</Type>
<Manufacturer>
<Customer-Id>35683568</Customer-Id>
<Name>Manufacturer Co.</Name>
<Street>Manufacturer Street</Street>
<ZIP-Code>0815</ZIP-Code>
<Location>UBSA</Location>
<Country ID="FI">Finland</Country>
</Manufacturer>
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents