Panasonic FP Series Programming Manual page 292

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

IS_VALID_DATE_INT
IS_VALID_DATE_INT checks whether the combination of the INT values for the year, month, and
Description
day is a valid DATE value. The Boolean output flag is set if the date is valid.
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 IS_VALID_DATE_INT (see page 1327)
Data types
Data type
INT
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:
VALID
:=
IS_VALID_DATE_INT(YEAR
MONTH
DAY
:= DAY_value);
Check whether a DATE is valid
I/O
Function
1st input
year
2nd input
month
3rd input
day
output
set to TRUE if the resulting date value is valid
:= MONTH_value,
:= YEAR_value,
Date and time instructions
291

Advertisement

Table of Contents
loading

Table of Contents