post processeur fanuc oi md

post processeur fanuc oi md

Anonymous
Not applicable
1,783 Views
6 Replies
Message 1 of 7

post processeur fanuc oi md

Anonymous
Not applicable

lors de la creation d'un fichier , le code EOB (;) n'est pas present a la fin de chaque ligne

comment y remedier

0 Likes
Accepted solutions (1)
1,784 Views
6 Replies
Replies (6)
Message 2 of 7

boopathi.sivakumar
Autodesk
Autodesk

@Anonymous 

it needs some post edit.

Before editing the post processor file copy the file and do the change as below

Open the post processor file in notepad or any editor 

and search for this line function writeBlock()

then you will get to see something like this as below
function writeBlock() {
  var text = formatWords(arguments);
  if (!text) {
    return;
  }
  if (properties.showSequenceNumbers) {
    if (optionalSection) {
      if (text) {
        writeWords("/", "N" + sequenceNumber, text);
      }
    } else {
      writeWords2("N" + sequenceNumber, arguments);
    }
    sequenceNumber += properties.sequenceNumberIncrement;
  } else {
    if (optionalSection) {
      writeWords2("/", arguments);
    } else {
      writeWords(arguments);
    }
  }
}
and  add the , ";" in the mentioned line below
 
function writeBlock() {
  var text = formatWords(arguments);
  if (!text) {
    return;
  }
  if (properties.showSequenceNumbers) {
    if (optionalSection) {
      if (text) {
        writeWords("/", "N" + sequenceNumber, text);
      }
    } else {
      writeWords2("N" + sequenceNumber, arguments ,";" );
    }
    sequenceNumber += properties.sequenceNumberIncrement;
  } else {
    if (optionalSection) {
      writeWords2("/", arguments);
    } else {
      writeWords(arguments);
    }
  }
}
Then save the post now try to post process it will work
 

Boopathi Sivakumar
Senior Technology Consultant

Message 3 of 7

Anonymous
Not applicable

merci pour la reponse

je ne sais pas comment éditer mon post-pro ni ou il se trouve

désolé pour mon ignorance

0 Likes
Message 4 of 7

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

While post processing in the window you will see this 

 

125.png

Click Open config 

this will open the file in default editor then use saveas option to copy the file in the same folder (Don't forgot to put .cps at the end of the file name "Example. Fanuc Modified.cps")

and you can search for the line which i had mentioned earlier and do the modifications, save the file now come back to the post process menu you will get to see the new post file.

 

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes
Message 5 of 7

Anonymous
Not applicable

merci pour ces lumieres ,

c'est rèsolu tout marche !!!

0 Likes
Message 6 of 7

ahmet_mrl_46
Participant
Participant

Hello, I need a Fanuc oi-md post.
Would you share your post with me?
Can you mail to aziz46mrl@gmail.com.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Any way to create EOB property, because if i turn off "use sequence numbers" it will cease to output ";" at the end of the block.

(properties.showSequenceNumbers) {

(properties.showEOBcharacter) {

 So that when post processing there's an option to turn off sequence number and turn on or off ";" or EOB.

0 Likes