Ejemplo de UDTs en fuentes AWL
TYPE UDT 20
STRUCT
arranque : BOOL;
//variable del tipo BOOL
teórico : INT;
//variable del tipo INT
valor : WORD;
//variable del tipo WORD
END_STRUCT;
END_TYPE