Originally Posted by
gmartore
Hey Guys,
I know this post is old, but maybe somebody else looking for a solution to this problem...
If the password at 3210 parameter if set and you don't remember it or the preview owner set it...
It was test at FANUC 31i, i believe it work for different controller with the same parameter number...
So you unit has to be connected to the network and use FOCAS2 library.
Here is part of the code in C# if you arent familiar with c# , i can compile for you the console app.
Focas1.focas_ret ret = (Focas1.focas_ret)Focas1.cnc_allclibhndl3("IP ADDRESS HERE", 8193, 5, out cncHandle);
Focas1.IODBPSD_1 prmDataNoAxis = new Focas1.IODBPSD_1();
prmDataNoAxis.type = 0;//No axis
prmDataNoAxis.cdata = 0;
prmDataNoAxis.datano = 3211;
for (int i = 1; i < 99999999;i++ ) {
System.Threading.Thread.Sleep(500);
prmDataNoAxis.ldata = i;
prmDataNoAxis.datano = 3211;
ret = (Focas1.focas_ret)Focas1.cnc_wrparam(cncHandle, 8, prmDataNoAxis);
prmDataNoAxis.cdata = 64;
prmDataNoAxis.datano = 3202;
ret = (Focas1.focas_ret)Focas1.cnc_wrparam(cncHandle, 5, prmDataNoAxis);
if (ret == Focas1.focas_ret.EW_OK)
{
Console.WriteLine("YOU KEYWORD IS "+ i );
Focas1.cnc_freelibhndl(cncHandle);
break;
}
}
Enjoy
Guillermo.