IBM EGX-600 Engraver User Manual


 
96
Chapter 5 - The Teaching Feature
5-7. List of Commands
17 J
Function This jumps to the specified label when an input port on expansion connector 2 is at the specified state.
Value Label name
Value Input port number (1 through 8)
Value Input-port state (1: High, 0: Low)
This checks the state of an input port on expansion connector 2, then either executes a jump if the input port is at the
specified state or proceeds to the following step if not at the specified state. This checks one of the eight input ports and
determines whether it is at the specified state (high or low).
For information about the specifications of expansion connector 2, see p.143 "Expansion Connector 2."
18 CALL
Function This jumps to the specified label, then returns to the original step.
Value Label name
This jumps to the step to which the specified label name has been assigned. When a [RETURN] command is encountered
thereafter, execution returns to the step where the jump occurred and resumes with the following step. This is uses to call
a subroutine. You cannot call a second subroutine from within a first one (that is, nested subroutines are not permitted).
19 C
Function This calls the specified label when an input port on expansion connector 2 is at the specified state.
Value Label name
Value Input port number (1 through 8)
Value Input-port state (1: High, 0: Low)
This checks the state of an input port on expansion connector 2, then either executes a call if the input port is at the
specified state or proceeds to the following step if not at the specified state. This checks one of the eight input ports and
determines whether it is at the specified state (high or low).
For information about the specifications of expansion connector 2, see p.143 "Expansion Connector 2."
20 RETURN
Function This signals the end of a subroutine called using a [CALL] or [C] command.
Value None
This is used in conjunction with the [CALL] or [C] command. When a [RETURN] command is executed after a jump
made using these commands, execution returns to the step where the jump occurred. Nothing happens if this command is
executed before a jump has been performed.
1:
17 J
Label name
10
1:
18 CALL
Label name
1:
19 C
Label name
10
❶❷ ❸
❷❸