Redundant instruction
This is a redundant instruction. It is replaced by: WITHIN_LIMITS
Compares the 32-bit equivalent constant or 32-bit data specified by s1_In with the data band specified by s2_Min and s3_Max if the trigger EN is in the ON-state. This instruction checks that s1_In is in the data band between s2_Min (lower limit) and s3_Max (higher limit), larger than s3_Max, or smaller than s2_Min. The compare operation considers +/- sign. Since the BCD data is also treated as 32-bit data with sign, we recommend using BCD data within the range of 0 to 79999999 to avoid confusion. The compare operation result is stored in the system variables sys_bIsGreaterThan (> flag), sys_bIsEqual (= flag), sys_bIsLessThan (< flag) and sys_bIsCarry (carry-flag).
Input
32-bit equivalent constant or 32-bit area to be compared
lower limit, 32-bit area or 32-bit equivalent constant
upper limit, 32-bit area or 32-bit equivalent constant
The variables s1, s2 and s3 have to be of the same data type.