1. 变量声明及调用技巧

1.10. 给程序变量再声明一个别名,用的别名字来调用这个变量(References)

可以使用:References (Alias types)

References (Alias types)

You can use the user-defined derived data type to create an alternative name for a variable, constant or function block. Create your references as objects in the Object Organizer under the register card Data types. They begin with the keyword TYPE and end with END_TYPE.

Syntax:

TYPE <Identifier>: <Assignment term>;
END_TYPE

Example:

TYPE message:STRING[50];
END_TYPE;


https://infosys.beckhoff.com/content/1033/tc3_plc_intro/3928317323.html?id=757501481111305151



2019.9.4 冯国城 编辑