HEIDENHAIN TNC 335 Technical Manual User Manual

Page 476

Advertising
background image


8/95

TNC 360

3 Commands

7-97

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.

Advertising