ADD_TIME¶
Returns the sum of two time durations.
Signature¶
┌─────────┐
IN1 ─┤ │
│ADD_TIME ├─ OUT
IN2 ─┤ │
└─────────┘
FUNCTION ADD_TIME : TIME
VAR_INPUT
IN1 : TIME;
IN2 : TIME;
END_VAR
END_FUNCTION
Both inputs and the return value are TIME.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
The first duration. |
|
|
The second duration. |
Outputs
Name |
Type |
Description |
|---|---|---|
Return value |
|
The sum of IN1 and IN2. |
Description¶
Returns the sum of two time durations IN1 and IN2.
ADD_TIME(a, b) adds two TIME values together.
Example¶
result := ADD_TIME(T#2s, T#3s); (* result = T#5s *)