F_BA_TimeString

The function F_BA_TimeString of return type STRING(12) converts a timestamp stTime into a STRING in the format hh:mm:ss:**.
The last two digits of the hundredths of a second are ignored and filled with "*".
Decimal values smaller than 10 are preceded by a "0", e.g. the ninth hour in the morning is represented with "09" instead of simply "9".
Implausible values (e.g. second > 59) or entries evaluated as unspecified, i.e. with 16#FF, are output with "**".
Syntax
FUNCTION F_BA_TimeString : STRING(12)
VAR_IN_OUT
  stTime    : ST_BA_Time;
END_VAR
 Inputs/outputs
Name  | Type  | Description  | 
|---|---|---|
| 
             stTime  | 
             Timestamp from which the return string is formed.  | 
Requirements
Development environment  | Required PLC library  | 
|---|---|
TwinCAT 3.1 4024.35  | Tc3_BA2_Common from V2.1.20.0  |