xLadder user manual-V2.0.0.6

6.8.8 INC - DW & DEC - DW

Input/output Operand

Data type

IN

VD, ID, QD, MD, SD, SMD, LD, AC, HC,constant, *VD, *LD, *AC

Double integer

OUT

VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *LD, *AC

Double integer

INC - DW: IN + 1 = OUT Both input and output are 32

bits double integers.

DEC - DW: IN - 1 = OUT

Both input and output are 32

bits double integers.

IN + 1 = OUT

IN - 1 = OUT

The two instructions operations take with symbols.

(16#7FFFFFFF > 16#80000000).

error conditions:

0006

Indirect address

SM1.1

overflow

Special memory bit:

SM1.0

Zero result

SM1.1

overflow

SM1.2

Negative result

Example:

140

Made with FlippingBook - Online magazine maker