Not exactly sure what you mean but if you want to operate a brake from code you can write a macro to activate/deactivate an output and have that in your code. You could also use one of the coolant outputs if you are not using them, for example if you are not using the Mist output you could then hook up the brake and M7 and M9 in your code would switch it on/off. Only problem with that is M9 will also switch off flood so if you were using that you would need to switch it back on after the m9 had been used to switch off the mist.
Hood