Hello Guest it is September 23, 2019, 12:20:37 AM

Author Topic: hole macro help please :)  (Read 21293 times)

0 Members and 1 Guest are viewing this topic.

Re: hole macro help please :)
« Reply #10 on: May 11, 2009, 06:10:32 PM »
How about toggle switches on a PDP8 coding in Octal

Offline Graham Waterworth

*
  • *
  •  1,883 1,883
  • Yorkshire Dales, England
    • View Profile
Re: hole macro help please :)
« Reply #11 on: May 12, 2009, 02:29:07 AM »
Are the good old days,  CPM on an S100 with the luxury of a single 8" floppy, coding COBOL.

Hell I miss those days.............          NOT

Graham
Without engineers the world stops

Offline Chris.Botha

*
  •  486 486
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: hole macro help please :)
« Reply #12 on: May 12, 2009, 02:33:20 AM »
ok you guys win!!!

Offline Graham Waterworth

*
  • *
  •  1,883 1,883
  • Yorkshire Dales, England
    • View Profile
Re: hole macro help please :)
« Reply #13 on: May 12, 2009, 02:35:24 AM »
Why not just drop the code into subs and call them?

Graham
Without engineers the world stops

Offline Chris.Botha

*
  •  486 486
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: hole macro help please :)
« Reply #14 on: May 12, 2009, 03:08:18 AM »
i have no idea what you just said..

so i can save my code as is, rename file to something that can be called as a subroutne to a macro??  code idea please?


pretend like you talking to someone who has no idea :)



Offline Chris.Botha

*
  •  486 486
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: hole macro help please :)
« Reply #15 on: May 12, 2009, 03:19:27 AM »
err actually .. dont pretend.

Re: hole macro help please :)
« Reply #16 on: May 12, 2009, 12:58:15 PM »
I miss the Osborne computer running CPM with two 5 1/4" floppies and 128K of memory. That was a computer in its day.

Back to the Subroutine. The following is from page 10-34 in the Mach3Mill_1.84.pdf file. So you can put the subroutine in your current file
or in a seperate file and call the file.

10.8.7        Call subroutine - M98
This has two formats:
(a) To call a subroutine program within the current part program file code M98 P~ L~ or
M98 ~P ~Q The program must contain an O line with the number given by the P word of
the Call . This O line is a sort of "label" which indicates the start of the subroutine. The O
line may not have a line number (N word) on it. It, and the following code, will normally be
written with other subroutines and follow either an M2, M30 or M99 so it is not reached
directly by the flow of the program.
(b) To call a subroutine which is in a separate file code M98(filename)L~
for example M98 (test.tap)
For both formats:
The L word (or optionally the Q word) gives the number of times that the subroutine is to
be called before continuing with the line following the M98. If the L (Q) word is omitted
then its value defaults to 1.
By using parameters values or incremental moves a repeated subroutine can make several
roughing cuts around a complex path or cut several identical objects from one piece of
material.
Subroutine calls may be nested. That is to say a subroutine may contain a M98 call to
another subroutine. As no conditional branching is permitted it is not meaningful for
subroutines to call themselves recursively.
10.8.8 Return from subroutine
To return from a subroutine program M99 Execution will continue after the M98 which
called the subroutine.
If M99 is written in the main program, i.e. not in a subroutine, then the program will start
execution from the first line again. See also M47 to achieve the same effect.

Offline Chris.Botha

*
  •  486 486
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: hole macro help please :)
« Reply #17 on: May 12, 2009, 03:40:31 PM »
ok.. ill give it a try tonight..

so i can create a macro that contains this:

Code ("g0x0y0z40")
Code ("M98 (myroutine.tap)")


and it will run the the gcode in myroutine.tap?


i really need to read the manual....


Re: hole macro help please :)
« Reply #18 on: May 12, 2009, 04:15:19 PM »
You could, but why not just do it in your part file?

Offline Chris.Botha

*
  •  486 486
  • wine me.. dine me.. tram my mill for me...
    • View Profile
    • Digital-Jeweller
Re: hole macro help please :)
« Reply #19 on: May 12, 2009, 04:50:10 PM »
i want to assign it to a button....

i want to add "one button" cutting to an extra screen in mach..(preferably with large buttons and pictures) this  "hole" is part of every single 3sided cut I do (amongst other repetitive tasks).. i am also going to be installing these mills for fellow jewellers who will be using milling wizards to generate paths and whom could care less about what makes it work and more about just getting the part out... so i need to simplify the process significantly to be able to sell more of these units....

my competition is printers...   load model.. hit print....

compared to milling... load model.. figure out what the mill cannot access..  write path, simulate, pull hair out, start again. add plugs, flip model etc etc etc so i need to find "one button" solutions as far as i can. 

1: load model in cam, insert hub, hit "flip cut" cam generation button   (i believe artcam allready has onebutton pathing for this)
2: load path in mach, hit cycle start
3: hit [cut hub]
4: flip wax onto 4th option, load path
5: hit cycle start
6: drink beer


thats how my customers would prefer it.. while I like getting into the nitty gritty most my customers wont.