401
Mach4 General Discussion / DRO behavior
« on: November 09, 2017, 01:29:30 PM »If a DRO who's DRO code is set to CurrentJogIncr. has a valid number (read, one of the 10 jog increments defined) entered through the keyboard the 'core/inst' register entries for JogIncX through JogIncC are updated with the new value and when incremental jogging is requested the axis moves the correct amount. Same thing occurs when using the 'Incremental Jog Step' button.
It appears that some event is triggered when the value changes.
If however you change the value programmaticaly, e.g. scr.SetProperty('droJogInc',"Value",tostring(SetInc)) , the event is not fired. Shouldn't any change to the 'Value' call the update event/action?
Is there a way to force/call that event/action?
Additionally, it you write to the registers, new values:
mc.mcJogSetInc(mInst, mc.X_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(mInst, mc.Y_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(mInst, mc.Z_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(mInst, mc.A_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(mInst, mc.B_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(mInst, mc.C_AXIS, SetInc) -- set inc for axis
they are ignored on further incremental jog requests. Is it not correct to read the register for the jog increment each time an incremental move is made?
And why is there no mcJogCycleIncrement() api available?
TIA
RT