Panasonic FP-E Programming Manual page 366

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
The contents of data registers DT11 and DT10 and the contents of data registers DT21 and DT20 are added
together when trigger R0 turns on. The added result is stored in data registers DT31 and DT30.
Higher 16 bits
Lower 16 bits
Contents of
Contents of
DT11
DT10
(Addition)
Contents of
Contents of
DT21
DT20
(Result is stored.)
Store to DT31
Store to DT30
Description
The 8-digit BCD equivalent constants or 8-digit BCD data specified by S1 and S2 are added together. The
added result is stored in D+1 and D.
Augend data
S1: lower 4-digit
S1+1: higher 4-digit
When processing 8-digit BCD data, the higher 16-bit areas for 8-digit BCD data (S+1, D+1) are automatically
determined once the lower 16-bit areas (S, D) are specified.
Precautions during programming
If the result of an arithmetic operation instruction does not fall within the range of values which can be
handled, an overflow will result.
Under normal circumstances, do not allow an overflow to occur.
If an overflow occurs, the carry flag (special internal relay R9009) will turn on.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
・= flag (R900B):
・Carry flag (R9009): Turns on for an instant when the calculated result exceeds the range of 8-digit
3 − 102
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
The specified data area and the
following data area are handled
together as 32−bit data.
← The lower 16 bits of added result is
stored in DT30 and the higher 16 bits of
the result is stored in DT31.
Addend data
S2: lower 4-digit
+
S2+1: higher 4-digit
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− The data is not BCD data.
Turns on for an instant when the calculated result is recognized as "0".
BCD data (overflows).
Result
D: lower 4-digit
D+1: higher 4-digit

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents