Case Branch - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.13.4 CASE BRANCH

Indexed module call
(CASE)
End indexed
module call (ENDC)
December 2001
Syntax:
CASE (CASE OF)
Operands:
B/W
Action:
Select a certain subprogram from a list of module calls (CM). These CM
commands must immediately follow the CASE statement and are numbered
internally in ascending order from 0 to a maximum of 127. The content of the
operand (B, W) addresses the desired module. Subsequent entries in the jump
table (CM) must have addresses at least four bytes higher than the previous
entry.
Example:
See command ENDC.
Syntax:
ENDC (ENDCASE)
Operands:
None
Action:
Use the ENDC command in connection with the CASE command. It must
directly follow the list of CM commands.
Example:
Function
Case command and operand; the internal address
of the desired module must be saved in the
operand
Call module if operand content = 0
Internal addressing from 0 to max. 127
Call module if operand content = 1
Call module if operand content = 2
Call module if operand content = 3
Call module if operand content = 4
Call module if operand content = 5
Call module if operand content = 6
End of the CASE statement
Program Structures
STL
CASE B150
CM 100
CM 200
CM 201
CM 202
CM 203
CM 204
CM 300
ENDC
7 – 173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents