Panasonic FP Series Programming Manual page 297

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
SPLIT_DATE_INT
SPLIT_DATE_INT splits a value of the data type DATE into INT values for year, month, and day.
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.
Inverse instruction: CONCAT_DATE_INT (see page 283)
PLC types
Availability of SPLIT_DATE_INT (see page 1331)
Data types
Data type
DATE
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_DATE_INT(IN
296
Split a date into INTEGER values
I/O
Function
input
date
1st output
year
2nd output
month
3rd output
day
:= DATE_value,
YEAR
=> YEAR_value,
MONTH
=> MONTH_value,
DAY
=> DAY_value);

Advertisement

Table of Contents
loading

Table of Contents