Hello Guest it is May 23, 2019, 08:00:24 PM

Author Topic: messages in macro only showing during step through, not run  (Read 1494 times)

0 Members and 1 Guest are viewing this topic.

Attached macro works fine using F7, on run (in VB window), most messages don't appear. If I un-comment the message on 2nd to last line, no messages appear except the last one.

Can I change this behaviour?

Thanks

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: messages in macro only showing during step through, not run
« Reply #1 on: May 01, 2015, 03:18:18 PM »
When you use the Message function to write to the status line EACH new message will overwrite the next. SO if the messages are cascading ( one after the other) then you MAY only see the last message.

I will check the code, (;-) TP
Re: messages in macro only showing during step through, not run
« Reply #2 on: May 01, 2015, 03:28:43 PM »
Thanks. I didnt mention that each message has sleep 1000 after it, ie 1 second. Thought it would always hold it there for that long...

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: messages in macro only showing during step through, not run
« Reply #3 on: May 01, 2015, 03:30:49 PM »
I checked your code and it runs as expected here. I see all of the posted messages one at a time until the end message "1"

That was running the Macro as a Mcode from the MDI line.

(;-) TP
Re: messages in macro only showing during step through, not run
« Reply #4 on: May 01, 2015, 03:40:03 PM »
Same here by MDI. But as run from vb editor window, I still get the last message only, about 'return to main program'. Hopefully (3rd attempt) I can attach my xml, is it okay  to run it with that? Thanks
« Last Edit: May 01, 2015, 03:42:13 PM by moorea21 »
Re: messages in macro only showing during step through, not run
« Reply #5 on: May 01, 2015, 03:43:22 PM »
Unless of course this is just something that only happens via the code window, and not when Gcode or MDI calls it?

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: messages in macro only showing during step through, not run
« Reply #6 on: May 01, 2015, 05:30:53 PM »
Here it runs the same using the editor (run), MDI or Gcode file.

(;-) TP