函数 fun1
的属性 vision
:
{attribute 'vision'}
FUNCTION fun1 : INT
VAR_INPUT
i : INT;
END_VAR
VAR
END_VAR
数据类型 DUT_1 的属性 aType
:
{attribute 'aType'}
TYPE DUT_1 :
STRUCT
a:INT;
b:BOOL;
END_STRUCT
END_TYPE
有关条件 pragmas 的使用方法,请参阅条件 Pragmas 一章。