Siemens Simatic S7-200 System Manual page 300

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

Advertisement

Instruction Set
ASCII to HEX, HEX to ASCII
L
A
EN
D
IN
LEN
EN
IN
LEN
S
ATH IN, OUT, LEN
T
L
HTA IN, OUT, LEN
212
214
10-112
The ASCII to HEX instruction converts the ASCII string of length
(LEN), starting with the character (IN), to hexadecimal digits
ATH
starting at a specified location (OUT). The maximum length of
the ASCII string is 255 characters.
The HEX to ASCII instruction converts the hexadecimal digits,
OUT
starting with the input byte (IN), to an ASCII string starting at a
specified location (OUT). The number of hexadecimal digits to
be converted is specified by length (LEN). The maximum
HTA
number of the hexadecimal digits that can be converted is 255.
Operands:
OUT
Legal ASCII characters are the hexadecimal values 30 to 39,
and 41 to 46.
These instructions affect the following Special Memory bits:
215
216
SM1.7 (illegal ASCII)
IN, OUT: VB, IB, QB, MB, SMB, *VD, *AC, SB
LEN:
VB, IB, QB, MB, SMB, AC, Constant,
*VD, *AC, SB
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02

Advertisement

Table of Contents
loading

Table of Contents