Mitsubishi Electric MELDAS C6 Programming Manual page 187

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

B+, B+P ... BCD 16-bit addition
Bit device
X
Y M
L
F
B SB T SM V T
S1
S2
D
B+
B+P
Function
(1) The BCD data designated with S1 and the BCD data designated with S2 are added, and the
addition 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) If the result of the addition exceeds 9999, the higher bits are ignored. The carry flag in this case is
not turned ON.
(Note 1)
An error occurs if the S1, S2, or D BCD data is outside the range 0 to 9999 (BCD).
8. Function Commands
B+, B+P
Usable device
Word device
C D R W SW Z SD K
Addition command
B+
S1
B+P
S1
S1
B15 ..................... B0
+
1234 (BCD)
- 178 -
Get other manuals https://www.bkmanuals.com
Con-
stant
Setting data
Addition data or No. of device
S1
where addition data is stored.
S2
D
Addition data or No. of device
S2
where addition data is stored.
No. of device to store addition
S2
D
D
results.
S2
B15 ..................... B0
6912 (BCD)
Digit
No. of
Pointer
desig-
Index
steps
nation
H
P
5/6
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents