Spindle brake time question

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
jtroedel8487
Posts: 25
Joined: Sat Mar 07, 2020 8:09 am
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 time question

Post by jtroedel8487 »

I got my spindle brake wired up using an air solenoid valve and was hoping someone could advise me on how to set the time delay between when the vfc shuts the spindle off and when the break engages. I am using an acorn board running the latest version of cnc 12. I found parameter 990 and from what I can tell it only controls the time delay between break disengaging and vfc start. Thanks for any help!
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Spindle brake time question

Post by martyscncgarage »

VFC? You mean VFD (Variable Frequency Drive)
What kind of machine? Bridgeport? Big picture please (and pictures!)
What is the end result on how you want to use the spindle brake?
Normally the VFD is used to decelerate the spindle to a stop.

We can't guess as to what you have, what you want to do. We can't "SEE" what you "SEE"
More information will get you better information.
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
Allin1Chris
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: Spindle brake time question

Post by Allin1Chris »

The SpindleBrakeTimer (Parameter 990) is a delay when the spindle is started so the VFD does not start prematurely if the brake takes a bit of time to release once the output is on. It does not add a timer to the end when you turn off the spindle. Usually when you want the spindle to stop you want it to stop now.

However, you can easily add a timer to your PLC if needed, here is what i added to delay the Release output.

SpindleOff_PD IS PD82

SpindleBrakeDelayTimer IS T33

;---------------------------Spindle Brake Release------------------------------
IF True THEN SpindleBrakeDelayTimer = SV_MACHINE_PARAMETER_700

;Delay SpindleBrake when VFD Turns Off
IF !SpindleEnableOut_M THEN (SpindleOff_PD)

IF SpindleOFF_PD THEN SET SpindleBrakeDelayTimer
IF SpindleEnableOut_M THEN RST SpindleBrakeDelayTimer

; Turn off SpindleBrakeRelease if SpindleBrake is enabled and SpinBrakeMode_M is on
; and Spindle is not running
IF !SpindleBrakeDisabled_M && SpindleBrakeDelayTimer && ;Added SpindleBrakeDelayTimer to this logic to delay the RST of SpindleBrakeRelease
((StandardSpindleStage && !SpindleEnableOut_M && !SpinBrakeOn_M) ||
(G540SpindleStage && (!SpindleForward_M && !SpindleReverse_M) && !SpinBrakeOn_M) ||
(SpinBrakeOff_M && !((StandardSpindleStage && SpindleEnableOut_M) ||
(G540SpindleStage && (SpindleForward_M || SpindleReverse_M)))))
THEN RST SpindleBrakeRelease, RST SpindleBrakeDelayTimer

When the SpindleEnableOut_M is turned off it will start the timer and will turn off SpindleBrakeRelease after the timer. You can set the timer for this particular code by changing parameter 700 (its in ms) so a 500 would be 500ms. You will want to add this in your acorn_mill_plc.src file in your cncm directory and in wizard set option to customplc (this will prohibit further I/O changes in the wizard however)
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
jtroedel8487
Posts: 25
Joined: Sat Mar 07, 2020 8:09 am
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 time question

Post by jtroedel8487 »

Thank you so much! This is exactly what I needed!
Post Reply