Panasonic FP Series Programming Manual page 300

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

SPLIT_TOD_INT
SPLIT_TOD_INT splits a value of the data type TIME_OF_DAY into INT values for hour, minute,
Description
second, and millisecond.
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.
Inverse instruction: CONCAT_TOD_INT (see page 287)
PLC types
Availability of SPLIT_TOD_INT (see page 1331)
Data types
Data type
TIME_OF_DAY
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_TOD_INT(IN
Split the time of day into INT values
I/O
Function
input
time of day
1st output
hour
2nd output
minute
3rd output
second
4th output
millisecond
:= TOD_value,
HOUR
=> HOUR_value,
MINUTE
=> MINUTE_value,
SECOND
=> SECOND_value,
MILLISECOND
=> MILLISECOND_value);
Date and time instructions
299

Advertisement

Table of Contents
loading

Table of Contents