Panasonic FP Series Programming Manual page 339

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Timer instructions
SPLIT_TIME_INT
The highest non-zero time unit may be greater than its apparent limit, e.g. T#25h is a valid time
Description
value whereas T#1d25h is not.
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 SPLIT_TIME_INT (see page 1331)
Data types
Data type
TIME
INT
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
When programming with structured text, enter the following:
SPLIT_TIME_INT(IN
338
Split a time into INTEGER values
I/O
Function
input
time
1st output
days
2nd output
hours
3rd output
minutes
4th output
seconds
5th output
milliseconds
:= TIME_value,
DAYS
=> DAYS_value,
HOURS
=> HOURS_value,
MINUTES
=> MINUTES_value,
SECONDS
=> SECONDS_value,
MILLISECONDS
=> MILLISECONDS_value);

Advertisement

Table of Contents
loading

Table of Contents