Panasonic FP Series Programming Manual page 649

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable Enable is set to TRUE, the function is executed. The decimal value in
DecimalInput is converted to a BCD hexadecimal value and stored in the variable BCD_output.
LD
ST
When programming with structured text, enter the following:
IF
Enable
F80_BCD(DecimalInput, BCD_output);
END_IF;
648
THEN

Advertisement

Table of Contents
loading

Table of Contents