M94 M95 to turn spindle brake on and off
Moderator: cnckeith
-
- Posts: 163
- Joined: Fri Jan 17, 2025 4:01 am
- Acorn CNC Controller: No
- 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: 0008DC111213-0701240191
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Victoria, Australia
M94 M95 to turn spindle brake on and off
Hi all,
I am probably missing something really obvious but I've read the manuals and the PLC source code and can't work out the M94 and M95 code to turn my spindle brake on and off. I have it wired into OUT7 and set up in the wizard, it works automatically when I start/stop the spindle using M3/M4/M5 but sometimes I want to release it to turn the spindle manually to look at tool tips etc or change carbides. I've resorted to just using alt-i and forcing that output but I think I should be able to type an M94 and M95 command, but can't find in the source code which /n to include after. I'm guessing I need to map a system variable (SV_M94_M95_nn) to OUT7 or SpindleBrakeRelease but can't see how to do that. report attached, any info appreciated.
I am probably missing something really obvious but I've read the manuals and the PLC source code and can't work out the M94 and M95 code to turn my spindle brake on and off. I have it wired into OUT7 and set up in the wizard, it works automatically when I start/stop the spindle using M3/M4/M5 but sometimes I want to release it to turn the spindle manually to look at tool tips etc or change carbides. I've resorted to just using alt-i and forcing that output but I think I should be able to type an M94 and M95 command, but can't find in the source code which /n to include after. I'm guessing I need to map a system variable (SV_M94_M95_nn) to OUT7 or SpindleBrakeRelease but can't see how to do that. report attached, any info appreciated.
- Attachments
-
- report_0008DC111213-0701240191_2025-04-30_15-02-20.zip
- (1.04 MiB) Downloaded 2 times
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 697
- Joined: Thu Feb 08, 2018 7:57 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: M94 M95 to turn spindle brake on and off
I dont have a lot of time this morning but this is likely the 'custom' options, if you filter for that you will see something that looks like the variable you are trying to address, you need to assign it there. If you look for my Triac ATC thread, you will find it around page 9 or so .... I had a similar issue.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 697
- Joined: Thu Feb 08, 2018 7:57 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: M94 M95 to turn spindle brake on and off
You either need to use the custom name or the assigned name from the list and then you can call either.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 163
- Joined: Fri Jan 17, 2025 4:01 am
- Acorn CNC Controller: No
- 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: 0008DC111213-0701240191
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Victoria, Australia
Re: M94 M95 to turn spindle brake on and off
Thanks Chaz, I'll have a look through your ATC thread 

