Skip to main content

7.12.2 IS_VALID_BCD

Function

Verify that the input value conforms to the BCD definition. If it meets the BCD definition, output 1; otherwise, output 0

LD graphics

Alt ​​text

Parameter description

Interface variableDeclarationData typeDescription
INVar_InputANY_BYTEValue to be determined
Function nameReturn valueBOOLOutput result
warning
  • ANY_BYTE data type bit string (BYTE, WORD, DWORD, LWORD)

Example

  • LD sample animation is as follows:

alt text

  • ST sample animation is as follows:

alt text