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

GigsGigsCloud 春节优惠2022 指定云服务器VPS主机85折循环优惠码

GigsGigsCloud商家在之前介绍的还是比较多的,因为之前我一直有几台机器在使用,只是最近几年网站都陆续转型删除掉不少的网站和闲置域名,包括今年也都减少网站开始转型自媒体方向。GigsGigsCloud 商家产品还是比较有特色的,有提供香港、新加坡等亚洲机房的云服务器、VPS和独立服务器等。第一、新春优惠活动优惠码:CNY2022-15OFF截止到正月初二,我们可以使用上述优惠码在购买指定G...

Atcloud:全场8折优惠,美国/加拿大/英国/法国/德国/新加坡vps,500g大硬盘/2T流量/480G高防vps,$4/月

atcloud怎么样?atcloud刚刚发布了最新的8折优惠码,该商家主要提供常规cloud(VPS)和storage(大硬盘存储)系列VPS,其数据中心分布在美国(俄勒冈、弗吉尼亚)、加拿大、英国、法国、德国、新加坡,所有VPS默认提供480Gbps的超高DDoS防御。Atcloud高防VPS。atcloud.net,2020年成立,主要提供基于KVM虚拟架构的VPS、只能DNS解析、域名、SS...

萤光云(20元/月),香港CN2国庆特惠

可以看到这次国庆萤光云搞了一个不错的折扣,香港CN2产品6.5折促销,还送50的国庆红包。萤光云是2002年创立的商家,本次国庆活动主推的是香港CN2优化的机器,其另外还有国内BGP和高防服务器。本次活动力度较大,CN2优化套餐低至20/月(需买三个月,用上折扣+代金券组合),有需求的可以看看。官方网站:https://www.lightnode.cn/地区CPU内存SSDIP带宽/流量价格备注购...

帮助文档为你推荐
赵雨润星辰变电影是真的启动了吗?雅虎社区雅虎资讯在哪里提交在线漏洞检测如果检测网站是否有漏洞?中国电信互联星空互联星空是什么?是电信公司的吗?金山杀毒怎么样金山杀毒怎么样?怎么样免费装扮qq空间要怎么免费装扮QQ空间!照片转手绘有没有一种软件是可以把一张照片变成手绘的图片,给推荐下数码资源网有什么网站弄相片效果比较好的?镜像文件是什么镜像文件是什么意思?开机滚动条谁会调开机的滚动条
广东服务器租用 骨干网 GGC stablehost webhostingpad php免费空间 河南m值兑换 支付宝扫码领红包 根服务器 广东主机托管 阿里dns hdroad 锐速 .htaccess 美国服务器 神棍节 广州服务器数据恢复 web服务器硬件配置 韩剧国语版789 英国伦敦南部爆发大规模抗议 更多