Overflow And Underflow - Panasonic FP-E Programming Manual

Fp series
Table of Contents

Advertisement

Relays, Memory Areas and Constants
1.5.2

Overflow and Underflow

Operation instructions occasionally produce a value which is outside of the allowed
range. This is called overflow if the value exceeds the maximum value and underflow
if the value falls short of the minimum value. When an overflow or underflow occurs, the
carry flag R9009 turns on.
Overflow and underflow during binary operation
If any of the following values are exceeded, overflow or underflow will result.
16−bit binary operation
(Overflow results if over
the maximum value.)
Max. value
K 32767
H 7FFF
.
.
K
1
H 0001
K
0
H 0000
K
−1
H FFFF
.
.
Min. value
K-32768
H 8000
(Underflow results if under
the minimum value.)
Overflow and underflow during BCD operation
If any of the following values are exceeded, overflow or underflow will result.
Only positive values can be handled.
4−digit BCD code operation
(Overflow results if over the
maximum value.)
Max. value
H 9999
.
.
.
.
.
.
Min. value
H
0
(Underflow results if under
the minimum value.)
1 - 84
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
32−bit binary operation
(Overflow results if over
the maximum value.)
K 2147483647
.
.
.
.
K
K
K
.
.
.
.
K-2147483648
(Underflow results if under
the minimum value.)
8−digit BCD code operation
(Overflow results if over the
(Underflow results if under
the minimum value.)
H 7FFFFFFF
.
.
1
H 00000001
0
H 00000000
−1
H FFFFFFFF
.
.
H 80000000
maximum value.)
H 99999999
.
.
.
.
.
.
H
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents