Hey I'm a young guy who's been programming for a little over a year, and i want to know how to properly mirror an image of any part. Im using the machines manual to guide me through it, using the G51.1 code to tell it which axis to mirror and G50.1 to turn it off. My problem is that the machine, goes and totally ignores the Z coordinate I programmed it to do. Here is the code:
N18 T1 M6
N19 G0 G17 G20 G40 G49 G80 G90
N21 G0 G90 G54 X0 Y0
N22 G51.1 X0
N23 G0 G90 G54 X0.115 Y0 S2000M3
N24 G43 H1 Z3.
N25 G1 Z2. F15.
The manual told me to mirror off the program's zero, as I did on line 21 & 22 and it [I]does[I] in fact mirror the code about the X axis because the next line reads X -.115 on the machine. But, when it reads the next line (line 24) the spindle goes past Z3. and keeps going down then, it goes up and finally starts reading Z3 and goes down again to Z2. and performs well after that. (Everything is correct: offsets, tool lengths...etc.)
What is causing this problem? any help would be deeply appreciated Thanks in advance guys.