Why is the post row counter; skipping lines?

Why is the post row counter; skipping lines?

Sgt_Hindsight
Enthusiast Enthusiast
728 Views
5 Replies
Message 1 of 6

Why is the post row counter; skipping lines?

Sgt_Hindsight
Enthusiast
Enthusiast
N1020 G17
N1021 G2 X132.026 Y-172.179 Z17.918 I1.978 J-0.293 F212.5
N1023 G2 X132.041 Y-172.099 Z17.754 I1.974 J-0.321
N1025 G2 X132.07 Y-171.975 Z17.622 I1.959 J-0.401
N1027 G2 X132.119 Y-171.821 Z17.534 I1.93 J-0.525
N1029 G2 X132.188 Y-171.654 Z17.5 I1.881 J-0.679
N1031 G2 X134 Y-170.5 Z17.421 I1.812 J-0.846
N1032 G1 X138 Y-170.5 Z17.281 F250
N1034 G2 X138 Y-174.5 Z17.062 I0 J-2 F212.5
N1035 G1 X134 Y-174.5 Z16.922 F250
N1037 G2 X134 Y-170.5 Z16.703 I0 J2 F212.5
N1038 G1 X138 Y-170.5 Z16.563 F250
N1040 G2 X138 Y-174.5 Z16.344 I0 J-2 F212.5
N1041 G1 X134 Y-174.5 Z16.204 F250


So in this case the machine is instructed todo a helica operation, but i noticed it skips in the numbering of the lines.

And i can't really figure out why the post is doing that.

 

I'm forcing all the variables to be very verbose, because my machine dont like shorthand code on helical movements.

But for the life of me can't figure out why its skipping lines at all.

I always have to renumber the file in the dripfeed client before sending because the machine is fidgity.

 

kind regards // Andreas

0 Likes
Accepted solutions (1)
729 Views
5 Replies
Replies (5)
Message 2 of 6

Laurens-3DTechDraw
Mentor
Mentor

It's a post processor setting.

In the post dialog you can set this I believe.

Laurens Wijnschenk
3DTechDraw

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


0 Likes
Message 3 of 6

Sgt_Hindsight
Enthusiast
Enthusiast
Yeah you have the "startnumber" and increment by number.. its set to 1 ,
but it still skips rows. Can't figure out why.

Kind regards // Andreas
0 Likes
Message 4 of 6

makko74
Collaborator
Collaborator

this can happen when the nc-block to output has the same values how the preceding one.

 

N52 G0 X5 Y10     <- output

N53 G0 X5 Y10     <- this block is skipped on output because the same position how the preceding one

N54 G0 X5            <- skipped, same X

N55 G0 X5.5         <- output

 

writeBlock counts sequenceNumber and call writeWords2 ( from help file: This method is similar to writeWords() with the exception that text is only output if the 2 argument or above results in text. )

 

hope this is understandable ( bad english on my side )

 

/Mario

 

 

 



InfoInventor CAM(Ultimate) user --- Inventor Professional 2021.2 + Inventor CAM Ultimate 8.1.2.21785
0 Likes
Message 5 of 6

makko74
Collaborator
Collaborator
Accepted solution

what you can try is to check if the output in writeBlock are empty with formatWords and if so then skip the increment of sequenceNumber

change the writeBlock like:

 

function writeBlock() {
  if (properties.showSequenceNumbers) {
    writeWords2("N" + sequenceNumber, arguments);
    if (formatWords(arguments) != "") {
      sequenceNumber += properties.sequenceNumberIncrement;
    }
  } else {
    writeWords(arguments);
  }
}

 

not tested, i can this not reproduce, only an idea

 

/Mario



InfoInventor CAM(Ultimate) user --- Inventor Professional 2021.2 + Inventor CAM Ultimate 8.1.2.21785
Message 6 of 6

Sgt_Hindsight
Enthusiast
Enthusiast

It made sense and needed some minor tweaks.

0 Likes