G-code
Special commands
DlgMsg
3min
please note that mentioned commands may fail during loading and/or simulation to make your macro code avoid these errors please take a look at the manual section run behavior during loading of job file and simulation docid\ p2jh9ffrvp0wcb5jcd9px opens a dialog window that the operator can interact with the dialog can be used to input up to 12 variables docid\ oqhjs3llcfqksac cemc2 values the dialog will show the current values of the specified variables the specified variable values are changed according to the users' input once the dialog is submitted dlgmsg \<dialog name> \<variable1 text> \<variable1 number> \<variable12 text> \<variable12 number> the dialog has an ok and a cancel button when the user selects ok, variable #5398 is set to 1 when the user selects cancel, variable #5398 is set to 1 during the job loading process, the dialog display is skipped and #5398 is automatically set to the value of 1 the macro can give the queried variables a value before the dlgmsg command takes place which will serve as a default value the macro file can then query check these variables and proceed accordingly if \<dialog name> png file exists in the dialogpictures directory located inside the installation directory then it will be displayed in the dialog example dlgmsg "please input job parameters" width 100 height 101 sub user 3 ;example of dlgmsg \#1 = 0 \#2 = 0 \#3 = 0 \#4 = 0 \#5 = 0 \#6 = 0 \#7 = 0 \#8 = 0 \#9 = 0 \#10 = 0 \#11 = 0 \#12 = 0 ;dlgmsg will show a dialog with picture edingcnc png from the installation directory\dialogpictures dlgmsg "edingcnc" "a" 1 "b" 2 "c" 3 "d" 4 "e" 5 "f" 6 "g" 7 "h" 8 "i" 9 "j" 10 "k" 11 "l" 12 if \[#5398 == 1] msg "ok #1="#1 "#2="#2 "#3="#3 "#4="#4 "#5="#5 "#6="#6 "#7="#7 "#8="#8 "#9="#9 "#10="#10 "#11="#11 "#12="#12 else msg "cancel #1="#1 "#2="#2 "#3="#3 "#4="#4 "#5="#5 "#6="#6 "#7="#7 "#8="#8 "#9="#9 "#10="#10 "#11="#11 "#12="#12 endif endsub