*** RESOLVED *** Jogging from inside of Plc program
Moderator: cnckeith
-
- 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
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.
-
- 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
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)
IF (Ax1PlusJogKey || KbJogAx1Plus_M) && !Ax1PlusJogDisabled_M &&
!(IncrContLED && FinalFeedOverride_W == 0) THEN (DoAx1PlusJog)
-
- 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
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?
-
- 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
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.