Panasonic FP Series Programming Manual page 285

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
CONCAT_DATE_INT
CONCAT_DATE_INT concatenates the INTEGER values of year, month, and day.The result is
Description
stored in the output variable of the data type DATE. The Boolean output ERROR is set if the input
values are invalid date or time values.
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: SPLIT_DATE_INT (see page 295)
PLC types
Availability of CONCAT_DATE_INT (see page 1318)
Data types
Data type
INT
DATE
BOOL
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:
DATE_value
284
Concatenate INT values to form a date
I/O
Function
1st input
year
2nd input
month
3rd input
day
output
result
output
The Boolean output ERROR is set if the input values
are invalid date or time values.
:=
CONCAT_DATE_INT(YEAR
MONTH
:= MONTH_value,
DAY
:= DAY_value,
ERROR
=> ERROR);
:= YEAR_value,

Advertisement

Table of Contents
loading

Table of Contents