Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1758

Hide thumbs Also See for MANUALplus 620:

Advertisement

Example
1758
Module 9054 Conversion from ASCII/hexadecimal → binary
Module 9054 converts strings of ASCII-coded hexadecimal values into a block
of binary values in the word-marker range. The string in the specified string
memory is interpreted as a sequence of ASCII-coded hexadecimal numbers
and converted into a block of corresponding binary bytes. Two ASCII
characters produce one binary byte. The control saves the binary block
beginning at the specified address in the word-marker range.
Call:
PS
B/W/D/K <String address in which the hexadecimal value is saved>
PS
B/W/D/K <Word address from which the control saves the binary
values>
CM
9054
Error recognition:
Marker
NN_GenApiModule
Error (M4203)
NN_GenApiModule
ErrorCode (W1022)
Initial state:
SO
= „63"
BO
= 99
Function
STL
Push string address
PS K+0
S0 onto the data
stack
Push word address
PS B0
B0 onto the data
stack
Conversion of the
CM 9054
two ASCII characters
6 and 3 to the binary
number 99
Value
Meaning
0
Number was converted
1
For error code see
NN_GenApiModuleErrorCode (W1022)
2
Invalid string address
11
Invalid word address
Odd number of characters in the string
or a character that cannot be interpreted
as hexadecimal
HEIDENHAIN Technical Manual MANUALplus 620
String accu.
(characters), data stack
[bits]
63
99
01100011

Advertisement

loading