CNC user defined M codes

T

Thread Starter

Tommy H.

Gentlemen,
I have been assigned the wonderful task of interfacing a CNC unit and Haas indexer to a PLC controlled process. While I have managed to grasp the G-code programming, I guess I'm just missing something in the input/output M-code defintion in the CNC program. The information I have been furnished with defines all the special M-code functions, but what I don't get is if I want the CNC to "wait" until say input 1 is on, how the heck do I define that particular input in the CNC program? Likewise, I have to trigger outputs at areas in the CNC.

Please help. This is giving me a headache.
 
Top