IBM EGX-400 Engraver User Manual


 
99
Chapter 5 - The Teaching Feature
5-8. Sample Sequences
Steps 1 through 16 are the main routine, and steps 17 through 27 are a subroutine called by the [CALL] command. This
subroutine cuts a single L-shaped object. Steps 4, 6, 8, and 10 successively change the reference point for cutting, and
after each step the subroutine is called.
Note that the [FINISH] command in step 16 separates the main routine and the subroutine. More than one [FINISH]
command may safely appear within a sequence.
Label
name
LCUT
Value 1
1
ON
2
LCUT
3
LCUT
4
LCUT
5
LCUT
1
X 0, Y 30000, Z 4000
OFF
X 0, Y 0, Z 100
3
20
20
20
20
20
20
Value 2
80
X 0, Y 0, Z -50
X 2000, Y 0, Z -50
X 2000, Y 1000, Z -50
X 1000, Y 1000, Z -50
X 1000, Y 4000, Z -50
X 0, Y 4000, Z -50
X 0, Y 0, Z -50
Value
3
Value
4
Step
No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Command
21 SEL ORG
2 MOVE-ORG
10 SP
21 SEL ORG
18 CALL
21 SEL ORG
18 CALL
21 SEL ORG
18 CALL
21 SEL ORG
18 CALL
21 SEL ORG
2 MOVE ORG
3 MOVE-ZM
10 SP
22 FINISH
2 MOVE ORG
3 MOVE-ZM
8 CUT-3
8 CUT-3
8 CUT-3
8 CUT-3
8 CUT-3
8 CUT-3
8 CUT-3
2 MOVE ORG
20 RETURN
22 FINISH