Page 1 of 1

M3 and m5 macros

PostPosted: Thu Feb 23, 2023 12:50 am
by Lucasclub
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

Re: M3 and m5 macros

PostPosted: Thu Feb 23, 2023 10:49 am
by Battwell
m3 and m5 can be edited. ( i had to for my drilling head code)

Re: M3 and m5 macros

PostPosted: Tue Feb 28, 2023 8:46 am
by Lucasclub
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