HEIDENHAIN TNC 426 PB/M Technical Manual page 1027

Table of Contents

Advertisement

Example of
Module 9010
Function
Save the address
(B10) of the byte to
be read from the
word accumulator to
the data stack.
Read byte B35 and
save to the data
stack.
Save data stack in
byte B100.
7 – 178
Module 9010/9011/9012 Read in the word range
From the specified location in the word memory the TNC reads a byte, word
or double word and returns it as an output quantity to the stack. Indexed
reading is possible by specifying a variable as designation of the memory
location.
Call:
PS
B/W/D/K <Address of the byte to be read>
CM
9010
; READ BYTE
PL
B
<Target address for byte that was read>
PS
B/W/D/K <Address of the word to be read>
CM
9011
; READ WORD
PL
B
<Target address for word that was read>
PS
B/W/D/K <Address of the double word to be read>
CM
9012
;READ DOUBLE WORD
PL
B
<Target address for double word that was read>
Error recognition:
Marker
Value
M4203
0
1
W1022
3
5
Initial state:
Byte
B10
= 35 (address)
Byte
B35
= 80 (byte to be read)
Byte
B100 = ?
STL
Accumulator content (dec)
PS B10
CM 9010
PL B100
Meaning
Byte was read
Error code in W1022
Invalid address was programmed
Module 9011: Specified address is not a word address
Module 9012: Specified address is not a double word
address
x x
x x
x x
HEIDENHAIN Technical Manual TNC 426, TNC 430
Data stack (dec)
x x
3 5
8 0
3 5
8 0
8 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents