EasyManua.ls Logo

Xinje XD5 - Page 118

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
117
3. Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
< Three operands>
ADD D10 D12 D14
X0
S S2· D·
Two source data do binary addition and send the result to target address. 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)
If the result of a calculation is “0”, the “0” flag acts. If the result exceeds 323767 (16 bits
limit) or 2147483647 (32 bits limit), the carry flag acts. (refer to the next page). If the result
exceeds 32376816 bits limitor 2147483648 (32 bits limit), the borrow flag acts (refer
to the next page).
When doing 32 bits operation, word device’s low 16 bits are assigned; the device close to the
preceding devices is the high bits. To avoid ID repetition, we recommend you assign
device’s ID to be even number.
The source and target address can be the same. In the above example, when X0 is ON, the
instruction will be executed in every scanning period.
<Two operands>
ADD D10 D12
X0
SD·
Two source data do binary addition and send the result to addend data address. 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)
If the result of a calculation is “0”, the “0” flag acts. If the result exceeds 323767 (16 bits
limit) or 2147483647 (32 bits limit), the carry flag acts. (refer to the next page). If the result
Operand
System
constant
Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
Three operands
S1
S2
D
Two operands
D
S1
Word
Description
(D10) (D12) (D14)
(D10) (D12) (D10)

Table of Contents

Related product manuals