To make a m code you just open notepad and type the VB you wish then save as the name of the mcode you want, you save it to the macro folder of your profile. for example open notepad and type
ActivateSignal(OutPut1)
That will activate OutPut 1 of Mach
Save it as m7777.m1s to your profiles macro folder, so if you use the standard Mach3Mill profile you would save it to C:|Mach3\macro\Mach3Mill
Then each time you call m7777 from code it will switch on OutPut 1
To switch it off you will need another macro so the VB fro that would be
DeActivateSignal(OutPut1)
and if you saved as m8888.m1s it would work when your code has m8888 in it.
It is best to leave numbers under 100 for Mach internal and I think it was pointed out to me that numbers between 1000 and
?( sorry I forget) is best left for OEM macros. However in practice as long as you check that no other macro has that number you should be fine but best to stay over 100.
Hood