Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: moorea21 on May 01, 2015, 02:57:12 PM

Title: messages in macro only showing during step through, not run
Post by: moorea21 on May 01, 2015, 02:57:12 PM
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
Title: Re: messages in macro only showing during step through, not run
Post by: BR549 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
Title: Re: messages in macro only showing during step through, not run
Post by: moorea21 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...
Title: Re: messages in macro only showing during step through, not run
Post by: BR549 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
Title: Re: messages in macro only showing during step through, not run
Post by: moorea21 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
Title: Re: messages in macro only showing during step through, not run
Post by: moorea21 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?
Title: Re: messages in macro only showing during step through, not run
Post by: BR549 on May 01, 2015, 05:30:53 PM
Here it runs the same using the editor (run), MDI or Gcode file.

(;-) TP