Operator - Converts the input into time value.

Inputs

Input

Data type

Description

IN

ANY

Input value.

Outputs

Output

Data type

Description

Q

TIME

Value converted to time.

Remarks

For BOOL input data types, the output is t#0ms or t#1ms. For DINT or REAL input data type, the output is the time represented by the input number as a number of milliseconds. For STRING inputs, the output is the time represented by the string, or t#0ms if the string does not represent a valid time. 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_TIME (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: Full-featured EPub generator