Panasonic FP Series Programming Manual page 338

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

MUL_TIME_REAL
MUL_TIME_REAL multiplies the value of the first input variable of the data type TIME by the value
Description
of the second input variable of the data type REAL. The REAL value is rounded off to the nearest
whole number. The result is written into the output variable.
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.
Availability of MUL_TIME_REAL (see page 1328)
PLC types
Data types
Data type
TIME
REAL
TIME
In this example, the same POU header is used for all programming languages. For an example
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.
Body
The constant T#1h30m is multiplied by the value 3.5. The result is written in mul_result. By
clicking on the
T#5h15m0s0.00ms immediately.
LD
ST
When programming with structured text, enter the following:
mul_result:=MUL_TIME_REAL(T#1h30m, 3.5);
Multiply TIME by REAL
I/O
Function
1st input
multiplicand
2nd input
multiplicator
output
result
(Monitoring) icon while in the online mode, you can see the result
Timer instructions
337

Advertisement

Table of Contents
loading

Table of Contents