• matthew@hierthinking.com

Forum

Please or Register to create posts and topics.

Set Main Program return error -5 even if the path is right

Hi Versex

I'm trying to set the main program on a fanuc  0i-d controller with the function cnc_pdf_slctmain but, even if the program is in the directory and the path is correct (tested with other programs in the same directory and work perfectly), it return error 5. If i change it with another file in the same directory the machine is setted correctly. if i manually set (directly from the machine and not from focas) the program, it is correclty setted.

why this error ?

Hi Roberto,

If you can activate other programs using focas then I would be inclined to think that the program you are attempting to activate is not formatted correctly. It may be something as simple as the header being incorrect.

 

Like I said, if you are able to activate other program files in the same directory using focas, then you'll need to examine the one file that doesn't work. The error code 5 can occur because of the file not being in the directory or the file being incorrectly formatted.

Hi versex,

thanks for the reply
If the file is formatted incorrectly, could it be however setted manually, directly on the machine?

and what is an example of incorrected header in the program. how can i check it?

 

Roberto,

I am not sure if you would be able to activate the program on the machine or not. What I would do is download two files to your computer. One that works and the one that isn't working. Open them up and compare the headers to see if there is a difference. If there is, try changing the one that isn't working and see if you can get it to activate with Focas after that. If you can then you will know it is a formatting issue.

Hi Versex,

I've noticed that if the program name to set is Alphanumeric like "5W1", it will not be setted.
if the program name is only numeric like "O0001" it is correctly setted.
How can i set an alphanumeric named program as main with focas library, even with other functions different from cnc_pdf_slctmain?

It should work fine with alpha-numeric values. I actually put out a video about this specific subject. You can watch it here... https://youtu.be/oRCc1OrDjys