You are here: Core Reference > Coding > Logic > MULTIME

MULTIME

Function Name

MULTIME

Description

Outputs a time interval value that is the result of a time interval value multiplied by an integer value.

Arguments

Input 1 {TIME}

Input 2 {INT}

For more information on the data types for the inputs and outputs, see Data Type Hierarchy.

Returns

Output {TIME}

Example:

Function Block Diagram - MULTIME:

A GT function has 2 inputs (in this case, 2 constant values). Input 1 is has a time value of 59 hours (TIME#59h) and Input 2 has an integer value of 4. The MULTIME function outputs a time value of 9d20h as this is the result of 59 hours multiplied by 4.

ST Program - MULTIME:

The syntax for a MULTIME function in an ST Program is:

  • Output := MULTIME (Input 1, Input 2)

Where Output, Input 1 and Input 2 are defined as variables earlier in the ST program. Input 1 is a time value, Input 2 is an integer value, and the Output is a time value.


ClearSCADA 2015 R2