L5x

PLC Pie Guy

Member
Join Date
Jun 2013
Location
Halifax
Posts
1,144
Hey All.

I downloaded an L5X file from the ab.com site. How do I convert it to .ACD or open it as L5X.

If I try to open I get the message:::

"Failed to open file C:\users\PieGuy\Downloads\76130\Control_VFD_PF70.L5X.
The specified L5X file does not contain a Controller export."

Any advice?

Thanks
 
An L5K file is a full project file which you can directly open in the software.

An L5X file is only a "component" of a full ACD project and will usually only represent a Program Routine. You have most likely downloaded a Routine L5X file that can be imported and viewed or used in an existing or new project. When you attempt to open an L5X file with the software it will give you that warning because the L5X file has no reference to a controller, as an L5K file would have.

An L5X file can be imported using...

File>Import Component>Routine

If the L5X file represents a program from within a project (note the difference) then you can do an import program using the same method. Alternatively, if you have a multi-task project, and you want to import the program to a specific task, then you can right-click on the Task and select...

Add>Import Program

Regards,
George
 
Last edited:
Well I have tried to import it as a routine but it says:::

"Failed to import C:\users\PieGuy\Downloads\76130\Control_VFD_PF70.L5X.
The specified L5X file does not contain a routine export."

I have also tried to import it as "Import Rungs".

No luck.
 
You probably read my post before I was finished editing it?

I've added a bit about it possibly being a program instead of a routine. Have you tried to import as a program yet?...
 
Just for reference, here are some of the different "components" an L5X file can represent...

607829 - Studio 5000: The specified L5X file does not contain a routine export (5078-0)
Access Level: TechConnect

Whatever component the L5X file represents; that is the import type you should attempt.
 
I've found it on the Sample Code webpage and downloaded it...

"Motor Control With PowerFlex70 VFD"

It's an Add-On Instruction (AOI). I found this out before I attempted any import by viewing the L5X file in Notepad...

Inside_L5X_File.bmp


Do a...

File>Import Component>Add-On Instruction...

Then you'll have this AOI...

PF70_L5X_AOI.bmp


G.
 
Thank you very much for the help. It worked, of course.
I tried everything but importing it as a AOI. Also, I had completely forgot to open it as a notepad file.

Thanks again!
 
An L5K file is a full project file which you can directly open in the software.

An L5X file is only a "component" of a full ACD project and will usually only represent a Program Routine. You have most likely downloaded a Routine L5X file that can be imported and viewed or used in an existing or new project. When you attempt to open an L5X file with the software it will give you that warning because the L5X file has no reference to a controller, as an L5K file would have.
This is actually not true, as far as I can tell you can save a project as an L5X it will include everything. But you can also export individual components as L5X files as well and they will only include the relevant content.

I'm working on understanding the structure of a project level L5X file now. I have created a class model of the L5X file in C#/.net so I can deserialize the XML. Seem pretty promising so far.
 
L5X - Library Format

Geospark said:
An L5K file is a full project file which you can directly open in the software.

An L5X file is only a "component" of a full ACD project and will usually only represent a Program Routine...

theColonel26 said:
This is actually not true, as far as I can tell you can save a project as an L5X it will include everything. But you can also export individual components as L5X files as well and they will only include the relevant content.

I'm working on understanding the structure of a project level L5X file now. I have created a class model of the L5X file in C#/.net so I can deserialize the XML. Seem pretty promising so far.

Hi theColonel26, I was looking for something else when I stumbled across your "update" to my previous information.

In as far as you can tell, you would be correct in saying that "my statement" is incorrect (not true). But I did know that you could "conditionally" save an entire project as an L5X Extensible Markup Language file. I just did not qualify my statement properly when using the word "usually". I should have used it twice...

Geospark said:
An L5K file is a full project file which you can directly open in the software.

An L5X file is usually only a "component" of a full ACD project and will usually only represent a Program Routine...

Thank you for pointing that out.

While that helps to better state my understandings here, I also had good reasons at the time for not suggesting that the Sample Code downloaded L5X may be a full project file. Aside from the fact that PLC Pie Guy stated that they had attempted to "open" the L5X, and had received the specific error message that tells us it is not a project file -

