Skip to main content

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

alt text

Parameter description

Interface variableDeclarationData typeDescription
INVar_InputREAL(LREAL)Value to be determined
Function nameReturn valueBOOLOutput result
  • example:
OUT_BOOL := IS_VALID(IN_ANY_REAL);

Example

  • LD sample animation is as follows:

alt text

  • ST sample animation is as follows:

alt text