Xinje XD Series User Manual page 84

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

If the result of a calculations is "0", the "0' flag acts. If the result exceeds 323,767(16 bits
operation) or 2,147,483,648 (32 bits operation), the carry flag acts. (refer to the next page). If
the result exceeds -323,768 (16 bits operation) or -2,147,483,648 (32 bits operation), the
borrow flag acts (Refer to the next page).
When carry on 32 bits operation, low 16 bits of 32-bit register are assigned, the register
address close to the low 16 bits register will be assigned to high 16 bits of 32-bit register.
Even number is recommended for the low 16 bits register address.
The source and object can be same register address.
In the above example, when X0 is ON, the addition operation will be excuted in each
scanning period.
Related flag
Flag
Name
SM20
Zero
SM21
Borrow
SM22
Carry
Notes
The assignment of the data
The data register of XD, XL series PLC is a single word (16 bit) data register, single word
data only occupy one register which is used to single word instruction. The process range is
decimal –327,68~327,67, or hex 0000~FFFF.
Single word object instruction
Instruction
Double words (32 bit) occupy two data registers; the two registers' address is continuous. The
process range is: decimal -214,748,364,8~214,748,364,7 or hex 00000000~FFFFFFFF.
Double word object instruction
Instruction
The way to represent 32 bits instruction
Add letter "D" before 16 bits instruction to represent 32 bits instruction.
For example:
ADD D0 D2 D4
DADD D10 D12 D14
Function
ON: the calculate result is zero
OFF: the calculate result is not zero
ON: the calculate result is over 32767(16bits) or
2147483647(32bits)
OFF: the calculate result is not over 32767(16bits) or
2147483647(32bits)
ON: the calculate result is over 32767(16bits) or
2147483647(32bits)
OFF: the calculate result is not over 32767(16bits) or
2147483647(32bits)
D(NUM)
D(NUM+1) D(NUM)
Object
D(NUM)
16 bits instruction
32 bits instruction
83
D(NUM)
Object
Object

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents