( LinuxCNC 15/04/2013) (ToolChange T01 Beta Version) M05 G53 G01 Z-74.85 F5000.0 (still a bit to work on the soft limit) G53 G01 Y-10.0 F5000.0 S30 M03 G4 P1 M64 P2 (G4 P3) M66 P0 L4 Q7(wait up to 7 seconds for digital input 0 to turn on in wait mode 4) M05 G4 P1 M65 P2 M2 (motion.digital-in-00- These pins 00 01 02 03 or more if configured) (are controlled by M62-M65) (motion.digital-out-00 These pins 00 01 02 03 or more if configured) (are controlled by M62-M65) (example: M64 P0 (turn on digital out pin 0) (M62 P- - turn on digital output synchronized with motion.) (The P- word specifies the digital output number.) (M63 P- - turn off digital output synchronized with motion.) (The P- word specifies the digital output number.) (M64 P- - turn on digital output immediately.) (The P- word specifies the digital output number.) (M65 P- - turn off digital output immediately.) (The P- word specifies the digital output number.) (M66 Example Lines) (M66 P0 L3 Q5 wait up to 5 seconds for digital input 0 to turn on in wait mode L3) (Wait Mode 0: IMMEDIATE - no waiting, returns immediately.) (The current value of the input is stored in parameter #5399) (Wait Mode 1: RISE - waits for the selected input to perform a rise event.) (Wait Mode 2: FALL - waits for the selected input to perform a fall event.) (Wait Mode 3: HIGH - waits for the selected input to go to the HIGH state.) (Wait Mode 4: LOW - waits for the selected input to go to the LOW state.) (G4 Example Line) (G4 P0.5 wait for 0.5 seconds before proceeding)