-
Notifications
You must be signed in to change notification settings - Fork 28
Namespaces
msc-d1s7fa1eza edited this page Apr 11, 2018
·
6 revisions
All about the naming
Object | Prefix |
---|---|
Functionblock | FB_ |
Function | F_ |
Struct | ST_ |
Enum | E_ |
Type | T_ |
Union | U_ |
Interface | I_ |
Example:
TYPE ST_MyDataType : STRUCT x:REAL; y:REAL; END_STRUCT END_TYPE
No prefixes (like b for Bool) are required just use camel case.
Example:
MyInt:INT;
Variable declarations consist of 3 - 5 columns of which 2 are optional:
Column | Use |
---|---|
Variable Name | oligatory |
Storage Address | optional |
Variable Type | obligatory |
Variable Initialisation | optional |
Commentary | obligatory |
Example:
MyInt: AT%I* : INT := 10 // this is an integer variable