mycnc:popup_messages
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:popup_messages [2020/05/19 14:07] – ivan | mycnc:popup_messages [2020/05/25 10:59] – ivan | ||
---|---|---|---|
Line 4: | Line 4: | ||
This is an expanded manual that serves to introduce the user to the concept of popup messages beyond the basics described in the [[mycnc: | This is an expanded manual that serves to introduce the user to the concept of popup messages beyond the basics described in the [[mycnc: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The following settings are available: | ||
+ | |||
+ | * Popup Message Number | ||
+ | * Position (X&Y) on the screen | ||
+ | * Size of the popup window (in pixels) | ||
+ | * Header (title) of the popup message | ||
+ | * Header size and font size | ||
+ | * Message (body) of the popup window which allows to present additional information to the user | ||
+ | * Message size and font size | ||
+ | * Footer of the popup message | ||
+ | * Footer size and font size | ||
+ | * Button image (specify the file location) | ||
+ | * Button size | ||
+ | * Button action to run a specific macro when the button is clicked | ||
+ | * Timeout to hide the popup window (in seconds) | ||
+ | * Variable number to display (usually in footer, through [%d]) - useful to display a changing variable, like time in seconds, etc. | ||
+ | * Coefficient K to multiply the variable by. Useful to convert tiny incremental changes (such as fractions of a second) or large rapidly changing numbers into numbers that can be easily read by the user. | ||
+ | |||
+ | |||
+ | ====Examples of popup messages implementation==== | ||
+ | |||
+ | ===M660=== | ||
+ | |||
+ | M660 PLC procedure is supposed to be a handler for manual tool change. It shows a " | ||
+ | the procedure can wait till a hardware button (connected to the controller input) is pressed. Below is an example of a manual tool change handler M660.plc: | ||
+ | |||
+ | < | ||
+ | { | ||
+ | gvarset(1999, | ||
+ | | ||
+ | timer=0; | ||
+ | flag=1; | ||
+ | do{ | ||
+ | timer++; | ||
+ | if ((timer& | ||
+ | { | ||
+ | gvarset(9160, | ||
+ | flag=gvarget(1999); | ||
+ | }; | ||
+ | }while(flag> | ||
+ | |||
+ | gvarset(9160, | ||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | Setup for message #60 in Settings > Config > Screen > Popup Messages: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Resulting popup message: | ||
+ | |||
+ | {{: |
mycnc/popup_messages.txt · Last modified: 2020/11/19 11:59 by ivan