Logix5 print to file question

bbear

Member
Join Date
Dec 2006
Location
ohio
Posts
63
I would like instruction on how to do this.
AB Logix 5 I want to put a Ladder program on a diskette from a PC that is running Logix5 but is not connected to a printer then take the diskette with the saved program to a PC that does not have Logix 5 on it and open the program in Word and print it. Is there a proper procedure to do this? I tried to do this and it "printed the file to disk" as *.prn but I tried to open it and the format was messed up. Also do you have to "print to disk" the whole program?
 
Easiest and most popular method is to print to a PDF printer driver (free on the web) and store it as a PDF file. That will make it transportable to any other computer and a PDF reader can view it and print it. But it wouldn't be able to opened with Word.
 
.prn files are a special kind of animal... I found an article HERE that talks about how to use them. I haven't tried it myself, so your milage may vary...

How to Print From a PRN File
When you print to a file the program outputs whatever it would have sent to the printer you have attached to your computer to a file instead. The idea is that later you might want to send this file to a similar printer on a different computer. So, the main use for a .PRN file is to copy it to a printer in order to get the output. You can open a .PRN file in any text editor but what you'll likely see is your text surrounded by a whole bunch of "junk" which represents all the various printer codes necessary to set margins, special spacing, graphics, etc.

Printing this file successfully requires a few assumptions:
  • The two printers are identical or, at least take the exact same commands to do the exact same things.
  • The printer you want to print on is set to be the default printer for the machine it is connected to. If it's not, use the Control Panel to set the printer to be the default.
  • The printer is connected to a physical port and not via USB (read on even so; the solution to this is at the end).
For this example, we'll assume that the .PRN file is named OUTPUT.PRN and is located on a floppy disk in the A: drive. Substitute the proper path for whatever filename and drive you are using. Here are the steps...
  • Create the .PRN file on the first computer. Open the application, select print, select the proper printer, check the Print to File box, and give the file a name.
  • Copy the file to removable media so you can carry it to the second computer (or use a network to transfer the file there in a location you can later find.
  • Open a Command Prompt: Start | Programs | Accessories | Command Prompt
  • Use the CD command to navigate to the location of the file or know where it is so you can specify a path to it. Recall that in this example we're using A:\OUTPUT.PRN as the file you want to print.
  • Issue the following command: COPY A:\OUTPUT.PRN /B PRN
Assuming the printers are the same and the output printer is the default device the file should now print. What you've basically done is to tell Windows to copy the output file to the default printer using a binary copy (i.e., don't add any carriage returns or line feeds and ignore all control codes; just passing them through as they are in the file).

If connected via USB...

If your printer is connected via USB then the above command needs to be modified as follows:
  • COPY A:\OUTPUT.PRN /B \\Computer_Name\Printer_Share_Name
To get the Computer_Name open the Control Panel and select System. In the dialog that opens select the Computer Name tab. There you will find the name associated with the computer (ignore any periods after the name if there are any). To get the Printer_Share_Name open the Control Panel and select Printers and Faxes. Select the printer you need to print to and then the Share link in the left menu. If the printer has no share name then you will need to assign one.

Once you have both the Computer_Name and Printer_Share_Name insert these in the command above. Note the double backslash in front of the Computer_Name and the single backslash that is between the two.
rolleyes.gif


Mainly I just put that up there because until you asked the question, I didn't have any idea how to do it either.... I'd actually recommend doing as the previous poster suggested and printing it to a pdf format file as well.
 
Last edited:

Similar Topics

I could use some help figuring out the layout of a Remote I/O channel Diagnostic Files in a PLC5 using RSLogix5. I've attached a screen shot of...
Replies
14
Views
3,649
Hi all. I was wondering if anyone knew a way to renumber Ladder Numbers in RSLogix 5. I have deleted some of the old Program Files in my Project...
Replies
2
Views
1,529
I cannot seem to find a solution as to how to import I/O tags from RSLogix onto C-more. Bits and counters populate just fine, but there is no I/O...
Replies
2
Views
1,340
Yesterday a coworker informed me of an issue with his laptop. Anytime he opens an RSlogix5 project, and tries to go online, the entire program...
Replies
1
Views
1,375
I am working on converting a Logix5 program (PLC5/20) into ControlLogix (L62). I was able to re-map the local IO easily enough but the old code...
Replies
4
Views
1,818
Back
Top Bottom