productUG后处理帮助文档

帮助文档  时间:2021-02-25  阅读:()

Introduction

This onl ine help documentation contains the fol lowing sections:

 Postprocessing in general

 Postprocessing with Post

Developing a Post

 Instal l ing a Post

Postprocessing in General

Your primary use of the Manufacturing appl ication is to generate NX tool paths in order tomanufacture parts.General ly,you cannot just send an unmodified tool path fi le to a machineand start cutting because there are many different types of machines.Each type of machinehas unique hardware capabi l ities and requirements; for instance, it can have a vertical or ahorizontal spindle, it can cutwhi le moving several axes simultaneously,etc.

Furthermore,each machine is control led by a computer (i e,controller) The control ler accepts a toolpath fi le and directs tool motion and other machine activity(e g, turning the coolant or air on and off)Natural ly, just as each typeof machine has unique hardware characteristics,control lers also differ insoftware characteristics For instance,most control lers require that the instruction for turning the coolanton be given in a particular code Some control lers also restrict the number of M codes that are al lowed inone l ine of output This information is not in the initial NXtool path

The tool path fi le hits the control ler's brickwal l of incompatibi l ity.The tool path data is notformatted for the machine.

Therefore, the tool path must be modified to suit the unique parameters of each differentmachine/control ler combination.The modification is cal led postprocessing.The result is apostprocessed tool path.

Two elements are essential for postprocessing.They are:

The tool path data is reformatted by the postprocessor for the machine.

1

match the fol lowing warning is issued:

"The output units and the units of the postprocessor do not match.The outputformats may be incorrect.You should set the units to post-defined."

Stop the postprocess and correct this mismatch. If you continue the fol lowingproblems may exist in your output:

1)The coordinate output wi l l be rounded incorrectly.

2) Inch/metric codes(G70/G71 or G20/G21)wi l l be incorrect.

3) If there is no decimal point in the coordinate output (G01 X1000Y2000), thecoordinate data wi l l be interpreted incorrectly.

4)Dimensional outputwi l l be either25.4timestoo smal l or too large.

5)Feed rate l imits(IPM/MMPM, IPR/MMPR)wi l l give erroneous warning messages.The postprocessor program is usual ly dedicated to a single type of machine/control lercombination.You can modify postprocessor fi le parameters for functions of that particular typeof machine/control ler combination.However,you cannot modify the program for use withanother type of machine/control ler combination.

NX provides a general ized postprocessor program,Post,which uses NX tool path data asinput,and outputs machine readable NC code.Post is highly customizable and can be usedfor both very simple and very complex machine tool/control ler combinations.

Post Bui lder is the NX product that is used to customize the postprocessor for each machinetool/control ler combination.

The Post Postprocessor

Postprocessing with Post

NX provides the Post postprocessor that can properly format tool paths for specific types ofmachine/control ler combinations.The Post postprocessor requires several elements:

The Event Generator, the Event Handler,and the Definition Fi le are dependent upon eachother.Together they transform the tool path data contained in the part fi le into a set offormatted instructions that they can be read and executed by a specific machine tool/control lercombination.

The Post Postprocessor does the fol lowing:

 Uses the Event Generator to read the events(tool path data) in the part fi le.

 Each event is processed according to the instructions contained in the Event Handler.

 The resulting instructions are formatted according to the information contained in the

Definition Fi le.

 The postprocessed machine control instructions are written to the Output Fi le.

The tool path data is postprocessed according to the instructions in the Event Handler and theformats in the Definition Fi le.

Developing a Post

To develop a post,you must create an event handler and a definition fi le.The recommenedmethod to create these is with Postbui lder.After creating a post,you wi l l have three fi les:<post_name>.tcl , ~.def,and~.pui .

 The PostBui lder documentation is included in the Postbui lder kit and accessed fromwithin Postbui lder.

Installing a Post

In order for a post to be avai lable in NX,you must enter the name of the post and the locationsof the Event Handlerand definition fi le intothe postconfiguration fi le, usual ly

3

template_post.dat.This is pointed to by the entry TEMPLATE_POSTin your CAMConfiguration fi le.

Post Concepts

This section describes the fol lowing basic concepts related to Post:

 The Manufacturing Output Manager (MOM)

 The Event Generator

 The Event Handler

 The Definition Fi le

 The Output Fi le

The Manufacturing Output Manager(MOM)

The Manufacturing Output Manager (MOM) is the central core of the NX Post postprocessormodule.MOM converts tool paths from model fi les into manufacturing output (machine code)by adding the required functions and data as described below:

1 . The Event Generator reads through the tool path data,extracts events and theirassociated variable information, then passes the events to MOM for processing.

2. MOM appl ies kinematics to the output then passes the event with its associated datato the Event Handler.

