对后处理注释.doc

上传人:re****.1 文档编号:554806713 上传时间:2022-11-11 格式:DOC 页数:4 大小:23KB
返回 下载 相关 举报
对后处理注释.doc_第1页
第1页 / 共4页
对后处理注释.doc_第2页
第2页 / 共4页
对后处理注释.doc_第3页
第3页 / 共4页
对后处理注释.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《对后处理注释.doc》由会员分享,可在线阅读,更多相关《对后处理注释.doc(4页珍藏版)》请在金锄头文库上搜索。

1、1) Annotation(注释).对后处理文件及其设定方法作一般性介绍.此部分内容一般都不用更改.以下是截取的部分注释:(注释前都带#号,系统在执行代码处理时是不会读取前面带#号的语句的.)# Post Name : MPFAN# Product : MILL# Machine Name : GENERIC FANUC# Control Name : GENERIC FANUC# Description : GENERIC FANUC MILL POST# Associated Post : NONE# Mill/Turn : NO# 4-axis/Axis subs. : YES# 5-a

2、xis : NO# Subprograms : YES# Executable : MP v9.0# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.2) Debugging and Factory Set Program Switches (系统程序规划).此部分是MASTERCAM版本的后处理系统规划,每个版本都大同小异,一般不需更改.以下截取的是9.0版的)m_one : -1 #Define c

3、onstantzero : 0 #Define constantone : 1 #Define constanttwo : 2 #Define constantthree : 3 #Define constantfour : 4 #Define constantfive : 5 #Define constantc9k : 999 #Define constantfastmode : yes #Enable Quick Post Processing, (set to no for debug)bug1 : 2 #0=No display, 1=Generic list box, 2=Edito

4、rbug2 : 40 #Append postline labels, non-zero is column position?bug3 : 0 #Append whatline no. to each NC line?bug4 : 1 #Append NCI line no. to each NC line?whatno : yes #Do not perform whatline branches? (leave as yes)get_1004 : 1 #Find gcode 1004 with getnextop?rpd_typ_v7 : 0 #Use Version 7 style c

5、ontour flags/processing?strtool_v7 : 2 #Use Version 7+ toolname?tlchng_aft : 2 #Delay call to toolchange until move linecant_tlchng : 1 #Ignore cantext entry on move with tlchng_aftnewglobal : 1 #Error checking for global variablesgetnextop : 0 #Build the next variable table3) General Output Setting

6、s(常规后处理设定).此部分可视情况更改,以适合机台或个人使用.以下截取的是9.0版的一些常规设定.冒号前面的是变量,冒号后面的是设定值,#号后面是注解(一般是说明0代表什么,1代表什么,2代表什么,yes或no应该不用翻译了吧?!)英文后面的中文注解是我加进去的,翻译的不是很详细,但相信大家能看懂.没有翻译的就表示我根本不会或此设定不常用.嘿嘿.sub_level : 1 #Enable automatic subprogram support(启用自动支持子程式)breakarcs : 2 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. ma

7、x arcs(打断圆弧方式)arcoutput : 1 #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180(转出圆弧方式)arctype : 2 #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.do_full_arc : 0 #Allow full circle output? 0=no, 1=no (是否转成整圆方式)helix_arc : 0 #Support helix arc output, 0=no, 1=all planes,2=XY plane only(是否转成螺旋弧

8、)arccheck : 1 #Check for small arcs, convert to linear(是否检测小圆弧并将其转成线)atol : .01 #Angularity tolerance for arccheck = 2(圆弧角度公差)ltol : .002 #Length tolerance for arccheck = 1(圆弧长度公差)vtol : .1 #System tolerance(系统公差)maxfeedpm : 500 #Limit for feed in inch/min(最大进给-英制)ltol_m : .05 #Length tolerance for

9、arccheck = 1, metric(圆弧长度公差-公制)vtol_m : .0025 #System tolerance, metric(系统公差-公制)maxfeedpm_m : 10000 #Limit for feed in mm/min(最大进给-公制)force_wcs : no #Force WCS output at every toolchange?(换刀时是否转出WCS坐标)spaces : 0 #Number of spaces to add between fields(两行之间是否加入空格)omitseq : yes #Omit sequence numbers?

10、(是否省略序列号)seqmax : 9999 #Max. sequence number(最大序列号)stagetool : 0 #0 = Do not pre-stage tools, 1 = Stage tools(是否沿用刀具)use_gear : 0 #Output gear selection code, 0=no, 1=no (是否转成齿轮代码)max_speed : 10000 #Maximum spindle speed(最大转速)min_speed : 50 #Minimum spindle speed(最小转速)nobrk : no #Omit breakup of x,

11、y & z rapid movesprogname : 0 #Use uppercase for program name (sprogname)(程式名称是否使用大写)4) 中间还有一些例如:Common User-defined(指令设定),Format statements(格式报告),definitions for NC output(NC代码限定),Error messages(出错信息),Toolchange / NC output Variable Formats(刀具变量)等基本上都是系统固定格式,不需要更改.在此就不再详述.当然,我也不建议你更改这些项目,如果你改错的话,系统

12、很可能不执行或机台报警.5) Start of File and Toolchange Setup(文本内容和换刀设定).此部分内容很重要,很多使用者都从这里着手把程式改成自己需要的格式.以下截取的是9.0版的部分内容,其中有些是我根据自己需要更改的,中文是我加的注解.引号内是可以更改的内容.%, e(程式开头的百分号)*progno, e(程式号码)comment(注解,可有可无,如不需要则删除此句)(PROGRAM NAME - , sprogname, ), e(程式名称,可有可无)(, *tnote, *toffnote, *tlngnote, *tldia, ), e(刀具直径及补正

13、参数显示,如不需要则把此整句删除)(DATE=DD-MM-YY - , date, TIME=HH:MM - , time, ), e(程式日期显示,可有可无)pbld, n, */M99, e (我自己加的一句,如不需要则整句删除,而不是只删除引号内的内容)pbld, n, *G90, G92,X0.Y0.Z10., e(定义加工原点,也可以改为G54坐标)sav_absinc = absinc (绝对坐标系).(中间省略的部分是系统根据刀路自动转出的程式,一般不必改).(以下几句是出现在程式尾,可以根据需要添加或删除)n, Z10., e (加工完成后提刀至安全高度)n, X0.Y0., e (归零)n, G91, e (转用相对坐标)n, M99, e (回到主程式)mergesub(此四句为程式结尾固定语句,不必理它)clearsubmergeauxclearaux%, e(程式尾)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号