Macro - M56 (as MSG) - write message to status
Posted: Fri Feb 02, 2018 4:46 pm
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:
And a test g-code to start with:
Edit: You need min. 1.2102 for this macro to work!
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!