89
96-8000 Rev AC
May 2010
Programming
M
acroS
i
ntrodUction
This control feature is optional; call your dealer for information.
Macros add capabilities and flexibly to the control that are not possible with
standard G-code. Some possible uses are, families of parts, custom canned
cycles, complex motions, and driving optional devices. The possibilities are
almost endless.
A Macro is any routine/subprogram that may be run multiple times. A macro
statement can assign a value to a variable or read a value from a variable,
evaluate an expression, conditionally or unconditionally branch to another point
within a program, or conditionally repeat some section of program.
Here are a few examples of the applications for Macros.
• Tools For Immediate, On-Table Fixturing Many setup procedures can be
semi-automated to assist the machinist. For instance, suppose a standard
clamp with a standard bolthole pattern is used. If it is discovered, after setup,
that a fixture will need an additional clamp and if a macro subroutine has been
programmed for drilling the bolt pattern of the clamp, then the following two-
step procedure is all that is needed for adding the clamp to the fixture.
1. Determine X, Y, and Z coordinates and angle where the clamp is to be
placed by jogging the machine to the proposed clamp position and reading the
position coordinates from the machine display.
2. Execute the following command in MDI mode:
G65 P2000 X??? Y??? Z??? A??? ;
Where “???” Are the values determined in Step 1.
Here, macro 2000 (p2000) does the work since it was designed to drill the
clamp bolthole pattern at the specified angle of A. Essentially; the machinist
has created a custom canned cycle.
•
Simple Patterns That Are Repeated
Patterns that recur over and over again
can be defined using macros and stored. For example:
1. Bolt hole patterns
2. Slotting
3. Angular patterns, any number of holes, at any angle, with any spacing
4. Specialty milling such as soft jaws
5. Matrix Patterns, (e.g. 12 across and 15 down)
6. Fly cutting a surface, (e.g. 12 inches by 5 inches using a 3 inch fly cutter)
•
Automatic Offset Setting Based On The Program
With macros, coordinate
Содержание 96-8000
Страница 15: ...6 96 8000 Rev AC May 2010 Mill Warning Decals ...
Страница 16: ...7 96 8000 Rev AC May 2010 Safety Lathe Warning Decals ...
Страница 41: ...32 96 8000 Rev AC May 2010 ...
Страница 93: ...84 96 8000 Rev AC May 2010 ...
Страница 129: ...120 96 8000 Rev AC May 2010 ...
Страница 133: ...124 96 8000 Rev AC May 2010 ...
Страница 268: ......
Страница 269: ......