Dialogs - Siemens SINUMERIK 840D sl Operating Manual

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
;If alarm texts exist
if Up.alarmTextMax != null
;Output all available alarm texts
while Up.alarmTextIndex <= $(Up.alarmTextMax)
;Determine the i-th alarm text
Up.xpathAlarmtext = "/TS/message[$(Up.alarmTextIndex)]/
translation/text()"
;Use of the XPath expression on the input file with QueryXml
Up.valAlarmtext = QueryXml( Up.pathToInput, Up.xpathAlarmtext)
;If the alarm text was found, it will be output
if Up.valAlarmtext != null
endif
;Alarmtext-Index um 1 erhöhen
Up.alarmTextIndex += 1
endwhile
endif
Content of the output file "Example3\Output.txt":
Alarmtext[1] found: Axes not referenced, tool changer locked
Alarmtext[2] found: Tool changer not available!
Alarmtext[3] found: Something else not available!
4.6.10

Dialogs

You can use the functions described for Create MyConfig in:
● Dialog scripts
● Step scripts
● Action scripts
● Manipulation tasks
● Change tasks in the "Preprocessor script" mode
308
TraceToFile(Up.pathToOutput,"Alarmtext[$(Up.alarmTextIndex)]
gefunden: $(up.valAlarmtext)")
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