If the PIC is being used to run the machine inputs/outputs, then M codes will be sent to the PIC program for decoding via the CNC to PIC table. To use a custom M code under these circumstances, the PIC would have to be programmed to recognize the custom M code and turn on the desired output.
What kind of machine is this? Manufacturer and model number would be helpful. Do you have the PIC "Source" file? |