Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jeff johnson on February 05, 2015, 01:04:17 PM

Title: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 01:04:17 PM
On my screen I have 2 AUX Output buttons, that trigger 2 relays. AUX 1 is set to output 1 and automatically triggers when I hit Start. Its a CANDCNC electronics with 2, 110v outputs controlled by relays. How do I get the other relay, which is set to output 2 to also trigger at Start? I can trigger it on by clicking the on screen button, but I need it to start also at Start to trigger the VFD controlled Spindle. Do I edit a line in my Post Processor or do I set something in Mach? I am sorry but I havent messed with Mach for about a year and I forgot what little I did know, and I tried searching but I guess I didnt know how to word it.
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 01:15:09 PM
If they are VB buttons, compare the scripts.
Make 2 like 1.
Under OPERATOR, click Edit Btton Scripts. They will blink if they are script buttons. Click on them to see the innards.
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 01:35:19 PM
I tried this just now and they are not VB Buttons.
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 01:36:02 PM
Could they be a G Code in the Post Processor?
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 01:49:42 PM
Open them up with Screen4 and see what is assigned to them.
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 01:55:20 PM
I know that there is an M03 code in my PP that turns on relay 1 and I am thinking M07 may turn on relay 2. I will try the screen 4 look. Thanks
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 01:56:55 PM
You might change the START button to  VB to activate the outputs as well as start the cycle.
Maybe it is this way for output 1 already ?
Easy enough to check.
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 02:04:31 PM
Ok you lost me on changing the start button to VB . I looked at both tabs in Screen 4, relay 1 is an OEM code 110,  and relay 2 is an OEM code 113....????? What ever that means.
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 02:05:19 PM
 automatically triggers when I hit Start. Its a CANDCNC electronics with 2, 110v outputs controlled by relays. How do I get the other relay, which is set to output 2 to also trigger at Start? I can trigger it on by clicking the on screen button, but I need it to start also at Start to trigger the VFD controlled Spindle. Do I edit a line in my Post Processor or do I set something in Mach? I am sorry but I havent messed with Mach for about a year and I forgot what little I did know, and I tried searching but I guess I didnt know how to word it.

Do you mean Cycle Start ??? or Spindle Start ??
If Spindle, it would probably all be in the M3 macro.
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 02:08:22 PM
Ok you lost me on changing the start button to VB . I looked at both tabs in Screen 4, relay 1 is an OEM code 110,  and relay 2 is an OEM code 113....????? What ever that means.
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 02:16:24 PM
It triggers relay 1 when I hit cycle start. I can manually hit them both at anytime with the mouse and trigger them. I think its controlled now under "spindle setup". In my PP i see the M3 command. So just for simplicity couldnt I edit my PP and have it trigger the 2nd relay with M7 or M8 OEM code 113 or 114?
Title: Re: How Do I Trigger Output at Startup
Post by: jeff johnson on February 05, 2015, 03:02:33 PM
Ok I got it to trigger by editing my PP. I added the M7 code. Thanks for all your help. Now if you know what code I can use to make everything pause while the spindle gets to speed ?
Title: Re: How Do I Trigger Output at Startup
Post by: Overloaded on February 05, 2015, 04:01:41 PM
Config/ports and pins/spindle setup