-
DuctPost1430
后置处理的修改说明
1.
2.
3.
4.
5.
指导思想:
确定机床认同的标准代码文件;
可使用
DUCTPOST
–
W >C:
利用
< br>PM
已有的
3
轴后置来获取数控
系统的基
本后置
使用
DUCTPOST
标准后置产生机床的加工代码文件;
对比两者的差异,增加自定义用户化信息,由于增加信息无条件优先,它会替代系统默认
的原始
信息,不断修改直到
DUCTPOST
< br>产生的加工代码文件和所需标准代码文件一致;
修改中
注意备份和重命名(建议增加机床具体型号以示区别)
,删除用户化信息后,后置将自动
还原成系统初始默认的标准后置;
具体参数:
程序行号
a)
如果系统不需要行号,那么重新
定义批号键“
N
”
define format ( N )
not
permanent
end
define
b)
如果系统需要行
号起始行号“
10
”
,增量行号“
p>
5
”
,可如下定义批号键“
N
”
block
start = 10
block increment =
5
c)
如果机床能认同的最大行号有所限制,那么可以插入下面的选项
maximum block number =
5999
(
or whatever value
required
)
d)
需要特殊的行号的地方多半定义一些特殊技能
N1000 BEGIN PGM SPECIAL MM
N1000 TOOL CALL 0 Z S3000
N1000 M55
N1000
M3
N1000 CYCL DEF 19.0
BEARBEITUNGSEBENE
N1000
CYCL DEF 19.1 A0 B0 C0
N10
L X0.0 Y0.0 Z150.0 B0 C0 FMAX
N12 L X254.345 Y146.780 B90.0 C35.250
FMAX
N14 L Z-55.70 FMAX
N16 L
...........................
1.
建议采用下面的格式
define
word NF
address letter
=
address width
= 5
field width = 0
end define
word order = ( + NF )
define block tape start
NF 0
;
;
ID PartID
;
metric data
end define
define block tool change first
NF
0
;
T2
0
;
Z
;
S 3000
NF
0
;
M1 55
NF
0
;
M1 3
NF
0
;
G4 190
;
NF
0
;
G4 191
;
A
0
;
B
0
;
C
0
N
;
G1
;
X FromX
;
Y
FromY
;
Z
FromZ
;
B =C
;
C =C
;
FMAX
end define
2.
线形移动
通常线形输出的标准格式为
G01 X... Y...
Z... F...
G01
(
G1
)是直线命令,
XYZ
< br>是绝对或增量坐标,
F
是进给速度
3.
快速移动
典型的快速移动输出格式可能象这样
G00
G43 X... Y... Z... S... H....
M3
4.
圆弧运动
通常线形输出的标准格式为
G02<
/p>
(
G03
)
X... Y... I... J... F...
xy
Plane ( G17 )
G02
(
G03
)
X... Z... I... K... F...
zx
Plane ( G18 )
G02
(
G03
)
Y... Z... J... K... F...
yz
Plane ( G19 )
G2/G3
代表顺圆
/
逆圆,
X
,
Y
,
Z
< br>代表圆弧终点坐标,
I
,
J
p>
,
K
代表圆心,设置如下:
define codes
circle cw
= G1 2
circle ccw
= G1 3
xy plane
= G3 17
xz plane
= G3 18
zy plane
= G3 19
end define
I
,
J
,
K
表现为绝对坐
标时设置为:
incremental centre = false
I
,
J
,
< br>K
表现为相对坐标时设置为:
incremental
centre = true
假如圆心坐标
I
,
J
,
K
符号不对(如果更改过圆心类型,一定要主义检查)
,可以这样改正
define format ( I J K )
scale factor = -1
or
1
end define
有的机床不
能输出整圆,需要将整个圆弧分为四个象限输出,此时需要作如下设定
single quadrant = true
圆弧可以被强制输出为直线段,可作如下设定
integer 26
=
0
更常用
或者
circle output
= (
0 1 1 1
)
在
ductpost1430
中圆弧可以分平面强制输出为直线段
,可作如下设定
suppress xy arc =
true
default =
false
suppress zx arc =
true
default =
false
suppress yz arc =
true
default =
false
5.
信息输出
信息输出设置是个二进位选
项,默认值是有信息输出,如果不需要,直接添加
message output
=
false
6.
行程极限
轴向移动行程限制由下面的
命令行控制(缺省值)
:
linear axis limits = ( -99999.
99999.
-99999.
99999.
-99999.
99999. )
第一对数据控制
X
的正负极限行程,第二对控制
Y
,第三
对控制
Z
。如果这些行程限制被超越,
警告信息将被打印出来,后置过程中将出现“
X
太小(太大)超
越了负极限行程(正极限行程)
在某某区”
,然后继续输出真实
值。
轴向转动行程限制由下面的命令行控制(缺省值)
:
rotary axis limits
= (
-99999
999999
-99999
999999
999
1 )
第一对
数据控制方位角的正负极限行程,
第二对数据控制俯仰角的正负极限行程,
最后一对数据
反应了执行角度变化允许移动的次数和角度公差。以
4
轴加工为例:
rotary axis limits = (
0.0
0.0
-360.0
360.0
0.1
4
)
如果旋转极限被超越,刀具将缩回到预先远离工作曲面的高
度,然后转轴复位,增量执行旋转角
度,直到在限定次数内完成所需的角度旋转。如果是
5
轴的案例:
rotary axis limits = (
-20.0
110.0
-3600.0
3600.0
0.1
4
)
在某些环境中行程限制被超越是可
能的,
但只是从方位角和俯仰角中选一个进行调配却是不可能
的
,警告信息提示后后置过程将被终止。
7.
字符定义
在
DUCT
后置的内嵌式加工源代码中,有一个初始化的字符定义清单,如下例:
machine tiger
define word /
address letter =
end define
define word N
address
letter =
end
define
define
word G1
address letter =
end define
define word G2
address
letter =
end
define
etc.
.................
.......
上面每一个定义都确定了一个字符值。
/
=
word[1]
N
=
word[2]
G1
=
word[3]
;
以及清单下面
的其他定义。
在某些场合我们不得不定
义一些变量名来实现一定的功能,
这种手段还是非常有用
的。<
/p>
8.
十进制输出
加入
integer 51 = n
到
opt
文件
integer 51
= ( n )
小数输出格式
=1
小
于
1
的数字被输出为
.xxxx
(
例如
:
.871
)
大于
1
的数
字被输出为
xxxx.
(
例如
:
34.
)
=
2
小于
1
的数
字被输出为
(
例如
:
0.871
)
p>
大于
1
的数字被输出为
xxxx.
(
例如
:
34.
)
=
3
小于
1
的数
字被输出为
.xxxx
(
例如
:
.871
)
p>
大于
1
的数字被输出为
xxxx.0
(
例如
:
34.0
)
=
4
<
/p>
小于
1
的数字被输出为
< br>
(
例如
:
0.871
)
p>
大于
1
的数字被输出为
xxxx.0
(
例如
:
34.0
)
=
5
与
3
相同
=
6
<
/p>
小于
1
的数字被输出为
< br>
.xxxx
(
例如
:
.871
)
p>
大于
1
的数字被输出为
xxxx
(
例如
:
34
)
注意:此设置会影响所有十进制输出格式
9.
掠过速度
10.
进给速率精度
11.
程序快速分割
12.
持续轮廓速度
13.
刀具径向补偿
14.
钻孔循环
15.
刀具轴向补偿
16.
简单四轴设定
多轴机床需作以下设定
(在下例中三个主旋转轴被定义为
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
word order
=
(
+ A B C )
##
仅内置词序列表不存在时需要
block order = true
##
取代词序列表
,
使用
定义顺序
define
keys
azimuth axis
not used
##
只有一个旋转轴不需要
elevation axis
=
A
##
第四旋转轴通常为仰角
(
例如绕
X
轴旋转
)
end define
##
elevation axis
包括
A
或者
B
,或者
C
,需要插入
Rapid
和
Linear
定
义块
define block move
rapid
N rapid G2 G3 G6 x coord y
coord z coord
elevation
axis
spindle tool length M1
M2
end define
define block move linear
N linear G2
; x coord y coord z coord
elevation axis
feedrate
M1 M2
end define
旋转轴参数设定
当包括任何旋转轴时,下列参数必须设定
azimuth axis
parameters
= (
0.
0.
0.
1.
0.
0.
)
elevation axis parameters
=
(
0.
0.
0.
0.
1.
0.
)
前三个数字给出了旋转中心(
0.
0.
0.
通常用来设定单旋转工作台)
后三个
数字定义了绕
X
,
Y
< br>或者
Z
轴其中哪个轴旋转
第四旋转轴是刀头旋转时
必须作以下设定
spindle elevation rotation
=
true
##true
时为主轴旋转,
false
时是工作台旋转(默认)
elevation centre
=
(
0.
0.
180.5
)
##
仅用于主轴方向偏离旋转中心,
通常沿
Z
轴。
(
注意这些数值必须有小数点
(
0.
而不是
0
)
输入的距离是刀夹面到旋转中心(
在上面的例子中这个距离是
Z
轴方向
1
80.5
)
刀夹顶端到刀具端头的距
离则可以在
duct
或者
PowerM
ill
的刀具长度中设定。
注意
p>
:有些机床自身有刀具中心点管理功能,此时中心偏置必须设置为
0
.
。
附加参数:
elevation axis units
=
degrees
elevation axis direction
=
positive
##
标准旋转方向
pcs origin
=
( 0
0
0
0
0
0 )
##
(
缺省值
,
很少使用
,
主要由于
5
轴
)
## Azimuth Min
Max
Elev'n Min
Max
Tol.
Moves
rotary axis
limits
= ( -99999
99999
-99999
99999
0.1
1
)
##
缺省值,可
以无限旋转
公差值(
Tol.
)是由
Ductpost
移动
设置值保持的角度位移公差。
保持最高公差和最小移
动可以提高机床性能。
(从
DP1331
起,移动功能(最后一个数字)是多余的,被“
linearise
multiaxis moves
= true
”代替,它会自动调整移动数值使加工达到设定的公差)
。
四轴示例:
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
p>
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
轴在刀头上的后置,应该设
置方位角参数,而不是仰角参数
出
N
C
程序时把刀具长度设置为零(对没有
RTCP
功能而言)
,
或者按实际长度补偿。
< br>
3.
第四旋转轴在主轴(
B<
/p>
:绕
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.
工作台旋转
< br>5
轴设定
p>
多轴工作时需要设定以下内容
(例子中三个主旋转轴被定义为
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
#
word order
=
( + A B C )
##
仅内置词序列表为定义时使用
#
block order =
true
##
取代词序列表
,
使用
顺序
#
define keys
azimuth axis
=
A
##
第四轴通常为方位角
(
工作台倾斜轴
)
elevation axis
=
C
##
第五轴通常为仰角
(
处于倾斜工作台上的旋转工作台
)
end define
##
方位轴和仰角轴
(
A
,
和
/
或
B
,
和
/
或
C
)
需要在快速移动和线性移动块中定义
define block
move rapid
N rapid G2 G3 G6 x coord y
coord z coord
azimuth
axis
elevation
axis
spindle tool length M1
M2
end define
#
define block move linear
N linear
G2 x coord y coord z coord
azimuth axis
elevation axis
tool radius
; feedrate M1 M2
end define
旋转轴参数设定:
以下参数需要定义
azimuth axis parameters
=
(
0.
0.
0.
1.
0.
0. )
elevation axis parameters =
(
0.
0.
0.
0.
0.
1.
)
前
三个数字定义旋转中心,
方位角倾斜工作台通常不偏离仰角轴的中心线
< br>(因此这些值将被设置
为
0.
0.
0.
)
,
但是方位角工作台面中心可能处于倾斜工作台中心线上、
高于或者低于倾斜工作台中
心线。
p>
在第一个图示中旋转仰角工作台面低于方位角倾斜工作台轴中心线,为了让后置处理器考
p>
虑到这个偏置,
需要在
elevation
axis parameter
中设定这个差值。
此值的正负取决于机床制造商设定
的机床旋转中心在什么地方,通常这个中
心在倾斜工作台旋转轴的中心线上。
比如说,设定一个偏置值为
80.56
mm
,像下面这样
elevation axis parameter
= (
0.
0.
80.56
)
##
正值使用于低于,负值使用于高于,如果
处于方位角旋转中心线上此值为零
如果机
床旋转中心被定义在仰角工作台面上,那么此值的符号相反。
后三个数字定义绕哪个轴旋转。
注意
1<
/p>
:这些数值可以带小数点,也可以不带小数点(
0.
)或者(
0
)
注意<
/p>
1
:有些机床的控制系统可以自动进行旋转转换,此时中心偏置应
该设置为零。
附加参数:
spindle azimuth
rotation
=
false
##
工作台旋转时缺省值
azimuth axis units
= degrees
##
常用单位
(
缺省可以是
none )
azimuth
axis direction
= positive
##
所需的标准旋转方向
(
缺省可以是
none
)
#
spindle elevation
rotation
=
false
##
工作台旋转时缺省值
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.
Moves
rotary axis limits
= (
-99999
99999
-99999
99999
0.1
1
)
##
缺省值
,
实际上可以无限制旋转
#
linearise multiaxis moves
= true
##
缺省设置
multiaxis coordinate
transform
= true
##
缺省设置
#
公差值(
Tol.
)是由
Ductpost
移
动设置值保持的角度位移公差。
保持最高公差和最小移动可<
/p>
以提高机床性能。
(从
DP1331
p>
起,
移动功能
(最后一个数字)
是多余的,
被
“
line
arise multiaxis
moves
= tru
e
”代替,它会自动调整移动数值使加工达到设定的公差)
。<
/p>
工作台旋
转
5
轴示例
p>
下面的例子是针对
5
轴机床的典型最小定义
,有些格式可能不是必须的。
5
轴机床
很可能需要更多的信息,这取决于控制系统。
注释:下列参数必须设定
:
linearise multiaxis moves
=
true
multiaxis
coordinate transform
=
true
除非机床控制系统有自己
的
RTC
计算功能
,
在第一个角度位移之前调用一个相应
的指令
,此时这些参数应被定义为下面这样
:
linearise
multiaxis moves
=
false
multiaxis coordinate transform
=
false
1/
5
轴工作台旋转示例
方位角工作台为
A
,绕
X
旋转;仰角工作台为
C
,绕
Z
旋转
;当
A
轴偏置沿
Z
轴校准为零时。
define format
(
A
C
)
decimal point
=
true
decimal places
=
3
end
define
word order
=
(
+
A
C
)
define
keys
azimuth axis
=
A
elevation axis
=
C
end define
spindle azimuth rotation
=
false
spindle elevation
rotation
=
false
azimuth axis units
=
degrees
elevation axis units
=
degrees
azimuth axis
direction
=
positive
elevation axis direction
=
positive
azimuth axis
parameters
=
( 0. 0. 0.
1.
0. 0. )
elevation axis
parameters
=
( 0. 0. 0. 0.
0.
1.
)
## RTC
zero
. (
Type A
)
在类型
A
中,不需要定义旋转中心偏置,因此机床基准点
X0 Y0 Z0
被定义在仰角工作台面中
心,沿方位角倾斜工作台
X
(或者
Y
)轴旋转中心线对齐校准为零
。
elevation axis parameters
=
( 0. 0.
55.0
0. 0.
1.
)
## RTC 55mm
高于零点
(
Type
B
)
在类型
B
中,
机床基准点
p>
X0 Y0 Z0
被定义在仰角工作台面中心并且仰角工作台面低于
方位角
倾斜工作台旋转中心线
55.0 mm.
,因此后置必须考虑到这个偏置。
elevation axis parameters
=
( 0. 0.
-55.0
0. 0.
1.
)
## RTC
-
55mm
低于零点
(
Type C
)
在类型
C
中,
机床基准点
p>
X0 Y0 Z0
被定义在仰角工作台面中心并且仰角工作台面高于
方位角倾
斜工作台旋转中心线
55.0 mm.
,因此后置必须考虑到这个偏置。
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
)
linearise multiaxis moves
=
true
multiaxis coordinate
transform
=
true
withdrawal amount = 100.0
integer 3
= 1
-
-
-
-
-
-
-
-
-
上一篇:初中英语-词性转换-归纳汇总
下一篇:SYNOPSYSVCS常用命令使用详解