beautypg.com

Applicable program areas flags, Function, Precautions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 52: Sample program, 2 instructions

background image

2 Instructions

2-16

CP1E CPU Unit Instructions Reference Manual(W483)

NOT

Applicable Program Areas

Flags

There are no flags affected by NOT(520).

Function

NOT(520) is placed between an execution condition and another instruction to invert the execution con-
dition.

Precautions

NOT(520) is an intermediate instruction, i.e., it cannot be used as a right-hand instruction. Be sure to
program a right-hand instruction after NOT(520).

Sample program

i

Instruction

Mnemonic

Variations

Function

code

Function

NOT

NOT

---

520

Reverses the execution condition.

Symbol

NOT

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

NOT(520)

100.00

NOT(520) reverses the execution condition
in the following example.

0.00

0.01

0.02

NOT(520)

0.00

1

1

1

0

1

0

0

0

0.01

1

1

0

1

0

1

0

0

0.02

1

0

1

1

0

0

1

0

100.00

0

0

1

0

1

1

1

1

This manual is related to the following products: