How to program AUX keys to operate outputs

_______________________________________________________














LOGIN below to POST your questions and comments on AjaxCNC products.

Moderator: cnckeith

Post Reply
danny
Posts: 13
Joined: Thu May 22, 2014 4:51 am
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: Yes
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No
System Serial Number: 0329160186

How to program AUX keys to operate outputs

Post by danny » Thu Nov 30, 2017 5:24 am

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: 328
Joined: Wed Mar 24, 2010 5:48 pm

Re: How to program AUX keys to operate outputs

Post by cncsnw » Sat Dec 02, 2017 8:43 am

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: 328
Joined: Wed Mar 24, 2010 5:48 pm

Re: How to program AUX keys to operate outputs

Post by cncsnw » Sun Dec 03, 2017 8:48 am

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: 13
Joined: Thu May 22, 2014 4:51 am
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: Yes
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No
System Serial Number: 0329160186

Re: How to program AUX keys to operate outputs

Post by danny » Mon Dec 04, 2017 7:05 am

Done !!!!

Thanks . That was very helpful :D

Post Reply

Who is online

Users browsing this forum: tblough and 15 guests