Chapter 5 Macro Program
129
I Programming
CHAPTER 5 MACRO PROGRAM
GSK980MDc provides macro programs which is similar to high level language. Variable assignment,
arithmetic operation, logical judgment and conditional branch can be realized through custom macro
program. It is in favor of the programming for special parts, lessens the complex operation and simplifies
the custom program.
Custom macro programs are similar to subprograms. However, macro program allows variable
assignment, arithmetic operation, logical judgment and conditional branch, which makes it easier to
program the same machining process.
It is easy to machine the screw holes distributed in circles (shown in the figure above).
After a macro program used in circular holes is programmed and edited, it can be performed if the NC
system has circular hole machining function.
By the following command, programming personnel can use circular holes function.
G65 P p R r A a B b K k
;
p
:
Macro program number of circular holes
r
:
Radius
a
:
Start angle of the hole
b
:
Angle of holes intervals
k
:
Holes number
In this way, users can improve the NC performance on their own. Macro programs can be either
provided by machine tool builder or defined by users.
5.1 Macro Call
Macro call (G65, G66) differs from subprogram call (M98) as described below:
1. With G65 or G66, an argument (data passed to a macro) can be specified. M98 does not have this
capability.
2. When an M98 block contains another NC command (for example, G01 X100.0 M98 P), the macro
program P_ is called after the command G01 is executed. On the other hand G65 unconditionally calls a
macro P_.
Содержание 980MDc
Страница 19: ...GSK980MDc Milling CNC User Manual XVIII ...
Страница 20: ...1 I Programming Programming Ⅰ ...
Страница 21: ...GSK980MDc Milling CNC System User Manual 2 I Programming ...
Страница 139: ...GSK980MDc Milling CNC System User Manual 120 I Programming ...
Страница 191: ...GSK980MDc Milling CNC System User Manual 172 I Programming ...
Страница 192: ...173 Ⅱ Operation Ⅱ Operation ...
Страница 193: ...GSK980MDc Milling CNC System User Manual 174 Ⅱ Operation ...
Страница 200: ...Chapter 1 Operation Mode and Display 181 Ⅱ Operation ...
Страница 201: ...GSK980MDc Milling CNC System User Manual 182 Ⅱ Operation ...
Страница 249: ...GSK980MDc Milling CNC System User Manual 230 Ⅱ Operation ...
Страница 253: ...GSK980MDc Milling CNC System User Manual 234 Ⅱ Operation ...
Страница 259: ...GSK980MDc Milling CNC System User Manual 240 Ⅱ Operation ...
Страница 265: ...GSK980MDc Milling CNC System User Manual 246 Ⅱ Operation ...
Страница 293: ...GSK980MDc Milling CNC System User Manual 274 Ⅱ Operation ...
Страница 295: ...GSK980MDc Milling CNC System User Manual 276 Ⅱ Operation ...
Страница 319: ...GSK980MDc Milling CNC System User Manual 300 Ⅱ Operation ...
Страница 320: ...301 Ⅲ Installation Ⅲ Installation ...
Страница 321: ...GSK980MDc Milling CNC System User Manual 302 Ⅲ Installation ...
Страница 345: ...GSK980MDc Milling CNC System User Manual 326 Ⅲ Installation ...
Страница 391: ...GSK980MDc Milling CNC System User Manual 372 Ⅲ Installation ...
Страница 392: ...Appendix 373 Appendix Appendix ...
Страница 393: ...GSK980MDc Milling CNC System User Manual 374 Appendix ...
Страница 394: ...Appendix 375 Appendix Appendix 1 Outline Dimension of GSK980MDc L N ...