GetTimeZoneInformation (FB)

FUNCTION_BLOCK GetTimeZoneInformation

This function block reads the specific information on the time zone.

InOut:

Scope

Name

Type

Comment

Input

xExecute

BOOL

Rising edge: Action start

Falling edge: Resets outputs. If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError, iError) are present at the outputs for exactly one cycle.

Output

xDone

BOOL

Action successfully completed

xBusy

BOOL

Function block active

xError

BOOL

TRUE: error occurred, function block aborts action

FALSE: no error

eError

ERROR

Error description for diagnosis

tziInfo

RTCLK_TIME_ZONE_INFO

Information on the time zone