CNC
CNC lathes and CNC mills repair,
CNC machine repair forums for machinists, cnc programing and manufacturing community.   
   CNC Store
Go Back   CNC Professional Forums > CNC Machinst Help & CNC Troubleshooting Forums > Automation & Interfacing / Installation / Ladder logic
Members List Calendar Register FAQ/Rules/Policies Mark Forums Read
Home Recent Posts HELP-FORUMS (ask/answer) Classifieds-freeFile Sharing / Documents Photo Galleries Polls Newsletter   Machinetoolhelp.com.

Automation & Interfacing / Installation / Ladder logic Including robotics, high pressure units, fixture clamping, part present, autodoors, or any other add on options.

Reply
 
Bookmark or Share Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-07, 09:23 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default Fanuc Ladder passwords

Does anyone know how to figure out how to determine what the password is to open fanuc ladders?? I heard of a few people using a hexeditor of some sort to figure it out. I have one of the new Robodrills with the 30I control. The control seems to also have changed in that it now has PMC1 and PMC2. Any help or understanding of this new format is greatly appreciated.

Reply With Quote
  #2 (permalink)  
Old 01-23-07, 09:03 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

I've got 30i documentation at work. I'll send you some info on the new set up when I go into work this evening.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #3 (permalink)  
Old 01-24-07, 08:20 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

The programming of PMC1, PMC2, PMC3 is as I'm sure you already know, set up by the machine tool builder. PMC1 is typically going to control the operator interface for controlling main functions. PMC2 is typically going to control peripheral equipment. PMC3 typically controls the operator interface for loaders, etc.. They are typically set up to share data such as faults, so that all of the devices on separate channels will stop if said fault is a "critical" fault. They can also be set up for different channels of I/O, so expansion is normally not a problem(adding new devices and such). Each PMC will typically have it's own Estop signal address. The execution of the PMC's can be set in the parameters. Typically it reads PMC1, then 2, then 3. The read times can also be set for each PMC to 4 or 8ms.

Each ladder has 3 ladder levels, up to (about) 64,000 steps, at least 1kb of symbol comment, 8kb of message. 14 Instructions, 69 functional instructions(option of 83).

You can use up to four I/O channels with 4,096 inputs, 4,096 outputs, but using all four requires a I/O link expansion option.

From a machine tool builder point of view this is an ideal set up. If I'm building identical machines, except one has a robot and one doesn't, I put the robot control on a secondary PMC so if a company buys one without a robot, and later decides to install one, it's basically plug cable A, into cable B, and send me a check for the PMC that all you have to do is upload and run. It would also be ideal for a large amount of controlled axis. The CNC controls the fixture in the machining area, while the second or third PMC controls all of the activity on the load/unload side of the machine.

From a user standpoint, I find them a little easier to troubleshoot. Machine functions on PMC1, fixture functions on PMC2, Robot functions on PMC3. To me this seems a little more structured. Could all of it be done on one PMC? Yes. It comes down to how the builder wants to set it all up.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #4 (permalink)  
Old 01-24-07, 05:38 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default

Thanks for the reply Codyst. I am not sure what the advantage would be since I think you could just add subprograms to seperate them out couldn't you and then use some keep relays to add on options. I tried looking at the PMC2 file but nothing came up. When I open the PMC1 file which is my main ladder file it asks for a password but I do not know what it is. It seems the builder was able to lock out the main ladder with the password and leave the subprograms so that we can put a custom PMC ladder within it. The only problem is that the password also prevents you from looking or searching the main ladder at all. So when I am doing the custom interface in order to figure out what is happening in the main ladder I actually have to go out to the machine and search within it instead of using doing it easily with my laptop. Do you know of a way to at least view it on the computer without having a password for the ladder. I have heard of a way to try to figure it out with a hex editor but I have not tried it yet.

Reply With Quote
  #5 (permalink)  
Old 01-25-07, 03:29 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

They could very easily do the same thing by adding sub's and putting keep relays on them to enable. I guess room to expand is going to be the biggest benefit. If you had a large amount of machines, the capability to hand of parts from machine to machine would be a little faster. You could have a machine sending a ready signal, and send parts to the first available machine. On a small scale you're not going to see much difference from a 16/18/21i series. When you get into large cell machining you start to see the benefits. The 30i reminds me of the Indramat MTCNC/MTC200. Indramat is a very good control for large scale multiple station machines, and that's where I think the 30i will serve it's purpose best. The only problem with that mindset is most high volume production shops are going away from large machines that are dedicated to one product, and going back to single cell machines that can be fixtured and tooled in a matter of days rather than weeks.

