Mitsubishi Electric MELDAS C6 Programming Manual page 189

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

B–, B–P ... BCD 16-bit subtraction
Bit device
X
Y M
L
F
B SB T SM V T
S1
S2
D
B-
B-P
Function
(1) The device designated with S1 and the device designated with S2 are subtracted, and the
subtracted results are stored in the device designated with D.
B15.....................B0
5678 (BCD)
(2) 0 to 9999 (BCD 16-bit) can be designated in S1 and S2.
(3) The following will result if an underflow is generated by the subtraction. The carry flag in this case
is not turned ON.
0
0
0
1
(Note 1)
An error occurs if the S1, S2, or D BCD data is outside the range 0 to 9999 (BCD).
Execution conditions
The execution conditions for B-, B-P are as shown below.
Addition command OFF
B-
B-P
8. Function Commands
B–, B–P
Usable device
Word device
C D R W SW Z SD K
Subtraction command
B-
S1
B-P
S1
S1
B15.....................B0
1234 (BCD)
-
0
0
0
3
ON
Executed per scan
- 180 -
Get other manuals https://www.bkmanuals.com
Con-
stant
H
Setting data
Subtraction data or No. of device
S1
S2
D
where subtraction data is stored.
Subtraction data or No. of device
S2
where subtraction data is stored.
No. of device to store subtraction
S2
D
D
results.
S2
B15.....................B0
4444 (BCD)
9
9
9
8
Executed per scan
Digit
No. of
Pointer
desig-
Index
steps
nation
P
5/6
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents