EasyManua.ls Logo

Panasonic FP-E - Page 376

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 − 112
Explanation of example
When H (BCD) 8 is in DT10 and H (BCD) 2 is in DT20, as shown below.
BCD H code
·· ·
Bit position
·····
DT30
15
000
12
0
11
000
8
0
7
000
4
1
3
011
0
0
0016
0000000000000010
R0: on
BCD H code
·
·
··
Bit position
·····
DT10
15
000
12
0
11
000
8
0
7
000
4
0
3
100
0
0
0008
BCD H code
·· ·
Bit position
·····
DT20
15 1211 8 7 4 3 0
0002
BCD H code
·· ·
Bit position
·····
DT31
15
000
12
0
11
000
8
0
7
000
4
0
3
000
0
0
0000
Higher 4-digit area Lower 4-digit area
Result [D+1, D]: H16 (BCD)
Multiplicand [S1]: H8 (BCD)
Multiplier [S2]: H2 (BCD)
The lower 16 bits of the 32−bit multiplication result are stored in the specified memory area (DT30), and the
higher16 bits are stored in the area following the specified area (DT31).
Description
Multiplies the 4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data specified by S1 and S2. The
multiplied result is stored in D+1 and D.
×
Multiplicand data
(S1)
Multiplier data
(S2)
Multiplied result
(D+1, D)
The multiplied result is stored in the 8-digit area (32−bit area).
The higher 16-bit area (D+1) is automatically determined once the lower 16-bit area (D) is specified.
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”.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com