SpindleCooling_Fan LED <answered>

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
Sword
Posts: 652
Joined: Fri Nov 30, 2018 1:04 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

SpindleCooling_Fan LED <answered>

Post by Sword »

Is it possible to add a LED for an output definition to the PLC? For example, SpindleCoolingLED is 1129, but there's no SpindleCooling_Fan LED. What I'd like to do, is to have a LED come on when SpindleCooling_Fan output is active. I've done something similar with the "Auto Z to Plate" button and the ToolTouchOffTriggered skin event, but this one's a bit different.
Scott
cnckeith
Posts: 7164
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: SpindleCooling_Fan LED

Post by cnckeith »

yes, i'll have chris chime in on how to do that, in meantime post fresh report.zip please.thanks, k
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
Allin1Chris
Posts: 132
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: SpindleCooling_Fan LED

Post by Allin1Chris »

Hello Sword,

It is possible to add a LED Output your self, here is what i would do.

In the acorn_XXX_plc.src (XXX is mill, plasma, router, lathe), can add the following code.

Code: Select all

;Add Following to Output Definitions section of PLC
SpindleCoolingFanLED          IS OUT1141 ;Ensure this Output is not used already in your PLC.

;Following is Found in the MainStage of PLC
;SpindleCooling_Fan
;Turn SpindleCooling_Fan on anytime Spindle is Enabled
IF True THEN SpindleCooling_T = SV_MACHINE_PARAMETER_997 * 1000
IF SpindleEnableOut_M THEN SET SpindleCooling_Fan, RST SpindleCooling_T
IF !SpindleEnableOut_M THEN SET SpindleCooling_T
IF SpindleCooling_T THEN RST SpindleCooling_Fan

IF SpindleCooling_Fan THEN (SpindleCoolingFanLED) ;Add this line to activate LED when fan is on
The reason SpindleCooling_Fan does not have an LED already is because it is not activated by an Aux Key, it simply turns on when the spindle is enabled, and disabled when it is turned off (After the timer expires). The SpindleCooling Output is used for situations in which you like more control on when it is active, it can be activated either by a VCP Button or by M-Code command, thus has a LED already that is used for the VCP Button.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos
Sword
Posts: 652
Joined: Fri Nov 30, 2018 1:04 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

Re: SpindleCooling_Fan LED

Post by Sword »

Thanks Chris! Easy-peasy, it works perfectly! Kind of what I thought needed to be done, but wasn't sure.

YT Short showing it with a 5 sec delay.

https://youtube.com/shorts/eBBG6VfGqao?feature=share
Scott
Post Reply