ActivateSignal(OutPutXX) XX is for your output number.
DeActivateSignal(OutPutXX)
Open the VB script editor from Mach in the user tab at the top, paste them in and save the files in the C;/Mach3/Macros/profile you want to use them in. Save as anything between M90000 and M99999.m1s. That is the suggested range for user macros. When you want them to run just call the m code.
Brett