HEIDENHAIN TNC 426 PB/M Technical Manual page 1028

Table of Contents

Advertisement

Example of
Module 9020
Function
Save the address
(B10) of the byte to
be written from the
word accumulator to
the data stack.
Save byte B100 from
the word
accumulator in the
data stack.
Write data stack in
byte B35.
December 2001
Module 9020/9021/9022 Write in the word range
The TNC writes the given 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
M4203
0
1
W1022
3
5
Initial state:
Byte
B10
= 35 (address)
Byte
B100 = 120 (byte to be written)
Byte
B35
= ?
STL
Accumulator content (dec)
PS B10
PS B100
CM 9020
PLC Modules
Meaning
Byte was written
Error code in W1022
Invalid address was programmed
Module 9021: Specified address is not a word address
Module 9022: Specified address is not a double word
address
x x
x x
x x
1 2 0
1 2 0
Data stack (dec)
x x
3 5
3 5
1 2 0
7 – 179

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