Write In Word Range - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

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
<Number of byte to be written>
PS
B/W/D/K
<byte to be written>
CM
9020
write byte
or
PS
B/W/D/K
<Number of word to be written>
PS
B/W/D/K
<byte to be written>
CM
9021
write word
or
PS
B/W/D/K
<Number of doubleword to be written>
PS
B/W/D/K
<byte to be written>
CM
9022
write doubleword
Example of Module 9020
Wortspeicher
B10
35
B35
120
B100
120
Error status after call: M3171 =
7-138
TNC 407/TNC 415/TNC 425
STACK
120
35
0: Byte/word/doubleword was written
1: Error condition see above
4 PLC Modules
(Address)
(Value)
(Address)
(Value)
(Address)
(Value)
. .
.
PS B10
PS B100
CM9020
. .
.
01.98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents