FB_BA_SetBACnetAdapterTime
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
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. |
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 |