3. The Event Handler creates the event,processes it to determine the actions required,then returns the datato MOM.

4. MOM readsthe Definition Fi leto determine howto format the output for the machinetool control .

5. MOM writes the formatted output to the specified Output Fi le as machine code.Each of the components(Event Generator,Event Handler,Definition Fi le,Output Fi le)aredescribed in detai l on the fol lowing pages.

The Event Generator

The Event Generator:

1 . Cycles through the tool path data in the part fi le.

2. Creates events and parameter information from the internal tool path data.

3. Passes events on to MOM for processing.

4

Example

A Linear_Move eventwi l l cause the NC machine to move the tool along a straight l ine to aposition specified by the information stored in the parameters"X", "Y",and"Z" .

In this case the event generatorwi l l trigger the Linear_Move event and wi l l load thecorresponding parameters X,Y,and Z with the values that represent the end position of thestraight move.This information is then passed to the Manufacturing Output Manager forprocessing.

A complete description of recognized events,and the variables associated with each, isdescribed in the Setup Events,Machine Control Events,Move Events,Cycle Events,andMiscel laneous Parameters sections.

Order of Events

When you post process a tool path, there is a specific order for the events which cannot bechanged.The data is output in the fol lowing order:

START OF PROGRAM

UDEs attached to the program

START OF GROUP(NC_PROGRAM,GENERIC_MACHINE,GEOMETRY,METHOD)

UDEs attached to the group

UDEs attached to the geometry with Start Post commands

UDEs attached to the method with Start Post commands

UDEs attached to the cutting tool with Start Post commands

UDEs attached to the machine tool with Start Post commands

START OF OPERATION

TOOL CHANGE(not LOAD command)

UDEs attached to the operation with Start Post commands

INITIAL MOVE

UDEs attached to the operation with End Post commands

ENDOFOPERATION

UDEs attached to the geometry with End Post commands

UDEs attached to the method with End Post commands

UDEs attached to the tool with End Post commands

UDEs attached to the machine tool with End Post commands

END OF PROGRAM

You can write a handler foryour UDE's in the user.tcl fi le.You can only process the data afterthe UDE event has occurred.

The Event Handler

The Event Handler is a set of instructions that:

5

 Must be developed for each machine/control ler combination.

 Contains a set of instructions for each type of event to post process.

 Defines how the tool path data and events are executed at the machine tool . Must use TCL.There should be a TCL procedure for each event that you want theEvent Handler to process.

 The TCL procedure name for each event must be identical to the event nametriggered by the Event Generator.For example, the procedure name for a toolchange event mustbe MOM_tool_change.

 The parameters associated with each event are passed to the Event Handleras global variables.The Setup Events,Machine Control Events,Move Events,Cycle Events,and Miscel laneous Parameters sections describe the val idevents and the parameters associated with each event.

See also:

 TCL For The Post Writer

 An Example Event Handler

The TCL interpreter serves as the translator for Post.

The Definition File

The definition fi le mainly contains static information about a specific machine tool (onedefinition fi le for each machine).

Most NC machines use addresses for each of the variables that control the machine.Forexample, the address X is used to store the value of the X coordinate of the end position of aLinear move.Each command l ine in an NC program changes the state of the machine bychanging the state of its addresses.Post wi l l provide tools that use the information in thedefinition fi le to format NC commands.

These tools wi l l be provided as an extension to core TCL.The definition fi le contains thefol lowing:

 General machine attributes

 The addresses that are supported by the machine

 The attributes of each address(format,max,min)

 A set of blocktemplates that describes how the addresses fit together to perform anaction on the machine.For example, the command G01 X[Xval]Y[Yval]Z[Zval]performs a l inear move.

As mention above, the definition fi le describes static data about a specific machine tool . Itcontains information that wi l l simpl ify the process of generating an NC program.

Refer to An Example Definition Fi le for an example.

6

 We recommend using Postbui lder to create the Event Handler and Definition Fi le.Definition Fi le Metalanguage

The description of the elements subscribes to the fol lowing conventions:

UPPER_CASE non-quoted words must appear as typed;an italicizedword must be replaced with a member of its class;