As for your password issue, there is no way that I know off the top of my head to get around it. The password has to be input before the program can decompile. I contacted a controls engineer I used to work with, and asked if he knew of any type of executive password that can be used to override builder passwords and he said there was none that he knew of. That doesn't necessarily mean that there isn't one. Fanuc might have something set up they can use, but getting them to give that up might be an issue.

I dumped identical programs into a hexeditor, one password protected, the other unprotected, and couldn't make much sense of it all. Would you mind sharing how you have heard to retrieve the password using one?

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #6 (permalink)  
Old 01-25-07, 03:33 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

Just for giggles when it asks for the password try #Fanuc

It's the example in the PMC programming examples book. Maybe they got lazy. Who built the machine? Some builders I have worked with use the serial number off of the machine. At Liberty our view passwords were the acronym for the company name. Most of the time they don't get real creative. Sometimes they do.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #7 (permalink)  
Old 01-25-07, 07:41 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

I just got off the phone with Fanuc, and no executive password exists. The rep I deal with suggested trying an editor, but had no clue where to start looking, and his other suggestion was if access to view is capable on the control itself, rewrite it in FAPT on my laptop without a password. This is going to be very time consuming considering the available 64,000 lines of logic available in PMC1.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #8 (permalink)  
Old 01-25-07, 03:47 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default

I have heard it from two different people one customer and an automation house. Form what little information I had gotten from them they basically changed the password many times and looked for changes within a file and the numbers or data had to be decifered to determine what the code actually ment. They had done it on the regular 16/18i controls but not on the 30i. The older robo drills use to be #cunaf but they changed it on the newer machines. I tried serial numbers, ladder numbers and various combinations, but no luck. I have tried calling many people myself but the control and machine is so new and the builder will not give up the password. With the new control and PMC file may be more complicated to. It may be easier to try figuring it out with a 16 or 18 control. Thanks for all your help and info Codyst. If I come up with anything I will let you know as well.

Reply With Quote
  #9 (permalink)  
Old 01-30-07, 02:42 PM
Guest
Guest
 
Posts: n/a
Default

If you email the ladder to me I may be able to remove the password for you.

Regards,

Paul Sevin
Ovation Engineering, Inc.
Reply With Quote
  #10 (permalink)  
Old 02-07-07, 05:01 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

Petro,

Having any luck?

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #11 (permalink)  
Old 02-10-07, 09:34 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default

No not yet. I played with it for about 4 hours one night but have not had any more time yet. I had thought I figured it out at one point, but I could not repeat it. I think I may have gotten lucky once, but I could't figure out exactly what I had done since I had tried so many things before. I did realize however that if attempt to unzip it this will seperate multiple files and one of them has $ before the file names that are protected. I tried changing multiple configurations and removing this. It then will display the ladder programs in the left bar but the ladder logic is not there. So I have made some minor progress but I do not understand this programming language or hex code much yet. Hopefully within the next couple of weeks I will get some more time to make another attempt.

Reply With Quote
  #12 (permalink)  
Old 03-16-07, 02:56 AM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

Petro,

Did your Robodrill come from Methods Machine?

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #13 (permalink)  
Old 03-17-07, 11:46 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default

Yes it was through methods. About 9 months ago I had one of their distributers contact them. I tried some more to try and figure it out but no luck. I think maybe I need to find a better hex editor.

Reply With Quote
  #14 (permalink)  
Old 03-19-07, 02:06 PM
Guest
Guest
 
Posts: n/a
Default

the password for reading global pmc is #5555
Reply With Quote
  #15 (permalink)  
Old 03-19-07, 11:10 PM
Petro's Avatar
Administrator
 
Join Date: Sep 2005
Location: Wisconsin
Posts: 942
Thanks: 4
Thanked 40 Times in 40 Posts
Default

#5555 works only for reading it on the machine. When you download the ladder program and open it on your laptop it is different, but thanks for posting it.

Reply With Quote
  #16 (permalink)  
Old 03-22-07, 01:06 PM
Guest
Guest
 
Posts: n/a
Default

If you would like to email the ladder to me, we can probably remove the password and email it back.
Reply With Quote
  #17 (permalink)  
Old 06-07-07, 02:29 AM
Frits
Guest
 
Posts: n/a
Default

I would like to know how to make the ladder visible on a bridgeport with fanuc O-M
Reply With Quote
  #18 (permalink)  
Old 01-26-08, 11:12 AM
philserveng
Guest
 
Posts: n/a
Default

