Panasonic FP Series Programming Manual page 248

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

UDINT_TO_BCD_
DWORD
UDINT_TO_BCD_DWORD converts a value of the data type Unsigned DOUBLE INTEGER into a
Description
BCD value of the data type D WORD.
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 UDINT_TO_BCD_DWORD (see page 1332)
PLC types
Data types
Data type
UDINT
BCD_DWORD
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:
BCD_value_32bit
Unsigned DOUBLE INTEGER into BCD DOUBLE WORD
I/O
Function
Input
input data type
Output
conversion result
:= UDINT_TO_BCD_DWORD(UDINT_value);
Conversion instructions
247

Advertisement

Table of Contents
loading

Table of Contents