Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:12:11 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  machine running irregular on button script
Pages: « 1 2 3 4 5   Go Down
Print
Author Topic: machine running irregular on button script  (Read 1714 times)
0 Members and 3 Guests are viewing this topic.
zone023
Active Member

Offline Offline

Posts: 37


View Profile
« 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... Wink
« Last Edit: December 19, 2010, 12:22:13 PM by zone023 » Logged
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« 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
Logged
zone023
Active Member

Offline Offline

Posts: 37


View Profile
« Reply #42 on: December 19, 2010, 05:13:03 PM »

No problem...me explaining not clearly enough could also be the case... Cheesy
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... Roll Eyes
Logged
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« 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
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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
Logged
zone023
Active Member

Offline Offline

Posts: 37


View Profile
« 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... Grin
Logged
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« 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 » Logged
zone023
Active Member

Offline Offline

Posts: 37


View Profile
« 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!!
Logged
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« 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
Logged
Pages: « 1 2 3 4 5   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!