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

PQS彼得巧 年中低至38折提供台湾彰化HiNet线路VPS主机 200M带宽

在六月初的时候有介绍过一次来自中国台湾的PQS彼得巧商家(在这里)。商家的特点是有提供台湾彰化HiNet线路VPS主机,起步带宽200M,从带宽速率看是不错的,不过价格也比较贵原价需要300多一个月,是不是很贵?当然懂的人可能会有需要。这次年中促销期间,商家也有提供一定的优惠。比如月付七折,年付达到38折,不过年付价格确实总价格比较高的。第一、商家优惠活动年付三八折优惠:PQS2021-618-C...

hostyun评测香港原生IPVPS

hostyun新上了香港cloudie机房的香港原生IP的VPS,写的是默认接入200Mbps带宽(共享),基于KVM虚拟,纯SSD RAID10,三网直连,混合超售的CN2网络,商家对VPS的I/O有大致100MB/S的限制。由于是原生香港IP,所以这个VPS还是有一定的看头的,这里给大家弄个测评,数据仅供参考!9折优惠码:hostyun,循环优惠内存CPUSSD流量带宽价格购买1G1核10G3...

轻云互联22元/月,美国硅谷、圣何塞CN2GIA云服务器,香港沙田cn2建站vps仅25元/月

轻云互联怎么样?轻云互联,广州轻云网络科技有限公司旗下品牌,2018年5月成立以来,轻云互联以性价比的价格一直为提供个人,中大小型企业/团队云上解决方案。本次轻云互联送上的是美国圣何塞cn2 vps(免费50G集群防御)及香港沙田cn2 vps(免费10G集群防御)促销活动,促销产品均为cn2直连中国大陆线路、采用kvm虚拟技术架构及静态内存。目前,轻云互联推出美国硅谷、圣何塞CN2GIA云服务器...

帮助文档为你推荐
bbsxp老大!!您好!我是初学者!请问我的bbsxp如何更改顶端左面的LOGO??arm开发板arm开发板是干什么用的,是用在什么领域方面的申请证书手机申请证书安装迅雷看看播放器如何用手机安装迅雷看看播放器虚拟专用网虚拟专用网 有什么用处?云挂机趣头条后台云挂机辅助后台云挂机辅助有谁用过?想了解实际情况。什么是云平台什么是云系统?网站优化方案网站优化方案怎么写?如何清理ie缓存怎么清除IE缓存.域名库电脑上文件有多少域名?各什么意思?
广东vps vps侦探 免费申请网页 openv asp.net主机 godaddy域名优惠码 godaddy 789电视 国外代理服务器地址 linux服务器维护 美国在线代理服务器 酷番云 台湾谷歌 吉林铁通 常州联通宽带 个人免费主页 环聊 1元域名 成都主机托管 江苏徐州移动 更多