Siemens SINUMERIK 840D sl Operating Manual page 305

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

Advertisement

;Initialization of the input file (XML)
Up.pathToInput = "/card/user/sinumerik/hmi/data/version/
identity.xml"
;If the input file does not exist on the NCU,
;"Input file not found!" is output
if !FileExist(NCU,Up.pathToInput)
TraceToFile(Up.pathToOutput,"Input file not found!")
endif
;Initialization of the XPath expression
Up.xpathCustomerId = "/Config_Identity/Addresses/Manufacturer/
Customer-Id/text()"
;Use of the XPath expression on the input file with QueryXml
Up.valCustomerId = QueryXml( Up.pathToInput, Up.xpathCustomerId)
;If the Customer ID was found, it will be output
if Up.valCustomerId != null
TraceToFile(Up.pathToOutput,"Customer-Id gefunden: $
(up.valCustomerId)")
endif
Contents of the "Example1\Output.txt" output file after executing the script:
Customer ID found: 35683568
Example 2
A specific alarm text from the "alarmtxt_nculin_deu.ts" input file should be found and
its translation output as a file.
Extract from the input file"alarmtxt_nculin_deu.ts":
<TS>
[...]
<message>
</message>
[...]
</TS>
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
<source>510104/PLC/PMC</source>
<translation>Axes not referenced, tool changer locked</
translation>
Create MyConfig - Expert
4.6 Script language
305

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents