@restarting sequence numbers after hitting max (N65534) Old heidenhain tnc155.

kchad6909
Explorer

@restarting sequence numbers after hitting max (N65534) Old heidenhain tnc155.

kchad6909
Explorer
Explorer

I have managed to accomplish things i never thought possible using this 1984ish wells index nc mill with heidenhain tnc155. Recently I tried the largest program to date at N335340, and I hit the max allowable sequence numbers at N65534. I am using heidenhain iso post processor and I cannot find any options for altering anything other than turning sequence numbers on and off and the increment. Is there a different post or something I can do to efficiently restart the block sequence numbers when i hit the max? Someone please help. Thank you in advance. @

0 Likes
Reply
Accepted solutions (1)
342 Views
4 Replies
Replies (4)

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

Hi @kchad6909 

The post can be modified to reset the sequence number, edit the post in editor and find for the following code

function writeBlock(block) {
  if (!formatWords(block)) {
    return;
  }
  writeln(blockNumber + SP + block);
  ++blockNumber;
}

 And modify it to like this

function writeBlock(block) {
  if (!formatWords(block)) {
    return;
  }
  if (blockNumber > 65000) {
    blockNumber = 0;
  }
  writeln(blockNumber + SP + block);
  ++blockNumber;
}

It will reset if the blocknumber exceeds 65000. 

 

We are making generic changes to post in future it will be addressed later

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

kchad6909
Explorer
Explorer

Thank you for being so quick to reply. I believe this is for the heidenhain conversational post processor. the format is different for the Iso-gcode post processor. The one that i have been using is heidenhain iso.cps it isnt  much different.image_2024-03-14_065427879.png

0 Likes

kchad6909
Explorer
Explorer

i have made the changes in the heidenhain iso.cps and now get an error. this is the log. I believe it came from editing the post and saving from vs code. image_2024-03-14_081428394.png

0 Likes

kchad6909
Explorer
Explorer

Ive found the solution. thank you for your help.

0 Likes