plc:plc_show_custom_message_box
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
plc:plc_show_custom_message_box [2019/05/17 10:53] – ivan | plc:plc_show_custom_message_box [2019/05/17 11:16] – ivan | ||
---|---|---|---|
Line 14: | Line 14: | ||
At this point, the popup window' | At this point, the popup window' | ||
- | 4. Copy and paste the following code into the window: | + | 4. Copy and paste the following code into the window, then click **Save** and **Build All** again: |
< | < | ||
main() | main() | ||
Line 23: | Line 23: | ||
{ | { | ||
- | if (portget(3)!=0) | + | if (portget(3)!=0) |
{ | { | ||
- | | + | |
}; | }; | ||
Line 33: | Line 33: | ||
</ | </ | ||
- | 5. In order to edit the newly created window, we can open CNC Settings > Screen > Popup Messages | + | 5. In order to edit the newly created window, we can open CNC Settings > Screen > Popup Messages, and then press **Create New** |
+ | {{: | ||
+ | |||
+ | 6. Fill in the information regarding your new popup window and press the **Save** button. The Hide Timeout field is in seconds. | ||
+ | {{: | ||
+ | |||
+ | At this point, whenever the selected port will send a message to a controller (for example, when a button is pressed), the software should bring up a popup window that will go away after the number of seconds specified in the Hide Timeout field. | ||
+ | {{: | ||
====Deprecated version==== | ====Deprecated version==== |
plc/plc_show_custom_message_box.txt · Last modified: 2019/09/16 15:54 by ivan