Index Register (X Register) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.9 INDEX register (X register)

July 2013
You can use the index register for:
Data transfer
Buffering results
Indexed addressing of operands
The index register is 32 bits wide.
You can use the X register anywhere in the program. The iTNC does not check
whether the current content is valid. Exception: During indexed write
accessing the iTNC checks whether the amount of available address space is
exceeded.
Example: = B100[X]
If the permitted addressable storage is exceeded, the iTNC issues a blinking
error message: PLC: index range incorrect. Acknowledge the error
message by pressing the END key. After restarting the iTNC you must not
acknowledge the POWER INTERRUPTED message. Switch to the PLC editor,
where you will be shown the error line.
Note
At the beginning of the PLC cycle the iTNC sets the index register to 0.
Assign the index register a defined value before using it in your program.
The following addresses are valid:
Mn[X]
In[X]
On[X]
Cn[X]
Tn[X]
Operand number = n+X
Bn[X]
Operand number = n+X
Wn[X]
Operand number = n+2*X
Dn[X]
Operand number = n+4*X
BTX
Content of index register = operand
BCX
Content of index register = operand
BSX
Content of index register = operand
Sn[X]
String number = n+X
S#Dn[X] Dialog text number = n+X
S#En[X] Error text number = n+X
S#An[X] ASCII code +X
Sn^X
Substring from X-th character of the n-th string
The types "S", K, and K$ cannot be indexed.
Note
If you address S#Dn[X] or S#En[X], the iTNC loads the sequence
<SUB>Dnnn or <SUB>Ennn in the string accumulator, where nnn is the
modified string number.
9.9 INDEX register (X register)
1819

Advertisement

Table of Contents
loading

Table of Contents