Ladder Logic Not Equal Instruction

KronoTech

PLC

Ladder Logic

Basic

Counters

Timer

Arithmetic

Comparison

EQU

NEQ

LES

LEQ

GRT

GEQ

LIM

MEQ

Functions

Trig Functions

RSLogix 5000

Structured Text

HMI

Instruments

NEQ - Not Equal

Test whether one value is not equal to a second value.

Example

Let's say we have a counter that counts the number of cans that passes in front of a photocell. We want to check to counter to see if the counter reaches 24 (full box), then we want to turn the green light on, but if the count is not equal to 24 then we want turn the read light on.

Ladder Logic Solution

  • Photocell I:1.0/0
  • Light Green O:2.0/2
  • Light Red O:2.0/3

When the photocell will go from false to true, the counter will increment by one.

NEQ 1 SLC 500 Beginners Training Guide

We will verify if C5:0.Acc = 24 equation is true. If it is then we will energize the light full.

NEQ 2 SLC 500 Beginners Training Guide

We will verify if C5:0.acc <> 24 equation is true. If it is true then we will energize the red light.

NEQ 3 SLC 500 Beginners Training Guide

Note

  • The red light will basically be on except when the count is equal to 24.

Quick Links

PLC Languages

Ladder Logic
Function Block
Structure Text
SFC
Mnemonic

Ladder Logic

Basic
Counters
Timer
Arithmetic
Comparison
Functions
Trig Functions

Instruments

Switches

HMI

Advantages
Alarms
Trends

Other

Bottle Application