Hello Guest it is August 18, 2019, 05:42:04 AM

Author Topic: Simple toolchange position  (Read 22711 times)

0 Members and 1 Guest are viewing this topic.

Re: Simple toolchange position
« Reply #50 on: January 07, 2008, 08:43:12 PM »
Hey HOOD, Hey BRETT,
I thought I'd give this a go but seem to have hit a stump.
Can you see what I am doing wrong ?
Thanks,
RC



I think I got it.
Thanks,
RC
« Last Edit: January 07, 2008, 08:57:47 PM by Overloaded »

Offline Chaoticone

*
  • *
  •  5,570 5,570
  • Precision Chaos
    • View Profile
Re: Simple toolchange position
« Reply #51 on: January 07, 2008, 08:59:41 PM »
Hey RC, I think you need a space between the second x&  (space here) "Y" . I would also get rid of the None at the top.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Simple toolchange position
« Reply #52 on: January 07, 2008, 09:13:02 PM »
Thanks Brett,
I saw what Hood meant ....ie, do the same with Y & y.

I did have to loose the "None" too..like you said.

I learn something EVERY day around here.........IF I pay attention.

You guys are BRILLIANT,
RC

Offline Chaoticone

*
  • *
  •  5,570 5,570
  • Precision Chaos
    • View Profile
Re: Simple toolchange position
« Reply #53 on: January 07, 2008, 09:18:44 PM »
LOL,
Quote
You guys are BRILLIANT
Hood surley is, I just know copy and paste.  ;D  It is addictive isn't it?

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Simple toolchange position
« Reply #54 on: January 07, 2008, 09:36:48 PM »
Brett,
Can you tell me WHY I get this when I try to oped any of these macro's ?
I next get a license to agree to, then Mach opens with no screen set.
I also get this when attempting to dwnld from forum topics....macro's...I think.

Thanks,
RC
Re: Simple toolchange position
« Reply #55 on: January 07, 2008, 09:48:02 PM »
Brett, dang-it..I did it again.
Thought I had tried everything before posting. But....
I was trying to open them from the Mach3 folder.....wont work.
Go through the VB Script Editor...works every time.
Geeeesh,
RC

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Simple toolchange position
« Reply #56 on: January 08, 2008, 03:01:52 AM »
RC
 I can take no credit for the code, I could probably do that now as I know the very basics of VB but at the time I put that button on my custom screen it was simply copied from the standard screen at the time.
 As Brett says you need the spacing correct, the way you have it now with the seperate G53Y on the next line will work but it will move X first then Y, if you do it like I posted the X and Y will move at the same time. I think if you wished you could have the G53 in with the Y but its just extra typing thats not needed ;)
Hood
Re: Simple toolchange position
« Reply #57 on: January 08, 2008, 05:18:43 AM »
Hood,

So....."G53Z"&z& "X"&x& "Y"&y   would move all axis's simultaneously ? I realize that the Z should move clear first for obvious reasons.
Just trying to get a grip on scripting.
I'll try it.

I'll be danged....it works. The space goes.......see pic.

You guys are too modest,
Thanks,
RC
« Last Edit: January 08, 2008, 05:45:52 AM by Overloaded »

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Simple toolchange position
« Reply #58 on: January 08, 2008, 05:36:04 AM »
code "G53Z" & z & "X" & x & "Y" & y would, you need to have the spaces. I am not the best with VB, in fact I am just slightly better than useless ;)
Hood

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Simple toolchange position
« Reply #59 on: January 08, 2008, 05:40:03 AM »
Oh just a wee tip for you when editing code that is already there. What I do if I am messing around wanting to see what works is put a ' before a line of code that I want to ignore. That way if I want to go back to the original all I need to do is delete the mess of code I have just added and then remove the ' where I put them in. I think you can also put rem in front of a line for it to be ignored but to me ' is easier ;)

Hood