Gary, I've not yet ventured into the programming side of the Centroid Control - though I don't mind reading/studying to learn.
This is not urgent for me but it seemed like a useful way to get introduced to interfacing. I understand the hardware side of Centroid control and Acorn. Still working around the behind-the-scenes software/PLC side of things.
Any tips to share to help me get started?
Has anyone attempted to install Tower Signal Lights
Moderator: cnckeith
-
- Posts: 2185
- Joined: Sat Nov 18, 2017 2:32 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: Yes
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: Acorn 238
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bergland, MI, USA
- Contact:
Re: Has anyone attempted to install Tower Signal Lights
Yes... This is a perfect place to start. Learn how to toggle a relay, then connect the light, then insert the commands where you need them
-
- Posts: 57
- Joined: Mon Nov 19, 2018 6:16 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 74E1827A5BE2-0905181161
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Has anyone attempted to install Tower Signal Lights
Sounds like a good approach. I reread this thread again and see from the sample code posted, the Oak board software has code for this. So, perhaps I can find a way to make that happen in the Acorn software as well. Looking at the code, it would appear I need to a) create the functions for RedLightOut, AmberLightOut, GreenLightOut and then figure out where to insert the provided code that decides which function to call when. I think I will need to start with the PLC Programmer’s guide or see if Marty’s posted a video on the topic. Thanks.
-
- Posts: 2185
- Joined: Sat Nov 18, 2017 2:32 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: Yes
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: Acorn 238
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bergland, MI, USA
- Contact:
Re: Has anyone attempted to install Tower Signal Lights
I am just in the process of building a new machine. Since I will be starting with an ETH1616 I will have more than enough IO to allow Acorn control of a stack light. This means little or no PLC programming, just a few macros to set light "states" via the M94/M95 commands.
-
- Posts: 57
- Joined: Mon Nov 19, 2018 6:16 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 74E1827A5BE2-0905181161
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Has anyone attempted to install Tower Signal Lights
Gary, please do share your process and even your macros, if you are willing.
-
- Posts: 135
- 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: Has anyone attempted to install Tower Signal Lights
Here is an example that you could use, this will require an edit of the plc.src file.
You will most likely need to define 3 outputs lets call them GreenLight, Yellowlight, and RedLight and also a timer or 2 for flashing. Here is an example of what the logic could look like, you of course can change it to your liking.
Greenlight IS OUT1
YellowLight IS OUT2
RedLight IS OUT3
LightOnTimer IS T1
LightOffTimer IS T2
;This section is to make the lights blink, will stay on for 2 seconds then off for 1 second.
IF True THEN LightOnTimer = 2000, LightOffTimer = 1000
IF GreenLight || YellowLight || RedLight THEN SET LightOnTimer
IF LightOnTimer Then SET Light Off Timer
IF LightOffTimer THEN RST LightOnTimer, RST LightOffTimer
IF SV_JOB_IN_PROGRESS && !LightOnTimer THEN (GreenLight) ; If job running normally then greenlight on
IF !SV_JOB_IN_PROGRESS && !SV_STOP && !LightOnTimer THEN (Yellowlight) ; If not in job and not in fault then yellow light on
IF SV_STOP && !LightOnTimer THEN (RedLight) ; if in fault then red light on
You will most likely need to define 3 outputs lets call them GreenLight, Yellowlight, and RedLight and also a timer or 2 for flashing. Here is an example of what the logic could look like, you of course can change it to your liking.
Greenlight IS OUT1
YellowLight IS OUT2
RedLight IS OUT3
LightOnTimer IS T1
LightOffTimer IS T2
;This section is to make the lights blink, will stay on for 2 seconds then off for 1 second.
IF True THEN LightOnTimer = 2000, LightOffTimer = 1000
IF GreenLight || YellowLight || RedLight THEN SET LightOnTimer
IF LightOnTimer Then SET Light Off Timer
IF LightOffTimer THEN RST LightOnTimer, RST LightOffTimer
IF SV_JOB_IN_PROGRESS && !LightOnTimer THEN (GreenLight) ; If job running normally then greenlight on
IF !SV_JOB_IN_PROGRESS && !SV_STOP && !LightOnTimer THEN (Yellowlight) ; If not in job and not in fault then yellow light on
IF SV_STOP && !LightOnTimer THEN (RedLight) ; if in fault then red light on
Last edited by Allin1Chris on Thu Feb 27, 2020 1:33 pm, edited 1 time in total.
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
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
-
- Posts: 57
- Joined: Mon Nov 19, 2018 6:16 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 74E1827A5BE2-0905181161
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Has anyone attempted to install Tower Signal Lights
Thanks @Allin1Chris. As I mentioned this is not urgent for me as a hobbyist, however, it is a great opportunity to learn more about Centroid controls. Thanks to everyone who contributed to this thread.
-
- Posts: 3097
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: Has anyone attempted to install Tower Signal Lights
Chris,
Shouldn't those lights be on outputs instead of inputs?
Shouldn't those lights be on outputs instead of inputs?
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
-
- Posts: 135
- 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: Has anyone attempted to install Tower Signal Lights
Shoot you are right, they are outputs, edited in the correction. Thanks for catching that!
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
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
-
- Posts: 73
- Joined: Thu Dec 26, 2019 5:01 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 780473A2EE6C-1022192587
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Has anyone attempted to install Tower Signal Lights
Could someone help me out with programming the yellow light to be tool change stop rather than the no job status?