Input Parameter
Data Type
EnableIn
BOOL
SourceA
REAL
SourceB
REAL
Output Parameter
Data Type
EnableOut
BOOL
Dest
BOOL
Description:
Arithmetic Status Flags:
Fault Conditions:
Execution:
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
Function Block
Operand
Type
EQU tag
FBD_COMPARE
FBD_COMPARE Structure
Description
Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Value to test against SourceB.
Valid = any float
Value to test against SourceA.
Valid = any float
Description
The instruction produced a valid result.
Result of the instruction. This is equivalent to rung-condition-out of the relay ladder
EQU instruction.
Use the EQU instruction to compare two numbers or two strings of ASCII
characters. When you compare strings, note the following:
· Strings are equal if their characters match.
· ASCII characters are case sensitive. Upper case 'A' ($41) is not equal to
lower case 'a' ($61).
Not affected
None
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Format
Description
Structure
EQU structure
Chapter 5
227