.L5X files (Help me understand them)

theColonel26

Lifetime Supporting Member
Join Date
Feb 2014
Location
West Michigan
Posts
781
OK, so am wanting to move 100+ tags into a new UDT.


I figured the easiest way to do this is to

copy and paste the tags into excel.

Then create a new UDT export that to .L5X
Then using the format for the <member> XML tags
transform the tag names and types and insert them into the members tag. So


Code:
   JugA_CamStartPulse   BOOL
gets transformed to
Code:
    _CamStartPulse   BOOL
I stripped off the prefix. of "JugA"
and then to
<Member Name="_CamStartPulse" DataType="_CamStartPulse" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
However in my play around I have found this curious
in the first 2 lines of the <members> tag there are these lines
Code:
<Member Name="ZZZZZZZZZZTest1" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="theBOOL" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZTest1" BitNumber="0" ExternalAccess="Read/Write"/>
What is the first row for? Is it a place holder for the name of the Instance of the UDT??? and why does the BIT/BOOL underneath it have a Target="ZZZZZZZZZZTest1" attribute?
 
Last edited:
dmroeder I'm glad you linked that, I was about to go ahead and retype something very similar, almost as if I have played with these before!

I was about to type something up too, then I thought, someone has probably already done this... sure enough!
 

Similar Topics

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,857
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
827
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
916
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
592
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,019
Back
Top Bottom