1. Historically, the L5K "project" format (Logix5000), which is stored using ANSI, has always been available as an alternative format to the ACD file option when saving a project. One of its main functions is/was to provide a smaller file size for storing and transferring project files. It also facilitates certain edits to modify or correct issues with a project, or change its revision, for instance. Also, for importing tags into certain other software products.

2. The L5X "library" format was later introduced at v13 for certain component Export/Import options. Initially it only supported Rungs, and subsequently Trends (v15), AOI and UDT (v16). Only at v17 was it upgraded to allowing a full project XML file save. Incidentally, the L5K is still the smallest format in size to store a project file. So pre v17 projects cannot be saved in the L5X library format (that's the "conditionally" I was referring to above). The introduction of XML format files for full Logix5000 projects provides the ability for those who may require it in the XML world, such as yourself, to more easily interact with the information stored in these projects. But this again is provided more so as a "third-party" feature rather than a native Rockwell feature i.e. not intended for common use. In a nutshell, the L5X library format is primarily intended to be used to for component Export/Import.

3. The Sample Code Library has, to my knowledge, always only presented full project downloads as either ACD or L5K project files. It, to my knowledge, has always only presented L5X library download files as project component downloads, and not full project downloads.

4. In my time, I have not come across any full projects that have been saved in the L5X library format, or any L5X files that turned out to be a full project file. But that is just my experience, and of course I know they can or do exist out there, somewhere, but that it's just not that widely used.

Going by my experience and knowledge of the above, it will "usually" be my first guess that when I see an L5X file, especially from the Sample Code Library; it is representing a component of a project, rather than an entire project file. What might change my mind on that is "if" the file name "suggests" it might be the title of a project. But that would be subjective at best.

Still, the best I can recommend, for anyone unsure, is to first open the L5X file in Notepad, or an equivalent text editor, or indeed a web browser, and look for the "TargetType" field near the top. If it's a full project it should state "Controller". If it's a component of a project it should state something like "Rung", "Program" or "AddOnInstructionDefinition", etc.

Regards,
George
 
An L5K file is a full project file which you can directly open in the software.

An L5X file is only a "component" of a full ACD project and will usually only represent a Program Routine. You have most likely downloaded a Routine L5X file that can be imported and viewed or used in an existing or new project. When you attempt to open an L5X file with the software it will give you that warning because the L5X file has no reference to a controller, as an L5K file would have.

An L5X file can be imported using...

File>Import Component>Routine

If the L5X file represents a program from within a project (note the difference) then you can do an import program using the same method. Alternatively, if you have a multi-task project, and you want to import the program to a specific task, then you can right-click on the Task and select...

Add>Import Program

Regards,
George

I am dealing with this now but the method you described above is not working for me.
 
Open your L5X with a text editor like Notepad++, you can get a clue as to what you are importing in the first few lines. Look for "TargetType". This will tell you where you need to be importing it (AOI, routine, UDT, etc)
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="20.01" TargetType="Rung" TargetCount="1" ContainsContext="true" Owner="BK, RA" ExportDate="Wed Apr 02 11:35:19 2014" ExportOptions="References DecoratedData Context RoutineLabels Alia***tras IOTags NoStringData ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="test2">
 

Similar Topics

I am trying to automate code dev for VFDs and I was looking at the L5X for a VFD, I am wondering how to parse the cdata. Below is a small snippet...
Replies
1
Views
840
I'm trying to save a project as an L5X and I need to uncheck the "Encode Source Protected Content" checkbox, but it's grayed out. How do I get...
Replies
1
Views
938
as already mentioned in the title, document 1756-rm014_-en-p.pdf mentions a limit of decorated data (XML format) to 100k. Is there a way to...
Replies
0
Views
609
There is a requirement to convert some projects back to Rslogix 5k , I want to check if I can convert version 30 AOIs to version 20 AOIs. Thanks
Replies
2
Views
1,041
Hello PLCS.net! Trying to run some scripts on l5x file, does anyone have some file they can share with me? Thanks! -PreLC
Replies
3
Views
1,880
Back
Top Bottom