
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
0 0 0
12
0
11
0 0 0
8
0
7
0 0 0
4
1
3
0 1 1
0
0
0
0
1
6
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
R0: on
BCD H code
· ··
·
Bit position
·
· ·
· ·
DT10
15
0 0 0
12
0
11
0 0 0
8
0
7
0 0 0
4
0
3
1 0 0
0
0
0
0
0
8
BCD H code
· ·
·
Bit position
·
· ·
· ·
DT20
15
1211
8 7
4 3
0
0
0
0
2
BCD H code
· ·
·
Bit position
·
· ·
· ·
DT31
15
0 0 0
12
0
11
0 0 0
8
0
7
0 0 0
4
0
3
0 0 0
0
0
0
0
0
0
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: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...