Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1748

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.36 CASE Branch
Indexed module call
(CASE)
End of indexed
module call (ENDC)
1748
Syntax:
CASE (CASE OF)
Operands:
B/W
Action:
Selects a certain subroutine from a list of module calls (CM). These CM
commands must follow the CASE statement immediately 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 ENDC command.
Syntax:
ENDC (ENDCASE)
Operands:
None
Action:
Use the ENDC command in connection with the CASE command. It must
come immediately after 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
HEIDENHAIN Technical Manual MANUALplus 620
STL
CASE B150
CM 100
CM 200
CM 201
CM 202
CM 203
CM 204
CM 300
ENDC

Advertisement

loading