Namespaces - RWTH-EBC/AixOCAT GitHub Wiki

All about the naming

When using ST

Objects

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

Instances of Objects

No prefixes (like b for Bool) are required just use camel case.

Example:

MyInt:INT;

Variable declarations

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