Herunterladen Diese Seite drucken

Siemens SINUMERIK 840D sl Inbetriebnahmehandbuch Seite 741

Basesoftware und bedien-software
Vorschau ausblenden Andere Handbücher für SINUMERIK 840D sl:

Werbung

Funktionsname
MMC Fortsetzung
Easy XML
Programmierhandbuch, 12/2018, A5E40869575 AC
Bedeutung
Beispiel extrahieren von Skriptanteilen aus einem Teileprogramm:
Durch Änderungen im Operate-Base-System sind die Parameter wie
folgt:
XML → CYCLES oder POPUPDLG
XML_ON → PICTURE_ON
XML_OFF → PICTURE_OFF
NC-Anweisung
MMC("XML,XML_ON,XMLDIAL_EMB.XML,main","S")
Datei: xmldial_emb.xml
<DialogGui>
<let name="menu_name" type="string">main</let>
<let name="script_loaded">0</let>
<menu name = "main">
<if>
<condition>script_loaded == 0</condition>
<then>
<function name ="load_current_program" />
<dynamic_include src="__tmp.xml" />
<op>
script_loaded = 1;
</op>
<navigation>$$$menu_name</navigation>
</then>
</if>
<softkey_back>
<close_form />
</softkey_back>
</menu>
<function_body name ="load_current_program" >
<let name="prog_name" type= "string"/>
<let name="contents" type= "string"/>
<let name="entry" type= "string"/>
<let name="len" />
<op> prog_name = "nck/Channel/ProgramInfo/
workPandProgName"</op>
<function name="DOC.LOADSCRIPT"
return="contents">prog_name, _T"main_dialog",
entry</function>
<function name="string.length"
return="len">contents</function>
<if>
<condition>len > 0</condition>
<then>
<op>
menu_name = entry;
</op>
<function name="doc.writetofile" >_T"__tmp.xml",
contents</function>
</then>
</if>
</function_body>
</DialogGui>
Anwenderdialoge erstellen
1.10 Vordefinierte Funktionen
157

Quicklinks ausblenden:

Werbung

loading

Diese Anleitung auch für:

Sinumerik 840de sl