EasyManua.ls Logo

Panasonic FP-E - Page 362

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 98
Explanation of example
The contents of data registers DT11 and DT10 and the contents of data registers DT1 and DT0 are added
together when trigger R0 turns on.
Contents of
DT11
Contents
of DT0
Contents
of DT1
The specified data area and the
following data area are handled
together as 32−bit data.
Higher 16 bits Lower 16 bits
Contents of
DT10
← The lower 16 bits of added result is
stored in DT10 and the higher 16
bits of the result is stored in DT11.
(Addition)
(Result is stored.)
Store to DT11 Store to DT10
Description
The 8-digit BCD equivalent constant or 8-digit BCD data specified by S and the 8-digit BCD data specified by
D are added together.
Augend data Result
D: lower 4-digit
D+1: higher 4-digit
+
S: lower 4-digit
S+1: higher 4-digit
D: lower 4-digit
D+1: higher 4-digit
Addend data
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): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− The data is not BCD data.
・= flag (R900B): Turns on for an instant when the calculated result is recognized as “0”.
・Carry flag (R9009): Turns on for an instant when the calculated result exceeds the range of 8-digit
BCD data (overflows).
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com