Bradley Smoker PLC-5 user manual Cmp, Equ, Geq, Grt, Leq, Les, Neq

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 306
Image 306

D-6Instruction Set Quick Reference

Instruction

Description

 

 

CMP

COMPARE

Expression N7:5 = N7:10

Compare

If the expression is true, this input instruction is true. The CMP

CMP

instruction can perform these operations: equal (=), less than

 

(<), less than or equal (<=), greater than (>), greater than or

 

equal (>=), not equal (<>), and complex expressions (up to 80

 

characters).

 

xxx

 

 

 

 

 

 

xxxxxxxxxxxxx

 

 

Source A

N7:5

 

 

 

3

 

Source B

N7:10

 

 

 

1

 

 

 

 

Source A

Source B

EQU

GEQ

GRT

LEQ

LES

NEQ

 

10

10

T

T

F

T

F

F

 

 

 

 

 

 

 

 

 

5

6

F

F

F

T

T

T

 

 

 

 

 

 

 

 

 

21

20

F

T

T

F

F

T

 

 

 

 

 

 

 

 

 

-30

-31

F

T

T

F

F

T

 

 

 

 

 

 

 

 

 

-15

-14

F

F

F

T

T

T

 

Equal to

If the value in Source A (N7:5) is = to the value in Source B

 

EQU

(N7:10), this instruction is true.

 

 

 

 

Greater than or Equal

If the value in Source A (N7:5) is > or = the value in Source B

 

GEQ

(N7:10), this instruction is true.

 

 

 

 

Greater than

If the value in Source A (N7:5) is > the value in Source B

 

GRT

(N7:10), this instruction is true.

 

 

 

 

Less than or Equal

If the value in Source A (N7:5) is < or = the value in Source B

 

LEQ

(N7:10), this instruction is true.

 

 

 

 

Less than

If the value in Source A (N7:5) is < the value in Source B

 

LES

(N7:10), this instruction is true.

 

 

 

 

Not Equal

If the value in Source A (N7:5) is not equal to the value in

 

NEQ

Source B (N7:10), this instruction is true.

 

 

 

Publication 1785-UM012D-EN-P - July 2005

Page 306
Image 306
Bradley Smoker PLC-5 user manual Cmp, Equ, Geq, Grt, Leq, Les, Neq