Siemens SINUMERIK 828D Commissioning Manual page 867

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Function name
MMC continued
Easy XML
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Description
Example of extraction of script parts from a part program:
Due to changes in the operate base system, the parameters are as
follows:
XML → CYCLES or POPUPDLG
XML_ON → PICTURE_ON
XML_OFF → PICTURE_OFF
NC instruction
MMC("XML, XML_ON, XMLDIAL_EMB.XML, main","S")
File: 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>
Generating user dialogs
1.9 Predefined functions
115

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents