beautypg.com

2 read in word range (module 9010/9011/9012) 7-137 – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 598

background image


01.98

TNC 407/TNC 415/TNC 425

4 PLC Modules

7-137

4.1.2 Read in Word Range (Module 9010/9011/9012)

A byte, word or doubleword 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 doubleword 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 doubleword

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/doubleword was read
1: Error condition see above