Page 1 of 1

Macro - M56 (as MSG) - write message to status

PostPosted: Fri Feb 02, 2018 4:46 pm
by dezsoe
Here is a macro for displaying messages to status window. It shows the contents of the comment between ( and ). You can print variables with the format #nnn or #Fnnn, where nnn is the number of the variable, F stands for formatted to 4 decimals. See screenshot below:

MSG.png

And a test g-code to start with:

Code: Select all
#100 = 1.23
#101 = 3.45
M56 (Hello operator 1!)
(Hello operator 2!)M56
M56(Hello operator 3!)G0
M56(Var 100 = #100)
M56(Var 100 formatted = #F100, var 101 = #101)
M30

Edit: You need min. 1.2102 for this macro to work!

Re: Macro - M56 (as MSG) - write message to status

PostPosted: Tue Jun 18, 2019 8:14 pm
by BKG
Hello, the newest version is 12049 i can not gett it working in that version ??

Re: Macro - M56 (as MSG) - write message to status

PostPosted: Tue Jun 18, 2019 8:31 pm
by ger21
You need the development release (#3)
http://www.cncdrive.com/UCCNC.html

Re: Macro - M56 (as MSG) - write message to status

PostPosted: Fri Jun 21, 2019 9:18 pm
by beefy
Thanks Dezsoe.

Keith.