Panasonic FP Series Programming Manual page 289

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
CONCAT_TOD_INT
CONCAT_TOD_INT concatenates the INTEGER values for hour, minute, second, and millisecond.
Description
The result is stored in the output variable of the data type TIME_OF_DAY. 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_TOD_INT (see page 298)
PLC types
Availability of CONCAT_TOD_INT (see page 1318)
Data types
Data type
INT
TIME_OF_DAY
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:
TOD_value
MINUTE
SECOND
MILLISECOND
ERROR
288
Concatenate INT values to form the time of day
I/O
Function
1st input
hour
2nd input
minute
3rd input
second
4th input
millisecond
output
result
output
The Boolean output ERROR is set if the input values
are invalid date or time values.
:=
CONCAT_TOD_INT(HOUR
:= MINUTE_value,
:= SECOND_value,
:= MILLISECOND_value,
=> ERROR);
:= HOUR_value,

Advertisement

Table of Contents
loading

Table of Contents