I have a problem with wrong axis move on plane change after using G18 code in my program.
after executing line 28, on line 29 instead of doing nothing sometimes z axis start moving
and hit the limit switch ( not enough space to reach Z-25.0 ).
Same code work fine most of the time but sometimes without any reason this happens and it ruins my workpiece
and it can be multiple times in a row .
- Code: Select all
N14 G17 G21 G40 G49 G50 G54 G64 G69 G90 G92.1 G94
N15 M500(Check if machine is homed)
N16 T0M6( Move machine in initial position and deactivate all tools)
N17 (Hinge 1)
N18 (Door_No1)
N19 M510 (Message to operator where to place workpiece)
N20 T3 M6
N21 S3000
N22 M3
N23 G53A134.17 (position A axis at correct angle)
N24 G53Y-10.0
N25 G53X2291.0Z-88.48757642444949
N26 G53Y239.64251655782027
N27 G92X0Y-25.0Z33.0
N28 G18
N29 G0 Y-25.000
N30 G0 X0.000 Z33.000
N31 G0 Y0.000
N32 M505(drill)