Page 1 of 1

*** RESOLVED *** Jogging from inside of Plc program

Posted: Wed Nov 16, 2011 8:20 pm
by bakeng
Anyone know how to jog an axis from inside cnc11 Plc program? When I press a button I want an axis to jog at x speed until it sees an input then stop.

Re: Jogging from inside of Plc program

Posted: Fri Nov 18, 2011 8:39 am
by AjaxTech
In the PLC program you utilize the DoAx1PlusJog. Below is a copy of the code that is in the standard PLC program:

IF (Ax1PlusJogKey || KbJogAx1Plus_M) && !Ax1PlusJogDisabled_M &&
!(IncrContLED && FinalFeedOverride_W == 0) THEN (DoAx1PlusJog)

Re: *** RESOLVED *** Jogging from inside of Plc program

Posted: Fri Nov 18, 2011 10:49 am
by bakeng
I did find that but was unsure of setting the JOG speed. It looks like the DoAx1PlusJog command (which is just a alias for SV_PLC_FUNCTION_12) uses the defined jog rate in cnc11. Anyway to change or scale this rate from within the plc program?

Re: *** RESOLVED *** Jogging from inside of Plc program

Posted: Mon Nov 21, 2011 12:34 pm
by AjaxTech
You would need to set the feedrate to either Fast or Slow jog rate and you can then set your feedrate override to whatever percentage you desire for that desired speed.