Data Types
Naming Rules
Section titled “Naming Rules”-
Always start with a lowercase letter.
-
Subsequent words start with uppercase letters.
-
Do not use underscores
_. -
Numbers from
0to9. -
🐫
Lower camel case.dataTypeName -
The elements of the
structurefollow the rules ofvariables. -
❗ If the
data typeis related toSafety, the name starts withF_:F_dataTypeName
Examples
Section titled “Examples”// ✅ Correct:TYPE motor: // ← Name STRUCT isRunning: bool; // ← variables ready: bool; inHomePos: bool; runForward: bool; status: int; END_STRUCTEND_TYPE// ❌ Wrong:TYPE UDTMotor:...TYPE Motor:...TYPE dtMotor:...TYPE udt_motor:...TYPE UDT_Motor:......