changing program name to Oxxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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