Siemens SIMATIC S7-200 System Manual page 120

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

Advertisement

S7-200 Programmable Controller System Manual
Example: ASCII to Hexadecimal Instruction
'3'
'E'
33
45
VB30
Example: Integer to ASCII Instruction
12345
VW2
Example: Real to ASCII Instruction
123.45
VD2
106
'A'
3E
41
ATH
VB40
' '
' '
'1'
20
20
31
ITA
VB10
VB11
...
' '
' '
20
20
RTA
VB10
VB11
...
Network 1
LD
I3.2
ATH
VB30, VB40, 3
Ax
Note: The X indicates that the
"nibble" (half of a byte) is unchanged.
Network 1
//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
'2'
','
'3'
32
2C
33
Network 1
//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 digits).
LD
I2.3
RTA
VD2, VB10, 16#A3
' '
'1'
'2'
'3'
20
31
32
33
'4'
'5'
34
35
'.'
'4'
'5'
'0'
2E
34
35
30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents