beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 245

background image

6 Application Instructions API 00-49

DVP-PLC Application Manual

6-33

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

+

-

-

+