HEIDENHAIN TNC 335 Technical Manual User Manual

Page 483

Advertising
background image


7-104

TNC 360

4 PLC Modules

8/95

4.3 Module 9010: Indexed reading of Byte

Module 9011: Indexed reading of Word
Module 9012: Indexed reading of Doubleword

Modules 9010, 9011 and 9012 can be used to read a Byte, Word or Doubleword, and load the result
onto the STACK. This allows indexed reading of the Word memory when a Variable is used to define
the memory location.

Module call:

PS K/B/W/D

Address of a Byte, where the contents address another Byte, the contents of
which are to be copied to the target address.

CM9010
PL B

Target address - Byte

PS K/B/W/D

Address of a Word, where the contents address another Word, the contents of
which are to be copied to the target address.

CM9011
PL W

Target address - Word

PS K/B/W/D

Address of a Doubleword, where the contents address another Doubleword,
the contents of which are to be copied to the target address.

CM 9012
PL D

Target address - Doubleword

The addresses which are given must lie within the valid range (0 to 1023). For Word addressing the
address must be divisible by two, for Doubleword addressing by four.

If the Byte, Word or Doubleword is not read correctly, marker M3171 will be set.

Example for Module 9010:

STACK

Word memory

35 (80)

35

80

80

B10

B35

B100

..

.
PS B10
CM9010
PL B100

..

.

Advertising