The basic data processing units used in ladder logic are Word (16-bit) and Double Word (32-bit). In the CUBLOC ladder environment, strict numerical ranges must be observed to prevent interference with system-reserved addresses.
This system operates on the principle of using Unsigned Integers to prevent data collisions with hardware control ports (P, WP, etc.).
| Unit | Bit Count | Decimal Range | Hexadecimal Range |
|---|---|---|---|
| Word | 16-bit | 0 ~ 65,535 | 0000H ~ FFFFH |
| Double Word (D-Word) | 32-bit | 0 ~ 2,147,418,111 | 00000000H ~ 7FFEFFFFH |
Critical Notice: Both Word and Double Word (D-Word) should be processed as Unsigned (Positive). In particular, Double Words must be used within the upper limit of 0x7FFEFFFF to avoid encroaching on the system-reserved address area (0x7FFF1000 and above).
Entering a value that exceeds the system limit into a Double Word (e.g., 0xEE6B4000) will result in an error or incorrect calculation results, as shown below:
Always ensure you use positive values below the upper limit:
While it is technically possible to input negative numbers using DWMOV, this should be avoided as it can trigger unpredictable system errors: