Hello Guest it is April 26, 2024, 01:16:34 PM

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.


Messages - arhimedoffs

Pages: « 1 2 3 4
31
Mach4 General Discussion / Re: Jog steps
« on: March 10, 2018, 09:02:29 AM »
Yes, this works. All fine if I do this for all my axises.

One more question: where find full documentation on API? There is not documentation about mcJogSetUnitsMode in Docs, but it is in all *.exe and plugins headers.

32
Mach4 General Discussion / Jog steps
« on: March 10, 2018, 03:22:15 AM »
I use script for motor remapping (CNC has two carriage on X axis)


function cnc2plc:selectX1()
   -- Disable X axis, unmap Motor2, map Motor1, reenable X axis
   local rc = mc.mcCntlConfigStart(inst)
   if rc ~= 0 then
      mc.mcCntlSetLastError(inst, "Failed to switch axis!")
      return
   end
   rc = mc.mcAxisUnmapMotors(inst, mc.X_AXIS)
   rc = mc.mcAxisMapMotor(inst, mc.X_AXIS, mc.MOTOR1)
   mc.mcProfileSave(inst)
   mc.mcCntlConfigStop(inst)
   mc.mcCntlSetLastError(inst, "Selected axis X1")
end


All work in metric units, but after motor switched JOG start working in imperial. All DRO still in mm, and G21 is still active. I reexecute G21 from MDI, and JOG start working normally :)

Mach4 Hobby 4.2.0.3481, same issue with ESS motion controller and simulator.

Pages: « 1 2 3 4