Program instructions
7.5 Convert
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
251
Examples of valid and invalid input strings
Example string conversion: Substring to integer, double integer, and real
LAD
STL
S_I converts the numeric string to an inte-
ger value.
S_DI converts the numeric string to a
double integer value.
S_R converts the numeric string to a real
value.
Network 1
LD I0.0
STI VB0, 7, VW100
STD VB0, 7, VD200
STR VB0, 7, VD300
See also
Assigning a constant value for instructions (Page 83)