Hello Guest it is January 19, 2021, 12:31:42 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MachineMaster

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 »
41
General Mach Discussion / Re: hole macro help please :)
« 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.

42
Well I know that


                SetMachZero(0)                          'reset X axis DRO
                SetMachZero(1)                          'reset Y axis DRO
                SetMachZero(2)                          'reset Z axis DRO

Does reset the machine coordinates to zero for X, Y & Z.
Try putting it in a separate macro and call it after your script before milling the slot.

43
General Mach Discussion / Re: VB Is Laughing At Me....
« on: May 11, 2009, 06:37:51 PM »
OK, I gotta ask. What is a semaphore?

44
General Mach Discussion / Re: hole macro help please :)
« on: May 11, 2009, 06:10:32 PM »
How about toggle switches on a PDP8 coding in Octal

45
A version of visual basic supported in Mach3

46
Change


   Call SetDro (0,0.00)      'reset X axis DRO
   Call SetDro (1,0.00)      'reset Y axis DRO
   Call SetDro (2,0.00)      'reset Z axis DRO
   

to

       SetMachZero(0)
       SetMachZero(1)
       SetMachZero(2)


Darrell

47
LazyCam (Beta) / Re: LAZY CAM RAPID unit/min control
« on: April 29, 2009, 10:32:59 PM »
Rapids run at the speed set in motor tuning. You usually want rapids to go as fast as possible.

48
Go to the settings tab (ALT-6) Lower left corner and click units.

49
G-Code, CAD, and CAM discussions / Re: G52 Question
« on: April 29, 2009, 05:20:02 PM »
No, because you didn't move Y to zero after setting G52.
G52 is temporary so it is gone by the time you get back to G0 X0 Y0.

50
FAQs / Re: Please wait, generating path
« on: April 29, 2009, 04:17:43 PM »
Could be a Demo version limitation if you do not have a license.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 »