Hello Guest it is March 19, 2024, 03:39:56 AM

Author Topic: machine running irregular on button script  (Read 18723 times)

0 Members and 1 Guest are viewing this topic.

Re: machine running irregular on button script
« Reply #40 on: December 19, 2010, 12:20:23 PM »
Yes.. I want to use normal VB convention to open the textfile.  (Not OpenDigFile)

But I don't want to see the OpenFile Dialog twice.
First to set scan-file (M40) name. Then to open it again, in a macro, to do corrections. (Probe-Offset, etc)

So I am looking for a way to "remember" the M40-filename in a string.
So that it can be found by the end-macro for corrections.
Because #-variable IS remembered I came up with idea of the the numeric filename..
But it doesn't work.

Of course, I can let the macro ask for the filename again with an OpenFile Dialog.
But typing the same filename twice in a short period....hhmmm
Computers are here to automate, aren't they... ;)
« Last Edit: December 19, 2010, 12:22:13 PM by zone023 »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: machine running irregular on button script
« Reply #41 on: December 19, 2010, 02:21:34 PM »
OK now I see where you are going. I guess I was out daydreaming.

Unfortunately Art did not leave us that option.His OpenDigFile() does not allow an external aurgument to be used as a filename (;-( .

The only wildcard IS you could record the date/time then look for a file opened after that parameter in the saved directory???

Welcome to the Close but no CIGAR club, Been there many times. (;-) TP
Re: machine running irregular on button script
« Reply #42 on: December 19, 2010, 05:13:03 PM »
No problem...me explaining not clearly enough could also be the case... :D
The idea of recording date and time certainly is creative and useful.
To keep it working all the scans must be in a directory only for scans.
That may not be a problem

Do you think asking Art kindly makes sense...?
Changing recorded X and Y cooordinates, in G68 mode, from machine to work would also be great... ::)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: machine running irregular on button script
« Reply #43 on: December 19, 2010, 05:17:30 PM »
Sorry but Art is not involved with Mach anymore other than driver bugs that may pop up.You would have to talk to Brian at Artsoft.

Could not hurt to give it a try.

(;-) TP

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: machine running irregular on button script
« Reply #44 on: December 19, 2010, 05:22:10 PM »
And now would be the time to ask as Brian is rewriting Mach so it may be easier to add such things at this time.
Hood
Re: machine running irregular on button script
« Reply #45 on: December 19, 2010, 05:36:21 PM »
OK, I will ask Brian soon. Thank you, Hood

In the meantime will I keep grid-corrections inside my vb6 progam.

TP, I will send you my "Z-control" program for testing when I think I can show it to someone... without feeling like a moron...

That might take 2 more weeks or so... ;D

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: machine running irregular on button script
« Reply #46 on: December 19, 2010, 05:45:30 PM »
Here is another thought (;-)  Make the program USE the same exact name up front each time for example lets use  PntFile.txt

When you open the M40 dialog use that name. Then YOUR script will know what name to use to apply the corrections. When your script is done THEN let it save out the file as another name. LOAD that file name to be engraved

Then delete out the original file name Pntfile.txt so it will be available next time.

You can also use a OEM DRO to store the last used filename(number) then increment the NEXT new name(number) +1 to use for the next file name.

That wil semi-automate the process

Just a thought, (;-) TP
« Last Edit: December 19, 2010, 05:51:35 PM by BR549 »
Re: machine running irregular on button script
« Reply #47 on: December 19, 2010, 05:56:06 PM »
Now that's simple but SMART!!

Use the same filename everytime...

There is no use in storing the scan-files anyway. Each surface is unique, of course.
The engraving g-code is the part that is reused again and again..

Thanks!!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: machine running irregular on button script
« Reply #48 on: December 19, 2010, 08:09:47 PM »
Make sure you send us a picture. Yours is a project that MANY people in the past asked for(;-)

A way to correct for surface irregularities when engraving.

(;-) TP