Overview of rungs.dev data types
Every tag in rungs.dev must have a data type, which determines its value range, memory usage, and compatible instructions.
| Type | Primary Use Case |
|---|---|
BOOL | Digital inputs/outputs, contacts, coils, and status bits |
SINT | 8-bit bytes, packed status, serial data (-128 to 127) |
INT | 16-bit device registers, drive words, Modbus registers (-32,768 to 32,767) |
DINT | 32-bit counts, presets, and general numeric values |
REAL | 32-bit floating-point analog values and calculations |
TIMER | Ladder timer tags (used by TON, TOF, RTO) |
COUNTER | Ladder counter tags (used by CTU, CTD) |
CONTROL | Ladder array tags (used by BSL, FFL, FAL) |
FBD_TIMER | Structured Text timer function blocks (TONR, TOFR, RTOR) |
FBD_COUNTER | Structured Text counter function blocks (CTUD) |
FBD_ONESHOT | Structured Text one-shot function blocks (OSRI, OSFI) |