Spindle brake time question
Moderator: cnckeith
-
- 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
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!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 9944
- 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
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
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
We can't "SEE" what you see...
Mesa, AZ
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- PLC Expert
- Posts: 233
- 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
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)
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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- 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
Thank you so much! This is exactly what I needed!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 3
- Joined: Mon May 27, 2024 8:47 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: 544538046CEC-0104247791
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Spindle brake time question
Hi Allin1Chris,Allin1Chris wrote: ↑Fri Jun 05, 2020 11:29 am 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)
I think this is the exact code i need as well. I am curious where in the acorn_mill_plc.src file do i paste this code? Just at the end? or is there a specific location that i should look for? I am currently using output 1 for forward and output 2 for reverse and only use the VFD to turn the spindle on and off as my speed control is done manually (Variable speed head Bridgeport Boss 3). My board is an Acorn Rev. 4 and have been running a Chinese motion control card until it died 2 days ago. All features were running well but the card would randomly pause and e-stop itself so i decided to upgrade. If you need any other info please let me know and ill be happy to get it for you
Thanks
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- PLC Expert
- Posts: 233
- 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
For most of our Bridgeport boss kits for Allin1DC and OAK, i do not remember them needing a delay for the brake. However, the above code should be placed in the corresponding area's of the Acorn PLC.sdavi584 wrote: ↑Mon May 27, 2024 9:41 pm Hi Allin1Chris,
I think this is the exact code i need as well. I am curious where in the acorn_mill_plc.src file do i paste this code? Just at the end? or is there a specific location that i should look for? I am currently using output 1 for forward and output 2 for reverse and only use the VFD to turn the spindle on and off as my speed control is done manually (Variable speed head Bridgeport Boss 3). My board is an Acorn Rev. 4 and have been running a Chinese motion control card until it died 2 days ago. All features were running well but the card would randomly pause and e-stop itself so i decided to upgrade. If you need any other info please let me know and ill be happy to get it for you
Thanks
Code: Select all
SpindleOff_PD IS PD82
Code: Select all
SpindleBrakeDelayTimer IS T33
Next is the bulk of the logic, the acorn PLC already has a Spindle Brake Release, so this is a modification of the existing logic. You should navigate to the Section As of currently its around line ~5474. Then perform the modifications to delay the brake.
Code: Select all
;---------------------------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 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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2
- Joined: Mon Feb 03, 2025 2:19 pm
- Acorn CNC Controller: No
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: Yes
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: A901495
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Spindle brake time question
Hello, I have the same question for the Allin1DC control. I tried the Acorn PLC modification but it is not working.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- PLC Expert
- Posts: 233
- 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
For Allin1DC, the logic is a little different from Acorn. If you are using the Spindle Brake PLC for ALLIN1DC (Centroid_ALLIN1DC_Mill_SpinBrake-r5.src) then you should have the following logic already at the end of the mainstage.Gherrmann1995 wrote: ↑Mon Mar 17, 2025 11:20 am Hello, I have the same question for the Allin1DC control. I tried the Acorn PLC modification but it is not working.
Code: Select all
;----------------------------------------------------------------
; Auto Spindle Brake Control
;----------------------------------------------------------------
;use the output to release or engage the spindle brake
IF DoAux3Key_SV THEN (BrakeOneShot_PD)
IF (BrakeOneShot_PD ^ BrakeMode_M) THEN (BrakeMode_M), (Aux3LED_O)
IF SpindleEnableOut_O || (!SpindleEnableOut_O && !BrakeMode_M) THEN SET SpindleBrakeRelease_O
IF (!SpindleEnableOut_O && BrakeMode_M) THEN RST SpindleBrakeRelease_O
Code: Select all
SpindleBrakeDelay_T IS T7 ;Add to Timer Definitions section towards beginning of PLC
;----------------------------------------------------------------
; Auto Spindle Brake Control
;----------------------------------------------------------------
;use the output to release or engage the spindle brake
IF True_M THEN SpindleBrakeDelay_T = SV_MACHINE_PARAMETER_700
IF DoAux3Key_SV THEN (BrakeOneShot_PD)
IF (BrakeOneShot_PD ^ BrakeMode_M) THEN (BrakeMode_M), (Aux3LED_O)
IF SpindleEnableOut_O || (!SpindleEnableOut_O && !BrakeMode_M) THEN SET SpindleBrakeRelease_O, RST SpindleBrakeDelay_T
IF (!SpindleEnableOut_O && BrakeMode_M) THEN SET SpindleBrakeDelay_T ;When Spindle is Off, Start Timer
IF SpindleBrakeDelay_T THEN RST SpindleBrakeRelease_O ;Turn off BrakeRelease after Delay Timer
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)