(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 163
- Joined: Fri Jan 17, 2025 4:01 am
- Acorn CNC Controller: No
- 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: 0008DC111213-0701240191
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Victoria, Australia
Re: M94 M95 to turn spindle brake on and off
Ah, this is probably it, I'll give it a go tomorrow(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 697
- Joined: Thu Feb 08, 2018 7:57 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: M94 M95 to turn spindle brake on and off
Yep, them.
Ye, some of it my own lack of understanding but there's a lot to understand (as you have seen in your own example). Once it makes sense, its easy.
So it was page 7, not 9. The pain still haunts me!
Ye, some of it my own lack of understanding but there's a lot to understand (as you have seen in your own example). Once it makes sense, its easy.
So it was page 7, not 9. The pain still haunts me!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 517
- Joined: Wed Jan 23, 2019 4:19 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 80F5B5B92C3A-0213236854
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: M94 M95 to turn spindle brake on and off
You could read your m3/m5 and see what command it uses or verify. Then create a vcp button linked to a custom macro to make it happen. You could also put a toggle switch on your controller that applied and released the brake without acorn being involved.
I do similar for pop up alignment pins on a Router. Hit the button and it pops up the pins and stops the macro with a message. Slide your sheet into place while the pins are up. Hit enter to continue the macro and they release before the macro closes. This way you can't forget or start a file if they are up.
I do similar for pop up alignment pins on a Router. Hit the button and it pops up the pins and stops the macro with a message. Slide your sheet into place while the pins are up. Hit enter to continue the macro and they release before the macro closes. This way you can't forget or start a file if they are up.
Ken
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Site Admin
- Posts: 8879
- 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: M94 M95 to turn spindle brake on and off
why not use the Wizard canned spindle brake output? "SpindleBrakeRelease"
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
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
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 163
- Joined: Fri Jan 17, 2025 4:01 am
- Acorn CNC Controller: No
- 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: 0008DC111213-0701240191
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Victoria, Australia
Re: M94 M95 to turn spindle brake on and off
I have, its set to out7: But that doesn't tell me how to turn it on and off via an M94/95 command as I mentioned above.
I've done that, none of the spindle macros have any reference to spindlebrakerelease or out7 so it must be buried deeper.You could read your m3/m5 and see what command it uses or verify. Then create a vcp button linked to a custom macro to make it happen. You could also put a toggle switch on your controller that applied and released the brake without acorn being involved.
All I want to do is write a macro so I can assign a VCP button or use the MDI to turn the out7 on/off manually but until I know the code/command I can't do that. I thought it was a simple question?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 163
- Joined: Fri Jan 17, 2025 4:01 am
- Acorn CNC Controller: No
- 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: 0008DC111213-0701240191
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Victoria, Australia
Re: M94 M95 to turn spindle brake on and off
Okay, several hours into this 5 minute job I don't know if I've made progress or not. Trying to put together old and new instructions and info and work out what's actually relevant is not so easy.
This video is useful:
Here is the acorn_mill_plc.src section from my configuration, you can see I've assigned SpindleBrakeRelease to OUT7
;------------------------------------------------------------------------------
; Output Definitions
; Logic 1 = OUTPUT ON (Green), 0 = OUTPUT OFF (Red)
;------------------------------------------------------------------------------
; DO NOT MODIFY
; #wizardregion Outputs
LubePump IS OUT1
Flood IS OUT2
Mist IS OUT3
WorkLight IS OUT4
VFDEnable_O IS OUT5
VFDDirection_O IS OUT6
SpindleBrakeRelease IS OUT7
NoFaultOut IS OUT8
AirBlowNozzle IS OUT9
; #endregion
In the source code system variables section where the various M codes or definitions are assigned to bits, I have in line 2235 one I'll never use:
DustFootActivate_SV IS SV_M94_M95_28; DustFootActivate Output
So my understanding so far is that if I just modify that line to the following, compile it, then I can use M94 /28 and M95 /28 and I'm good:
SpindleBrakeRelease_SV IS SV_M94_M95_28; SpindleBrakeRelease Output (OUT7)
That now brings me to my next question. In the youtube video after adding the _SV etc the guy compiles the code at 10m44s:
But there is no mouse click, how did he do that? In TB294 is says to use this link:
http://www.centroidcnc.com/usersupport/ ... +files.zip
That will give the files to add into Notepad++ to compile, but the link is dead and searching the forums for "compile" brings one single hit which isn't related to this. Can anyone point me to the notepad download link that works?
This video is useful:
Here is the acorn_mill_plc.src section from my configuration, you can see I've assigned SpindleBrakeRelease to OUT7
;------------------------------------------------------------------------------
; Output Definitions
; Logic 1 = OUTPUT ON (Green), 0 = OUTPUT OFF (Red)
;------------------------------------------------------------------------------
; DO NOT MODIFY
; #wizardregion Outputs
LubePump IS OUT1
Flood IS OUT2
Mist IS OUT3
WorkLight IS OUT4
VFDEnable_O IS OUT5
VFDDirection_O IS OUT6
SpindleBrakeRelease IS OUT7
NoFaultOut IS OUT8
AirBlowNozzle IS OUT9
; #endregion
In the source code system variables section where the various M codes or definitions are assigned to bits, I have in line 2235 one I'll never use:
DustFootActivate_SV IS SV_M94_M95_28; DustFootActivate Output
So my understanding so far is that if I just modify that line to the following, compile it, then I can use M94 /28 and M95 /28 and I'm good:
SpindleBrakeRelease_SV IS SV_M94_M95_28; SpindleBrakeRelease Output (OUT7)
That now brings me to my next question. In the youtube video after adding the _SV etc the guy compiles the code at 10m44s:
But there is no mouse click, how did he do that? In TB294 is says to use this link:
http://www.centroidcnc.com/usersupport/ ... +files.zip
That will give the files to add into Notepad++ to compile, but the link is dead and searching the forums for "compile" brings one single hit which isn't related to this. Can anyone point me to the notepad download link that works?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)