Panasonic FP Series Programming Manual page 331

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Timer instructions
ADD_TIME
ADD_TIME adds the times of the two input variables and writes the sum in the output variable.
Description
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 ADD_TIME (see page 1318)
Data types
Data type
TIME
TIME
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.
In this example the input variables (time_value_1 and time_value_2) have been declared. Instead,
you may enter constants directly at the input contacts of a function.
Body
Time_value_1 and time_value_2 are added. The result is written into time_value_3.
LD
ST
time_value_3:=ADD_TIME(time_value_1, time_value_2);
330
Add TIME
I/O
Function
1st input
augend
2nd input
addend
output
sum

Advertisement

Table of Contents
loading

Table of Contents