Operator - Converts the input into a small (8 bit) integer value.

Inputs

Input

Data type

Description

IN

ANY

Input value.

Outputs

Output

Data type

Description

Q

SINT

Value converted to a small (8 bit) integer.

Remarks

For BOOL input data types, the output is 0 or 1. For REAL input data type, the output is the integer part of the input real. For TIME input data types, the result is the number of milliseconds. For STRING inputs, the output is the number represented by the string, or 0 if the string does not represent a valid number. In LD language, the conversion is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung.

ST Language

Q := ANY_TO_SINT (IN);

FBD Language

Fixed_Image

LD Language

The conversion is executed only if EN is TRUE.
ENO keeps the same value as EN.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Revolutionize Your Documentation Review with HelpNDoc's Project Analyzer