Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Force X Y Z coordinates output for num post processor

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
Anonymous
1845 Views, 7 Replies

Force X Y Z coordinates output for num post processor

Hello all, 

I'm currently using the num post processor and my machine doesn't seem to accept this kind of transition:

N1290 X565.788 Y519.58 Z-8. R1.8 K1.114
N1295 G01 Y500.393 F2000.


I was therefore wondering if there was a way to force the post processor to output (in this case X) all the X Y Z coordinates?
I'm guessing this should be around line 756 in num.cps

function onLinear(_x, _y, _z, feed) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);


Thanks!
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

Another interesting line:

N6690 X838.575 Y303.574 Z-6.889 R1.8 K21.158
N6695 Y303.676 Z-6.551 R1.8 K37.282
N6700 X838.574 Y303.711 Z-6.2 R1.8 K114.795


No X here either 🙂
Message 3 of 8
Anonymous
in reply to: Anonymous

So I seem to have found a solution, however I guess it's considered as cheating 🙂

simply calling forceXYZ(); at the start of each function
Message 4 of 8
Laurens-3DTechDraw
in reply to: Anonymous

limpkin wrote:

So I seem to have found a solution, however I guess it's considered as cheating 🙂

simply calling forceXYZ(); at the start of each function


I don't think that works for every case though.

At the top of eahc post processor there are lines like these:
var sOutput = createVariable({prefix:"S", force:true}, rpmFormat);


You have the same for XOutput or XYZOutput. The "force:true" makes it output always even if the value is the same for that movement.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


Message 5 of 8
Anonymous
in reply to: Anonymous

That did it... thanks a lot!
Message 6 of 8
a.guenther
in reply to: Anonymous

Hello,

 

i need to force the output of G01, G02, G03 etc.

My used modified postprocessor always delete the next same G01 for example.

e.g.

 

G01 Z2 F7
Z1
Z-1.5 F5
Z2 F11.7
Z-1.5 F7
G03 X-55.063 Y34.75 I-12.25 J0
G01 Z-2.3 F5

 

I need it like this:

 

G01 Z2 F7
G01 Z1
G01 Z-1.5 F5
G01 Z2 F11.7
G01 Z-1.5 F7
G03 X-55.063 Y34.75 I-12.25 J0
G01 Z-2.3 F5

 

Pls help...

 

Greetz

 

EDIT:

 

Problem solved here:

https://forums.autodesk.com/t5/hsm-post-processor-forum/force-output-of-g1-g2-g3/m-p/6102809/highlig...

Message 7 of 8

Bonjour a tous,

 

j ai le meme probleme avec un post pro num ,j ai bien mis " force:true" mais il me manque toujours le XY .

 

je vous met ci joint le fichier programme ainsi que mon post pro

 

pouvez vous m aider 

 

Merci d avance

Message 8 of 8

Hello @arnaud.robillard 

 

I guess that the issue is on the line with the G02/G03 ?

If so then you will need to open your post, search for the onCircular command.

Then you will need to change the following lines :

  if (isFullCircle()) {
    if (properties.useRadius || isHelical()) { // radius mode does not support full arcs
      linearize(tolerance);
      return;
    }
    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gAbsIncModal.format(90), gPlaneModal.format(17), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx), jOutput.format(cy), feedOutput.format(feed));
      break;

As you can see for the XY plane, no coordinates are output after the potential G90 G17 G2/G3 it will be I J F.

But not X,Y,Z

 

You will need to change this to

Hope it helps.

 

 


______________________________________________________________

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report