Returns an interval divided by a numeric value.
Informal Syntax:
Formal Syntax:
DIVTIME( In1:=expression, In2:=expression )
| Parameter | Type | Description |
|---|---|---|
| In1 | TIME | The interval. |
| In2 | ANY_NUM | The number to divide the interval by. |
In1 can be any interval values, positive or negative. In2 can be any integer or real value.
The function DIVTIME returns In1 divided by In2 as an interval.
| Example | Return Value |
|---|---|
| DIVTIME( T#15s, 3 ) | TIME#5s |
| DIVTIME( T#-6h, 1.5 ) | TIME#-4h |
| DIVTIME( T#1d, -0.5 ) | TIME#-2d |
IEC 61131-3 Second Edition: Table 30.11b.
IEC 61131-3 Third Edition: Table 35.11b.
For other date and time functions.
For the meaning of terms used in Fernhill SCADA.