Hello Guest it is April 19, 2024, 07:52:09 AM

Show Posts

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.


Topics - antonyakhno

Pages: 1
1
Mach4 General Discussion / Help! Calibration in mach 4
« on: November 09, 2016, 08:16:03 AM »
Hi,
I have a problem with my mach4. I can not auto calibrate my mottors in mach 4. Help me, please with mach 4.

Thank you!
 
Anton. 

2
Mach4 General Discussion / Mach 4 Macro with Lua script
« on: October 11, 2016, 02:31:54 PM »
Hi!
I have a trouble with my Lua script for plasma CNC machine.
Help me please with code.
 
Code: [Select]
function M3()
local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G00 X73")
mc.mcCntlGcodeExecute(inst, "G04 P0.2")

hsig,rc=mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT0)
mc.mcSignalSetState(hsig, 1);

mc.mcCntlGcodeExecute(inst, "G04 P0.2")

mc.mcCntlGcodeExecute(inst, "G31 Z-100 F300")
mc.mcCntlGcodeExecute(inst, "G04 P0.2")

mc.mcCntlGcodeExecute(inst, "G92 Z0")
mc.mcCntlGcodeExecute(inst, "G04 P0.1")

hsig,rc=mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT0)
mc.mcSignalSetState(hsig, 0);

mc.mcCntlGcodeExecute(inst, "G00 X-73")
mc.mcCntlGcodeExecute(inst, "G04 P0.2")

mc.mcCntlGcodeExecute(inst, "G00 Z-10,0")
mc.mcCntlGcodeExecute(inst, "G04 P0.1")

mc.mcCntlGcodeExecute(inst, "G92 Z0")
mc.mcCntlGcodeExecute(inst, "G04 P0.2")

mc.mcCntlGcodeExecute(inst, "G00 Z3.8 ")
mc.mcCntlGcodeExecute(inst, "G04 P0.5")

local hsig = mc.mcSignalGetHandle(inst,mc.OSIG_SPINDLEON)
mc.mcCntlGcodeExecute(inst, "G04 P0.3")

mc.mcCntlGcodeExecute(inst, "G00 Z1.5 ")
mc.mcCntlGcodeExecute(inst, "G04 P0.2")
end

Pages: 1