That entirely depends on the PLC functions used to or how the PLC ladder was written
If you have to guess, then use the below as a reference.
Signed 16-bit integer: (1 WORD / 2 BYTES)
- Minimum: -32,768
- Maximum: 32,767
Signed 32-bit integer: (2 WORD / 4 BYTES)
- Minimum: -2,147,483,648
- Maximum: 2,147,483,647
Unsigned 16-bit integer: (1 WORD / 2 BYTES)
- Minimum: 0
- Maximum: 65,535
Unsigned 32-bit integer: (2 WORD / 4 BYTES)
- Minimum: 0
- Maximum: 4,294,967,295
The best advice I can give is
- CHECK EVERYTHING - twice.
- If the value in the PLC is different to what your read, try a different type.
- Lastly, CHECK EVERYTHING AGAIN