咖迷社区(CAXA数码大方)

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 6917|回复: 6

制造工程师2011r1版后置2问题。。。求 指点

[复制链接]

4

主题

32

帖子

2

积分

新手上路

Rank: 1

积分
2
发表于 2011-8-14 22:35:00 | 显示全部楼层 |阅读模式
问题啊 ,,怎么回事啊?那么乱呢?

jpg

jpg
回复

使用道具 举报

14

主题

96

帖子

49

积分

新手上路

Rank: 1

积分
49
发表于 2011-8-15 10:06:00 | 显示全部楼层
加工参数设置也贴上来吧
回复 支持 反对

使用道具 举报

4

主题

32

帖子

2

积分

新手上路

Rank: 1

积分
2
 楼主| 发表于 2011-8-15 12:43:00 | 显示全部楼层
#------------------------------------------------------------------------------
# Machine Control File: mcf 1.0
# CAXA CAXPost 1.0
#------------------------------------------------------------------------------
# 后置系统:Fanuc
# 描    述:适用于三轴铣床
# 说    明:该文件为后置系统CAXPOST所使用,控制G代码输出。以下划线开头
#           的字符串请不要改变,否则会导致该文件不可使用。
#
# 2005-09-27 Created by CAXA
#------------------------------------------------------------------------------
# 机床配置文件的设定
#------------------------------------------------------------------------------
_begin mcfdlg_set
abs_code = G90 #绝对编程指令
absinc = 0 #0:绝对编程方式,1:相对编程方式
arc3dmode = 0 #0:不输出空间圆弧,1:所有圆弧按空间圆弧输出,2:坐标平面外的圆弧按空间圆弧输出
arc_max = 360.000000 #圆弧最大角度
arc_tol = 0.001000 #圆弧离散成直线时精度
arcmode = 0 #0:圆心相对起点,1:起点相对圆心,2:绝对坐标,3:圆心相对终点,4:圆弧半径为负,当圆心角大于180度时,5:圆弧半径为正,当圆心角大于180度时,6:圆弧离散成直线
caxis_g00_return_zero = 0
cool_off = M09 #关冷却液指令
cool_on = M07 #开冷却液指令
deli_user =  #用户自定义字符,只有delimode = 3时起作用
delimode = 0 #分隔符模式0:无,1:空格,2:Tab,3:自定义字符
drill_modal = 1
end_char = % #结束符
eob =  #行结束符
feed_code = F #速度指令
feed_cut_para =  
feed_cutin_para =  
feed_cutout_para =  
feed_down_para =  
feed_link_para =  
feed_output_mode = 0
feed_up_para =  
file_limit_on = 0
file_max = 5000000 #文件最大长度,单位kb
file_maxline = 99999999 #文件最大行数
firstaxis = 2
firstaxis_stangle = 0.000000
fmax_mode = 0 #0:文件最大长度,1:文件最大行数
g00 = G0 #快速移动指令
g00feed =  #快速移动速度
g01 = G1 #直线插补指令
g02 = G2 #顺时针圆弧插补指令
g03 = G3 #逆时针圆弧插补指令
g17 = G17 #XY平面指令
g18 = G18 #ZX平面指令
g19 = G19 #YZ平面指令
g3darc =  #空间圆弧指令
g40 = G40 #取消刀具补偿指令
g41 = G41 #刀具左补偿指令
g42 = G42 #刀具右补偿指令
g43 = G43 #刀具长度补偿指令
inc_code = G91 #相对编程指令
loadtool_call_mode = 1
machineaxis = 0
machinetype = 0
prog0_to_caxis_x = 0.000000
prog0_to_caxis_y = 0.000000
prog0_to_caxis_z = 0.000000
prog_no = 1200 #程序号
prog_stop = M30 #程序停止指令
rot1max = 99999.000000
rot1min = -99999.000000
rot2_from_rotc_offset_x = 0.000000
rot2_from_rotc_offset_y = 0.000000
rot2_from_rotc_offset_z = 0.000000
rot2max = 99999.000000
rot2min = -99999.000000
secondaxis = 0
secondaxis_stangle = 0.000000
seq_code = N #行号地址
seq_inc = 2 #行号增量,即每两个行号之间的间隔
seq_max = 99999 #最大行号
seq_num = 4 #行号位数,只有seq_zero=1时才起作用
seq_out = 0 #是否输出行号1:是,0:否
seq_start = 10 #起始行号
seq_zero = 0 #行号位数是否填满,1:是,0:否
spn_ccw = M04 #主轴反转指令
spn_code = S #主轴转速指令
spn_cw = M03 #主轴正转指令
spn_stop = M05 #主轴停止指令
start_char = % #起始符
submode = 0
tilt_axis_vx = 0.000000
tilt_axis_vy = 0.000000
tilt_axis_vz = 0.000000
toolcmp_follow = 1 #G41或G42后面是否加D,等于1时才加,其它就不加。
toolrotlength = 0.000000
_end
#------------------------------------------------------------------------------
# 系统变量默认的指令地址符 system variable and register format
#------------------------------------------------------------------------------
# 后面还有若干
_begin sysvar_register
app_h = Z
appfeed = F
ci = I
cj = J
ck = K
clearance = Z_CLEAR
cr = R
cx = X
cy = Y
cz = Z
drillfeed = F
dwelltime = P_CYCL
feed = F
holedepth = Z_CYCL
holedepth2 = Z_CYCL
ntool_adjust_reg = H
ntool_cutcom_reg = D
ntool_num = T
peckdepth = Q_CYCL
prog_no = O
rotatetable = B
safe_h = Z
safedis = R_CYCL
speed = S
startx = X
starty = Y
startz = Z
tool_adjust_reg = H
tool_cutcom_reg = D
tool_num = T
worksurface = Z_WORK
_end
#------------------------------------------------------------------------------
# 指令地址格式register format
#------------------------------------------------------------------------------
#key,name,initvalue,int_num,dec_num,lead,trail,dec,sign,modal,zero,minimum,limit_min,maximum,litmi_max,before,after,formula
_begin register_format
A,A,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
B,B,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
C,C,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
D,D,0.000000,4,0,0,0,0,0,1,1,-10000.000000,0,10000.000000,0,,,1
DEFAULT,,0.000000,4,6,0,1,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
F,F,0.000000,6,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
F_CYCL,F,0.000000,4,3,0,0,1,0,1,1,0.000000,0,10000.000000,0,,,1
G,G,0.000000,3,2,1,0,0,0,1,0,0.000000,0,99999.000000,0,,,1
H,H,0.000000,4,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
I,I,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
J,J,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
K,K,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
M,M,0.000000,4,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
N,N,10.000000,4,0,0,0,0,0,0,0,0.000000,0,99999.000000,1,,,1
O,O,1000.000000,4,0,0,0,0,0,0,0,0.000000,0,9999.000000,0,,,1
P,P,0.000000,4,0,0,0,0,0,1,1,-10000.000000,0,10000.000000,0,,,1
P_CYCL,P,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Q_CYCL,Q,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
R,R,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
R_CYCL,R,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
S,S,0.000000,6,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
T,T,0.000000,2,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
TT,,0.000000,2,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
U,U,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
V,V,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
W,W,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
X,X,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Y,Y,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_CLEAR,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_CYCL,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_WORK,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
_end
#------------------------------------------------------------------------------
# 程序输出控制
#------------------------------------------------------------------------------
_begin program
# 输出空间圆弧
arc_3d
{
$seq,$sgplane,$sgcode,$sgabsinc,
$cx,$cy,$cz,XI($ci),YJ($cj),ZK($ck),$feed,$eob,@
}
# 圆弧输出格式# 圆弧输出圆心方式
arc_center
{
$seq,$sgabsinc,$sgplane,$sgcode,
$cx,$cy,$cz,$ci,$cj,$ck,$feed,$eob,@
}
# 圆弧输出半径方式
arc_radius
{
$seq,$sgabsinc,$sgplane,$sgcode,
$cx,$cy,$cz,$cr,$feed,$eob,@
}
# 高速深孔加工循环
cycle_g73
{
$seq,"G99 G73 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$drillfeed,$eob,@
}
# 反攻丝循环
cycle_g74
{
$seq,"G99 G74 ",$cx,$cy,$holedepth2,$safedis,$dwelltime,
$drillfeed,$eob,@
}
# 精镗循环
cycle_g76
{
$seq,"G99 G76 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$dwelltime,$drillfeed,$eob,@
}
# 取消固定循环指令
cycle_g80
{
$seq,"G80",$eob,@
$seq,$sgabsinc,$sgcode,$startz,$eob,@
$seq,$sgabsinc,$sgcode,$startx,$starty,$eob,@
$seq,$cool_off,$eob,@
$seq,$spn_stop,$eob,@
}
# 钻孔循环(中心钻)
cycle_g81
{
$seq,"G99 G81 ",$cx,$cy,$holedepth2,$safedis,$drillfeed,$eob,@
}
# 带停顿的钻孔循环
cycle_g82
{
$seq,"G99 G82 ",$cx,$cy,$holedepth2,$safedis,
$dwelltime,$drillfeed,$eob,@
}
# 深孔加工循环
cycle_g83
{
$seq,"G99 G83 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$drillfeed,$eob,@
}
# 攻丝循环
cycle_g84
{
$seq,"G99 G84 ",$cx,$cy,$holedepth2,$safedis,$dwelltime,
$drillfeed,$eob,@
}
# 镗孔循环
cycle_g85
{
$seq,"G99 G85 ",$cx,$cy,$holedepth2,$safedis,$drillfeed,$eob,@
}
# 镗孔循环(孔底主轴
回复 支持 反对

