EasyManuals Logo

Haas VF Series Operator's Manual

Haas VF Series
564 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #361 background imageLoading...
Page #361 background image
36196-8000
MACROS
June 1999
MACRO S UBROUTINE C ALL (G65)
G65 is the command that calls a subroutine with the ability to pass arguments to it. The format follows.
[N#####] G65 P##### [L####] [arguments] ;
Anything enclosed in brackets is optional. This should not be confused with expression brackets that are
explained below. The G65 command requires a P address parameter corresponding to any program number
currently in memory. When the optional L address is used the macro call is repeated the specified number of
times.
In Example 1, subroutine 1000 is called once with no parameters passed to the routine. G65 calls are similar
to, but not the same as, M98 calls. Up to four G65 calls can be made at the same time, (Nesting four deep).
Example 1: G65 P1000 ; (Call subroutine 1000 as a macro)
M30 ; (Program stop)
O1000 ; (Macro Subroutine)
...
M99 ; (Return from Macro Subroutine)
In Example 2, subroutine 9010 is designed to drill a sequence of holes along a line whose slope is determined
by the X and Y arguments that are passed to it in the G65 command line. The Z drill depth is passed as Z, the
feed rate is passed as F, and the number of holes to be drilled is passed as T. The line of holes is drilled
starting from the current tool position when the macro subroutine is called.
Example 2: G00 G90 X1.0 Y1.0 Z.05 ; (Position tool)
G65 P9010 X.5 Y.25 Z.05 F10. T10 ; (Call 9010)
G28 M30 ;
O9010 ; (Diagonal hole pattern)
F#9 ; (F=Feed rate)
WHILE [#20 GT 0] DO1; (Repeat T times)
G91 G81 Z#26 ; (Drill To Z depth)
#20=#20-1 ; (Decrement counter)
IF [#20 EQ 0] GOTO5 ; (All holes drilled)
G00 X#24 Y#25 ; (Move along slope)
N5 END1 ;
M99 ; (Return to caller)

Table of Contents

Other manuals for Haas VF Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Haas VF Series and is the answer not in the manual?

Haas VF Series Specifications

General IconGeneral
Machine TypeVertical Machining Center
ControlHaas CNC Control
Z-Axis Travel20-30 inches (varies by model)
Y-Axis Travel16 - 30 inches (varies by model)
Spindle Motor20-30 hp (depending on model)
Tool Capacity20-40 tools (varies by model)

Related product manuals