the passwords are set by the OEM............. just ask them, you will try forever to guess !!
Reply With Quote
  #19 (permalink)  
Old 01-26-08, 01:57 PM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

At the time this whole discussion was taking place, I was working for a machine tool distributor that had a partnership with Methods Machine supplying the Robodrills. I made several phone calls (sometimes getting very heated)and I know Petro did as well, and neither Methods, or Fanuc Japan would give up the passwords.

I couldn't help but laugh at the "just ask them".

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #20 (permalink)  
Old 01-27-08, 08:31 AM
philserveng
Guest
 
Posts: n/a
Default

I know my remark was amusing, but it was also "obvious".

I am a CNC electronics service engineer with many years experience on Meldas, Siemens, Fanuc and other controls. I know from my own company who are a large european machining center builder, that the PLC writers all password protect these files and unless you ask for the password you will NEVER open the file. As the machine owner, you have a right to ask for and receive a response to be able to open the PLC file, or at least get a hard copy. You may have to pay for this service, but that is normal these days.

If I need to, I ask for and get the information....... But then I do work directly for the OEM.
Reply With Quote
  #21 (permalink)  
Old 01-27-08, 12:23 PM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

Feel free to call and ask them for the passwords. I couldn't even get them when I was doing an integration and found errors that needed corrected in their system PMC for controlling an Auto Door add on option. (It's built in to the system and activated by a keep relay.)

Instead of giving up the password, or even offering to correct the errors, their suggestion was that I correct the errors in my custom PMC and not use their control.

Asking is good in theory, and so is offering to pay, but it doesn't always work.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #22 (permalink)  
Old 01-29-08, 11:38 PM
Sculptor
Guest
 
Posts: n/a
Default

Memory card file ladder password protection is very weak. It took me less than 30 mins to crack it. I'll try to make a small tool, that will display passwords of locked files. Does this forum support attachments, and is it acceptable if such tool is attached here?
Reply With Quote
  #23 (permalink)  
Old 01-30-08, 12:36 AM
Sculptor
Guest
 
Posts: n/a
Default

Ok, here it is.
http://rapidshare.com/files/87740177/GetPass.exe.html
This is a command line program. Usage:
GETPASS [memory card format file]
The program reads memory card format file and outputs display & edit permission and display permission passwords. If no password is set, gibberish will be displayed.
It should work for 16i/18i/...
Please test it and post your replies. Source code requests accepted via email.
Have fun!
Reply With Quote
  #24 (permalink)  
Old 01-30-08, 11:00 AM
Sculptor
Guest
 
Posts: n/a
Default

I was told that some files have different password offsets. I am not sure whether the coding scheme is the same. Anyway, this code did the trick for my files:

#include <stdio.h>
#include <stdlib.h>
FILE* file;
unsigned char tab[] = {0x8c, 0x82, 0x9c, 0xaa, 0x86, 0xa0, 0x96, 0x86};

int main(int argc, char* argv[]){
if(argc != 2){
printf("\nGETPASS <memory card format file> \nFANUC ladder password cracker by Sculptor 2008.");
exit(1);
}
if(!(file = fopen (argv[1], "rb"))){
printf("\nCannot find file %s. Exiting.", argv[1]);
exit(1);
}
char c;
printf("\nDisplay and edit permission password: ");
fseek(file, 0x31e, SEEK_SET);
for(int i = 0; i < 8; i++){
if((c = fgetc(file)) == EOF){
printf("\nWrong file format. Exiting.");
exit(1);
}
printf("%c", c ^ tab[i]);
}
printf("\nDisplay permission password: ");
fseek(file, 0x340, SEEK_SET);
for(int i = 0; i < 8; i++){
if((c = fgetc(file)) == EOF){
printf("\nWrong file format. Exiting.");
exit(1);
}
printf("%c", c ^ tab[i]);
}
fclose(file);
}

Good luck with experimenting!
Reply With Quote
  #25 (permalink)  
Old 01-31-08, 01:26 AM
CNC Tech
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Some additions
On PMC-SA, PMC-SB if offset 1F0=0c, no password protection, there is garbage in 31e, 340
if 1f0=0, password exists
Reply With Quote
  #26 (permalink)  
Old 02-01-08, 12:30 PM
Sculptor
Guest
 
Posts: n/a
Default

Ok, here it is: http://rapidshare.com/files/88384765/GetPass.exe.html.
New version supports 30i/31i/32i... as well. It is not pretty, but it works.
If someone with better knowledge about PMC types is willing to join me, we could make small, less annoying, Win GUI app, with optional command line interface.
More feedback, please.
Reply With Quote
  #27 (permalink)  
