DIVTIME - Divide an interval by a number

Help Contents

Introduction

Returns an interval divided by a numeric value.

Syntax

Informal Syntax:

DIVTIME( In1, In2 )

Formal Syntax:

DIVTIME( In1:=expression, In2:=expression )

Parameters

ParameterTypeDescription
In1TIMEThe interval.
In2ANY_NUMThe number to divide the interval by.

In1 can be any interval values, positive or negative. In2 can be any integer or real value.

Return Value

The function DIVTIME returns In1 divided by In2 as an interval.

Examples

ExampleReturn Value
DIVTIME( T#15s, 3 )TIME#5s
DIVTIME( T#-6h, 1.5 )TIME#-4h
DIVTIME( T#1d, -0.5 )TIME#-2d

Standards Compliance

IEC 61131-3 Second Edition: Table 30.11b.

IEC 61131-3 Third Edition: Table 35.11b.

Further Information

Date and Time Functions

For other date and time functions.

Glossary

For the meaning of terms used in Fernhill SCADA.