F285_LIMT

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: LIMIT

The function compares the input value at input s3_In with a lower and an upper limit. The lower limit is specified at input s1_Min, and the upper limit at input s2_Max. The result of the function is returned at output d as follows.

Parameters

Input

s1_Min (WORD, INT, UINT)

The area where the lower limit is stored or the lower limit data

s2_Max (WORD, INT, UINT)

The area where the upper limit is stored or the upper limit data

s3_In (WORD, INT, UINT)

The area where the input value is stored or the input value data

Output

d (WORD, INT, UINT)

the area where the output value data is stored

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

if the value at s1_Min > s2_Max

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if the value at s1_Min > s2_Max

sys_bIsEqual (turns to TRUE and remains TRUE)

if the result of processing is between the upper and lower limits.

Related topics:

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