F_BA_ToSTDateTime

F_BA_ToSTDateTime 1:

The function F_BA_ToSTDateTime of return type ST_BA_DateTime converts a time value dtDateTime of type DT (DATE_AND_TIME) into a time value of type ST_BA_DateTime.

Syntax

FUNCTION F_BA_ToSTDateTime : ST_BA_DateTime
VAR_INPUT
    dtDateTime    :  DT;
END_VAR

F_BA_ToSTDateTime 2: Inputs

Name

Type

Description

dtDateTime

DT

Time input value to be converted.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0