Conversion instructions
637
Part III FP Instructions
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the number of bytes specified by s2
exceeds the area specified by d.
the data specified by s2 is recognized as
"0".
the converted result exceeds the area
specified by d.
the number of bytes of converted result
exceeds the number of bytes specified
by s2.
Error flags
Example
In this example, the same POU header is used for all programming languages. For an 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 start is set to TRUE, the function is carried out. This programming example is
based on the example for the conversion of a negative number outlined above. The monitor value
icon is activated for both the LD and IL bodies; the monitor header icon is activated for the LD
body.
LD
ST
When programming with structured text, enter the following:
IF start THEN
F75_BIN2A( s1:= DataInput ,
s2_Number:= 6 ,
d_Start=> ASCOutput[0] );
END_IF;