UDT

Top  Previous  Next

 

This is an user defined type.

 

If big structures are needed quite often it will be annoying to have to write them out in the declaration parts of the blocks and in the DBs each time. That is why you can define structures as UDTs and use them like normal data types afterwards.

 

UDTs are defined like function block headers, apart of the fact that no declaration type has to be specified.

 

UDTs can also serve as ‘Mask’ to create new data blocks.

 

If you have entered an UDT in the symbol table you will be able to use the symbol as type name.

 

PLC-Editor