Extended instructions   
9.2 String and character 
  S7-1200 Programmable controller 
350  System Manual, V4.2, 09/2016, A5E02486680-AK 
Conversion begins in the string IN at character offset P and continues until the end of the 
string, or until the first character is encountered that is not "+", "-", ".", ",", "e", "E", or "0" to 
"9". The result is placed at the location specified in parameter OUT. 
String data must be initialized before execution as a valid string in memory. 
The FORMAT parameter for the STRG_VAL instruction is defined below. The unused bit 
positions must be set to zero.  
Table 9- 24  Format of the STRG_VAL instruction 
 
 
 
 
 
1 = "," (comma character)
 
0 = "." (period character) 
 
Table 9- 25  Values of the FORMAT parameter 
Decimal point representation 
Fixed point 
Exponential 
Rules for STRG_VAL conversion: 
●  If the period character "." is used for the decimal point, then commas "," to the left of the 
decimal point are interpreted as thousands separator characters. The comma characters 
are allowed and ignored. 
●  If the comma character "," is used for the decimal point, then periods "." to the left of the 
decimal point are interpreted as thousands separator characters. These period 
characters are allowed and ignored. 
●  Leading spaces are ignored.