M3 and m5 macros

If you have a question about the software please ask it here.

M3 and m5 macros

Postby Lucasclub » Thu Feb 23, 2023 12:50 am

Hi there
Can I edit these macros? M3 M5
I want to effectively turn these into timed (millesec) to mimic a momentary switch as my mill spindle currently uses momentary switches

If not can I create a new macro that is called from the buttons on the screen set?

Thank you
Lucasclub
 
Posts: 11
Joined: Mon Oct 31, 2022 10:54 am

Re: M3 and m5 macros

Postby Battwell » Thu Feb 23, 2023 10:49 am

m3 and m5 can be edited. ( i had to for my drilling head code)
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: M3 and m5 macros

Postby Lucasclub » Tue Feb 28, 2023 8:46 am

After spending some time with ChatbotGPT ( it gave me some clues) I found it didn’t help me the way I wanted! LOL

Very simple in the end!
Add following M3 macro
Exec.dospincw()
Exec.Wait(500); Half a second
Exec.Stopspin();

For M5 macro….replace with contents from M3

Effect is to close a NO relay for 1/2 sec ( just like pushing a momentary button )

Runs in parallel with a momentary switch so that when the relay closes it shorts across just like the switch would

THIS IS NOT FOR GENERAL USEAGE NO GUARANTEES WILL WORK ON YOUR MACHINE
Lucasclub
 
Posts: 11
Joined: Mon Oct 31, 2022 10:54 am


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 24 guests