M96 Jump If No Input

Next Generation Control Mill Operator's Manual

The Online Interactive Operator's Manual is currently available in English only.

A PDF version of the Operator's Manual is available for download in multiple languages. Click the link below to view the Operator's Manual in your language. Click "Continue" to view the online version in English.

Get a translated PDF Download Continue
P - Program block to go to when conditional test is met
Q - Discrete input variable to test (0 to 255)

M96 is used to test a discrete input for 0 (off) status. This is useful for checking the status of automatic work holding or other accessories that generate a signal for the control. The Q value must be in the range 0 to 255, which corresponds to the inputs found on the diagnostic display I/O tab. When this program block is executed and the input signal specified by Q has a value of 0, the program block Pnnnn is performed (the Nnnnn that matches the Pnnnn line must be in the same program). The M96 sample program uses input #18 M-FIN INPUT

Example:

% O00096(SAMPLE PROGRAM FOR M96 JUMP IF NO INPUT) ; (IF M-FIN INPUT #18 IS EQUAL TO 1 THE PROGRAM WILL JUMP TO N100) ; (AFTER JUMPING TO N100 THE CONTROL ALARMS OUT WITH A MESSAGE) ; (M-FIN INPUT=1) ; (IF M-FIN INPUT #18 IS EQUAL TO 0 THE PROGRAM JUMPS TO N10) ; (AFTER JUMPING TO N10 THE CONTROL DWELLS FOR 1 SECOND THEN JUMPS TO N5) ; (THE PROGRAM CONTINUES THIS LOOP UNTIL INPUT #18 IS EQUAL TO 1) ;
G103 P1 ; ... ; ... ; N5 M96 P10 Q18(JUMP TO N10 IF M-FIN INPUT #18 = 0) ; ... ; M99 P100(JUMP TO N100) ; N10 ; G04 P1. (DWELL FOR 1 SECOND) ; M99 P5 (JUMP TO N5) ; ... ; N100 ; #3000= 10(M-FIN INPUT=1) ; M30 ; ... ; %
P - Program block to go to when conditional test is met
Q - Discrete input variable to test (0 to 63)

This code tests a discrete input for 0 (off) status. This is useful for checking the status of automatic work holding or other accessories that generate a signal for the control. The Q value must be in the range 0 to 63, which corresponds to the inputs on the diagnostic display (The upper left input is 0 and the lower right is input 63. When this program block is executed and the input signal specified by Q has a value of 0, the program block Pnnnn is performed (the Pnnnn line must be in the same program).

N05 M96 P10 Q8 (Test input #8, Door Switch, until closed) ; N10 (Start of program loop) ; . ; . (Program that machines part) ; . ; N85 M21 (Execute an external user function) ; N90 M96 P10 Q27 (Loop to N10 if spare input [#27] is 0) ; N95 M30 (If spare input is 1 then end program) ;

Be aware: Many service and repair procedures should be done only by authorized personnel. The service technicians at your Haas Factory Outlet (HFO) have the training, experience, and are certified to do these tasks safely and correctly. You should not do machine repair or service procedures unless you are qualified and knowledgeable about the processes.

Danger: Some service procedures can be dangerous or life-threatening. DO NOT attempt a procedure that you do not completely understand. Contact your Haas Factory Outlet (HFO) and schedule a service technician visit if you have any doubts about doing a procedure.

Feedback