EasyManuals Logo

Xinje XD5 User Manual

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
Page #119 background imageLoading...
Page #119 background image
118
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 device’s is the high bits. To avoid ID repetition, we recommend you assign
device’s ID to be even number.
In the above example, when X0 is ON, the instruction will be executed in every scanning
period. The rising or falling pulse edge is recommended to activate the instruction.
ADD D10 D12 D10
X0
S S2· D·
ADD D10 D12
X0
SD·
The two instructions are the same.
Flag meaning
Flag
Name
Function
SM020
Zero
ON: the calculate result is zero
OFF: the calculate result is not zero
SM021
Borrow
ON: the calculate result is over -32768(16 bit) or -
2147483648(32bit)
OFF: the calculate result is less than -32768(16 bit) or -
2147483648(32bit)
SM022
Carry
ON: the calculate result is over 32768(16 bit) or 2147483648(32bit)
OFF: the calculate result is less than 32768(16 bit) or
2147483648(32bit)
4-6-2Subtraction [SUB]
1. Summary
Two numbers do subtraction, store the result
Subtraction [SUB]
16 bits
SUB
32 bits
DSUB
Execution
condition
Normally ON/OFF/rising
or falling pulse edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
Operands
Operands
Function
Data Type
Three operands
S1
The sub operation data address
16 bits /32 bits,BIN
S2
The sub operation data address
16 bits /32 bits,BIN
D
The result address
16 bits /32 bits,BIN
Related flag

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD5 and is the answer not in the manual?

Xinje XD5 Specifications

General IconGeneral
BrandXinje
ModelXD5
CategoryController
LanguageEnglish

Related product manuals