any_to_time
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
IN |
ANY |
|
|
|
Input value. |
Outputs
Output |
Data Type |
Range |
Unit |
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 input data types, the output is the time represented by the string or t#0ms if the string does not represent a valid time.
FBD Language
FFLD Language
- In the FFLD 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.
IL Language
- In the IL "Instruction list" This is a low-level language and resembles assembly Language, the any_to_time converts the current result.
Op1: FFLD IN
ANY_TO_TIME
ST Q
ST Language
Q := ANY_TO_TIME (IN);
See Also