FC_GetTimeStamp - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Determine the date and time of day in ms

Description

The function gets the date from the PLC configuration. The time of the system time in s and the Timer 1 for the ms is determined. A direct verification of the time of day is possible in ms.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Error message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

q_dateDate

DATE

The current date

q_todTime

TOD

The current time

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ControllerConditionInvalid

ControllerInvalid

6

The controller is invalid.

ControllerInvalid

Enumeration name:

ControllerInvalid

Enumeration value:

6

Description:

The controller is invalid.

Issue

Cause

Solution

-

The controller does not provide the required conditions.

For more details, see q_sMsg output.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

TimeStamp was determined successfully.