1.第四旋转轴在工作台(A:绕X轴旋转)
define format ( A ) decimal point = true decimal places = 3 end define word order = ( + A ) define keys
azimuth axis not used elevation axis = A end define
spindle elevation rotation = false ## Default elevation units = degrees elevation axis direction = positive azimuth axis parameters = ( 0. 0. 0. 0. 0. 0. ) elevation axis parameters = ( 0. 0. 0. 1. 0. 0. ) define block move rapid
N ; rapid ; G2 ; G3 ; G6 ; x coord ; y coord ; z coord ; elevation axis ; tool length ; M1 ; M2 end define
define block move linear
N ; linear ; G2 ; x coord ; y coord ; z coord ; elevation axis ; tool radius ; feedrate ; M1 ; M2 end define
2.第四旋转轴在工作台(B:绕Y轴旋转)
define format ( B ) decimal point = true decimal places = 3 end define word order = ( + B ) define keys
azimuth axis not used elevation axis = B end define
spindle elevation rotation = false ## Default elevation units = degrees elevation axis direction = positive azimuth axis parameters = ( 0. 0. 0. 0. 0. 0. ) elevation axis parameters = ( 0. 0. 0. 0. 1. 0. ) define block move rapid
N ; rapid ; G2 ; G3 ; G6 ; x coord ; y coord ; z coord ; elevation axis ; tool length ; M1 ; M2 end define
define block move linear
N ; linear ; G2 ; x coord ; y coord ; z coord ; elevation axis ; tool radius ; feedrate ; M1 ; M2 end define
3.第四旋转轴在主轴(A:绕X轴旋转)
define format ( A )
decimal point = true decimal places = 3 end define
word order = ( + A )
define keys
azimuth axis not used elevation axis = A end define
spindle elevation rotation = true ## Default false elevation units = degrees elevation axis direction = positive
elevation centre = ( 0. 0. 180.5 ) ## E distance azimuth axis parameters = ( 0 0 0 0 0 0 ) elevation axis parameters = ( 0 0 0 1 0 0 )
define block move rapid
N ; rapid ; G2 ; G3 ; G6 ; x coord ; y coord ; z coord ; elevation axis ; tool length ; M1 ; M2 end define
define block move linear
N ; linear ; G2 ; x coord ; y coord ; z coord ; elevation axis ; tool radius ; feedrate ; M1 ; M2 end define
说明4对于第四旋转轴A轴在刀头上的后置,应该设置方位角参数,而不是仰角参数
出NC程序时把刀具长度设置为零(对没有RTCP功能而言),或者按实际长度补偿。
3.第四旋转轴在主轴(B:绕Y轴旋转)
define format ( B )
decimal point = true decimal places = 3 end define word order = ( + B ) define keys
azimuth axis not used elevation axis = B end define
spindle elevation rotation = true ## Default false elevation units = degrees elevation axis direction = positive
elevation centre = ( 0. 0. 180.5 ) azimuth axis parameters = ( 0 0 0 0 0 0 ) elevation axis parameters = ( 0 0 0 0 1 0 ) define block move rapid
N ; rapid ; G2 ; G3 ; G6 ; x coord ; y coord ; z coord ; elevation axis ; tool length ; M1 ; M2 end define
define block move linear
N ; linear ; G2 ; x coord ; y coord ; z coord ; elevation axis ; tool radius ; feedrate ; M1 ; M2 end define
17. 工作台旋转5轴设定
多轴工作时需要设定以下内容(例子中三个主旋转轴被定义为A,B和C,但是实际上只用到了两个旋转轴):
define format ( A B C ) ## 有可能内置后置已定义
metric formats
leading zeros = false trailing zeros = true decimal point = true decimal places = 3 imperial formats leading zeros = false trailing zeros = true decimal point = true decimal places = 4 end define #