Siemens SIMATIC S7-200 System Manual page 125

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Valid Input Strings
for Integer and Double Integer
Input String
Output Integer
'123'
'- -00456'
'123.45'
'+2345'
'000000123ABCD'
Figure 6-21
Examples of Valid and Invalid Input Strings
Example: String Conversion: Substring to Integer, Double Integer and Real
Valid Input Strings
for Real Numbers
Input String
123
- -456
123
2345
'00.000000123'
123
Network 1
LD
STI
STD
STR
VB0
11
'T'
'e'
'm'
After executing the network:
VW100 (integer) = 98
VD200 (double integer) = 98
VD300 (real) = 98.6
S7-200 Instruction Set
Output Real
'123'
123.0
'- -00456'
- -456.0
'123.45'
123.45
'+2345'
2345.0
0.000000123
//Converts the numeric string to an integer.
//Converts the numeric string to a double integer.
//Converts the numeric string to a real.
I0.0
VB0,7,VW100
VB0,7,VD200
VB0,7,VD300
'p'
' '
' '
'9'
'8'
Chapter 6
Invalid Input Strings
Input String
'A123'
' '
'++123'
'+- -123
'+ 123'
VB11
'.'
'6'
'F'
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents