151
6-2. Table of High-level Instructions
3. BCD Arithmetic Instructions
• A: Available, N/A: Not available
• Specification of flag operation in the above tables:
[
↕
]
The flag (special relay) available for the instruction (turns ON/OFF according to the condition).
[ ](blank) The flag (special relay) not available for the instruction (keeps the state regardless of the instruction).
• Details about the instructions with a * mark are described in this manual.
Refer to the pages in the far right column of the above tables.
For high-level instructions without a * mark, refer to “FP-M/FP1 Programming Manual”.
F40
F41
F42
F43
F45
F46
S, D
S, D
S1, S2, D
S1, S2, D
S, D
S, D
4-digit BCD data
[D + S
→
D]
8-digit BCD data
[(D + 1, D) + (S + 1, S)
→
(D + 1, D)]
4-digit BCD data
[S1 + S2
→
D]
8-digit BCD data
[(S1 + 1, S1) + (S2 + 1, S2)
→
(D + 1, D)]
4-digit BCD data
[D – S
→
D]
8-digit BCD data
[(D + 1, D) – (S + 1, S)
→
(D + 1, D)]
B+
DB+
B+
DB+
B–
DB–
↕
↕
↕
↕
↕
↕
5
7
7
11
5
7
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
—
—
—
—
—
—
Step
Page
Flag operation
Description
Operand
Boolean
Number
ER
R9007
R9008
CY
R9009
<
R900C
=
R900B
>
R900A
Availability
C56/
C72
C24/
C40
C14/
C16
F26
F27
F28
F30
F31
F32
F33
F35
F36
F37
F38
S, D
S1, S2, D
S1, S2, D
S1, S2, D
S1, S2, D
S1, S2, D
S1, S2, D
D
D
D
D
32-bit data
[(D + 1, D) – (S + 1, S)
→
(D + 1, D)]
16-bit data
[S1 – S2
→
D]
32-bit data
[(S1 + 1, S1) – (S2 + 1, S2)
→
"
(D + 1, D)]
16-bit data
[S1
×
S2
→
(D + 1, D)]
32-bit data
[(S1 + 1, S1)
×
(S2 + 1, S2)
→
(D + 3, D + 2, D + 1, D)]
16-bit data
[S1/S2
→
D...(DT9015)]
32-bit data
[(S1 + 1, S1)/(S2 + 1, S2)
→
(D + 1, D)...(DT9016, DT9015)]
16-bit data increment
[D + 1
→
D]
32-bit data increment
[(D + 1, D) + 1
→
(D + 1, D)]
16-bit data decrement
[D – 1
→
D]
32-bit data decrement
[(D + 1, D) –1
→
(D + 1, D)]
D–
–
D–
*
D
*
%
D%
+1
D+1
–1
D–1
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
7
7
11
7
11
7
11
3
3
3
3
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
N/A
A
N/A
A
A
A
A
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
↕
—
169
171
173
175
177
179
—
—
—
—
Step
Page
Flag operation
Description
Operand
Boolean
Number
ER
R9007
R9008
CY
R9009
<
R900C
=
R900B
>
R900A
Availability
C56/
C72
C24/
C40
C14/
C16
*
*
*
*
*
*
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...