The quotes( " ),braces( {, } )and brackets( [, ] )must appear as typed;

<e1 |e2| . . . |en>means you must pickexactly one of the ei ;

@@means that what appears between the@'s is optional .

{class}+means 1 or more of class

{class}*means 0 or more of class

Machine

Element Name

MACHINE name

Descrip tion

This isthe nameof the machinetool definition.

Example

MACHINE fanuc15m

Include

Element Name

I NCLU DE{name_1 name_2...name_n}

Descrip tion

Indicates that machine name inherits its definition fi le from machines name_1,name_2, ...,name_n.This causes name_1 to be loaded, fol lowed by and overridden by name_2, fol lowedby and overridden by name_3, . . . , fol lowed by and overridden by machine name_n.When a

7

definition fi le is loaded itonlyoverrides itemsthatappear in the loaded definition fi le.Any itemsthat have been previously set and that do not appear in that definition are left untouched.

Example

INCLUDE{ fanucfanuc15m}

Word Separator

Element Name

WORD_SEPARATOR"string"

Descrip tion

Instructs Post to output string between al l other words of output (see the nowsswitch below).If the stringcontains any ASCI I control characters(e.g. , newl ines, tabs,escapes) then thosecharacters of string must be entered in octal code.This is referred to as the octal rule.Forexample, if the word separator is atab then this argumentwould be"\01 1".

Example

WORD_SEPARATOR" "

End of Line

Element Name

END_OF_LINE"string"

Descrip tion

Instructs Post to output stringat the end of each l ine sent to the output.stringfol lows theoctal rule.

Example

END_OF_LINE"\012"

Tool Mounting

This describes the carriers or turrets,pockets, tool holders,and tools present on the machine.The system only uses thiswhen a machine in the machine tool l ibrary referencesthis

8

postprocessor.When the system retrieves the machine, it creates the necessary carriers andpockets in the Machine Tool View of the Operation Navigator and retrieves the specified toolsfrom the l ibrary and places them in the pockets.

The turret/pocket definition in the post .def fi le is copied to CAM setupwhen a machine isretrieved from l ibrary. It is presented to the user in the machine tool view of the ONT.Thisenablesthe user to edit thetool mounting on the machine in the machinetool view byassigning the tools to the desired pockets.

TURRET 1

{

POCKET 1

{

HOLDING_SYSTEM"300", "310", "320", "330"

PRELOAD_TOOL ugt0202_0090

TOOL_CONSTRAINTS

{

ANGLES0.0

XFORM_ANGLESX0.0Y0.0Z0.0

QUERY" "

}

}

POCKET2

{

. . . .

}

. . .

}

TURRET<id>

The id identifies the turret for the post and is written to the MOM global variablemom_turret_id

POCKET<id>

The id identifies the pocket for the post and is written to the MOM global variablemom_pocket_id

9

无忧云:洛阳BGP云服务器低至38.4元/月起;雅安高防云服务器/高防物理机优惠

无忧云怎么样?无忧云,无忧云是一家成立于2017年的老牌商家旗下的服务器销售品牌,现由深圳市云上无忧网络科技有限公司运营,是正规持证IDC/ISP/IRCS商家,主要销售国内、中国香港、国外服务器产品,线路有腾讯云国外线路、自营香港CN2线路等,都是中国大陆直连线路,非常适合免备案建站业务需求和各种负载较高的项目,同时国内服务器也有多个BGP以及高防节点。一、无忧云官网点击此处进入无忧云官方网站二...

819云(240元)香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP

819云是我们的老熟人了,服务器一直都是稳定为主,老板人也很好,这次给大家带来了新活动,十分给力 香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP 240元0官方网站:https://www.819yun.com/ 特惠专员Q:442379204套餐介绍套餐CPU内存硬盘带宽IP价格香港CN2 (特价)E5 随机分配16G1T 机械20M3IP240元/月日本CN2 (...

妮妮云(30元),美国300G防御 2核4G 107.6元,美国高速建站 2核2G

妮妮云的来历妮妮云是 789 陈总 张总 三方共同投资建立的网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑妮妮云的市场定位妮妮云主要代理市场稳定速度的云服务器产品,避免新手购买云服务器的时候众多商家不知道如何选择,妮妮云就帮你选择好了产品,无需承担购买风险,不用担心出现被跑路 被诈骗的情况。妮妮云的售后保证妮妮云退款 通过于合作商的友好协商,云服务器提供2天内全额退款,超过2天不退款 物...

帮助文档为你推荐
苏州商标注册苏州商标注册申请流程是什么样的安装程序配置服务器失败win10安装程序配置服务器失败怎么办iphone5解锁苹果5手机怎么解屏幕锁flash导航条如何添加FLASH导航条9flashIE9flash模块异常。申请证书手机申请证书中小企业信息化信息化为中小企业发展带来了哪些机遇bt封杀为什么现在网上许多BT下载都被封了?机械键盘轴大家觉得机械键盘什么轴最舒服虚拟专用网安卓手机的虚拟专用网设置是什么东西?怎么用?
虚拟主机排名 域名备案网站 淘宝二级域名 万网域名管理 国外php主机 外贸主机 国内加速器 主机合租 网通代理服务器 nerds 上海服务器 个人免费主页 免费的asp空间 湖南idc lamp兄弟连 大化网 双十二促销 开心online sonya 什么是dns 更多