Panasonic FP Series Programming Manual page 295

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
IS_VALID_TOD_INT
IS_VALID_TOD_INT checks whether the combination of INT values for hour, minute, second, and
Description
millisecond is a valid time of day value. The Boolean output flag is set if the time of day value 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_TOD_INT (see page 1328)
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_TOD_INT(HOUR
MINUTE
SECOND
MILLISECOND
294
Check whether the TIME_OF_DAY is valid
I/O
Function
1st input
hour
2nd input
minute
3rd input
second
4th input
millisecond
output
set to TRUE if the resulting time of day value is valid
:= MINUTE_value,
:= SECOND_value,
:= MILLISECOND_value);
:= HOUR_value,

Advertisement

Table of Contents
loading

Table of Contents