beautypg.com

HEIDENHAIN TNC 306 Technical Manual User Manual

Page 481

background image

1-2

TNC 416/TNC 406/TNC 306

3/2000

• In MODE/AXIS LIMIT, limit values can be entered in addition to the software limit switch values

of the machine parameters. The smaller of each two values is used for range checking.
An edited value is saved with the END key. The previous value can be restored through NOENT.
The software limit switch values from the machine parameters can be transferred by soft key
(TRANSFER FROM MP) to the MODE window.

• The following structured program commands were added to the PLC syntax:

IFT

(IF LOGIC-ACCU TRUE)

Following code only if logic accu=1

IFF

(IF LOGIC-ACCU FALSE)

Following code only if logic accu=0

ELSE

(ELSE)

Following code only if IF is not fulfilled

ENDI

(END OF IF-STRUCTURE)

End of the IF structure

REPEAT (REPEAT)

Repeat from here the program sequence

UNTILT

(UNTIL TRUE)

Repeat sequence until logic accu = 1

UNTILF

(UNTIL FALSE)

Repeat sequence until logic accu = 0

WHILET (WHILE TRUE)

Runs the sequence if logic accu = 1

WHILEF (WHILE FALSE)

Runs the sequence if logic accu = 0

ENDW (END WHILE)

End of program sequence, return jump to beginning

• To operate the index register, commands were introduced that permit data exchange between

word accumulator and index register or stack and index register:

LX (Load Index to Accu)

Index register

--> Word accu

=X (Store Accu to Index)

Word accu

--> Index register

PSX (Push Index Register)

Index register

--> Stack

PLX (Pull Index Register)

Stack

--> Index register

INCX

(Increment Index register)

DECX (Decrement Index register)
BSX (BIT SET)

The bit that was addressed by index is set to 1.

BCX (BIT CLEAR) The bit that was addressed by index is set to 0 .
BTX (BIT TEST)

Status of the bit that was addressed by index is interrogated.

The following address types are possible:
Mn[X]

Operand number = n+X

In[X]
On[X]
Cn[X]
Tn[X]

Bn[X]

Operand number= n+X

Wn[X]

Operand number= n+2*X

Dn[X]

Operand number= n+4*X

• It is now possible to assign label names with up to 8 places instead of the previous label

numbers. The maximum label number is 1000.

This manual is related to the following products: