Hello Guest it is April 26, 2024, 04:45:24 PM

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 - moorea21

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
31
OK, ta. More to get my head around...

33
I had wondered if the fact that none of my macros or subprograms ever have to return to the main program would mean that the running order was redundant; I've tested it now, mostly it runs okay but has a couple of quirks which I'd rather not have to deal with.

I'll stick to running it in order; if anything odd happens I'll declare the return point as you suggested.

Thanks,

M21

34
How would I find the locations where persistent variables 500-600 are stored on my hard drive? If possible, I'd like to write to these variables with the software I use to generate and edit my gcode, so their values can be found and used in my macros.

35
General Mach Discussion / can subprograms be listed out of order?
« on: May 12, 2015, 02:49:17 PM »
I'm not with my Mach pc for a few days, but I was wondering about how flexible Mach is when it comes to the order of subprograms and main code etc in a gcode file; so I thought I'd just ask instead.

My code runs fine, when the subprograms are written in numerical order, but it would be useful if they could be written in the order in the attached text file; I have a program that generates my gcode, which I can modify easily to resemble that in the attachment, but putting them in numerical order would be much more difficult.

Does Mach allow subprograms to be listed in non numerical order? Does it matter if some appear after the 'M30' line? My code has no main program as such; the main code is in sub 411, and it never gets to M30 because a macro called before that closes the file and opens the next one in the folder.

As I said, it runs fine when the subs are in numerical order; the only change to the attached version is the order they are written in.

36
General Mach Discussion / Re: call subprogram from macro?
« on: May 09, 2015, 04:09:42 AM »
I too often intermittently forget things.... Thankfully my programs don't need too many macro or sub calls, they do seem to work better that way.

37
Will do

38
General Mach Discussion / Re: call subprogram from macro?
« on: May 03, 2015, 02:41:45 PM »
Okay, thanks, that's totally clear now. I'll look in the right manual this time...

39
General Mach Discussion / Re: call subprogram from macro?
« on: May 03, 2015, 02:25:44 PM »
Thanks, some of that's clear, some I'll have to re read and consult the manual on.

So I could do this:-
in Gcode;                      M100
In macro M100;             Code "M98 P112" (or o, or whatever it is, can't remember at the minute...)
Back in Gcode (o112),    do some code
                                  M98 P113

and then o113is basically the line after the line where M100 was called from.

Is that right? Seems sensible if so.

Where do I learn about #Var particularly,  and using params? I searched the programmers manual for #var; it doesnt exist there.

40
General Mach Discussion / call subprogram from macro?
« on: May 03, 2015, 12:47:14 PM »
I could call a subprogram from a macro by coding

Code "G98 P112"
but is there a way that doesn't use 'Code "'?

Thanks
M21

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »