Can I get a little help with 2 macros? <Resolved>

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
fusion
Posts: 92
Joined: Wed May 09, 2018 7:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0479B7ADF2F3-1127192707
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Greensboro, NC

Can I get a little help with 2 macros? <Resolved>

Post by fusion »

Hello,
I am building a lathe, and I would like to use my Shuttle Express with it. I like the way the jog ring works in a progressive speed for manual machining.

The macros I am trying to make will be activated by AUX1 and AUX2 buttons mapped on the shuttle. M51 and M52.
One will start the spindle at 1000 rpm, and the other will stop the spindle.
I did my best, but they don't seem to work. When I press the button, you can hear a relay click to start the spindle but then nothing happens.
Do I have to be in some specific mode for them to function as I intend?
Is there a better way to have the AUX1 start the spindle and AUX2 turn it off?

Thanks for any help.

Mike
Attachments
mfunc52.mac
(831 Bytes) Downloaded 2 times
mfunc51.mac
(847 Bytes) Downloaded 2 times
report_98038A53EB0B-0203259072_2025-05-02_18-45-58.zip
(978.7 KiB) Downloaded 2 times


cncsnw
Community Expert
Posts: 4536
Joined: Wed Mar 24, 2010 5:48 pm

Re: Can I get a little help with 2 macros?

Post by cncsnw »

When you run a CNC macro from an Aux key or keyboard key, it runs like a mini CNC job.

When you start the spindle with M3 or M4, in Auto spindle mode, it runs as long as the M3 or M4 request is maintained.

At the end of any CNC job, both CNC12 and the PLC program turn off any M3 or M4 requests. That is why the spindle relay immediately turns back off again as soon as your M51 macro is done running.

If you have keys that you want to have function as "spindle start" and "spindle stop", independent of any CNC job cycle that may start or stop, then you need to switch to Manual spindle mode, and you need to make the PLC program treat those keys the same as the VCP and jog panel "spindle start" and "spindle stop" keys.

The keyboard jog panel equivalents for spindle start and spindle stop are usually Ctrl-S and Ctrl-Q. However, those probably don't work unless you have pressed Alt-J to activate the keyboard jog panel.

You will probably have to edit your PLC program to do what you are wanting to do. That way you can bypass the keyboard jog panel limitations, and can also fiddle the spindle speed override percentage when you press your spindle-start key, to set your 1000 RPM level.


Ken Rychlik
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: Can I get a little help with 2 macros?

Post by Ken Rychlik »

In your M3 macro M94 /1 starts the spindle and In the M5 macro M95 /1 turns it off. I have not tried it, but those may work in your custom macros? You might have to also give a speed command for it to function if the vfd needs that.

Another way, if you have a spare relay would be to use your macro to turn on a different relay and tag your wires over to that one from your spindle on relay.

Someone else may have a better idea but one of these approaches may work.
Ken


fusion
Posts: 92
Joined: Wed May 09, 2018 7:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0479B7ADF2F3-1127192707
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Greensboro, NC

Re: Can I get a little help with 2 macros?

Post by fusion »

Thank you both very much!
I think the manual mode set on the VCP and then keyboard shortcuts for start and stop could work perfectly for me. I’ll give it a try.
Thanks again.
Mike


fusion
Posts: 92
Joined: Wed May 09, 2018 7:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0479B7ADF2F3-1127192707
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Greensboro, NC

Re: Can I get a little help with 2 macros?

Post by fusion »

I tested the Ctrl S, and Q, and that worked perfectly!
Thank you!


Post Reply