UDT Definitions Nested

Hello everyone, I have a question about UDT Definitions. I am very new to this.

I have created a UDT called BESS which is broken down into subfolders with different parameters. Those parameters form OPC addresses or Alarms. Now, within that BESS UDT, I have a folder called Racks, where the number of racks within the BESS varies. For example, in the BESS 1 there are 3 racks, and in the BESS 2 there is 1. So, I don't know how to create a UDT inside another UDT. I don't know if I make myself clear.

image

I want to nest this GSC_Rack UDT inside the GSC_Racks folder of BESS UDT

image

I hope I have explained myself well,

greetings

You can check this.!

1 Like

Thanks, I found the link you passed me a great help, I hope I got it right!

I have created two racks following the parameters of the parent UDT and interacting only with the rack_cell, which will increment according to the amount of racks each BESS has.

1 Like

Now I would like to know if there is a way to specify how many racks I want to create before configuring the UDT, without having to create three different UDT Definitions: one with 2 racks, one with 3 racks, and one with only 1.

No. UDTs cannot have variable numbers of members. At all. If there are only a small number of variations, using a parent type with variations is reasonable.

Otherwise, place your core (invariant) UDT instance in a non-UDT tag folder with the variant instances as peers.

1 Like

Thanks for the clarification. I now understand better how UDTs work and why they cannot have a variable number of members.

Your suggestion of using a main type with variations or placing the main instances in a non-UDT tag folder along with the variants as pairs seems very helpful to me. It will really help me to organize everything better.

i really appreciate your help!