Invert Result of Operation

Invert the Result of the Operation: INV (Inverse)

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

INV

-

-

-

-

-

-

-

-

-

-

-

-

-

1

-

-

-

 

 

Function:

If you use the INV instruction, Contact  "A" circuit is inverted to Contact "B" circuit and Contact  "B" circuit is inverted to Contact  "A" circuit for the circuit on the left of the INV instruction.

Likewise, series connection circuit is inverted to parallel connection circuit while parallel connection circuit is inverted to series connection circuit.

 

 

 

Example)

Program A and B are examples that output the same result.

 

Program A

 

 

 

 

Program B