p o w e r m i l l后处理编写(5轴)5轴主轴头选项文件设置( Up dated 31/01/2001 )以下链接给出的是一个5轴主轴头范例图示 :- ( 主轴头回转轴 )第4旋转轴和第5旋转轴要求下面是多轴旋转加工需在选项文件中定义的内容。
:-( 范例中定义了三个主旋转轴, A , B , 和 C ,但实际应用中多旋转轴加工系统仅会使用其中两个。
)define format ( A B C ) ## 内建源文件中可能已经定义metric formatsleading zeros = falsetrailing zeros = truedecimal point = truedecimal places = 3imperial formatsleading zeros = falsetrailing zeros = truedecimal point = truedecimal places = 4end defineword order = ( + A B C ) ## 仅当内建字排序列表中间没有时需要block order = true ## 不考虑内建排序列表,使用"define block xxx. " 排序define keysazimuth axis = C## 第4旋转轴通常为方位角 ( 立柱回转 )elevation axis = B## 第5回转轴通常为仰角 ( 主轴回转 )end define## " A, 和 /或B, 和 /或C " 均需插入到Rapid 快进和Linear 线性程序段中,其和对齐轴相关。
( 范例图示,B绕Y旋转,C绕Z旋转)define block move rapidN ; G1 ; G2 ; G3 ; G6 ; X ; Y ; Z ; B ; C ; S ; H ; M1 ; M2end definedefine block move linearN ; G1 ; G2 ; X ; Y ; Z ; B ; C ; F ; M1 ; M2end define旋转轴参数设置以下参数需包含在旋转轴选项中。
spindle azimuth rotation = true ## 旋转工作台缺省为 falsespindle elevation rotation = true ## 旋转工作台缺省为false上面定义了立柱column / 主轴spindle 是回转轴。
azimuth axis parameters = ( 0 0 0 0 0 1 )elevation axis parameters = ( 0 0 0 0 1 0 )在此,两个轴的头三位数字都设置为0 0 0,它们通常是为工作台保留。
而主轴方位角spindle azimuth和仰角偏置elevation offsets通过azimuth和elevation centre参数设置。
azimuth centre = ( 0. 0. 0. ) ## 通常不会在方位角方向出现偏置 )elevation centre = ( 0. 0. 180.5 ) ## Z轴上偏置 180.5mm Z第二组的三个数字定义工作台旋转时旋转轴是绕X轴还是绕Y轴或是绕Z轴旋转。
(方位轴和仰角轴不能同时对齐于同一轴。
方位角是主对齐角 ) )由此我们知道,上述范例表示了一个方位角绕Z轴旋转 ( 矢量 0. 0. 1. ),仰角绕Y轴旋转( 矢量 0. 1. 0.) 的机床。
( 注 1 :-这些数字可写成 ( 0. ) -带点或( 0 ) -不带点。
)( 注 2 :-有些机床控制器可能会使用一些他们自己特有的代码将回转中心虚拟在刀尖中心。
这种情况下请将方位角中心偏置elevation centre offset设置为零。
额外参数azimuth axis units = degrees ## 常规单位( 缺省可能为 none )azimuth axis direction = positive ## 需要的常规旋转方向 ( 缺省可能为none )elevation axis units = degrees ## 常规单位 ( 缺省可能为 none )elevation axis direction = positive ## 需要的常规旋转方向 ( 缺省可能为none )pcs origin = ( 0 0 0 0 0 0 ) ## ( 缺省, 仅用在某些5轴水平主轴对齐中 )## Azimuth Min Max. Elev'n Min Max. Tol. Movesrotary axis limits = ( -99999 99999-99999 99999 0.1 1 ) ## 缺省值,virtually 无限制回转( 设置范例 )rotary axis limits = ( -360.0 360.0-110.0 110.0 0.1 4 ) ## 主轴方位角立柱Spindle Azimuth Column回转限制在任意方向一圈,主轴倾斜仰角回转限制在+/- 110度。
双边均为零 [ 垂直Vertical ] )公差值 ( Tol. ) 是Ductpost在移动次数设置中保持的角度偏移公差。
相应地保持公差和移动次数到最高和最低值可得到好的加工质量。
( 从 DP1331 开始,移动功能 ( 最后的数字 ) 被" linearise multiaxis moves = true " 取代,它将自动调整移动次数,以满足公差设置。
)( 注 3 :- 在此我们假设立柱 Column 是垂直的,刀具点垂直向下于C 0 , B 0 ,或立柱 Column 是水平的,刀具点水平于C 0, B 0。
如果立柱 Column 是水平的且 B 0 是垂直相似或向下,请于 Delcam Support 联系。
)请同时参考5-轴主轴范例返回 :- 顶部 : 参数旋转5轴范例( 最新更新 24/02/2006 –未完成 ) 以下范例是多轴加工需要的典型最小定义。
某些格式如果已经在源代码中定义,这些格式就不再需要。
因此事先检查一下,避免在选项文件中增加一些不必要的额外的内容。
5 轴加工也许需要比下面范例中给出信息更完整的信息,具体需要什么样的信息和控制器类型和控制器功能有关。
本节最后部分对这方面内容做了一些阐述。
1/ 5轴工作台 2/ 5轴主轴头和工作台联动 3/ 5轴主轴头4/ 5轴45度, 回转头 ( DMG - DMU*P系列 )5/ 5轴 45度,回转工作台 ( DMG - DMU*V系列 )配置参数1/ 5轴工作台Azimuth方位角倾斜工作台(A)绕X轴旋转,Elevation仰角工作台(C)绕Z 轴旋转,(A)零对齐于Z轴define word M5address letter = “M”address width = 1field width = 2modalend definedefine word M6address letter = “M”address width = 1field width = 2modalend definedefine format ( A B C ) ##源文件中A没能正确定义。
field width = 8modalmetric formatsdecimal point = truedecimal places = 3trailing zeros = falseleading zeros = falseimperial formatsdecimal point = truedecimal places = 4trailing zeros = falseleading zeros = falseend defineword order = ( + A C )define keysazimuth axis = Aelevation axis = Cend definedefine codes# elevation clamping codes ## 其它地方另行处理 ( 查看 Clamping ) clamp on = M5 11clamp off = M5 12# azimuth clamping codesazimuth clamp on = M6 21azimuth clamp off = M6 22end definespindle azimuth rotation = falseazimuth axis units = degreesazimuth axis direction = po si tiveazimuth axis parameters = ( 0.0 0.0 0.0 1 0 0 ) ## RTC 零。
查看下面的注-1 ( 类型 A )或azimuth axis parameters = ( 0.0 0.0 55.01 0 0 ) ## RTC 零点之上55mm 。
查看下面的注释 ( 类型 B )或azimuth axis parameters = ( 0.0 0.0 -55.01 0 0 ) ## RTC -零点之下55mm 。
查看下面的注释 ( 类型 C )spindle elevation rotation = falseelevation axis units = degreeselevation axis direction = positiveelevation axis parameters = ( 0.0 0.0 0.0 0 0 1 )linear axis limits = ( -1750.0 1200.0 -875.0 875.0 -250.0 250.0 )rotary axis limits = (-95.0 35.0 -3600.0 3600.0 0.01 1 )initial tool vector = ( 0 0 1 ) ## 主轴和Z轴对齐。
缺省workplane angles = none ## 查看下面的注释-6multiaxis coordinate transform = truelinearise multiaxis moves = trueretract at angular limit = true ## 缺省 = falsewithdrawal amount = 100.0integer 3 = 1define block move rapidN ; rapid ; G6 ; x coord ; y coord ; z coord ; azimuth axis ; elevation axis ; S ;H ; M1 ; M2end definedefine block move linearN ; linear ; G2 ; x coord ; y coord ; z coord ; azimuth axis ; elevation axis ; tool radius ; feedrate ; M1 ; M2end define## This is the minimum requirement, it could well require additional embellishment to meet certain functions.## It is not essential to have the rotary axes in the Rapid block as it isn’t used for multi axis working.NOTE : For Heidenhain use G1 in place of “ rapid ” and “ linear ”, leave out G2, and us RR instead of “ tool radius ”( 返回顶部 ) 2/ 5轴主轴头和工作台联动回转刀具主轴(B)绕Y回转,工作台C绕Z旋转,B为零 ( 垂直)define format ( A B C )field width = 8modalmetric formatsdecimal point = truedecimal places = 3trailing zeros = falseleading zeros = falseimperial formatsdecimal point = truedecimal places = 4trailing zeros = falseleading zeros = falseend defineword order = ( + B C )define keysazimuth axis = Belevation axis = Cend definespindle azimuth rotation = trueazimuth axis units = degreesazimuth axis direction = positiveazimuth centre = ( 0.0 0.0 185.56 ) ## 查看下面的注释-2azimuth axis parameters = ( 0.0 0.0 0.0 0 1 0 )spindle elevation rotation = falseelevation axis units = degreeselevation axis direction = positiveelevation centre = ( 0.0 0.0 0.0 )elevation axis parameters = ( 0.0 0.0 0.0 0 0 1 )linear axis limits = ( -1750 0 1200.0 -875.0 875.0 -250.0 250.0 )rotary axis limits = ( -110.0 110.0 -3600.0 3600.0 0.01 1 )initial tool vector = ( 0 0 1 ) ## 主轴对齐于Z轴。