Program code Comment
END:
...
Example 2
The display time of a dialog is defined in the NC program via a dwell time, for example.
Program code Comment
F1000 G94
...
MMC("POPUPDLG,PICTURE_ON,xmldial_emb.xml,main","N") ; Display dialog
X200
Z40
MMC("POPUPDLG,PICTURE_OFF","N") ; Close dialog
Example 3
Embedding a popup script in an NC program and its use.
Program code
PROC POPUP_TEST
; ----------------------------- Script -----------------------------
; <main_dialog entry="rpara_main">
; <let name="xpos" />
; <let name="ypos" />
; <let name="field_name" type="string" />
; <let name="num" />
; <menu name="rpara_main">
; <open_form name="rpara_form"/>
; <softkey_back>
; <close_form />
; </softkey_back>
; </menu>
; <form name="rpara_form">
; <init>
; <caption>mask from NC part program</caption>
; <let name="count" >0</let>
; <op>
; xpos = 120;
; ypos = 34;
; "nck/Channel/Parameter/R[10]" = 10;
; </op>
; <!-- load the number of controls -->
; <op>
; num = "nck/Channel/Parameter/R[10]";
; </op>
; <while>
Work preparation
3.23 Additional functions
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 995