591
Promote and discuss your product / Re: New Source For CNC DXF Files! Great CNC Artwork!
« on: December 05, 2016, 04:52:59 PM »
Nice Artwork! Thanks for sharing Jason.
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.
This goes in the X DROs on update script.....
local inst = mc.mcGetInstance()
local Xcoords = scr.GetProperty("droCurrentX","Value")
Xcoords = string.format("X%4.4f", Xcoords)
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 1"))
mc.mcRegSetValueString(hreg, tostring(Xcoords))
This goes in the Y DROs on update script......
local inst = mc.mcGetInstance()
local Ycoords = scr.GetProperty("droCurrentY","Value")
Ycoords = string.format("Y%4.4f", Ycoords)
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 2"))
mc.mcRegSetValueString(hreg, tostring(Ycoords))
---------------------------------------------------------------
-- Cycle Stop function.
---------------------------------------------------------------
function CycleStop()
local hSig = mc.mcSignalGetHandle(inst, mc.OSIG_MISTON); --Get the mist on signal handle
mc.mcSignalSetState(hSig, false); --Turn the mist on signal off
mc.mcCntlCycleStop(inst);
mc.mcSpindleSetDirection(inst, 0);
mc.mcCntlSetLastError("Cycle Stopped");
end
Ordered a fan today so hopefully I will be fume free next week.