An alias is a user-defined data type with which an alternative name for a basic type, data type, or function block is generated.
You make the type declaration of an alias in a “DUT” object which you create in the “Project Add Object DUT” menu or in the context menu of an application.
Syntax
TYPE <DUT name> : <basic type> | <data type> | <function block name> ; END_TYPE
Example
FUNCTION_BLOCK FB_Machine VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR iCounter : INT; END_VAR iCounter := iCounter + 1; // Alias for FB_Machine TYPE A_ROBOT : FB_Machine; END_TYPE PROGRAM prog_Robot VAR fbRobot : A_ROBOT; END_VAR fbRobot();