HEIDENHAIN iTNC 530 HSCI Technical Manual page 1820

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

Advertisement

Commands for
operating the index
register
Error and dialog
files
1820
The following commands are available for exchanging data between the word
accumulator and index register, or between the stack and index register:
LX
(Load index to accumulator)Index register – word accumulator
=X
(Store accumulator to index) Word accumulator – index register
PSX
(Push index register) Index register – stack
PLX
(Pull index register) Stack – index register
INCX
(Increment index register)
DECX
(Decrement index register)
Starting with software version 05, indexed access to error and dialog files is
possible via the operands B/W/D.
In the example, a copy of S1 ("TEST" is loaded into S2, and S3 then contains
the string "TEST", but only starting from the 3rd character ("ST"). Also, indexed
access to error and dialog files is shown:
#define Ofs
#define Start
#define offset_dialog
#define offset_error
L
S#"TEST"
=
S1
L
K1
=
Ofs
L
K2
=
Start
=X
L
S0[Ofs]
=
S2
L
S2^Start
=
S3
L
K5
=
offset_dialog
L
S#D10[offset_dialog]
=
S0[offset_dialog]
L
K6
=
offset_error
L
S#E10[offset_error]
=
S0[offset_error]
EM
D100
D104
D108
D112
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents