Redundant instruction
This is a redundant instruction. It is replaced by: WITHIN_LIMITS
Compares the 16-bit equivalent constant or 16-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 16-bit data with sign, we recommend using BCD data within the range of 0 to 7999 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
16-bit area or 16-bit equivalent constant to be compared
lower limit, 16-bit area or 16-bit equivalent constant
upper limit, 16-bit area or 16-bit equivalent constant
The variables s1, s2 and s3 have to be of the same data type.