Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

surface normals in 3D Models


Recommended Posts

5-axis flowline toolpaths contain I,J,K parameters as two points(X,Y,Z and U,V,W). In the postprocessor (in PMX0) the unit vector normal is available as VTOOLX,VTOOLY,VTOOLZ. Other 5-axis toolpaths may or may not contain surface normal vectors, depending on the type of toolpath. Do you want these vectors for machining or CMM's?

Link to comment
Share on other sites
  • 2 weeks later...

ok, now that I can access 5-axis flowline,

how do I get it to generate i, j, k values in the nc file? I have q simple surface model,

if i select he boundary lines, how do i get it to generate he i,j,k along with the x, y and z

values?

pma

Link to comment
Share on other sites

Open the post you are using and look for....

 

arcoutput : 0 #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180

 

 

You want to use 0 as your setting

 

 

What tool paths are you using?

What post?

What kind of machine?

Ver 9?

Ver X?

 

 

The more info the better to solve your problem.

 

 

quote:

can you be more specific as to what pst file these are located in?

The PST file is the post you are using.

 

 

cheers.gif

Link to comment
Share on other sites

ok here goes:

 

we don't really use a machine, we have a special laser projection application. it reads a part file with the x, y and z co-ordinates. it can also interpret i, j, k values. i would like to include the i,j,k values anytime they are there.

 

right now i was told to use a 5-axis machine type (5-AXIS TABLE - TABLE HORIZONTAL) , with surface finish toolpath (none i've selected produced the i,j,k values in the NC file).

 

The post file I've been playing with is the

Generic Fanuc 5X Mill.pst file.

 

We are running Mastercam X.

 

arcoutput is already set to 0 in the pst file.

 

once the NC file is generated, we xlate it to our part file format for our application.

Link to comment
Share on other sites

I think you can do it by using post processor ,parsing nci text, or chook.

 

 

1. use processor

5axis move is gcode 11

gcode$=11

and tool vector variables are.

vtoolx$

vtooly$

vtoolz$

 

2. output nci text and use your program to parse it and output nc data.

read post document for nci text format..

 

 

3. read binary nci data by nci_manager() function,

and output data you need.

 

gcode = 11 is 5axis movement.

 

 

/// mill nci - 5 axis move

typedef struct

{

p_3d ep1, ///< move to point for cutter tip

ep2; ///< move to point for cutter center

real feed; ///< feed rate - positive value=feed, negative=feed unchanged

short path; ///< path position

short position; ///< start/end contour flag, stop, coolant change

p_3d snvec; ///< surface normal vector

} nci_mill_11;

Link to comment
Share on other sites

I dont know if it is correct.

 

 

MPFAN.PST

code:

# --------------------------------------------------------------------------

# Motion NC output

# --------------------------------------------------------------------------

#The variables for absolute output are xabs, yabs, zabs.

#The variables for incremental output are xinc, yinc, zinc.

# --------------------------------------------------------------------------

 

 

fmt I 2 vtoolx$

fmt J 2 vtooly$

fmt K 2 vtoolz$

pvectorout

*vtoolx$,*vtooly$,*vtoolz$

 

prapidout #Output to NC of linear movement - rapid

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pvectorout, strcantext, scoolant, e$

 

plinout #Output to NC of linear movement - feed

pcan1, pbld, n$, sgfeed, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pvectorout, feed, strcantext, scoolant, e$

 

 

 

 

 

 

 


Link to comment
Share on other sites

Is your toolpath 5ax flowline?

 

In MPFAN.PST

you see format #1 is 6 decimal places in metric.

 

 

#Default english/metric position format statements

fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize ( smile.gif

fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place

 

 

fmt I 1 vtoolx$

fmt J 1 vtooly$

fmt K 1 vtoolz$

 

and you may need changes around feed calculation..

 

It's been a long time since I edited .pst files last time..

Link to comment
Share on other sites

got it to work with p_svec, q_svec and r_svec variables. now, how do i limit the number of points to generate in the nc file? would like just to trace around the boundary of the surface,

how do I specify to do this? no probelm if you dont know this one...

pma

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...