Relay Ladder; Structured Text; Function Block - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
Chapter 5
Example 2:
Low Limit ≥ High Limit:
When value ≥ 0 or value ≤ −100, set light_1. If value < 0 or value >−100,
clear light_1.

Relay Ladder

Structured Text

IF (0 <= -100 AND value >= 0 AND value <= -100)) OR
(0 >= -100 AND(value <= 0 OR value >= -100)) THEN
light_1 := 1;
ELSE
light_1 := 0;
END_IF;

Function Block

Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
251

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents