Page 1 of 3

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

Posted: Sat Aug 06, 2022 6:46 pm
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.




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

Posted: Sun Aug 07, 2022 10:57 am
by cnckeith
looks like you have the output forced ON in the I/O menu?

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

Posted: Sun Aug 07, 2022 2:58 pm
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.

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

Posted: Sun Aug 07, 2022 4:58 pm
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)

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

Posted: Sun Aug 07, 2022 5:13 pm
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

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

Posted: Mon Aug 08, 2022 4:20 am
by suntravel
There is a video series from Centroid support about PLC and you can read the PLC manual.

Uwe

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

Posted: Mon Aug 08, 2022 10:15 am
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.

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

Posted: Sat Sep 24, 2022 8:21 pm
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

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

Posted: Sat Sep 24, 2022 8:25 pm
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

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

Posted: Sun Sep 25, 2022 2:19 pm
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