7.12.1 IS_VALID
Function
Verify that the variable is a valid real number. If it is a valid real number, output 1; otherwise, output 0
LD graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN | Var_Input | REAL(LREAL) | Value to be determined |
| Function name | Return value | BOOL | Output result |
- example:
OUT_BOOL := IS_VALID(IN_ANY_REAL);
Example
- LD sample animation is as follows:

- ST sample animation is as follows:
