Wizard Assigning Random Output Numbers <answered>
Moderator: cnckeith
-
- Community Expert
- Posts: 3512
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: Wizard Assigning Random Output Numbers <answered>
You could always add logic to the PLC along the lines of: if spindle is off and speed < 200rpm then engage mechanical brake.
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 2948
- Joined: Fri May 24, 2019 8:34 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 7804734C6498-0401191832
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Clearwater, FL
Re: Wizard Assigning Random Output Numbers <answered>
Or, could you not just simply add a 2-3 second delay in your M5 before the mechanical brake is engaged. Then you could also manually activate it with the VCP button when needed for tool changes. Unless I’m missing something here, which I often do. 

(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 144
- 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: Wizard Assigning Random Output Numbers <answered>
I've been warned not to meddle with the PLC source code outside the Wizard!
My M5 couldn't be more simple, just two lines:
M95 /1/2/19
G4P.01
The M95 relates to the following in the plc source code:
M3 IS SV_M94_M95_1 ;(Spindle CW)
M4 IS SV_M94_M95_2 ;(Spindle CCW)
M19 IS SV_M94_M95_19;(Spindle Orient), M20 Off
Not so simple to just add in a time delay to stop the brake engaging, as the logic is buried deep into the source code for it. It makes an appearance in the source code around lines 3930 and 5850 but I can't fathom what causes it to turn OUT7 off (brake on, its power to release) and how to add a delay into that. Report attached if anyone has ideas?
My M5 couldn't be more simple, just two lines:
M95 /1/2/19
G4P.01
The M95 relates to the following in the plc source code:
M3 IS SV_M94_M95_1 ;(Spindle CW)
M4 IS SV_M94_M95_2 ;(Spindle CCW)
M19 IS SV_M94_M95_19;(Spindle Orient), M20 Off
Not so simple to just add in a time delay to stop the brake engaging, as the logic is buried deep into the source code for it. It makes an appearance in the source code around lines 3930 and 5850 but I can't fathom what causes it to turn OUT7 off (brake on, its power to release) and how to add a delay into that. Report attached if anyone has ideas?
- Attachments
-
- report_0008DC111213-0701240191_2025-05-09_14-52-21.zip
- (1.11 MiB) Downloaded 2 times
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 511
- 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: Wizard Assigning Random Output Numbers <answered>
I am more simple minded. I manually make my macro's do what I want, and when I want. If you leave an output on 1-8 as output5 in the wizard for instance. Then M65 turns on and M85 turns off. I use those M commands in my macros. Add the delays where I need them and don't have any issues. There are more elegant ways to get it done obviously, but simple things I can understand always suit me.
Ken
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- PLC Expert
- Posts: 231
- 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: Wizard Assigning Random Output Numbers <answered>
Would Commanding an S0 in your M5 macro work for this? Then perform a G4 P3 then do the standard M5 stuff (M95 /1/2) which will engage the brake at that time.richardb15 wrote: ↑Tue May 13, 2025 1:38 am I have an electromechanical brake on the spindle motor, and an electrical resistive one via the VFD, but the VFD one doesn't really do anything as the mechanical one engages and stops the spindle so quick. I'd like to just use the VFD one for the first 2-3 seconds after an M3 command, then have the electro-mech one engage to keep the spindle still for changing ER collets etc but I don't think there is that functionality in the CNC12/Acorn6 to have a brake engage delay. Right now I'm just using the spindlebrake VCP button and drive the mechanical one off all the time xcept when I'm changing collets etc.
Though a PLC solution is perfectly viable as well.
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)
-
- Community Expert
- Posts: 2948
- Joined: Fri May 24, 2019 8:34 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 7804734C6498-0401191832
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Clearwater, FL
Re: Wizard Assigning Random Output Numbers <answered>
That's what I suggested Chris, very easy to do and no PLC edits. And his VCP button would still function for manual engagement when needed.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 144
- 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: Wizard Assigning Random Output Numbers <answered>
Thanks everyone for the thoughts and input, I'll give this a go next time I've got a bit of free time to play around with macros.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)