beautypg.com

Write in word range (module 9020/9021/9022) – HEIDENHAIN TNC 306 Technical Manual User Manual

Page 404

background image


7-114

TNC 416/TNC 406/TNC 306

PLC Modules for TNC 416/406

3/2000

4.4

Write in Word Range (Module 9020/9021/9022)

The defined byte, word or double word 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 double word 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 double word

(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/double word was written
1: Error condition see above

This manual is related to the following products: