Panasonic FP-E Programming Manual page 340

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
Multiplies the contents of data register DT10 and DT20 when trigger R0 turns on.
The result is stored in data registers DT 31 and DT 30.
When the decimal number 8 is in DT10 and the decimal number 2 is in DT20.
Result [D+1, D]: K16
Bit position
15
12
11
· · ·
DT31
0 0 0
0
0 0 0
Higher 16-bit area
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 16-bit data or 16-bit equivalent constant specified by S1 and the 16-bit data or 16-bit equivalent
constant specified by S2. The multiplied result is stored in D+1 and D (32-bit area).
Multiplicand data
(S1)
×
The multiplied result is stored in the 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):
・Error flag (R9008):
・= flag (R900B):
3 − 76
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
0
0 0 0
0
Multiplier data
(S2)
Turns on and stays on when the area specified using the index modifier
exceeds the limit.
Turns on for an instant when the area specified using the index modifier
exceeds the limit.
Turns on for an instant when the calculated result is recognized as "0".
Multiplicand [S1]: K8
Bit position
15
12
11
· · ·
DT10
0 0 0
0
0 0 0
Multiplier [S2]: K2
Bit position
15
12
11
· · ·
DT20
0 0 0
0
0 0 0
Bit position
15
12
11
· · ·
DT30
0 0 0
0
0 0 0
Lower 16-bit area
Result
(D+1, D)
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
0
1 0 0
0
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
0
0 0 1
0
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
1
0 0 0
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents