Cancel
Showing results for 
Search instead for 
Did you mean: 

PostBuilder: Error 1770002 by generating a post

Experimenter
Experimenter

Hi everyone,

 

I try to make my own PostProzessor with PostBuilder. Until last week everything worked fine but now I get all the error 1770002 everytime I make a post. I made a User Defined Event to insert a part coordinate system. I can add this one with start events and type in my desired values. But if I make the post the error pops up.

 

Would be nice if anyone knows a solution.

 

By the way, do you know how to get the value of a part coordinate system? The idea is to make the program readable. I want to set the first MCS as the machine zero coordinate system an the next mcs on the part. The part coordinate system should be written as X0 Y0 Z0 in the NC Program. My machine has a fanuc control.

 

Many thanks.  

5 REPLIES

Re: PostBuilder: Error 1770002 by generating a post

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Good morning.

 

You might get a better response if you post this on the NX Manufacturing Forum:

 

http://community.plm.automation.siemens.com/t5/NX-Manufacturing-Forum/ct-p/part-manufacturing

 

 

Re: PostBuilder: Error 1770002 by generating a post

PLM World Member Builder PLM World Member Builder
PLM World Member Builder

You would probably get more responce on the NX Manufacturing forum.

The fourth line in your error message states the problem... No value has been assigned to the variable mom_x_axis_JF even though you have declared it global it does not exist until a value has been assigned to it.

Clayton Moudy
Dell Precision T3610, Win7, 16GB. NVDIA Quadro K2000
Production: NX7.5.5.4
Testing: NX11.0.2.7

Re: PostBuilder: Error 1770002 by generating a post

Experimenter
Experimenter

Hello

 

I have have created a Robot cell in NX11 that contains a ABB robot but when I try and post a program the error below is created. The post that I am using is the standard ABB Rapid post.

 

Can you please offer a solution to this error.

 

Thankyou

 

Matt

NX11 post error.JPG

Re: PostBuilder: Error 1770002 by generating a post

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

When you see the message "Error recieved in do_event" (see middle line in your screen image) the REAL error is reported in the syslog (File -> Help -> Log file)

Go all the way to the bottom, then scroll up until you see a "tcl error"

The next step depends on exactly what the error is, but there should be enough info to trace back to the "proc" (function) and line of code the error happened on (at least with normal PB posts, I'm not 100% sure you can edit the tcl code for robotic posts)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: PostBuilder: Error 1770002 by generating a post

Siemens Genius Siemens Genius
Siemens Genius

Error 1770002 occurs when a variable (in Tcl) is not defined. When you are not sure if a variable utilized in the custom command exists or not, it's better to validate it first:

 

global my_var

if { ![info exists my_var] } {  ;# Not defined, initialize it, or error out.

   set my_var 0.0

} else {

   ;# Use it as desired

}

 

Learn online





Solution Information