Comparison Instructions Overview; Using Indexed Word Addresses; Using Indirect Word Addresses; Equal (Equ) - Allen-Bradley SLC 500 Series Reference Manual

Hide thumbs Also See for SLC 500 Series:
Table of Contents
3-2
Comparison Instructions
Comparison Instructions
Overview

Equal (EQU)

EQU
EQU
Equal
Source A
N7:0
Source B
N7:1
Fixed SLC
SLC
SLC
5/01
5/02
5/03
Input Instruction

Not Equal (NEQ)

NEQ
NEQ
Not Equal
Source A
N7:2
0<
Source B
N7:3
0<
Fixed SLC
SLC
SLC
5/01
5/02
5/03
Input Instruction
Publication 1747-RM001G-EN-P - November 2008
The following general information applies to comparison instructions.

Using Indexed Word Addresses

When using comparison instructions, you have the option of using indexed
word addresses for instruction parameters specifying word addresses.

Using Indirect Word Addresses

You have the option of using indirect word-level and bit-level addresses for
instructions specifying word addresses when using an SLC 5/03 OS302, SLC
5/04 OS401, or SLC 5/05 processors.
Use the EQU instruction to test whether two values are equal. If source A and
source B are equal, the instruction is logically true. If these values are not
equal, the instruction is logically false.
0<
0<
Source A must be an address. Source B can either be a program constant or a
address. Negative integers are stored in two's complement form.
SLC
SLC
5/04
5/05
Use the NEQ instruction to test whether two values are not equal. If source A
and source B are not equal, the instruction is logically true. If the two values
are equal, the instruction is logically false.
Source A must be an address. Source B can be either a program constant or an
address. Negative integers are stored in two's complement form.
SLC
SLC
5/04
5/05
Table of Contents
loading

Table of Contents