cancel
Showing results for 
Search instead for 
Did you mean: 

Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello everyone,

I have some problem with 5 axis post creation.. In our ploter we have specific situation - I have some machinery offset :

1) Spindle axis has 70mm offset from C axis ( - vector direction X)

2) C axis has 40 mm offset from A axis ( - vector direction X)

 

For proper calculation do I have to destribe this offsets in postprocessor in Machine Zero to 4 & 5 Center ?

 

Can I safetly describe this offsets as in my attachment number 03 ?

 

If there is some idea how to write in postprocessor procedure or PB_CMD movement transferring planes while our cnc machine does not read G68 or G68.2 code ? ? ? This 5 axis ploter works on Fanuc code but a little bit "stripped down" version ...
 
My kinematics and simulation works on path simulation only now - but I am fighting with final code simulation so that I need to make a proper postprocessor.
========================================
Engineering >> NX10.0 Performance in the making
10 REPLIES

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Genius
Genius

For proper calculation do I have to destribe this offsets in postprocessor in Machine Zero to 4 & 5 Center ? -- Answer is YES.

BR
Mak
TC10/NX 9

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Ok. Well, according to offsets I do not have any more questions.

 

But... is there any way or chance to write "manualy" 5 axial movement of the tool by some another PB_CMD in postbuilder ? My machine is still ignoring G68 (plane spatial / turn on coordinate rotation ) and I dont know how to get around of this Smiley Sad

 

I attach my current post (.pui , .def, .tcl) , which I made just for my 5 axis plotter, it is packed in .zip file.

 
If possible, I would ask you dear users to take a look at my post - I would be very grateful for the help
========================================
Engineering >> NX10.0 Performance in the making

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Genius
Genius

I did not understand your problem.

 

Is your post giving you output of 'G68' and your machine is not processing it and not behaving accordingly ?

or

Is your post not giving you 'G68' as an output ?

 

 

BR
Mak
TC10/NX 9

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

My post is giving 'G68' as an output - there is ok.

My machine is not processing it Smiley Sad This ploter does not recognize G68 or any plane spatial command ..

 

You can see my post here - Haltron4_BA_G682.zip ‏153 KB

========================================
Engineering >> NX10.0 Performance in the making

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Genius
Genius

Sorry I do not have latest post builder and license.

 

Check your machine controller manual for codes - which code, what format it accepts the movement you are expecting. Also check whether that functionality is enabled on the machine.

 

Then you need to configure that code in post builder - either change the original code or write custome code to output desired. See some videos on this forum on how to do that using TCL language.

 

After that you need to do some settings in NX CAM operation (under MCS) to get the desired result.

 

All the best. 

BR
Mak
TC10/NX 9

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello again,

SO after many tests & trials with this crazy machine I am closer to solution.

I have followed your guidelines above and I wrote my own procedure in TCL to driving the tool in space.

 

I read every line in my cnc ploter technical documentation and there is no answer, command or g-code responsible for tilting working plane. This is a very limited plotter when it comes to work in the 5-axis ... Plus an additional trouble as axial offsets Smiley Indifferent

 
The only solution in postbuilder is driving the tool by G01 (linear move) with X,Y,Z and B,A
in details with using global mom_out_angle_pos & mom_mcs_goto
I included axial offsets into .TCL imported to postbuilder as PB_CMD
 
My syntax contains a formula that calculates X,Y,Z (mom_mcs_goto) based on the angle B,A (mom_out_angle_pos) and returns the calculated position  as x2, y2, z2 with B,A (new coordinates for x,y,z positions).  It works in ActiveTCL.
 
Unfortunately, after generating cnc code in NX I recieve error included in mom_information.out
How to insert the result of calculated x2,y2,z2 to the block line in .nc file as an output ??
 
End of of my syntax in .TCL looks like this:
 
-----------------------------
puts "S(B(A)) X$x2 Y$y2 Z$z2 B$beta A$alfa"
set S [puts "X$x2 Y$y2 Z$z2 B$beta A$alfa"]
}
-----------------------------

I need to change command PUTs on MOM_output_literal ?
Plz help
 
 
========================================
Engineering >> NX10.0 Performance in the making

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

I tried this:

 

set S [puts "X$x2 Y$y2 Z$z2 B$beta A$alfa"]
MOM_output_literal "$S"

 

I think it should work but after generating NX operation by postprocessor I recieve this mom error :

 

Event: MOM_linear_move
Error Info: can't read "x1": no such variable
    while executing
"set X1 $x1 "
    (procedure "PB_CMD_wzl_v01" line 151)
    invoked from within

 

First my variables X1 $x1 were described as:

 

set ::x1 [format {%0.2f} $x1]
set ::y1 [format {%0.2f} $y1]
set ::z1 [format {%0.2f} $z1]

 

but I noticed that postbuilder dont recognize global symbol as ::

 

So i changed :: on global command which is looks like that at this moment:

 

global x1
global y1
global z1

 

set x1 [format {%0.2f} $x1]
set y1 [format {%0.2f} $y1]
set z1 [format {%0.2f} $z1]

 

Still I get same mom error, so I wonder how to change global command to read x1,y1,z1 variable. Have you got idea how to get around with this?

 

For Your information & details,

x1,y1,z1 - recalculated values after rotation B axis

x2,y2,z2 - recalculated values after rotation B&A axis

 

Best regards, Jacob

========================================
Engineering >> NX10.0 Performance in the making

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Phenom
Phenom

the post should be able to handle all this without custom tcl

Using the offsets in the machine axis page and starting from a basic 5axis post with no customisation should get you there.

Assuming the machine doesn't handle tool length. Rotary offsets and gauge length in post and tool length in UG should calculate tool tip position.

Re: Postprocessor with offsets - 5 axis ploter - some troubles

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Ok, but my machine has not proper set for tool tip tracking..

CLSF motion code from nx should be a proper tracking point.

 

My machine has the tracking point somewhere in the Z axis ...

I can only measure tool in vertical position (B=0deg, A=0deg)

 

I need to make my custom procedure for recalculate new position of x,y,z - look on the attachment, there is a simple photo how my machine works

 

Last time I was testing my machine by simple custom:

 

 global mom_out_angle_pos
 global mom_mcs_goto

 set b [format {%0.2f} $mom_out_angle_pos(0)]
 set a [format {%0.2f} $mom_out_angle_pos(1)]
 set x [format {%0.2f} $mom_mcs_goto(0)]
 set y [format {%0.2f} $mom_mcs_goto(1)]
 set z [format {%0.2f} $mom_mcs_goto(2)]

 MOM_output_literal "G01 X$x Y$y Z$z B$b A$a"

 

In result my 5axis ploter after working with B & A axis had has the tool tip in a different place than mom_mcs_goto coords

 

========================================
Engineering >> NX10.0 Performance in the making

Learn online





Solution Information