G-code
Special commands
LogMsg
2min
logs message to a text file the file has to be specified prior by the logfile docid\ o8umnjpoxj29 g tkkasn command logmsg "\<message text>" parameters message text parameter specifies the message to be displayed if variables docid\ oqhjs3llcfqksac cemc2 numbers are included outside of quotation marks, this results in the value of that variable being appended to the message e g msg "value of variable 4000 is " #4000 if %t is included outside of quotation marks, this results in the tool description of the tool number being appended to the message e g msg "t1 is " %t1 or msg "current tool " %t#5011 if %d is included outside of quotation marks, this results in the current date and time being appended to the message e g msg "time "%d will output time 2022 10 28 13 35 52 example logfile "text txt" 1 logmsg "current position of x is "#5001 now check the contents of file text txt will now contain msg, logmsg, warnmsg, errmsg can now use %txx (xx = 0 99) and this will show the tool description text example msg %t#5011 " is changed to "tool number 5" this is text from the tool table