EasyManua.ls Logo

HEIDENHAIN TNC 430 PA/M - Case Branch

HEIDENHAIN TNC 430 PA/M
1135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
December 2001 Program Structures 7 173
7.13.4 CASE BRANCH
Indexed module call
(CASE)
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.
End indexed
module call (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 STL
Case command and operand; the internal address
of the desired module must be saved in the
operand
CASE B150
Call module if operand content = 0
Internal addressing from 0 to max. 127
CM 100
Call module if operand content = 1 CM 200
Call module if operand content = 2 CM 201
Call module if operand content = 3 CM 202
Call module if operand content = 4 CM 203
Call module if operand content = 5 CM 204
Call module if operand content = 6 CM 300
End of the CASE statement ENDC

Table of Contents

Related product manuals