4.X/Y平面角度测量O9843:
5.沿X/Y方向第四轴角度测量O9817:
附:客户要求工件盲装,测头自动找正工件,转正C轴程序。作为子程序,每次加工前调用。
%8004(EDIT BY LARSON.YE_20180109)
G28G91Z0.
G80G40G49
M19
M101
G04X1.5
G00G90G55X0Y0
G43H16Z80.
G65P9810X25.F2000.
G65P9810Z30.F2000.
G65P9811Z0.
#501=#632
G65P9810X-25.F2000.
G65P9811Z0.
G65P9810Z50.F2000
#502=#632
#500=ABS[#501]-ABS[#502]
#503=ABS[#500]
IF[#503LE0.02]
GOTO11
ENDIF
IF[#500GT0]
GOTO22
ENDIF
IF[#500LT0]
GOTO33
ENDIF
N11 #504=0
GOTO66
N22 #504=ATAN[[#503]/50.]
#504=#504
GOTO66
N33 #504=ATAN[[#503]/50.]
#504=-#504
GOTO66
N66 M100
G91G28Z0.
G91G0C#504
M30
责任编辑:pj
关于测量仪表就介绍完了,您有什么想法可以联系小编。