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

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
bakeng
Posts: 66
Joined: Wed Nov 16, 2011 5:50 pm
Allin1DC CNC Controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: Yes

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

Post 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.
AjaxTech
Posts: 21
Joined: Wed Aug 03, 2011 1:29 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Jogging from inside of Plc program

Post 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)
bakeng
Posts: 66
Joined: Wed Nov 16, 2011 5:50 pm
Allin1DC CNC Controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: Yes

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

Post 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?
AjaxTech
Posts: 21
Joined: Wed Aug 03, 2011 1:29 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes

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

Post 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.
Post Reply