Display CLX array UDT in a list on PV+

johnfarrugi

Member
Join Date
Mar 2008
Location
London
Posts
99
I have a CLX with an array(200) of UDT's consisting of 5 different data types. I'm looking to create a string in the pv consisting of some items in the UDT. I want to do that with every array item and then display all 200 in a list.

Here is how I have my array of UDT'd setup in the CLX:

array[0]
- item1 dint
- item2 real
- item3 string
array[1]
- item1 dint
- item2 real
- item3 string
array[3]
- item1 dint
- item2 real
- item3 string
array[4]
- item1 dint
- item2 real
- item3 string

I would like to create a list in the PV+ 600 that looks like this:

1 - array[0]item1, array[0]item2, array[0]item3
2 - array[1]item1, array[1]item2, array[1]item3
3 - array[3]item1, array[3]item2, array[3]item3
4 - array[4]item1, array[4]item2, array[4]item3

I know this can be done by inserting each line into a state in a list inducator and index the array number by 1 but its a long process. Is there an easier way to combine different data types and then display the entire array in a list?
 
Last edited:
A method I use is:
Tags are created in the PLC which the HMI looks at (in your case you would need 12). The PLC tags serve as a 'window' into the array that is to be displayed. Buttons are added (as needed) to the HMI screen to move up/down and/or page up/down in the list and code in the PLC moves data from the array into the tags the HMI monitors depending upon a pointer value which is of course incremented or decremented by the HMI up/down buttons.

Make sure that limit checking is put in place so as to not reference beyond the array boundaries and fault the processor.

Another nice 'little' feature is a message informing the user when the end of the list is reached.
 

Similar Topics

Hello, I'm using FactoryTalk View ME V10. I created a valve as a global object with multiple parameters and when the object is being used at the...
Replies
2
Views
143
Hello all, I was modifying an HMI in factory talk and went to change a go to display button using the ... to select from a list as I had done...
Replies
4
Views
194
Is there a way to add a local message display to Studio 5000 View Designer? If its there, I’m not finding it. I have used them in older versions...
Replies
11
Views
427
Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
173
Hello, I am learning to create shapes and VB Scripts in HMIWeb Display Builder. I wanted to change color of my rounded rectangle by script. I...
Replies
0
Views
121
Back
Top Bottom