xLadder user manual-V2.0.0.6

6.8.6 INC - B & DEC - B

Input/output Operand

Data type

IN

VB, IB, QB, MB, SB, SMB, LB, AC,constant, *VD, *LD, *AC

Byte

OUT

VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *LD, *AC

Byte

INC - B: IN + 1 = OUT Both input and output are 8 bits

integers.

DEC - B: IN - 1 = OUT

Both input and output are 8 bits

integers.

The two instructions operations do not take symbols.

IN + 1 = OUT

IN - 1 = OUT

error conditions:

0006

Indirect address

SM1.1

overflow

Special memory bit:

SM1.0

Zero result

SM1.1

overflow

Example:

138

Made with FlippingBook - Online magazine maker