Breadcrumbs

Read TimeStamp

This command returns the timestamp value in nanoseconds. It represents the local PMC time since power on.

read_timestamp1.png

Fieldbus Interface

PMC_ReadTimeStamp

Inputs

Name

Data Type

Description

Enable

BOOL

Set to TRUE to enable the function block. It will continuously obtain the most up-to-date value(s) until reset to FALSE.

PM_Controller

PMControllerType

Data structure that specifies which PMC to connect to. There should be only 1 instance of this variable for each connected PMC.
Outputs

Name

Data Type

Description

Valid

BOOL

TRUE: output values have been successfully read. FALSE: unable to obtain output values.

TimeStamp_ns

ULINT

Timestamp value in nanoseconds.

Conditions

Operating Conditions

Preconditions

None

Postconditions

The Timestamp is provided in the output

Description

This command returns the timestamp value in nanoseconds. It represents the local PMC time since power on.