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

Here is where you can drop off Examples of WORKING macros,plugins,Gcode programs , macro Wizards etc.
Please give a brief description of what it is and how it works.

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

Postby dezsoe » 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:

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!
Attachments
M56.txt
The M56.txt macro
(1.51 KiB) Downloaded 40 times
dezsoe
 
Posts: 417
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Return to UCCNC TOOL BOX

Who is online

Users browsing this forum: No registered users and 1 guest

cron