[ABS_DI] Absolute value of DINT values
Description
This instruction outputs the absolute value of the input value at the output parameter OUT.
OUT = | IN |
Troubleshooting
ENO = 0 if IN = -2 147 483 648 (smallest negative number)
Parameters
Parameters | Declaration | Data type | Description | Default |
|---|---|---|---|---|
IN | Input | DINT | Input value | 0 |
OUT | Output | DINT | Absolute value | 0 |