beautypg.com

HEIDENHAIN TNC 306 Technical Manual User Manual

Page 386

background image


7-96

TNC 416/TNC 406/TNC 306

Commands

3/2000

Byte information in brackets:
A shorter command is employed in certain high-priority program sequences.

Operands: jump address (LBL)

Operation:
A CMF command is a conditional Call Module. If the Logic Accumulator is "0", the Module with the
specified jump address (Label) is processed. If the Logic Accumulator is "1", the main program
continues without a Call Module. This command interrupts a logic sequence.

Example for the commands CM, CMT, CMF

A certain Module is to be called, depending on input I5.

Initial state:

Input I5 = 0

Line Instruction

Accumulator content

Operand content

Bit

31

.

.

.

7

0

... x x x x x x X x x x x x x x

1

L I5

... x x x x x x 0 x x x x x x x

0

2

CMF 10

... x x x x x x 0 x x x x x x x

3

L M100

... x x x x x x 1 x x x x x x x

1



499 EM

500 LBL 10

501 L I3

... x x x x x x 0 x x x x x x x

0

502 OM 500

... x x x x x x 1 x x x x x x x

1

503 = O20

... x x x x x x 1 x x x x x x x

1

504 EM

Line 1: Load the operand contents in the Accumulator.
Line 2: Dependent on input I5, the Call Module is processed.
Line 499: End Module of the main program.
Line 500: Start of the Module, identified by LBL.
Line 501: Instruction in the subprogram.
Line 502: Instruction in the subprogram.
Line 503: Instruction in the subprogram.
Line 504: End Module: Effects the return to the main program.
Line 3: The main program continues at this point once the Module is processed.

This manual is related to the following products: