F62_WIN

Redundant instruction

NOTE

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).

Parameters

Input

s1_In (WORD, INT, UINT)

16-bit area or 16-bit equivalent constant to be compared

s2_Min (WORD, INT, UINT)

lower limit, 16-bit area or 16-bit equivalent constant

s3_Max (WORD, INT, UINT)

upper limit, 16-bit area or 16-bit equivalent constant

Remarks

The variables s1, s2 and s3 have to be of the same data type.

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline