Operator - Converts the input into boolean value.

Inputs

Input

Data type

Description

IN

ANY

Input value.

Outputs

Output

Data type

Description

Q

BOOL

Value converted to boolean.

Remarks

For DINT, REAL and TIME input data types, the result is FALSE if the input is 0. The result is TRUE in all other cases. For STRING inputs, the output is TRUE if the input string is not empty, and FALSE if the string is empty. In LD language, the conversion is executed only if the input rung (EN) is TRUE. The output rung is the result of the conversion.

ST Language

Q := ANY_TO_BOOL (IN);

FBD Language

Fixed_Image

LD Language

The conversion is executed only if EN is TRUE.
The output rung is the result of the conversion.
The output rung is FALSE if the EN is FALSE.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework