HEIDENHAIN TNC 335 Technical Manual User Manual
Page 484

8/95
TNC 360
4 PLC Modules
7-105
4.4 Module 9020: Indexed writing of Byte
Module 9021: Indexed writing of Word
Module 9022: Indexed writing of Doubleword
Modules 9020, 9021 and 9022 can be used to write the contents of a Byte, Word or Doubleword to
a given address in the Word memory. This makes indexed writing possible in the Word memory,
when a variable is used to define the memory cell.
Module call:
PS K/B/W/D
Address of a Byte whose contents address another Byte into which the value of a
second Byte is entered.
PS K/B/W/D
Address of the Byte where the value to be transferred is stored.
CM 9020
PS K/B/W/D
Address of a Word, where the contents address another Word, where a value is to
be entered from a second Word.
PS K/B/W/D
Address of the Word, where the value to be transferred is stored.
CM 9021
PS K/B/W/D
Address of a Doubleword, where the contents address another Doubleword
where a value is to be entered from a second Doubleword.
PS K/B/W/D
Address of the Doubleword, where the value to be transferred is stored.
CM 9022
The addresses which are given must lie within the valid range (0 to 1023). For Word addressing, the
address must be divisible by two, and for Doubleword addressing by four.
If the Byte, Word or Doubleword is not transferred correctly marker M3171 will be set.
Example for Module 9020:
STACK
Word memory
120
35
120
120
B10
B35
B100
..
.
PS B10
PS B100
CM9020
..
.
35