06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.4 Module 9020: Indexed writing of Byte<br />

Module 9021: Indexed writing of Word<br />

Module 9022: Indexed writing of Doubleword<br />

Modules 9020, 9021 and 9022 can be used to write the contents of a Byte, Word or Doubleword to<br />

a given address in the Word memory. This makes indexed writing possible in the Word memory,<br />

when a variable is used to define the memory cell.<br />

Module call:<br />

PS K/B/W/D Address of a Byte whose contents address another Byte into which the value of a<br />

second Byte is entered.<br />

PS K/B/W/D Address of the Byte where the value to be transferred is stored.<br />

CM 9020<br />

PS K/B/W/D Address of a Word, where the contents address another Word, where a value is to<br />

be entered from a second Word.<br />

PS K/B/W/D Address of the Word, where the value to be transferred is stored.<br />

CM 9021<br />

PS K/B/W/D Address of a Doubleword, where the contents address another Doubleword<br />

where a value is to be entered from a second Doubleword.<br />

PS K/B/W/D Address of the Doubleword, where the value to be transferred is stored.<br />

CM 9022<br />

The addresses which are given must lie within the valid range (0 to 1023). For Word addressing, the<br />

address must be divisible by two, and for Doubleword addressing by four.<br />

If the Byte, Word or Doubleword is not transferred correctly marker M3171 will be set.<br />

Example for Module 9020:<br />

B10<br />

B35<br />

B100<br />

Word memory<br />

35<br />

120<br />

120<br />

STACK<br />

8/95 <strong>TNC</strong> <strong>360</strong> 4 PLC Modules 7-105<br />

120<br />

35<br />

.<br />

PS B10<br />

PS B100<br />

CM9020<br />

.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!