Warning: mkdir(): No space left on device in /www/wwwroot/test001/func.php on line 253
Warning: file_put_contents(./cachefile_yuan/ilouw.com/cache/6d/1738e/3b3d3.html): failed to open stream: No such file or directory in /www/wwwroot/test001/func.php on line 241
#------------------------------------------------------------------------------
# Machine Control File: mcf 1.0
# CAXA CAXPost 1.0
#------------------------------------------------------------------------------
# 後置係統:Fanuc
# 描 述:適用於四軸銑床A係列
# 說 明:該文件為後置係統CAXPOST所使用,控製G代碼輸出。以下劃線開頭
# 的字符串請不要改變,否則會導致該文件不可使用。
#
# 2005-09-27 Created by jxc
# 2005-09-28 10:59
# 2006-8-23 jxc 添加輸出坐標係和毛坯數據信息
#------------------------------------------------------------------------------
# 機床配置文件的設定
#------------------------------------------------------------------------------
_begin mcfdlg_set
CoordSet = G54
CurPntCoordSet = G92
ProgReturn = M99
SubProgCall = M98
SubProgNumPoint = P
TapperClose = G27
TapperLeft = G28
TapperPoint = A
TapperRight = G29
Wedm_4x_Q = Q
Wedm_4x_R = R
abs_code = G90 #絕對編程指令
absinc = 0 #0:絕對編程方式,1:相對編程方式
arc3dmode = 3 #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
const_ld = G96
const_lead_screw = G33
const_sd = G97
cool_off = T85 #關冷卻液指令
cool_on = T84 #開冷卻液指令
dec_lead_screw = G35
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_per_min = G98
feed_per_rev = G99
feed_up_para = \
file_ext = iso
file_limit_on = 0
file_max = 51200 #文件最大長度,單位kb
file_maxline = 99999 #文件最大行數
firstaxis = 0 #指定第一旋轉軸,0:A軸,繞X軸旋轉,1:B軸,繞Y軸旋轉,2:C軸,繞Z軸旋轉
firstaxis_stangle = 0.000000 #第一旋轉軸的起始角度
firstpoint_over = 0 #多軸中第一個刀位點的轉動方向,0:逆時針,1:順時針
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 #相對編程指令
inc_lead_srcew = G34
intermaxangle = 360.0 #
lathe_i_dia = 0
lathe_x_dia = 1
loadtool_call_mode = 1
machineaxis = 4 #機床軸數,3:3軸機床,4:4軸機床,5:5軸機床
machinetype = 1 #機床結構類型,0:雙工作台,1:雙擺頭,2:擺頭+工作台
max_sd = G50
prog0_to_caxis_x = 0.000000
prog0_to_caxis_y = 0.000000
prog0_to_caxis_z = 0.000000
prog_no = 1200 #程序號
prog_pause = M00
prog_stop = M02 #程序停止指令
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
screw_cycle = G76
screw_dis = F
screw_phase = Q
sd_code = S
secondaxis = 0 #指定第二旋轉軸,0:A軸,繞X軸旋轉,1:B軸,繞Y軸旋轉,2:C軸,繞Z軸旋轉
secondaxis1 = 0 #第二旋轉軸軸心位置,離第一旋轉軸軸心
secondaxis_stangle = 0.000000 #第二旋轉軸的起始角度
secondaxistable = 0 #第二旋轉軸軸心位置,離工作台,即Z零點
seq_code = N #行號地址
seq_inc = 2 #行號增量,即每兩個行號之間的間隔
seq_max = 9999 #最大行號
seq_num = 4 #行號位數,隻有seq_zero=1時才起作用
seq_out = 0 #是否輸出行號1:是,0:否
seq_start = 100 #起始行號
seq_zero = 0 #行號位數是否填滿,1:是,0:否
spn_ccw = M04 #主軸反轉指令
spn_code = S #主軸轉速指令
spn_cw = T86 #主軸正轉指令
spn_stop = T87 #主軸停止指令
start_char = % #起始符
submode = 0
tilt_axis_vx = 0.000000
tilt_axis_vy = 0.000000
tilt_axis_vz = 0.000000
toolcmp_follow = 1
toolrotlength = 0.000000 #134.986 #有擺頭時的旋轉半徑
_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,0,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,0,1,-10000.000000,0,10000.000000,0,,,1
Y,Y,0.000000,4,3,0,0,1,0,0,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_center
{
$seq,$sgcode,$cx,$cy,$ci,$cj,$feed,$eob,@
}
# 圓弧輸出半徑方式
arc_radius
{
$seq,$sgplane,$sgcode,$cx,$cy,$cz,$cr,$feed,$eob,@
}
# 延遲指令
dwell_func
{
#$seq,"G04 P",$dwellcode,$eob,@
}
# 程序結束處
end
{
$seq,$cool_off,$spn_stop,$prog_stop,$eob,@
}
initinstance
{
is_use_wedm_pause = 1
}
lift_down
{
#$seq,"(from lift_down)",$eob,@
#$seq,$sgabsinc,$sgcode,$cx,$cy,$safe_h,$vx,$eob,@
#$seq,$sgabsinc,$sgcode,$cx,$cy,$cz,$vx,$eob,@
#$seq,"(from lift_down end)",$eob,@
}
lift_up
{
#$seq,""(from lift_up)",$eob,@
#$seq,$sgabsinc,$sgcode,$cx,$cy,$cz,$feed,$eob,@
#$seq,$sgabsinc,$sgcode,$safe_h,$eob,@
#$seq,$sgabsinc,$sgcode,$vx,$eob,@
}
# 直線輸出格式
line
{
$seq,$sgtoolcomp,$sgcode,$cx,$cy,$feed,$eob,@
}
line4x
{
$seq,$sgcode,$cx,$cy,$Wedm_4x_Q,$Wedm_4x_R,$eob,@
}
# 加載刀具時
load_tool
{
#"(",$process_name,")",$eob,@
#"($tool_name",$tool_name,"$tool_rad=",$tool_rad,"$tool_corner_rad=",$tool_corner_rad,")",@
#"($tool_num=",TT($tool_num),"$tool_cutcom_reg=",TT($tool_cutcom_reg),"$tool_cut_length=",$tool_cut_length,")",@
#"(=======Path Index:",$pathindex,"===============)",$eob,@
#"( path name: ",$process_name," )",$eob,@
#$seq,$tool_num,"M6",$eob,@
#"(=======Path Index: ",$pathindex,"===============)",$eob,@
#"( path name: ",$process_name," )",$eob,@
#$seq,$sgabsinc,"G54 ",$sgcode,$vx,$eob,@
#$seq,$sgabsinc,$sgcode,$speed,$spn_cw,$eob,@
#$seq,$cool_on,$eob,@
#$seq,$startx,$vx,$eob,@
#$seq,"G43 ",$tool_adjust_reg,$clear_h,$eob,@
#$seq,$tool_num,$tool_cutcom_reg,$tool_adjust_reg,"M6",$eob,@
#$seq,$ntool_num,$eob,@
#$seq,$rotatetable,$eob,@
}
# 中間程序結束處
middle_end
{
$seq,$prog_pause,$eob,@
$seq,"G0 ",$cx,$cy,$eob,@
$seq,$prog_pause,$eob,@
}
# 中間程序開始處
middle_start
{
if( is_use_wedm_pause == 2 )
{
$Wedm_ProgPause,$eob,@
}
is_use_wedm_pause = 2
#"(=======Path Index: ",$pathindex,"===============)",$eob,@
#"( path name: ",$process_name," )",$eob,@
#$seq,$sgabsinc,$sgcode,$startx,$starty,$vx,$eob,@
#$seq,$cool_on,$eob,@
#$seq,"G43.4 ",$tool_adjust_reg,$clear_h,$eob,@
#$seq,$cx,$g00feed,$eob,@
#$seq,$safe_h,$eob,@
}
# 快速移動輸出格式
rapid
{
$seq,$sgcode,$cx,$cy,$eob,@
}
# 定位行輸出信息
sequence(20)
{
#$seq,"MSG(thisiscallpc....)",$eob,@
#$seq,"MsgcallbeGin:",@,call linetwo,"MsgcallEnd",@
}
# 程序開始處
start
{
#$start_char,@
#$prog_no,@
"(",$date,",",$time,")",$eob,@
#"($stockbase=",$stockbase,")",$eob,@
#"($stockbox=",$stockbox,")",$eob,@
#$seq,$tool_num,"M6",$eob,@
#$seq,$sgabsinc,"G55 ",$sgcode,$vx,$eob,@
#$seq,"G43.4 ",$tool_adjust_reg,$clear_h,$eob,@
$seq,$cool_on,$spn_cw,$abs_code,$Wedm_CurPntCoordSet,$cx,$cy,$eob,@
}
_end
#------------------------------------------------------------------------------
# 附錄:一些說明
#------------------------------------------------------------------------------
# rapid
# {
# $seq,$sgcode,$sgabsinc,$sgtoolcomp,$cx,$cy,$cz,$feed,$eob,@
# }
#
# 一、符號說明
# $:以符號$開頭的字符串表示一個宏指令,宏指令之間以逗號分隔。
# @:表示換行回車。
# "":雙引號內的內容會在G代碼中直接輸出。
# 二、宏指令說明
# prog_no:程序號
# progname:程序名稱,即文件名
# date: 日期2005-09-28
# time: 時間12:23:23
# start_char:文件開始符
# end_char:文件結束符
# seq: 行號
# spn_code:主軸指令
# spn_speed:主軸轉速
# spn_cw:主軸正轉
# spn_ccw:主軸反轉
# spn_stop:主軸停止
# cool_on:冷卻液開
# cool_off:冷卻液關
# prog_stop:程序停止
# eob: 行結束符
# sgtoolcomp:刀具半徑補償
# sgabsinc:編程方式,是絕對編程方式G90是相對編程方式G91
# sgplane:圓弧編程平麵,G17,G18,G19
# sarcr:圓弧半徑的定義,包括圓心的各種定義方式和半徑定義方式
# tool_name:刀具名稱
# tool_num:刀具號
# tool_dia:刀具直徑
# tool_rad:刀具半徑
# tool_corner_rad:刀角半徑
# tool_length:刀具長度,批全長
# tool_cutcom_reg:刀具半徑補償號
# tool_adjust_reg:刀具長度補償號
# tool_hcmpval:刀具軸向補償量
# tool_shank_rad:刀柄半徑
# tool_cut_length:刀刃長度
# tool_shank_length:刀柄長度
# tool_comment:刀具注釋
# cx:當前X坐標
# cy:當前Y坐標
# cz:當前Z坐標
# startx:起始點X坐標
# starty:起始點Y坐標
# startz:起始點Z坐標
# feed:速度指令
# g00feed:快速移動時的速度指令輸出, 該指令去掉
# 文件結束符,不可以刪除
_EOF