Panasonic FP Series Programming Manual page 647

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 number of bytes to be
converted is entered directly at the contact pin for s2. This programming example is based on the
example for the conversion of a negative number outlined above.
LD
ST
When programming with structured text, enter the following:
IF
Enable
F78_DA2BIN( s1_Start:= ASCII_input[0] ,
s2_Number:=
d=>
END_IF;
646
THEN
10
,
DINT_output
);

Advertisement

Table of Contents
loading

Table of Contents