AFAIK, if they're in parentheses, it's a comment, and they're not passed to the macro, so you should be able to delete them with no ill effects.
Does the G66 need a feedrate like is commented out?
N190 G66 P0002 (F1.5 A2.9)
Would it be okay to just program G66 P0002?
Thank You
%
O0010
N100 G20
N110 G0 G17 G40 G80 G90 G94 G98
N120 G91 G28 Z0.
N130 G0 G28 X0. Y0.
(ROUGH AREA K)
(ENDMILL-.250-DIA-.50-F.L.-1.00-O.L.)
N140 T4 M6
N150 G55 G17 G90
N160 M69
N170 M11
N180 G0 B0. (CHANGE TO 90)
N190 C56.575
N200 M68
N210 M10
N220 X-.849 Y-.3607 S2292 M3
N230 G43 H4 Z4.54 M08
N190 G66 P0002 (F1.5 A2.9)
N200 M98 P0003
N210 G67
N220 G0 G28 G49 Z0. M9
N230 G0 G40 X-5. Y0 M5
N240 M01
N240 Z4.44
N430 M5
N440 G91 G28 Z0. M09
N450 G28 X0. Y0.
N460 M69
N470 M11
N480 B0.
N490 C0.
N500 M30
%
O0002
N250 G1 Z3.75 F4.58
N260 X-.824
N270 Y.3607
N280 X-.874
N290 Y-.3607
N300 X-.849
N310 Z4.44 F200.
N320 G0 Z4.54
N330 X-1.449
N340 Z4.44
N350 G1 Z3.75 F4.58
N360 X-1.424
N370 Y.3607
N380 X-1.474
N390 Y-.3607
N400 X-1.449
N410 Z4.44 F200.
N420 G0 Z4.54
M99
O0003
N10 C141.83
N20 C231.83
N30 C321.83
M99
AFAIK, if they're in parentheses, it's a comment, and they're not passed to the macro, so you should be able to delete them with no ill effects.
Your O0002 does not use any variables. So, there is no need to pass data to the macro. Even if you pass data, nothing would change in this case.
Just command G66 P0002 or simply G66 P2.
First thing what control are you using?
Considering that your F and A are in () it does not matter because it is not reading them. Anything in the () will not be read, it is just for notes/comments. At least on Fanuc.
If you did not have them in the () then it would set #9=1.5 and #1=2.9 however considering the fact that you are not using #9 or #1 in your program then it does not matter.
Dave...Sinha,
After typing the above I realized I could be a bit off on this. Is G66 used for anything else other the macro modal call? I don't have any of my books or archives to cross reference at the moment.
Stevo
Modal call is its only purpose. But there is a subtle difference from the repeated G65 calls:
The values specified in the G66 blocks are passed on to the macro only in its first call. All subsequect calls use the updated values from the previous call. See the attachment for more information (page 142-143 of my book).
Run the given programs on your machine, and check the result.
First, fact is to be established, followed by understanding the logic behind it.
this the normal way too use G66 right?
G66 P0002
C141.83
C231.83
C321.83
G67
Hi Sinha
(''Run the given programs on your machine, and check the result.
First, fact is to be established, followed by understanding the logic behind it. '')
Surley we need to know what program 15 is doing????...........
Glad to see I wasn't the only one who thought more information had to be provided in order to understand where sinha_nsit's attachment (pages 142-143) was getting its values from.
sinha_nsit: May have to buy your new book to see what else I can learn. Seems like you are providing a bit more useful information than Peter Smid's book.