Read in word range (module 9010/9011/9012) – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 403

3/2000
TNC 416/TNC 406/TNC 306
PLC Modules for TNC 416/406
7-113
4.3
Read in Word Range (Module 9010/9011/9012)
A byte, word or double word is read from the defined position in the word memory and returned to
the stack as an output variable. 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 9011: The defined address is not a word address (not divisible by 2).
- Module 9012: The defined address is not a double word address (not divisible by 4).
Call:
PS
B/W/D/K
(Address)
CM
9010
read byte
PL
B
(Value)
or
PS
B/W/D/K
(Address)
CM
9011
read word
PL
W
(Value)
or
PS
B/W/D/K
(Address)
CM
9012
read double word
PL
D
(Value)
Example of Module 9010
STACK
Wortspeicher
35 (80)
35
80
80
B10
B35
B100
..
.
PS B10
CM9010
PL B100
..
.
Error status after call: M3171 =
0: Byte/word/double word was read
1: Error condition see above