Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1754

Hide thumbs Also See for MANUALplus 620:

Advertisement

Example of
Module 9020
1754
Module 9020/9021/9022 Write in the word range
The control writes the specified byte, word or double word to the defined
location in the word memory. Indexed writing is possible by specifying a
variable as designation of the memory location.
Call:
PS
B/W/D/K <Address of the byte to be written>
PS
B/W/D/K <Byte to be written>
CM
9020
; WRITE BYTE TO ADDRESS
PS
B/W/D/K <Address of the word to be written>
PS
B/W/D/K <Word to be written>
CM
9021
; WRITE WORD TO ADDRESS
PS
B/W/D/K <Address of the double word to be written>
PS
B/W/D/K <Double word to be written>
CM
9022
; WRITE DOUBLE WORD TO ADDRESS
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
3
ErrorCode (W1022)
5
Initial state:
Byte
B10
= 35 (address)
Byte
B100 = 120 (byte to be written)
Byte
B35
= ?
Function
STL
Save the address
PS B10
(B10) of the byte to
be written from the
word accumulator in
the data stack
Save byte B100 from
PS B100
the word
accumulator in the
data stack
Write data stack to
CM 9020
byte B35
Meaning
Byte was written
Error code in NN_GenApiModuleErrorCode
(W1022)
Invalid address was programmed
Module 9021: Specified address is not a
word address
Module 9022: Specified address is not a
double word address
Accumulator
content (dec)
35
120
120
HEIDENHAIN Technical Manual MANUALplus 620
Data stack (dec)
35
120

Advertisement

loading