《UG后置处理器定制培训》由会员分享,可在线阅读,更多相关《UG后置处理器定制培训(168页珍藏版)》请在金锄头文库上搜索。
1、 UGS PLM Solutions Inc. 203. Al right reserved.UG后置处理器定制培训刘其荣刘其荣 优集系统(中国)有限公司优集系统(中国)有限公司Q80-810-970 Helpdesk_ UGS PLM Solutions Inc. 204. Al right reserved.内容后置处理概述后置处理器创建TCL语言介绍车铣加工中心后置处理器创建多轴铣后置处理创建 UGS PLM Solutions Inc. 203. Al right reserved.后置处理概述 UGS PLM Solutions Inc. 204. Al right reserved
2、.基本概念 UGS PLM Solutions Inc. 204. Al right reserved.后置处理TOOL PATH/FIXED_CONTOUR_2,TOOL,MILLTLDATA/MILL,30.0000,0.0000,75.0000,0.0000,0.0000MSYS/0.0000,0.0000,0.0000,1.0000000,0.0000000,0.0000000,0.0000000,1.0000000,0.0000000PAINT/PATHPAINT/SPEED,10LOAD/TOOL,1,ZOFF,150.0000PAINT/COLOR,186RAPIDGOTO/51
3、.5000,-12.6421,12.1213,0.5000000,0.5000000,0.7071068PAINT/COLOR,211RAPIDGOTO/95.0000,30.8579,73.6396PAINT/COLOR,42FEDRAT/MMPM,250.0000GOTO/50.0000,-14.1421,10.0000PAINT/COLOR,31GOTO/-14.1421,50.0000,10.0000PAINT/COLOR,37RAPIDGOTO/30.8579,95.0000,73.6396PAINT/SPEED,10PAINT/TOOL,NOMOREEND-OF-PATH%N001
4、0 G40 G17 G94 G90 G71N0020 G91 G28 Z0.0:0030 T01 M06N0040 G0 G90 X45.355 Y37.426 A-45. C-45. S1000 M03N0050 G43 Z213.858 H00N0060 Z300.858N0070 G1 Z210.858 F250. M08N0080 X-45.355N0090 G0 Z300.858N0100 M02%UGUGUGUG刀位数据数控加工指令后置处理UG/PostUG/PostUG/PostUG/Post UGS PLM Solutions Inc. 204. Al right reserv
5、ed.UG/POST的结构UG Dat StorgeUG PostEventGratoreEvent Handler.tcl Definiton File.defOutpt FileEvent Nam emvaribleUser efinedvariblevarible Post Builder.pi UGS PLM Solutions Inc. 204. Al right reserved.UG/POST的结构UG Dat StorgeLinear Movex = 10y 5z = 7 UG PostEventGratoreproc MO_linear_m ove _dotm plt Lin
6、ar Form at Socket %0.3fAdres XForm at Socket Min 0 Max 50BLOCK_TEPLATE Linear G01 X$x Y$y Z$z G01 X10. Y50. Z75.Linear_Movex = 10y = 50z = 75 54321 UGS PLM Solutions Inc. 204. Al right reserved.基本概念Event (事件) 特定的机床动作Spindle On主轴转动; linear move直线进给; tol change换刀Unigraphics Event Genrator (事件生成器)UG内置的
7、功能,用来提取UG刀位数据将参数传递到事件处理器进行处理Event Handler (A TCL script)事件处理器与特定机床有关的程序,将刀位数据转换为机床指令代码Definiton File定义文件给定事件处理输出的格式,被事件处理器 TCL所调用 UGS PLM Solutions Inc. 204. Al right reserved.EVNT事件一个事件是从UG文件中提取的一个数据集合每一事件都与一组变量关联对每一事件生成器识别的事件,都有一对应的TCL子程序进行处理传递给事件处理器的变量将作为全局变量进行处理 UGS PLM Solutions Inc. 204. Al ri
8、ght reserved.Event Generator事件生成器从UG中提取刀轨数据将后处理命令分解成全局变量利用运动学处理刀位点将事件和变量传递给UG Post进行处理 UGS PLM Solutions Inc. 204. Al right reserved.事件实例()后处理命令:SPI NDL/ RPM, 10, CLW时间和变量Event事件MO_spi ndl e_rpmi li li lVaribles变量mo_spi ndl e_sped = 10i l i l i l o_spi ndl e_di recti on = CLWi l i i i l i i i l i i
9、UGS PLM Solutions Inc. 204. Al right reserved.事件实例()Start of programEventMO_start_ofprogramVariblemo_datel ognmel l lStart of a new pathEvetMO_start_ofpathVariblemo_path_nametol l l l UGS PLM Solutions Inc. 204. Al right reserved.Event Handler事件处理器TCL子程序,决定刀轨事件如何被处理事例:proc MO_start_ofprogram O_outpt
10、_l i eral l i l l i l l i l “G280G91Z0” M_outpt_l i eral l i l l i l l i l “X0Y” O_outpt_l i eral l i l l i l l i l “G90” UGS PLM Solutions Inc. 204. Al right reserved.UG Post Extensions to TCL (1)一些有用的扩展命令MO_ask_env_arMOM_ask_MOM_ask_MOM_ask_MOM_ask_envenvenvenv_varvarvarvar UGII_CAM_DEBUG_DIR UGII
11、_CAM_DEBUG_DIR UGII_CAM_DEBUG_DIR UGII_CAM_DEBUG_DIRMO_outpt_l i erall i ll i ll i lMOM_output_literal MOM_output_literal MOM_output_literal MOM_output_literal “Created by Created by Created by Created by $mom_$mom_$mom_$mom_lognamelognamelognamelogname”MO_do_templ atel l lMOM_do_template linear_mov
12、eMOM_do_template linear_moveMOM_do_template linear_moveMOM_do_template linear_move UGS PLM Solutions Inc. 204. Al right reserved.UG Post Extensions to TCL ()MO_force_force M ONCE X Y O_force ALWAYS X Y motin_gM_force OF motin_gO_supresM_supres ONCE cutom_gO_supres ALWAYS NM_supres OF IJ K UGS PLM So
13、lutions Inc. 204. Al right reserved.定义文件中的关键字MACHI NEI NCLUDEWORD_SEPARTOREND_F_LI NESEQUENCEFORMATADRESBLOCK TEMPLATE UGS PLM Solutions Inc. 204. Al right reserved.Machine , Include & Word SeparatorMACHI NE机床的名字MACHI NEI I I si emn i i i _3axi si i iI NCLUDE继承的定义文件I NCLUDE genri c. def standar. def
14、I i . .I i . .I i . .WORD_SEPARTOR分割字符WORD_SEPARTOR “ ” UGS PLM Solutions Inc. 204. Al right reserved.End of line & SequenceEND_OF_LI NE每一行的结束符END_OF_LI NE I I I “ 012 ”SEQUENCE输出序号格式:SEQUENCE f ormat st rt incremnt f requencySEUENCE seq _no 10 1 UGS PLM Solutions Inc. 204. Al right reserved.定义文件 UG
15、S PLM Solutions Inc. 204. Al right reserved.基本概念BlockG01 X54.1 Y-28.059 Z5. B0. Adres (Word)X54.1 FormatX54.1 UGS PLM Solutions Inc. 204. Al right reserved.FORMAT语法FORMAT name f orat _st ring事例FORMAT seq _no “&_5_0”FRAT ComFed “%7. 2f. . . ”FORMAT Socket_2 “&_02_0” UGS PLM Solutions Inc. 204. Al right reserved.Format s