Chapter 4. Ladder Diagram (LD) Programming
190
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
4.10.1
Overflow
When an operation results in overflow, there is no power flow.
If an operation on signed operands (INT, DINT, REAL) results in overflow, the output reference is set
to its largest possible value for the data type. For signed numbers, the sign is set to show the
direction of the overflow. If signed or double precision integers are used, the sign of the result for DIV
and MUL functions depends on the signs of I1 and I2.
Maximum
Values
MAXINT16
Maximum signed 16-bit
7FFF hex
32,767
MAXUINT16
Maximum unsigned 16-bit
FFFF hex
65,535
MAXINT32
Maximum signed 32-bit
7FFFFFFF hex
2,147,483,647
Minimum
Values
MININT16
Minimum signed 16-bit
8000 hex
–
32,768
MININT32
Minimum signed 32-bit
80000000 hex
–
2,147,483,648
If an operation on unsigned operands (UINT) results in overflow or underflow, the output value wraps
around. For example the ADD_UINT operation, 65535+16, yields a result of 15.
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...