Hello Guest it is November 29, 2021, 01:59:52 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 - Holger0815

Pages: 1 2 »
Sometimes it seem to help just to write down the thoughts... Attached my results, in case anybody want to mod them. :)

The M812 is my prototype of eight macros. By setting the Probing Axis (PAx)axis, the Stepover Axis (SAx) and the directions (DP-direction of probing, DS-direction of stepover) the code will then sample the data from some user-DROs and then probing an edge until the end is reached or the required distance is finished. (Ooops, one "bug" still in there: when determining the number of repetitions it uses always the Y-lenth DRO 1007. Have to select between 1006 and 1007 here depending from the axis to be probed...)
I made a screem with eight buttons and the DROs to group all probing related controls.

The M822 code is for determination of the probe tip diameter. I made a aluminum rectangle plate (88x70mm, out of the bin), milled a 50mm dia hole into it and placed it on the surface. From any starting point of the probe tip inside the hole it probes the hole to get the center, then probes the diameter in X and Y, calculates the probe tip dia and finally probes the outer dimensions to double check the settings.


Sorry for bothering you all with my stupid question. >:D
Solved the problem.

For all who are interested - facing the danger to repeat trivial things the thousand's time- a   ::)
"While IsMoving()                                         
   Sleep (1000)
just at begin of my while-loop did it. It allowed Mach to finish the retract moves before reading again the DRO.

Thanks to all who contributed... ;D

Sorry folks, did I ask somethin upsetting? Or did I miss any stupid thing I should have known?
I only want to know why I can't get my variables and DROs updated while in a "while-loop? Or at least a work-around...

Your help's apreciated. :-*
Thank you.

Hi all,
I'm going to create some macro code to do 2D digitizing/probing. I did 8 macros to do e.g. probing in +Y direction until trip, then retracting the probe by running a quarter circle in  of the probe in -Y+X direction and do this in a loop until a defined X distance has been probed or until the probe does not trip.
Attached my macro M817.

Problem is:
It seems, that when inside of the while-loop the oemDROs will not updated and also the check for "OverTravel" (probe does not trip in the G31-distance) will not do properly.

When the probe does not trip in the first sequence the result is as expected: linear retract by ProbeTravel.
But after one or more trips of the probe and then coming behind the edge the probe runs for the complete G31-distance, then does the circular retract, probes again ...

I'm not too familiar with VB programming, so maybe you could see the bug?

Thanks for helping!

Feature Requests / ShuttlePro plugin features
« on: April 18, 2009, 04:48:22 PM »
Hello all,
ist there any possibility to assign more then two macros (User Macro #1 and #2) to any of the ShutllePro buttons?

I think a mod of the plugin would be necessary to do so. Anybody out there who knows how to do so?

Thank you for Help!

Best regards
(from Germany)

I love Mach3 really!

VB and the development of wizards / Re: Screen Toggle Macro
« on: June 15, 2008, 11:56:46 AM »
Hello Scott,
thank you and sorry for late reply.

Do I understand right, that I would need this interlocking when I assign the macro to a hardware input pin on the LPT port? What does the "macro pump" do?

I think I was misunderstood: I only found the "GetPage()" function in some "macro pump code" in the Wiki pages.

I myself used the code in a macro what is then assigned to a Button of my Shuttle Pro device in the Shuttle add-in. It worked fine, although I did not test what happens when I press the button longer. Could be I had a quick finger when testing...

I will remember your kind hints when testing a modbus I/O box I intend to build.

Thank you so much!


VB and the development of wizards / Re: Screen Toggle Macro
« on: June 07, 2008, 01:50:48 PM »
Hi all,
in the wiki under code for "Macropump for Galesburg Mill" i found some code containing the function I looked for:
GetPage() responds the current screen number.  My macro now is like that:

Rem M90027
Rem Toggle Sceen

Dim sc as integer

sc = GetPage()

Select case sc
case = 1

Case = 2

Case = 3

case = 12

end select

It toggles between screens 1, 2, 3, and 12 (12 is a custom screen for tool alignment).

Thanks for help.

The second question is still open: Any possibility to change the Shuttle plugin for more macros ?

Best regards

VB and the development of wizards / Re: Z height adjustment
« on: June 07, 2008, 11:57:38 AM »
Hello john,
I did similar task (engraving in uneven parts with minimum engraving depth, but all within the material) by the help of limiting z depth. The G-code contains a much too deep z value and by limiting z to e.g.-0.10 and slightly increasing this limit (-0.15, -0.20) I got the required result.

VB and the development of wizards / Screen Toggle Macro
« on: June 07, 2008, 11:51:00 AM »
Hello Gents,
I'd like to make me a macro to toggle through the screens by pressing a button on my shuttle.
I could not find yet a variable or DRO indicating the currently active screen. Is there any such indicator? What code does it have?

Further I would be glad to have more then two user macros started by the Shuttle. Is there a possibility to alter the plugin?

Thank you for helping me! I'll post the finished macro here.

Best regards

I worked around it by modifying the param values of the current work offset and applying this offset then again.
Works well.

Pages: 1 2 »