Page 1 of 1
How to program AUX keys to operate outputs
Posted: Thu Nov 30, 2017 5:24 am
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
Re: How to program AUX keys to operate outputs
Posted: Sat Dec 02, 2017 8:43 am
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)
Re: How to program AUX keys to operate outputs
Posted: Sun Dec 03, 2017 8:48 am
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)
Re: How to program AUX keys to operate outputs
Posted: Mon Dec 04, 2017 7:05 am
by danny
Done !!!!
Thanks . That was very helpful