Spindle brake randomly wont release / CNC12 wont activate its relay output

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

Using the mill and randomly when starting a program or resuming from a tool check the spindle brake wont release.
Cant figure out what causes it yet. Bug?
happens randomly, so far like once every week or so.
The only way I have found to get it to work again is to power cycle acorn and CNC12 at least once

my outputs are
SpindleBrakeRelease enables the spindle servo driver
SpinFWD for spindle turn CW
SpinREV for spindle turn CCW

Servo driver functions normally, no errors. Just acorn is not energizing the spindlebrakerelease relay to start the spindle

so far i have been quick enough to stop the mill before it crashes, but pretty scary to have it rapid toward the part with a 5in facemill and the spindle off.



Last edited by rk9268vc on Wed Sep 28, 2022 12:41 pm, edited 1 time in total.
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: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by cnckeith »

looks like you have the output forced ON in the I/O menu?
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
rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

cnckeith wrote: Sun Aug 07, 2022 10:57 am looks like you have the output forced ON in the I/O menu?
Considering that i dont know how to do that, i would find it unlikely.
It also happens randomly when doing a tool check while running a program with the only buttons being pressed are on the WMPG.
Would it be possible for a WMPG button to do something weird like that? I dont have any macros setup or anything.

It seems pretty random when it gets stuck on. It will work for 40 hours and then randomly happen. Restart acorn and CNC12 and work for another 1-2 weeks and happen again. I cant find a way to consistently reproduce this.
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by cncsnw »

The SpindleBrakeRelease logic is pretty convoluted, since it needs to support auto/off braking modes from a VCP key; momentary brake timers; and of course different logic for standard versus "G540" spindle control hardware.

Have you considered adding your own PLC output that just does what you want (i.e., turn on when you want to run the spindle)?

For example, if you named OUT6 "MyVFDEnable", and added a line in the spindle-control section (e.g. below the StandardSpindleStage heading) to turn it on whenever SpindleEnableOut_M is on, then it would probably do what you need.

Code: Select all

MyVFDEnable IS OUT6
;...
IF SpindleEnableOut_M THEN (MyVFDEnable)
rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

cncsnw wrote: Sun Aug 07, 2022 4:58 pm Have you considered adding your own PLC output that just does what you want
I had not considered that because i do not know how to do that.

If it would be a more robust way of doing this, then i would consider it though.

Where would i find the documentation on adding a custom PLC output?

thanks
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by suntravel »

There is a video series from Centroid support about PLC and you can read the PLC manual.

Uwe
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: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by cnckeith »

the stock spindle brake PLC logic works. that is not the issue.
yes you could toss the code that is not being used but that is not going to solve your issue. look elsewhere.
start by reviewing this doc. https://www.centroidcnc.com/centroid_di ... screen.pdf
and learn how to use the PLC diagnostic menu the tools contained there are useful for solving plc i/o issues.
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
rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

cnckeith wrote: Sun Aug 07, 2022 10:57 am looks like you have the output forced ON in the I/O menu?
so this keeps happening and it is very annoying, because the only way i have found to fix it is to power cycle acorn.

I am not forcing the outputs 'on' myself, but if something else is, how do i un-force an output?

thanks
rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

so here is my i/o when the spindle is stuck off and the brake wont release when clicked
io.PNG
wiz.PNG
rk9268vc
Posts: 267
Joined: Fri Nov 13, 2020 4:12 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Spindle brake randomly wont release / CNC12 wont activate its relay output

Post by rk9268vc »

Here is an updated video with sound where i describe whats going on and show the wizard and the output i/o page and it still not working



update:

plot thickens
so if i go to ouptut 6 on the i/o page, using Ctrl Alt F i can toggle the input, and it toggles the relay, turning on the drive.
So I know that CNC12 can toggle the input and it works
However, the virtual Jog panel and MDI and gcode cant toggle it even after forcing it on and off.

I am going to have to restart acorn so i can get a part made, but any ideas and help would be appreciated
Post Reply