UG后处理制作说明
Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
1UG.UG_Post-Builder界面介紹
..Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
2UG_Post-Builder界面介紹一.UG_Post-Builder界面介紹
1.啟動UG_Post Builder2.進入UG_Post Builder3.UG_Post Builder主菜單Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
3UG_Post-Builder界面介紹1.啟動UG_Post Builder開始--程式集--UGS NX4.0 --后處理工具—后處理構造器
Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
4UG_Post-Builder界面介紹2. 進入UG_Post Builder新增后處理 打開已有的后
處理
保存
文件工具條 報警提示選項 提示行
幫助工具條 條目說明 使用手冊Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc.
5UG_Post-Builder界面介紹點激新增進入Create New Post Processor模式新建后處理的名稱
后處理說明
控制器選擇機台種類選擇通用格式
UG提供的格式
在瀏覽器中選已有的Post Name---Post Output Unit選公制—Machine Tool選Mill -–機台種類選3-Axis -–Controller選Library, Library中選fanuc_6M —OKPresenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
6UG_Post-Builder界面介紹
3. UG_Post Builder主菜單機床參數UG_Post/Builder
軌參數
NC數據格式
列
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
文件和輸出控制文件預覽3.1 Machine Tool(機床相關參數)3.2 Program Tool Path(程序和刀軌參數)3.3 N/C Data Defintions(NC數據格式)
3.4 Output Control(列表和輸出控制)
3.5 Post Files Preview(文件預覽)Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc.
7UG_Post-Builder界面介紹3.1 Machine Tool(機床相關參數)圓弧刀軌輸出軸行程極限
機床結構簡圖Post信息
快速移動速度
機床回零點位置機床最小解析值
默認值恢復值Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 8UG_Post-Builder界面介紹3.2 Program Tool Path(程序和刀軌參數)
Program(程序):
G Codes(G代碼):定義所有G 代碼。
M Codes(M代碼):定義所有M
代碼。
Word Summary(
定義后處理用到的字地址。
Word Sequencing(字地址順
NC程式同一行字地址的輸出順序。Custom Command(用戶指 令):
轉入和轉出機床指令。
Linked Posts(連接posts)Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 9UG_Post-Builder界面介紹3.2.1 Program (程序和刀軌參數)Program Start Sequence(定義程序頭)%”,程式
Operation Start Sequence(操作頭):定義從操作開始到第一個切削運動之間的事件。每一個
From
Move設置的Z150.0和X0.0Y0.0;First Tool設
置的T01 M06等。Tool Path(刀軌事件):Machine Control(機床控制):
Spindle RPM
設置的SM03;
絕對或相對。Motion(運動):定義后處理如何處理刀軌中的GOTO語句。Linear Move (直線運動)處理切
Circle Move (圓弧運動)處理圓
Rapid Move (快速運動)處理。
G00)Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 10UG_Post-Builder界面介紹Canned Cycies(孔加工循環) 工循環的輸出事件。也可以修改G代碼和其它
TAP攻牙模
式中的G84前加入G98S M29的事件。
Operation End Sequence(操作尾):定義從最
后的退刀運動到操作尾之間的所有事件。
Program End Sequence(程序尾):定義從最
后一個操作尾到程序尾之間的所有事件。包擴
G5.1Q0G91G28Z0.G49
M09
M05
M30
%Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 11UG_Post-Builder界面介紹3.2.2 G Codes (G代碼)定義后處理中用到的所有G代碼及對應輸出文件的格式。
Motion Linear 01 G01Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 12UG_Post-Builder界面介紹3.2.3 M Codes (M代碼)定義后處理中用到的所有M代碼及對應輸出文件的格式。
Spindle On/CLM 03 M03Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 13UG_Post-Builder界面介紹3.2.4 Word Summary (字地址定義)定義后處理中用到所有的字地址。
Word(字地址):修改字地址的參數。
Leader/Code(頭碼):修改字地址的頭碼。頭碼是指字地址中數字前面的字母部分。Data Type(數據類型):可以是數字和文字。
Plus(+):正數前面是否顯示”+”號。
No為不顯示。負數前總有”-”號。Lead Zero(前零):正數前面的零是否輸出。Integer(整數位):整數位數。
Decimal(.):小數點是否輸出。Fraction(小數位):小數位數。Trail Zero(后零):后零是否輸出。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 14UG_Post-Builder界面介紹3.2.5 Word Sequencing (字地址順序)定義后處理中用到所有的字地址在NC程式中同一行輸出的先后順序。
單墼該字地址可改變是否抑制。
活動的 抑制的
S M03
用鼠標左鍵按住圖標—拖動放到S F
—放開鼠標Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 15UG_Post-Builder界面介紹3.2.6 Custom Command(用戶指令)Import(插入已有的指令):從UGNX4.0\POSTBUILD\pblib\custom_command路徑
下插入已有的所需指令。
Export(轉出已有的指令):轉出指令。
Create(復制指令):復制當前光標下的指令。
Cut(刪除指令)Paste(恢復)Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc.
16UG_Post-Builder界面介紹3.3 N/C Data Defintions(NC數據格式)用來定義NC數據輸出
Program Tool PathBLOCK(程序行):定義表示每一機床指令的程序
WORD(詞):
FORMAT(格式):
Other Data Elements(其它數據):定義其它數據格式。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
17UG_Post-Builder
Force Output:
行輸出。
No Word Separator:不輸出字地址后的
分隔符。
Optional:測詴是否給字地址定義了變量。
Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
18UG_Post-Builder界面介紹3.4 Output Control(列表和輸出控制)Llsting File(列表文件)
XYZ
Generate Listing File(產生文件):點選此項后處理將產生一個lpt 文件。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
19UG_Post-Builder界面介紹N/C Output File ExtensionGenerate Group Output:NCpost一個串起來的主程式
時post出來的NC
Output Warning Messageslog文件。
Display Verbose Error Messages
Activate Review ToolPresenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
20UG_Post-Builder界面介紹3.5 Post Files Preview(文件預覽)可以在文件保存之前瀏覽
.def.tcl
Presenter: CONFIDENTIALQuality AssurancePrint
Date: 6-Feb-13
foxsemicon integrated technology Inc.
21創建三軸銑削后處理開始--程式集--UGS NX4.0 --后處理工具—后處理構造器二.創建三軸銑削后處理Step1.啟動UG_Post BuilderPresenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
22創建三軸銑削后處理
Step2.進入UG_Post Builder
點墼新增。
Step3.進入Create New
Post Processor模式
Post Output Unit選公制
Machine Tool選Mill
機台種類選3-Axis
Controller選Library
Library中選fanuc_6M
點墼OKPresenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 23創建三軸銑削后處理
Step4. Program Start Sequence
點墼Program &Tool Path —Program —進行Program Start Sequence編輯 MOM_set_seq_off (程式中”N”碼關閉)
%(程式頭”%”號)
MOM_set_seq_on (程式中”N”碼開)如
Cut刪除即可Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 24創建三軸銑削后處理
立方體圖標表示標准程序行
手形圖標表示用戶命令或MOM命令
書頁圖標表示操作信息
單墼下拉箭頭新增Operator Message指令
菜單中有已定義好的各種指令及GM碼
等信息。
單墼Add Block(加程序行)把新增的
Operator Message拖拽到% 下面Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 25創建三軸銑削后處理
在Operator Message中輸入
$mom_output_file_basenameOperator Message---操作信息$mom--- Manufacturing Output Manager
file_basename---12345W01 Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 26創建三軸銑削后處理
Step5. Operation Start Sequence
(From Move)
在(From Move)從點中分別設置G43 Z H01
X Y
M01
M08(UG程式中From Point必需
設置有OK的點,否則此欄中設置的指
令不會處理到NC程式中.)Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 27創建三軸銑削后處理
如果在菜單中找不到需要的
New Block新
M01下面。
從Add Word中拖阻拽到下面。
New Address或Text
Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 28創建三軸銑削后處理
(First Tool)(此欄
條程式的后處理則此欄無需設置)
在First ToolG91 G28 Z0.0G90 T M06 G40 G49 G80 G90
G5.1Q1
G00 G90 G55NC 在Operator Message中輸入
($mom_group_name$mom_tool_name)$mom_group_name---輸出UG prt檔中設定的程式名 $mom_tool_name---輸出UG prt檔中設定的刀具名Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 29創建三軸銑削后處理
(Auto Tool Change)自動換刀的設
(
如果是單條程式的后處理則此欄無需
設置程式尾部分)
在Auto Tool ChangeM09
M05
G91 G28 Z0.0G49G91 G28 Z0.0
G90 T M06
G40 G49 G80 G90G5.1Q1G00 G90 G55在Operator Message中輸入
($mom_group_name$mom_tool_name)Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 30創建三軸銑削后處理
Step6. Tool PathMachine Control 在Coolant On設置M08
Motion
在Linear Move中移除多余的M03 S等指令
不移除會出現:G01Z-3.M03 S5000 F2000
G01Z-3. F2000
在Circular Move中移除多余的M03 S等指令
在Rapid Move中移除多余的H01等指令Presenter: CONFIDENTIALQuality AssurancePrint
Date: 6-Feb-13
foxsemicon integrated technology Inc. 31Canned Cycles
在Drill Deep中G83前
加上G98G98會出現:
G83 X437.677 Y-186.67
Z-1. R3. Q3. F250.
加G98 G83 X437.677 Y-186.67 Z-1. R3. Q3. F250.Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 32創建三軸銑削后處理在Drill Deep中G83前加上
G98指令Step1.
點選Drill Deep
Step2.
在菜單中找到G98指令。
Step3.
點選Add Word,將G98指令拖拽到G83前
面放下。其它如G81等用相同的辦法
在前面加上G98.Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 33創建三軸銑削后處理
Step7. Operation End SequenceRetract MoveReturn Move,Gohome Move, End of Path.
建議此欄不做設置。
prtNC程式在每條子程式后面都有設置的指令。Presenter: CONFIDENTIALQuality AssurancePrint Date:
6-Feb-13
foxsemicon integrated technology Inc. 34創建三軸銑削后處理
Step8. Program End SequenceEnd of Program 中設定指令 M09
M05G91 G28 Z0.0G49
G5.1Q0
M30
%Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
35創建三軸銑削后處理
Step9. G CodesGMotion Rapid中的0改為00.則輸出的G0會變成G00.
其它的指令雷同。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
36創建三軸銑削后處理
Step10. M CodesMOpstop中的1改為01.則輸出的M1會變成M01.其它
的指令雷同。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
37創建三軸銑削后處理
Step11. Word SequencingM03拖拽到S 的前面。
將Q拖拽到F 的前面。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
38創建三軸銑削后處理
Step12. Output ControlN/C Output File Extension
ptp
改為CNC。這樣輸出的NC程式后綴為.CNC。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
39創建三軸銑削后處理
Step13. 保存后處理。點激左上角儲存鍵保存后
.pui .tcl .def
.pui是Post Builder用來
打開后讀取或修改參數。
.tcl是UG/Post用來處理機
床動作事件。
.def是UG/Post用來定義
輸出格式。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
40創建三軸銑削后處理
Step14. 將后處理加入到template_post.dat中。
在路徑C:\UGNX4.0\MACH\resource\postprocessor下
找到template_post.dat
H16,${UGII_CAM_POST_DIR}H16.tcl,${UGII_CAM_POST_DIR}H16.def 后處理名稱 后處理名稱
顯示在UG prt
檔內的名稱Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
41使用中注意事項三.使用中注意事項1.UG .prt檔中From Poinr-Active從點的設
OK的點資料。
由于刀長補正號H01設置在后處理From MoveFrom
Poinr-Active從點必需設有OK
的點資料。否則后處理出的NC檔程式沒有
刀長補正號Hxx.Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 42使用中注意事項
2.UG .prt檔中Tool Number 刀號Adjust Register
刀長補正號在每條程式的子程式中都必需設有OKS03子程式S03_1刀號3
3
子程式S03_2刀號33
子程式S03_3刀號33
子程式S03_4刀號33
子程式S03_5刀號33Presenter: CONFIDENTIALQuality
AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 43使用中注意事項
3.UG .prt檔中一條程式中不能設置兩種刀。如右
圖所示藍色部分表示程式302中有兩種刀具。
302.5
中From Poinr-Active設有OK的點資料。后處理輸出的NC檔程式中間出現回原點及執行刀補動作。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 44使用中注意事項
4.UG .prt檔中DrillPart Surface
必需設定有OK的Part SurfaceNC檔
程式會有多個R值及Z值。
有問題的程式Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 45使用中注意事項
5.UG .prt檔中DrillSpecify Number of
的設定。
一條子程式中只能設有一種下刀深度。
一條子程式中設有兩種下刀深度后處理
輸出的NCG98 G83 X111.76 Y124.155 Z-94. R3. Q1. F120.G98 G83 X57.155 Y-25.4
Z-155. R3. Q1.X-57.155
G98 G83 X-111.76 Y124.155 Z-94. R3. Q1. G80Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 46使用中注意事項
6.UG .prt檔中Drill孔加工中攻牙模式的設定。
Standard Top
PECK_DRILLING模式--Standard Top
攻牙--Rtrcto-選擇Auto
處理出程G98 G84 X276.718 Y98.013 Z-35. R3. Q3. F150.Q值Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc. 47使用中注意事項
1
的兩條子程式的(Min Clearance)攻牙Q值不能相同。
否則后處理輸出的NC程式第二條沒有Q值。2post一
的
兩條子程式的(Min Clearance)攻牙Q值不能相同。否
則后處理輸出的NC程式第二條沒有Q值。Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
48Standard Drill,Break Chip
設定
DRILLING模式--Standard Drill,Break Chip
模式--Step Values-Defined--Step#1輸入攻牙Q值
G98 G84 X276.718 Y98.013 Z-18.236 R3. Q3. F254.Presenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13 foxsemicon integrated technology Inc.
49[format "%.0f" $mom_spindle_rpm]
[format %.1f $mom_feed_cut_value]
[ format "%.2f" $mom_machine_time]
$mom_tool_name[ format "D=%.2f" $mom_tool_diameter]刀具R角
[ format "R=%.2f" $mom_tool_corner1_radius] 刀具伸出長L[ format "L=%.2f" $mom_tool_length]
刀具首下長FL[ format "FL=%.2f" $mom_tool_flute_length] 攻牙Q$mom_cycle_retract_to$mom_output_file_basename內定程
$mom_group_namePresenter: CONFIDENTIALQuality AssurancePrint Date: 6-Feb-13
foxsemicon integrated technology Inc.
50Thanks for Your Attentionfoxsemicon integrated technology Inc.