FB_BA_SetBACnetAdapterTime

FB_BA_SetBACnetAdapterTime 1:

The function block can be used to set the local BACnet system time of a TwinCAT system.

Illustration

FUNCTION_BLOCK FB_BA_SetBACnetAdapterTime
VAR_INPUT
  bTrig         : BOOL;
  stDateTime    : ST_BA_DateTime;
END_VAR
VAR_OUTPUT
  bSuccess      : BOOL;
  bError        : BOOL;
END_VAR

FB_BA_SetBACnetAdapterTime 2: Inputs

Name

Type

Description

bTrig

BOOL

On a rising edge the content of the stDateTime structure is written to the local BACnet system time of the TwinCAT system.

stDateTime

ST_BA_DateTime

Time specification which is written to the local BACnet system time.

FB_BA_SetBACnetAdapterTime 3: Outputs

Name

Type

Description

bSuccess

BOOL

The time specification stDateTime was successfully written to the target system. The variable is TRUE for one cycle.

bError

BOOL

Error while writing the BACnet system time.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0