F63_DWIN

Redundant instruction

NOTE

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

Parameters

Input

s1_In (DWORD, DINT, UDINT, DATE, TOD, DT)

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

s2_Min (DWORD, DINT, UDINT, DATE, TOD, DT)

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

s3_Max (DWORD, DINT, UDINT, DATE, TOD, DT)

upper limit, 32-bit area or 32-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