Hello Guest it is March 28, 2024, 02:43:57 PM

Author Topic: G49 on Mach3 Mill  (Read 11724 times)

0 Members and 1 Guest are viewing this topic.

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G49 on Mach3 Mill
« Reply #50 on: February 06, 2018, 04:28:46 AM »
Chuckle. I have forgotten more languages (assembly and high level) than I can remember. In my life I have written major database systems, created database cores, written robots systems with image analysis, debugged compilers and OSs, and generally had a fun time.
Forgive my humour.
Cheers
Roger

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #51 on: February 06, 2018, 04:37:52 AM »
100%  :D ;D :D

Give that man an award, i'd buy you a pint TPS but I don't know where you are :)

Works perfectly now, I think cut-n-paste failed before so it was the same code as previous but new one works very slick.


My screen set has a label that shows the file name loaded so i duplicated a bit of code, the end now looks like....

Code: [Select]

'find the last "\" in filename
For i = 1 To Len(destfile)
If Mid(destfile,i,1) = "\" Then
last = i
End If
Next i

'extract filename
outfilename = Mid(destfile,last+1,Len(destfile)-last)

SetUserLabel (2,outfilename)

Exit Sub
errhandler:
message "user cancel"

Many thanks for this mammoth effort.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #52 on: February 06, 2018, 04:39:31 AM »
Chuckle. I have forgotten more languages (assembly and high level) than I can remember. In my life I have written major database systems, created database cores, written robots systems with image analysis, debugged compilers and OSs, and generally had a fun time.
Forgive my humour.
Cheers
Roger


I never managed to stray outside office based stuff, invoicing, stock control, SQL databases etc it's been good fun but getting tiresome now when i get called to edit a program i wrote 10 years ago ;)

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G49 on Mach3 Mill
« Reply #53 on: February 06, 2018, 04:50:29 AM »
Ah, this was in a Gov't research lab working for industry and a bit of moonlighting on the side, then working as an independent research consultant - the latter for double the money with better holidays. It was all fun.
Now I am retired - so I spend 10 hour days programming g-code for a CNC - but it is MY CNC!

Cheers
Roger

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #54 on: February 06, 2018, 04:56:14 AM »
:) sounds good

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: G49 on Mach3 Mill
« Reply #55 on: February 06, 2018, 05:53:09 AM »
---
If it can take this many cycles to get a FileLoad screen right
---

i'm realy sorry, i needed so much tryes to get it working perfect.

Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: G49 on Mach3 Mill
« Reply #56 on: February 06, 2018, 06:14:20 AM »
Hi TPS

Don't worry - we can call it dynamic team programming - it is all the rage in DevOps these days (along with 20 other programing methods).
But it does remind me why I avoided getting too far into commercial and web programming. :) :) :)

Cheers
Roger

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #57 on: February 06, 2018, 06:15:44 AM »
I hope that was sarcasm there Thomas  :)

You have nothing to apologise for, it is a damn fine bit of code and something that up until a couple of days ago, i would not have thought possible to do.

I think it will have other uses too in the future.,

Thanks again for your sterling efforts :)

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: G49 on Mach3 Mill
« Reply #58 on: February 06, 2018, 07:15:18 AM »
Quote
You have nothing to apologise for, it is a damn fine bit of code

I second that - excellent work Thomas.

Tweakie.
PEACE

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: G49 on Mach3 Mill
« Reply #59 on: February 06, 2018, 03:12:58 PM »
Small glitch on my end - it works fine on my test laptop in Win7 and XP but on the mill (XP) it fails as soon as it requests the MSCOMDLG library.

My guess is that as the mill pc is a cut-down or clean install, there is a file not installed or registered??

Any idea what the .dll i need would be called?

My guess is "Commdlg.dll"