FB_BA_SetBACnetAdapterTime

The function block FB_BA_SetBACnetAdapterTime can be used to set the local BACnet system time of a TwinCAT system.
Syntax
FUNCTION_BLOCK FB_BA_SetBACnetAdapterTime
VAR_INPUT
bTrig : BOOL;
stDateTime : ST_BA_DateTime;
END_VAR
VAR_OUTPUT
bSuccess : BOOL;
bError : BOOL;
END_VAR
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 | Time specification which is written to the local BACnet system time. |
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.56 | Tc3_XBA from v5.6.1.0 |