Overflow - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
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
MAXINT16
Values
MAXUINT16
MAXINT32
Minimum
MININT16
Values
MININT32
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.
190
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Maximum signed 16-bit
Maximum unsigned 16-bit
Maximum signed 32-bit
Minimum signed 16-bit
Minimum signed 32-bit
7FFF hex
FFFF hex
7FFFFFFF hex
8000 hex
80000000 hex
32,767
65,535
2,147,483,647
–32,768
–2,147,483,648
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents