1
Mach4 Plugins / Re: Mach 4 and Pokeys MPG
« on: November 16, 2022, 10:29:07 AM »
I have the same problem. How do you solved it?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
local still;
local rc;
local inst = mc.mcGetInstance();
still,rc = mc.mcAxisIsStill(inst, 0);
if (still == true) then
rc = mc.mcCntlSetLastError(inst, 'axis-x is still')
else
rc = mc.mcCntlSetLastError(inst, 'axis-x is moving')
end
local homed_x;
local rc;
local inst;
inst= mc.mcGetInstance();
homed_x, rc = mc.mcMotorIsHomed(inst, 0)
if (homed_x == true) then
rc = mc.mcCntlSetLastError(inst, 'homed')
else
rc = mc.mcCntlSetLastError(inst, 'not homed')
end