0 Members and 1 Guest are viewing this topic.
Did a bit more searching and I think these guys are going to do what I need once I get the usage through my thick skull. Me smart like tractor.These next two functions are very helpful inside lua macros (scripts) since they will stop the machine if an error condition occurs (provided you check for and handle that error condition). Either of these functions will stop the execution of the GCode after the macro ends, but will not halt the execution of the macro itself. You will need to put "return" statements in after the calling of these functions, in order to halt the macro itself.mcCntlMacroAlarm(...)number: rc = mc.mcCntlMacroAlarm(number: inst, number: error_number, string: error_message)mcCntlMacroStop(...) number: rc = mc.mcCntlMacroStop(number: inst, number: error_number, string: error_message)