Skip to content

Data Types

  1. Always start with a lowercase letter.

  2. Subsequent words start with uppercase letters.

  3. Do not use underscores _.

  4. Numbers from 0 to 9.

  5. 🐫 Lower camel case.

    dataTypeName
  6. The elements of the structure follow the rules of variables.

  7. ❗ If the data type is related to Safety, the name starts with F_:

    F_dataTypeName
// ✅ Correct:
TYPE motor: // ← Name
STRUCT
isRunning: bool; // ← variables
ready: bool;
inHomePos: bool;
runForward: bool;
status: int;
END_STRUCT
END_TYPE
// ❌ Wrong:
TYPE UDTMotor:...
TYPE Motor:...
TYPE dtMotor:...
TYPE udt_motor:...
TYPE UDT_Motor:...
...