Machsupport Forum
		Mach Discussion => General Mach Discussion => Topic started 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.
			
- 
				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.
- 
				I tried this just now and they are not VB Buttons. 
			
- 
				Could they be a G Code in the Post Processor?
			
- 
				Open them up with Screen4 and see what is assigned to them.
			
- 
				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 
			
- 
				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.
 
- 
				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.
			
- 
				  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.
- 
				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.
 
 
- 
				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? 
			
- 
				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 ?
			
- 
				Config/ports and pins/spindle setup