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

哪个好Vultr搬瓦工和Vultr97%,搬瓦工和Vultr全方位比较!

搬瓦工和Vultr哪个好?搬瓦工和Vultr都是非常火爆的国外VPS,可以说是国内网友买的最多的两家,那么搬瓦工和Vultr哪个好?如果要选择VPS,首先我们要考虑成本、服务器质量以及产品的售后服务。老玩家都知道目前在国内最受欢迎的国外VPS服务商vultr和搬瓦工口碑都很不错。搬瓦工和Vultr哪个稳定?搬瓦工和Vultr哪个速度快?为了回答这些问题,本文从线路、速度、功能、售后等多方面对比这两...

PQ.hosting:香港HE/乌克兰/俄罗斯/荷兰/摩尔多瓦/德国/斯洛伐克/捷克vps,2核/2GB内存/30GB NVMe空间,€3/月

PQ.hosting怎么样?PQ.hosting是一家俄罗斯商家,正规公司,主要提供KVM VPS和独立服务器,VPS数据中心有香港HE、俄罗斯莫斯科DataPro、乌克兰VOLIA、拉脱维亚、荷兰Serverius、摩尔多瓦Alexhost、德国等。部分配置有变化,同时开通Paypal付款。香港、乌克兰、德国、斯洛伐克、捷克等为NVMe硬盘。香港为HE线路,三网绕美(不太建议香港)。免费支持wi...

BuyVM($5/月),1Gbps不限流量流媒体VPS主机

BuyVM针对中国客户推出了China Special - STREAM RYZEN VPS主机,带Streaming Optimized IP,帮你解锁多平台流媒体,适用于对于海外流媒体有需求的客户,主机开设在拉斯维加斯机房,AMD Ryzen+NVMe磁盘,支持Linux或者Windows操作系统,IPv4+IPv6,1Gbps不限流量,最低月付5加元起,比美元更低一些,现在汇率1加元=0.7...

帮助文档为你推荐
96155北京的住房公积金贷款不能打印还款凭证吗, 给96155打电话,他们说没这项业务,让问问贷款中心yy频道中心yy语音怎么进频道中心伪静态什么是伪静态滚动代码来回滚动代码xp系统停止服务XP系统停止服务后怎么办?小米手柄买了个小米蓝牙手柄,游戏是可以玩但是按键位置不舒服,怎么可以改按键虚拟机软件下载谁有好用的虚拟机软件?如何清理ie缓存怎么清除IE缓存.cisco防火墙如何进入cisco防火墙的配置窗口防钓鱼如何防钓鱼子线缠绕主线
日本软银 linode日本 美国主机论坛 godaddy域名优惠码 卡巴斯基官方免费版 合租空间 789电视 metalink 支付宝扫码领红包 爱奇艺会员免费试用 帽子云排名 lamp架构 cdn网站加速 大化网 阿里云邮箱个人版 好看的空间 免费获得q币 美国主机 免费网站加速 2016黑色星期五 更多