Conversion instructions
676
Part III FP Instructions
Example
In this example, the same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When bExecute is set to TRUE, the instruction is carried out. It converts two 16-bit units to 2 x 4
decimal ASCII data. Offset = 1 ASCII character (8-bit).
LD
ST
When programming with structured text, enter the following:
IF DF(bExecute) THEN
F250_BTOA(s1_Control := '16-D',
s2_BinaryData := iArray1,
n_ConversionMethod := 16#214,
d_AsciiData => iAscii1);
END_IF;