[EPS_DI] Accuracy approximation of DINT values

Description

This instruction compares the absolute value of IN with the input value INTERVAL. If the absolute value of IN is smaller than the limit INTERVAL, the output values QA are set to 1 and QN to 0. The input value IN is contained in the interval. Otherwise, the output parameters QA are set to 0 and QN to 1. The input value IN is outside the interval.

INTERVAL must have a positive value.

If INTERVAL is ≤ 0 , then QA = 0.

Troubleshooting

ENO = 0 if IN = -2,147,483,648

Parameters

Parameters

Declaration

Data type

Description

Default

IN

Input

DINT

Input value

0

INTERVAL

Input

DINT

Interval limit

0

QA

Output

BOOL

Validation bit memory

0

QN

Output

BOOL

Inverted validation bit memory

0