beautypg.com

Less than or equal (leq), Greater than (grt), Greater than or equal (geq) – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 126: Preface

background image

Preface

MicroLogix 1000 Programmable Controllers User Manual

7–4

Less Than or Equal (LEQ)

Use the LEQ instruction to test whether one value (source A) is less than or equal to
another (source B). If the value at source A is less than or equal to the value of
source B, the instruction is logically true. If the value at source A is greater than the
value of source B, the instruction is logically false.

Source A must be a word address. Source B can be either a constant or word
address. Negative integers are stored in two’s complement form.

Greater Than (GRT)

Use the GRT instruction to test whether one value (source A) is greater than another
(source B). If the value at source A is greater than the value of source B, the
instruction is logically true. If the value at source A is less than or equal to the value
of source B, the instruction is logically false.

Source A must be a word address. Source B can be either a constant or word
address. Negative integers are stored in two’s complement form.

Greater Than or Equal (GEQ)

Use the GEQ instruction to test whether one value (source A) is greater than or
equal to another (source B). If the value at source A is greater than or equal to the
value of source B, the instruction is logically true. If the value at source A is less
than the value of source B, the instruction is logically false.

Source A must be a word address. Source B can be either a constant or word
address. Negative integers are stored in two’s complement form.

True

False

23.60

6.60

Execution Times

(

µ

sec) when:

LEQ

LESS THAN OR EQUAL
Source A

Source B

True

False

23.60

6.60

Execution Times

(

µ

sec) when:

GRT

GREATER THAN
Source A

Source B

True

False

23.60

6.60

Execution Times

(

µ

sec) when:

GEQ

GRTR THAN OR EQUAL
Source A

Source B