How to program AUX keys to operate outputs

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

Moderator: cnckeith

Post Reply
danny
Posts: 14
Joined: Thu May 22, 2014 4:51 am
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 0329160186
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No

How to program AUX keys to operate outputs

Post by danny »

Hello

How can i program Aux keys to operate outputs for example Aux 1 to move tail stock foreword and Aux 2 to move it backwards

Thanks
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: How to program AUX keys to operate outputs

Post by cncsnw »

In short, you do this by editing changes into your PLC program source file, then compiling the changed source file to make a new working PLC program.

For some background, see http://www.cncsnw.com/PLCOverview.htm.

You can download the CNC11 PLC programming reference manual from http://www.centroidcnc.com/dealersuppor ... Manual.pdf

In its simplest form, supposing that the tailstock movements are hydraulic, and that you don't care about safety interlocks (such as preventing tailstock retract while the spindle is running), you might just need the output definitions and two lines of logic:

Code: Select all

TailstockExtendSol IS OUT4
TailstockRetractSol IS OUT5
; ...
IF Aux1Key THEN (TailstockExtendSol)
IF Aux2Key THEN (TailstockRetractSol)
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: How to program AUX keys to operate outputs

Post by cncsnw »

Of course, to reduce the likelihood of dropping a spinning part through a careless key press, you might at least want to expand that to

Code: Select all

IF Aux2Key && !SpindleEnableOut THEN (TailstockRetractSol)
danny
Posts: 14
Joined: Thu May 22, 2014 4:51 am
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 0329160186
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No

Re: How to program AUX keys to operate outputs

Post by danny »

Done !!!!

Thanks . That was very helpful :D
Post Reply