M291 issued from a plugin doesn't show anything on the PanelDue
-
I am creating a plugin which intercepts a certain M-code (M1000 in my case), and then performs a bunch of things with the machine. At some point, it needs to open a message box using M291. It does so using
CommandConnection.perform_simple_code('M291 ...')
.Depending on how the plugin is called, the message box doesn't get showed on the PanelDue. Here is what I have observed:
- When I call M1000 from the command console on the PanelDue, which triggers the plugin, the message box is shown, as expected.
- If M1000 is wrapped in a macro, which is ran from the PanelDue, the plugin is triggered, but the message box isn't shown on the PanelDue - only in the web interface.
Expected:
M291 should open the message box on the PanelDue in all cases, otherwise it is annoying because I need to open a web interface to run this macro. -
-
@Ant1 As a note, this issue happens with DSF 3.5.2. I tried to reproduce it with DSF 3.5.1, but the issue doesn't happen and the message gets shown properly on the PanelDue, so I think that the issue comes from the update.
-
@Ant1 Please share the code which intercepts M1000 and calls M291. Does
M409 K"state" F"d99fn"
show a propermessageBox
value when it is not displayed on PanelDue?