4

Example 1:

In the following example, %AI0001 is checked to be within a range specified by two constants, 0 and 100.

 

_____

 

%I0001

 

—— ———+RANGE

 

 

INT

 

 

%Q0002

100

—+L1

Q+—————————————————————————————————————————————————————————( )—

 

 

0

—+L2

 

 

 

%AI0001—+IN

 

 

_____

 

 

 

 

 

RANGE Truth Table

Enable State

L1 Value

L2 Value

IN Value

Q State

%I0001

Constant

Constant

%AI0001

%Q0001

 

 

 

 

 

 

 

 

 

 

ON

100

0

< 0

OFF

 

 

 

 

 

ON

100

0

0 — 100

ON

 

 

 

 

 

ON

100

0

> 100

OFF

 

 

 

 

 

OFF

100

0

Not Applicable

OFF

 

 

 

 

 

Example 2:

In this example, %AI0001 is checked to be within a range specified by two register values.

_____

 

%I0001

 

—— ———+RANGE

 

INT

 

%Q0002

%R0001 —+L1

Q—————————————————————————————————————————————————————————( )—

 

%R0002 —+L2

 

 

%AI0001—+IN

 

_____

 

 

 

 

RANGE Truth Table

Enable State

L1 Value

L2 Value

IN Value

Q State

%I0001

%R0001

%R0002

%AI0001

%Q0001

 

 

 

 

 

 

 

 

 

 

ON

500

0

< 0

OFF

 

 

 

 

 

ON

500

0

0 — 500

ON

 

 

 

 

 

ON

500

0

> 500

OFF

 

 

 

 

 

OFF

500

0

Not Applicable

OFF

 

 

 

 

 

4-46

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 127
Image 127
GE 90-30/20/Micro manual Range Truth Table Enable State L1 Value L2 Value, Constant