Timer instructions
335
Part II IEC Instructions
MUL_TIME_INT
Multiply TIME by INTEGER
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types
Availability of MUL_TIME_INT (see page 1328)
Data type I/O Function
TIME 1st input multiplicand
INT 2nd input multiplicator
TIME output result
Description
MUL_TIME_INT multiplies the values of the two input variables with each other and writes the
result into the output variable.
Data types
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
In this example the input variables (time_value_1 and multiplier) have been declared. Instead,
you may enter constants directly at the input contacts of a function.
Body
Time_value_1 is multiplied with multiplier. The result is written into time_value_2.
LD
ST
When programming with structured text, enter the following:
time_value_2:=MUL_TIME_INT(time_value_1, multiplier);