Hello Guest it is April 20, 2024, 09:33:35 AM

Author Topic: Macro Issue  (Read 679 times)

0 Members and 1 Guest are viewing this topic.

Macro Issue
« on: August 22, 2019, 08:02:33 PM »
Could some one smarter than I am tell me why this is not producing any motion .What am I doing wrong .I would greatly welcome  you comments
Re: Macro Issue
« Reply #1 on: August 24, 2019, 12:58:35 PM »
I think
mc.mcCntlGcodeExecuteWait(inst, "G28.1 A0\nG53 G1 F75.0 A%4.4f\nG53 A-2.0000", (tpos + 12))

should be
formating strings in lua:

local s=string.format( "G28.1 A0\nG53 G1 F75.0 A%4.4f\nG53 A-2.0000", (tpos + 12))
mc.mcCntlGcodeExecuteWait(inst,s)

HTH
RT