HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 599

4.1.3 Write in Word Range (Module 9020/9021/9022)
The defined byte, word or doubleword is written to the defined position in the word memory.
Indexed reading in the memory is possible by specifying a variable as the name of the memory cell.
Possible errors:
- The defined address is outside the valid range (0..1023).
- Module 9021: The defined address is not a word address (not divisible by 2).
- Module 9022: The defined address is not a doubleword address (not divisible by 4).
Call:
PS
B/W/D/K
(Address)
PS
B/W/D/K
CM
9020
write byte
(Value)
or
PS
B/W/D/K
(Address)
PS
B/W/D/K
CM
9021
write word
(Value)
or
PS
B/W/D/K
(Address)
PS
B/W/D/K
CM
9022
write doubleword
(Value)
Example of Module 9020
STACK
Wortspeicher
120
35
120
120
B10
B35
B100
..
.
PS B10
PS B100
CM9020
..
.
35
Error status after call: M3171 =
0: Byte/word/doubleword was written
1: Error condition see above