Can someone tell me how to do this?
I am working on a custom DMM drive; I need this in addition to the enable pin for the axis. I am going to test the spindle brake release for now.
Is there some documentation on how to custom control the outputs?
Thanks,
Clay
C axis M50/M51 code to control an output??
Moderator: cnckeith
-
- Posts: 595
- Joined: Tue Sep 12, 2017 10:03 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 1030090099
- DC3IOB: Yes
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: No
- Location: Outside Winston-Salem, NC
- Contact:
C axis M50/M51 code to control an output??
Clay
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/
-
- Posts: 7166
- 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: C axis M50/M51 code to control an output??
please describe how you expect an M50 to act
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
-
- Posts: 595
- Joined: Tue Sep 12, 2017 10:03 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 1030090099
- DC3IOB: Yes
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: No
- Location: Outside Winston-Salem, NC
- Contact:
Re: C axis M50/M51 code to control an output??
Hi Keith.
If you look at the picture you'll see what I am trying to do.
I would also like to use both SpindleFWD and SpindleREV to turn on/off OC4. OC4 blocks the analog output from Acorn and in this case the relay shorts DYN4 pins 13 and 25 to ground. While this is technically functioning, it's not safe for a couple reasons. One, I can turn on and off the spindle brake manually, and that immediately allows analog voltage go to the DYN4 drive which I don't want.
What I would like is for CNC12 to turn on the relay whenever a spindle direction is commanded, whether that is through a running program, or manually.
I also need a safe way to switch modes, manually so I can JOG the C axis, and through G/M codes in a program. I assumed the M50/M51 commands would allow me to turn on and off the MODE output in my diagram. DMM is adding a stop command to the mode switching in my firmware sequence so everything changes safely.
I am pretty excited at how well this is functioning, but I am having to force all the outputs.
Clay
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/