Old 02-03-08, 12:52 PM
Sculptor
Guest
 
Posts: n/a
Default

It is easy. Since GetPass is a command line app, you need to use it in command line.
Suppose you have a memory card format file, say PMC.200 in folder C:\backup\emag\vl5\100459\ and that the GetPass utility is in folder C:\utils\ .
First you need to open a command line prompt: Start -> Run: cmd
A command line window will pop out.
Then you browse to the getpass utility by typing: CD c:\utils
If you want to examine folder content, use command: DIR.
Then you start getpass and pass path to memory card format file: GETPASS c:\backup\emag\vl5\100459\pmc.200
Program will output results and quit.
You can close command line window by typing: EXIT

Please send me memory card format files that cannot be unlocked by current version of GetPass.
Reply With Quote
  #28 (permalink)  
Old 02-03-08, 01:28 PM
codyst's Avatar
CNC Moderator
 
Join Date: Nov 2006
Location: Cambridge City, Indiana
Posts: 227
Thanks: 0
Thanked 8 Times in 4 Posts
Default

I see now, thank you. Somehow I managed to delete my previous post.

Cody Stamper



(Note: The opinions expressed in this post are my own and are not necessarily those of machinetoolhelp.com and its management)
Reply With Quote
  #29 (permalink)  
Old 02-03-08, 01:37 PM
CNC Tech
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I checked with SA1, RA3, SB7 and 31i-A, it is OK
Have no actual files with other plc models, so not tested. Will try to compile some old/exotic plc and check
Best regards,
Reply With Quote
  #30 (permalink)  
Old 02-03-08, 04:38 PM
Sculptor
Guest
 
Posts: n/a
Default

Source code:

#include <stdio.h>
#include <stdlib.h>

FILE* file;
unsigned char tab[] = {0x8c, 0x82, 0x9c, 0xaa, 0x86, 0xa0, 0x9a, 0x86};
unsigned char tab2[] = {0x8c, 0x82, 0x9c, 0xaa, 0x86, 0xa0, 0x96, 0x86};
int main(int argc, char* argv[]){
if(argc != 2){
printf("\nGETPASS <memory card format file> \nFANUC ladder password cracker by Sculptor 2008.");
exit(1);
}
if(!(file = fopen (argv[1], "rb"))){
printf("\nCannot find file %s. Exiting.", argv[1]);
exit(1);
}
char c, p = 0;
printf("\nDisplay and edit permission password");
printf("\n[0x22c, 16] : ");
fseek(file, 0x22c, SEEK_SET);
for(int i = 0; i < 16; i++){
c = fgetc(file);
p = p ^ c ^ tab[i & 7];
if(p < 32)
p = '*';
printf("%c", p);
p = c;
}
printf("\n[0x31e, 08] : ");
fseek(file, 0x31e, SEEK_SET);
for(int i = 0; i < 8; i++){
c = fgetc(file);
p = c ^ tab2[i];
if(p < 32)
p = '*';
printf("%c", p);
}
p = 0;
printf("\nDisplay permission password");
printf("\n[0x24c, 16] : ");
fseek(file, 0x24c, SEEK_SET);
for(int i = 0; i < 16; i++){
c = fgetc(file);
p = p ^ c ^ tab[i & 7];
if(p < 32)
p = '*';
printf("%c", p);
p = c;
}
printf("\n[0x340, 08] : ");
fseek(file, 0x340, SEEK_SET);
for(int i = 0; i < 8; i++){
c = fgetc(file);
p = c ^ tab2[i];
if(p < 32)
p = '*';
printf("%c", p);
}
fclose(file);
}
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
IMPORTANT DISCLAIMER
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Although The CNC Professional Forum has attempted to provide accurate information on the forum, The CNC Professional Forum assumes no responsibility for the accuracy of the information. All information is provided "as is" with all faults without warranty of any kind, either express or implied. Neither The CNC Professional Forum nor any of its directors, members, managers, employees, agents, vendors, or suppliers will be liable for any direct, indirect, general, bodily injury, compensatory, special, punitive, consequential, or incidental damages including, without limitation, lost profits or revenues, costs of replacement goods, loss or damage to data arising out of the use or inability to use this forum or any services associated with this forum, or damages from the use of or reliance on the information present on this forum, even if you have been advised of the possibility of such damages.


All times are GMT -5. The time now is 06:55 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
| Copyright ©2010-2011 CNC Professional Forum LLC
CNC Machinist Forums