4

Programming Software Instructions

Select Compare (F6), then use the assigned function key(s) to select a Compare function:

= .EQ. (F1)

Equal

, .NE. (F2)

Not Equal

> .GT. (F3)

Greater Than

< .LT. (F4)

Less Than

> .GE. (F5)

Greater Than or Equal

< .LE. (F6)

Less Than or Equal

1.Enter the first value to be compared. It can be a constant or the contents of a register. Then press the Enter key.

2.Enter the second value to be compared. This also can be a constant or the contents of a register. Press the Enter key.

3.Press Enter to add the function to the program.

Compare functions often are used in combination with output coils as shown below.

In this example, Output O022 is turned on when the content of register R009 is not equal to the constant 10.

GFK-0804B

Chapter 4 The Micro PLC Instruction Set

4-37

Page 78
Image 78
GE GFK-0804B manual Programming Software Instructions, Press Enter to add the function to the program