
TRT
TILTING ROTARY
TABLE
TRT
O
M
PERATOR’S
ANUAL
TILTING ROTARY
TABLE
96-5048 rev E
54
June 2002
Explanation:
Step #2 tells the control to jump to step #5. The control will do steps #5 and #6 three times with step #7
marking the end of the subroutine. After finishing the subroutine the control jumps back to the step following the
"g 96" call or step #3. Since step #4 is not part of a subroutine, it marks the end of program and will return the
control to step #3
As you can see, the difference in using subroutines in example #5 only saves two lines of programs. However,
if you wanted to repeat the pattern eight times, you would save twelve program lines. In the subroutine ex-
ample, only the loop count in step #2 would be changed to increase the number of times you wish to repeat the
pattern.
As an aid in programming subroutines, think of the subroutine as a separate program and write it on a separate
piece of paper. Program the control using "g 96" when you want to invoke the previously written subroutine.
When finished, end the program with an End 95 code. Now enter your subroutine and note the step it begins
with. Enter that step in the "Loc" register of the "g 96" call.
Example #6
You wish to tilt the table
-10 degrees
(-10
o
), then index
15, 20, 25, 30 degrees
in sequence four times and
then drill a five-hole bolt pattern.
STEP MODE (M:) G CODE STEP SIZE FEED RATE LOOP COUNT
01
A
[91]
000.000
080.000
1
B
[91]
[-10.000]
080.000
1
01
A
[96]
000.000
LOC
[4]
[4]
B
[96]
000.000
080.000
1
02
A
[98]
000.000
080.000
[5]
B
[98]
000.000
080.000
1
03
A
[95]
000.000
080.000
1
B
[95]
000.000
080.000
1
(Main Program Previous page-------subroutine below)
04
A
[91]
[15.000]
080.000
1
B
[91]
000.000
080.000
1
05
A
[91]
[20.000]
080.000
1
B
[91]
000.000
080.000
1
06
A
[91]
[25.000]
080.000
1
B
[91]
000.000
080.000
1
07
A
[91]
[30.000]
080.000
1
B
[91]
000.000
080.000
1
08
A
[99]
000.000
080.000
1
B
[99]
000.000
080.000
1
PROGRAMMING EXAMPLES
Содержание TRT210
Страница 2: ...Haas Technical Publications Manual_Archive_Safety_Pages Rev A June 6 2013...
Страница 6: ...MILL WARNING DECALS Haas Technical Publications Manual_Archive_Safety_Pages Rev A June 6 2013...
Страница 7: ...LATHE WARNING DECALS Haas Technical Publications Manual_Archive_Safety_Pages Rev A June 6 2013...