Panasonic FP Series Programming Manual page 334

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

DIV_TIME_DINT
DIV_TIME_DINT divides the value of the first input variable by the value of the second and writes
Description
the result 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 DIV_TIME_DINT (see page 1319)
PLC types
Data types
Data type
TIME
DINT
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
In the POU header, all input and output variables are declared that are used for programming this
function.
In this example, the input variables (time_value_1, DINT_value) have been declared. However,
you can write a constant directly at the input contact of the function instead.
Body
time_value_1 is divided by DINT_value. The result is written in time_value_2.
LD
ST
When programming with structured text, enter the following:
time_value_2:=DIV_TIME_DINT(time_value_1, INT_value);
Divide TIME by DOUBLE INTEGER
I/O
Function
1st input
dividend
2nd input
divisor
output
result
Timer instructions
333

Advertisement

Table of Contents
loading

Table of Contents