changing program name to Oxxxx

changing program name to Oxxxx

Anonymous
Not applicable
1,325 Views
3 Replies
Message 1 of 4

changing program name to Oxxxx

Anonymous
Not applicable

Hello,

 

Standard the program is xxxx.nc and i want to change it to Oxxxx so our fanuc oimd can read it. So i opened the configuration and changed:

 

 extension = "";
programNameIsInteger = true;

 

The problem is i get an xxxx file and if i save it and just put an O before the file it works just fine but i want it automaticly.

 

What i did was change this:

 

extension = "";
programNameIsInteger = false;

 

if (programName) {
    var programId = programName;
    if (programComment) {
      writeln("O" + programId + " " + formatComment(programComment));
    } else {
      writeln("O" + programId);
    }
  } else {
    error(localize("Program name has not been specified."));
    return;
  }

 

And deleted 

 

try {

      programId = getAsInt(programName);

    } catch(e) {

      error(localize("Program name must be a number."));

      return;

    }

    if (properties.o8) {

      if (!((programId >= 1) && (programId <= 99999999))) {

        error(localize("Program number is out of range."));

        return;

      }

    } else {

      if (!((programId >= 1) && (programId <= 9999))) {

        error(localize("Program number is out of range."));

        return;

      }

    }

 

Now it's a Oxxxx file and it saves well, the problem is if I want to open it with fanuc oimd it tells me "wrong data is used"

 

Is there any solution or do I have to use the first method?

 

Thanks for your help

 

Kind regards, Sebert Verbeek

0 Likes
1,326 Views
3 Replies
Replies (3)
Message 2 of 4

jeff.walters
Advisor
Advisor

just wondering how are you putting the program into the machine?

Jeff Walters
Senior Support Engineer, CAM
0 Likes
Message 3 of 4

Anonymous
Not applicable

Through the network, I use embedded ethernet connection. 

0 Likes
Message 4 of 4

Anonymous
Not applicable
The filename that you save it as does not mean anything you can call it JoeBlow.NC it's the first two lines inside the program that matters for example

%
O1234
The first character in your program number have to be the letter O not the number zero

0 Likes