Applied Instructions
ADD D10 D12 D14
X0
S1· S2· D·
Function
z The data contained within the two source devices are combined and the total is stored in the
specified destination device. Each data’s highest bit is the sign bit, 0 stands for positive、1
stands for negative. All calculations are algebraic processed.(5+(-8)=-3)
z If the result of a calculation is “0”, the “0” flag acts. If the result exceeds 323,767(16 bits
limit)or 2,147,483,647(32 bits limit), the carry flag acts.(refer to the next page). If the
result exceeds –323,768(16 bits limit)or –2,147,483,648(32 bits limit), the borrow flag
z hen carry on 32 bits operation, word device’s low 16 bits are assigned, the device
following closely the preceding device’s ID will be the high bits. To avoid ID repetition, we
recommend you assign device’s ID to be even ID.
z The same device may be used as a source and a destination. If this is the case then the
result changes after every scan cycle. Please note this point.
(D10)+(D12)→(D14)
DD] Addition Operation [A
16 bits instruction:ADD 32 bits instruction:DADD
Suitable Models:
XC1、XC3、XC5
Zero M8020
Borrow M8021
Flag
Carry M8022
D
FD
DM
DX
DY
DS
TD
CD
K/H
S1·
S2·
D·
X Y M S T C Dn.m
Word
Device
Bit
Device
Suitable Device
acts(Refer to the next page)
W
91