Program instructions
7.5 Convert
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
207
Example: Integer to ASCII
Convert the integer value at VW2 to
8 ASCII characters starting at VB10,
using a format of 16#0B (a comma
for the decimal point, followed by 3
digits).
LD I2.3
ITA VW2, VB10, 16#0B
Convert the real value at VD2 to 10
ASCII characters starting at VB10,
using a format of 16#A3 (a period for
the decimal point, followed by 3 dig-
its).
LD I2.3
RTA VD2, VB10, 16#A3
Assigning a constant value for instructions (Page 69)