beautypg.com

Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual

Page 111

background image

Appendix D Use of Application Instructions|DOP-EXIO Series

D-30

Revision March, 2008, Doc. Name: 2007PDD23000014

X10

DADD

D30

D40

D50

(D31, D30)

+ (D41, D40) = (D51, D50)

Remarks:
Flags and the positive/negative sign of the values:

-2 -1 0 -32,768

、 、 、

、 、

-1 0 1

32,767 0 1 2

、 、 、

-2 -1 0 -2,147,483,648

、 、 、

、 、

-1 0 1

2,147,483,647 0 1 2

、 、 、

16-bit :

Zero flag

Zero flag

Borrow flag

The highest bit of
the data = 1 (negative)

32-bit :

Zero flag

Zero flag

The highest bit of
the data = 0 (positive)

Carry flag

Borrow flag

The highest bit of
the data = 1 (negative)

The highest bit of
the data = 0 (positive)

Carry flag

Zero flag

Zero flag

+

-

-

+