website logo
Home pageWeb storeDistributors
Software
Hardware
Settings
Troubleshooting
Navigate through spaces
⌘K
EdingCNC Documentation
Getting started with your new controller
G-code
Language standard
Supported G-code
Supported M-codes
Other input codes
Special commands
Special features
Macro programming
Run behavior during loading of job file and simulation
Software installation
Interface
Keyboard shortcuts
Docs powered by archbee 

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



Opens a dialog window that the operator can interact with.

The dialog can be used to input up to 12 variable 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
Document image




PREVIOUS
LogFile
NEXT
GetToolInfo
Docs powered by archbee 
TABLE OF CONTENTS
Example