Panasonic FP Series Programming Manual page 193

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
TOD_TO_UDINT
TOD_TO_UDINT converts a value of the data type TIME_OF_DAY into a value of the data type
Description
Unsigned DOUBLE INTEGER according to its internal format, which is seconds elapsed since
"00:00:00".
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.
Availability of TOD_TO_UDINT (see page 1332)
PLC types
Data types
Data type
TOD
UDINT
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:
UDINT_value
192
TIME_OF_DAY into Unsigned DOUBLE INTEGER
I/O
Function
Input
input data type
Output
conversion result
:= TOD_TO_UDINT(TOD_value);

Advertisement

Table of Contents
loading

Table of Contents