没操作过以FANUC系统回答你编辑子程序O0101主程序可以是G54 M98 P0101;G55 M98 P0101;G56M98 P0101;G57 M98 P0101;G58 M98 P0101;M30当然你可以用宏程序直接改变坐标系G54N10 #5222=0N20 M98 P0101#5223=#5223+XXXX(你Z轴的偏移工件所需料长IF [#5222LE5XXXX] GOTO20#5222=0M5M30