[EPS_I] Accuracy approximation of INT 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 ≤ 0, then QA = 0.
Troubleshooting
ENO = 0 if IN = -32,768
Parameters
Parameters | Declaration | Data type | Description | Default |
|---|---|---|---|---|
IN | Input | INT | Input value | 0 |
INTERVAL | Input | INT | Interval limit | 0 |
QA | Output | BOOL | Validation bit memory | 0 |
QN | Output | BOOL | Inverted validation bit memory | 0 |