Compare Real Compare

Inputs/Outputs Operands Data Types
Inputs ID, QD, MD, SD, SMD, VD, LD, AC, Constant, *VD, *AC, *LD REAL
Output (FBD) I, Q, M, SM, T, C, V, S, L, Power Flow BOOL

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
The Compare Real instruction is used to compare two values: IN1 to IN2. Comparisons include: IN1 = IN2, IN1 >= IN2, IN1 <= IN2, IN1 > IN2, IN1 < IN2, or IN1 <> IN2.

Real comparisons are signed.

In LAD, the contact is on when the comparison is true.

In FBD, the output is on when the comparison is true.

In STL, the instructions Load, AND, or OR a 1 with the top of stack when the comparison is true.