11691
General Mach Discussion / Re: Need spindle use the other M command ,not M3,M4 and M5 ,How to set up ?
« on: May 17, 2011, 11:21:10 AM »
You could use M7 or M8 and M9 would switch them off, they are meant for Mist and Flood coolant but that doesnt mean you have to use them for that. If you want to use them then just set up the relay option for Flood/mist on Spindle setup page of Ports and Pins and then set the output to the pin you will use.
You could also write a custom macro and name it something like m101.m1s and another called m102.m1s and place them in the macro folder of the profile you use.
If you had for example
ActivateSignal(OutPut1)
in m101.m1s macro it would switch output 1 on when you called m101 from code or MDI. Likewise the m102.m1s macro would have
DeActivateSignal(OutPut1)
in it and when you called M102 it would turn off Output 1
Hood
You could also write a custom macro and name it something like m101.m1s and another called m102.m1s and place them in the macro folder of the profile you use.
If you had for example
ActivateSignal(OutPut1)
in m101.m1s macro it would switch output 1 on when you called m101 from code or MDI. Likewise the m102.m1s macro would have
DeActivateSignal(OutPut1)
in it and when you called M102 it would turn off Output 1
Hood