F_BA_TimeMerge

The function F_BA_TimeMerge of return type ST_BA_Time replaces those subcomponents of the input timestamp stTime1 that are evaluated as unspecified (16#FF) with the corresponding components of the input timestamp stTime2.
Syntax
FUNCTION F_BA_TimeMerge : ST_BA_Time
VAR_INPUT
stTime1 : ST_BA_Time;
stTime2 : ST_BA_Time;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stTime1 |
Input timestamp, which is checked. | |
stTime2 |
Input timestamp which is used to replace unspecified parts of stTime1. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |