Panasonic FP Series Programming Manual page 298

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

SPLIT_DT_INT
SPLIT_DT_INT splits a value of the data type DATE_AND_TIME into INT values for year, month,
Description
day, hour, minute, 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_DT_INT (see page 285)
PLC types
Availability of SPLIT_DT_INT (see page 1331)
Data types
Data type
DATE_AND_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.
Split a date and time into INTEGER values
I/O
Function
input
date and time
1st output
year
2nd output
month
3rd output
day
4th output
hour
5th output
minute
6th output
second
7th output
millisecond
Date and time instructions
297

Advertisement

Table of Contents
loading

Table of Contents