July 2013 9.14 Program Structures 1845
End of indexed
module call (ENDC)
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 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