Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions
8.2 String and character
ENO
Description
0
Illegal P value where P=0 or P is greater than the current string length
0
Parameter SIZE must be greater than parameter PREC.
Table 8- 31
IN string
"123"
"-00456"
"123.45"
"+2345"
"00123AB"
"123"
"123.45"
"1.23e-4"
"1.23E-4"
"12,345.67"
"3.4e39"
"-3.4e39"
"1.17549e-38"
"12345"
"A123"
""
"++123"
"+-123"
Table 8- 32
Data type
UInt
UInt
UDInt
Real
LReal
Real
Real
Real
1
300
Examples of S_CONV string to value conversion
OUT data type
Int or DInt
Int or DInt
Int or DInt
Int or DInt
Int or DInt
Real
Real
Real
Real
Real
Real
Real
Real
SInt
N/A
N/A
N/A
N/A
Examples of S_CONV value to string conversion
IN value
123
0
12345678
+9123.456
+9123.4567890123
-INF
+INF
NaN
The "
" characters represent space characters that fill empty positions in the right-justified field
x
that is allocated for the converted value.
OUT value
123
-456
123
2345
123
123.0
123.45
1.23
1.23
12345.67
3.4
-3.4
1.17549
0
0
0
0
0
OUT string
1
"xxx123" TRUE
"xxxxx0" TRUE
"xxx12345678" TRUE
"xx+9.123456E+3" TRUE
"xx+9.1234567890123
E+3"
"xxxxxxxxxxxINF" FALSE
"xxxxxxxxxxxINF" FALSE
"xxxxxxxxxxxNaN" FALSE
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
ENO
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
FALSE
FALSE
FALSE
FALSE
FALSE
ENO
TRUE
Table of Contents
loading

Table of Contents