使用道具 举报

4

主题

32

帖子

2

积分

新手上路

Rank: 1

积分
2
 楼主| 发表于 2011-8-15 12:43:00 | 显示全部楼层
#------------------------------------------------------------------------------
# Machine Control File: mcf 1.0
# CAXA CAXPost 1.0
#------------------------------------------------------------------------------
# 后置系统:Fanuc
# 描    述:适用于三轴铣床
# 说    明:该文件为后置系统CAXPOST所使用,控制G代码输出。以下划线开头
#           的字符串请不要改变,否则会导致该文件不可使用。
#
# 2005-09-27 Created by CAXA
#------------------------------------------------------------------------------
# 机床配置文件的设定
#------------------------------------------------------------------------------
_begin mcfdlg_set
abs_code = G90 #绝对编程指令
absinc = 0 #0:绝对编程方式,1:相对编程方式
arc3dmode = 0 #0:不输出空间圆弧,1:所有圆弧按空间圆弧输出,2:坐标平面外的圆弧按空间圆弧输出
arc_max = 360.000000 #圆弧最大角度
arc_tol = 0.001000 #圆弧离散成直线时精度
arcmode = 0 #0:圆心相对起点,1:起点相对圆心,2:绝对坐标,3:圆心相对终点,4:圆弧半径为负,当圆心角大于180度时,5:圆弧半径为正,当圆心角大于180度时,6:圆弧离散成直线
caxis_g00_return_zero = 0
cool_off = M09 #关冷却液指令
cool_on = M07 #开冷却液指令
deli_user =  #用户自定义字符,只有delimode = 3时起作用
delimode = 0 #分隔符模式0:无,1:空格,2:Tab,3:自定义字符
drill_modal = 1
end_char = % #结束符
eob =  #行结束符
feed_code = F #速度指令
feed_cut_para =  
feed_cutin_para =  
feed_cutout_para =  
feed_down_para =  
feed_link_para =  
feed_output_mode = 0
feed_up_para =  
file_limit_on = 0
file_max = 5000000 #文件最大长度,单位kb
file_maxline = 99999999 #文件最大行数
firstaxis = 2
firstaxis_stangle = 0.000000
fmax_mode = 0 #0:文件最大长度,1:文件最大行数
g00 = G0 #快速移动指令
g00feed =  #快速移动速度
g01 = G1 #直线插补指令
g02 = G2 #顺时针圆弧插补指令
g03 = G3 #逆时针圆弧插补指令
g17 = G17 #XY平面指令
g18 = G18 #ZX平面指令
g19 = G19 #YZ平面指令
g3darc =  #空间圆弧指令
g40 = G40 #取消刀具补偿指令
g41 = G41 #刀具左补偿指令
g42 = G42 #刀具右补偿指令
g43 = G43 #刀具长度补偿指令
inc_code = G91 #相对编程指令
loadtool_call_mode = 1
machineaxis = 0
machinetype = 0
prog0_to_caxis_x = 0.000000
prog0_to_caxis_y = 0.000000
prog0_to_caxis_z = 0.000000
prog_no = 1200 #程序号
prog_stop = M30 #程序停止指令
rot1max = 99999.000000
rot1min = -99999.000000
rot2_from_rotc_offset_x = 0.000000
rot2_from_rotc_offset_y = 0.000000
rot2_from_rotc_offset_z = 0.000000
rot2max = 99999.000000
rot2min = -99999.000000
secondaxis = 0
secondaxis_stangle = 0.000000
seq_code = N #行号地址
seq_inc = 2 #行号增量,即每两个行号之间的间隔
seq_max = 99999 #最大行号
seq_num = 4 #行号位数,只有seq_zero=1时才起作用
seq_out = 0 #是否输出行号1:是,0:否
seq_start = 10 #起始行号
seq_zero = 0 #行号位数是否填满,1:是,0:否
spn_ccw = M04 #主轴反转指令
spn_code = S #主轴转速指令
spn_cw = M03 #主轴正转指令
spn_stop = M05 #主轴停止指令
start_char = % #起始符
submode = 0
tilt_axis_vx = 0.000000
tilt_axis_vy = 0.000000
tilt_axis_vz = 0.000000
toolcmp_follow = 1 #G41或G42后面是否加D,等于1时才加,其它就不加。
toolrotlength = 0.000000
_end
#------------------------------------------------------------------------------
# 系统变量默认的指令地址符 system variable and register format
#------------------------------------------------------------------------------
# 后面还有若干
_begin sysvar_register
app_h = Z
appfeed = F
ci = I
cj = J
ck = K
clearance = Z_CLEAR
cr = R
cx = X
cy = Y
cz = Z
drillfeed = F
dwelltime = P_CYCL
feed = F
holedepth = Z_CYCL
holedepth2 = Z_CYCL
ntool_adjust_reg = H
ntool_cutcom_reg = D
ntool_num = T
peckdepth = Q_CYCL
prog_no = O
rotatetable = B
safe_h = Z
safedis = R_CYCL
speed = S
startx = X
starty = Y
startz = Z
tool_adjust_reg = H
tool_cutcom_reg = D
tool_num = T
worksurface = Z_WORK
_end
#------------------------------------------------------------------------------
# 指令地址格式register format
#------------------------------------------------------------------------------
#key,name,initvalue,int_num,dec_num,lead,trail,dec,sign,modal,zero,minimum,limit_min,maximum,litmi_max,before,after,formula
_begin register_format
A,A,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
B,B,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
C,C,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
D,D,0.000000,4,0,0,0,0,0,1,1,-10000.000000,0,10000.000000,0,,,1
DEFAULT,,0.000000,4,6,0,1,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
F,F,0.000000,6,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
F_CYCL,F,0.000000,4,3,0,0,1,0,1,1,0.000000,0,10000.000000,0,,,1
G,G,0.000000,3,2,1,0,0,0,1,0,0.000000,0,99999.000000,0,,,1
H,H,0.000000,4,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
I,I,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
J,J,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
K,K,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
M,M,0.000000,4,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
N,N,10.000000,4,0,0,0,0,0,0,0,0.000000,0,99999.000000,1,,,1
O,O,1000.000000,4,0,0,0,0,0,0,0,0.000000,0,9999.000000,0,,,1
P,P,0.000000,4,0,0,0,0,0,1,1,-10000.000000,0,10000.000000,0,,,1
P_CYCL,P,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Q_CYCL,Q,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
R,R,0.000000,4,3,0,0,1,0,0,1,-10000.000000,0,10000.000000,0,,,1
R_CYCL,R,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
S,S,0.000000,6,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
T,T,0.000000,2,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
TT,,0.000000,2,0,0,0,0,0,1,1,0.000000,0,10000.000000,0,,,1
U,U,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
V,V,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
W,W,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
X,X,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Y,Y,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_CLEAR,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_CYCL,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
Z_WORK,Z,0.000000,4,3,0,0,1,0,1,1,-10000.000000,0,10000.000000,0,,,1
_end
#------------------------------------------------------------------------------
# 程序输出控制
#------------------------------------------------------------------------------
_begin program
# 输出空间圆弧
arc_3d
{
$seq,$sgplane,$sgcode,$sgabsinc,
$cx,$cy,$cz,XI($ci),YJ($cj),ZK($ck),$feed,$eob,@
}
# 圆弧输出格式# 圆弧输出圆心方式
arc_center
{
$seq,$sgabsinc,$sgplane,$sgcode,
$cx,$cy,$cz,$ci,$cj,$ck,$feed,$eob,@
}
# 圆弧输出半径方式
arc_radius
{
$seq,$sgabsinc,$sgplane,$sgcode,
$cx,$cy,$cz,$cr,$feed,$eob,@
}
# 高速深孔加工循环
cycle_g73
{
$seq,"G99 G73 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$drillfeed,$eob,@
}
# 反攻丝循环
cycle_g74
{
$seq,"G99 G74 ",$cx,$cy,$holedepth2,$safedis,$dwelltime,
$drillfeed,$eob,@
}
# 精镗循环
cycle_g76
{
$seq,"G99 G76 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$dwelltime,$drillfeed,$eob,@
}
# 取消固定循环指令
cycle_g80
{
$seq,"G80",$eob,@
$seq,$sgabsinc,$sgcode,$startz,$eob,@
$seq,$sgabsinc,$sgcode,$startx,$starty,$eob,@
$seq,$cool_off,$eob,@
$seq,$spn_stop,$eob,@
}
# 钻孔循环(中心钻)
cycle_g81
{
$seq,"G99 G81 ",$cx,$cy,$holedepth2,$safedis,$drillfeed,$eob,@
}
# 带停顿的钻孔循环
cycle_g82
{
$seq,"G99 G82 ",$cx,$cy,$holedepth2,$safedis,
$dwelltime,$drillfeed,$eob,@
}
# 深孔加工循环
cycle_g83
{
$seq,"G99 G83 ",$cx,$cy,$holedepth2,$safedis,$peckdepth,
$drillfeed,$eob,@
}
# 攻丝循环
cycle_g84
{
$seq,"G99 G84 ",$cx,$cy,$holedepth2,$safedis,$dwelltime,
$drillfeed,$eob,@
}
# 镗孔循环
cycle_g85
{
$seq,"G99 G85 ",$cx,$cy,$holedepth2,$safedis,$drillfeed,$eob,@
}
# 镗孔循环(孔底主轴
回复 支持 反对

使用道具 举报

4

主题

32

帖子

2

积分

新手上路

Rank: 1

积分
2
 楼主| 发表于 2011-8-15 12:43:00 | 显示全部楼层

发重了

<P>&nbsp;</P>
回复 支持 反对

使用道具 举报

4

主题

32

帖子

2

积分

新手上路

Rank: 1

积分
2
 楼主| 发表于 2011-8-15 12:47:00 | 显示全部楼层
求  解释啊  

麻烦大家帮忙看看啊
   
    输出的代码怎么会错乱掉?
回复 支持 反对

使用道具 举报

5

主题

44

帖子

149

积分

注册会员

Rank: 2

积分
149
发表于 2011-8-15 16:28:00 | 显示全部楼层
是啊与楼主一起等
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|咖迷社区(CAXA数码大方) ( 京ICP备05001831号-1 )

GMT+8, 2024-11-23 09:52 , Processed in 0.143392 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表