Just in the process of writing a macro to check the concentricity of two ends of a part on a horizontal machining centre.
The first end is probed to check if a bore diameter is in tolerance, then it probes the OD of the part, indexes 180deg and probes the other end.
I haven't proved my macro yet, but I think the following would work. The only thing I wanted to do, and this is my question, was have another alarm generated when BOTH X and Y are out of tolerance. What would be the best way of doing this? Would I have to use some kind of counter?
Thanks in advance!
(G65P9814D50.Z-10.H0.1) (PROBE DIAMETER AND CHECK IF IN TOLERANCE)
(G65P9814D80.Z-10.) (PROBE DIA FOR REF CONCENTRICITY)
#605 = ABS[#135] (STORE X VALUE OF CONCENTRICITY REF DIA)
#606 = ABS[#136] (STORE Y VALUE OF CONCENTRICITY REF DIA)
IF [[ABS[[ABS[#135]]-40.]] GT 0.025] GOTO 1003
IF [[ABS[[ABS[#136]]-40.]] GT 0.025] GOTO 1004
GOTO1212
N1002#3000=101(TARGET DIAMETER INCORRECT)
N1003#3000=102(X POSITION FOR CONCENTRICITY OUT OF TOLERANCE)
N1004#3000=103(Y POSITION FOR CONCENTRICITY OUT OF TOLERANCE)
N1212M00
(CONTINUE WITH PROG)