Hello Guest it is May 07, 2024, 02:56:51 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 - stirling

1491
General Mach Discussion / Re: working in simulation mode
« on: September 03, 2010, 04:22:16 AM »
Ring any bells Hood? Hint Hint  :)

1492
VB and the development of wizards / Re: Cant get VB script to work
« on: September 03, 2010, 03:55:41 AM »
 :)

1493
General Mach Discussion / Re: Smoothstepper and probing, home and THC
« on: September 03, 2010, 03:54:12 AM »
Hood - this is all starting to make sense. I doubt you'll remember but ages ago I asked (on the yahoo board I think) why you needed the PP driver loaded even when you just wanted to EMULATE probing and THC. The answer was effectively that probing and THC have some of their "code" in the driver. At the time I couldn't figure out why - now it makes sense why. Really appreciate your time on this.

Ian 

1494
VB and the development of wizards / Re: More VBscript woes
« on: September 02, 2010, 01:25:55 PM »
Phil

Can we start from scratch? When I look at the "Home All" button in lathe as it is out of the box, there is no VB in the button. Instead it uses OEM code 211. If you look up that in the OEM codes.xls file it says - Home X Home Z (turn). That seems to translate (after testing) to Home X THEN Home Z.

So - at some point I'm thinking you must have used a screen editor to change from using an OEM code to using VB - correct? (just trying to establish the full train of events)

Moving on. If I change from using an OEM code to using vbcode with:

doButton(24)
doButton(22)

Then it homes Z and then X

However, if I then change it to:

RefCombination(5)

It homes Z and X at the same time - i.e. what you want.

Two thoughts:

1) Can you try it using the parallel port driver and see what happens?
2) It's back to my thoughts that this may be an SS issue.

Meanwhile....

I have a question, since I only pretend to be a programmer.:)

Wouldn't RefX be a variable, and 1 be the constant? And since the RefX is not needed, then the integers are constants? :) Maybe that's what he means

What it says is:

Quote
‘ Define some constants
RefX = 1
RefY = 2
...etc...

So 1 indeed is a constant but that is not what's being defined - RefX is. ;)

We can do literal constants and symbolic constants if you like  >:D

1495
VB and the development of wizards / Re: More VBscript woes
« on: September 02, 2010, 08:52:05 AM »
He he... I didn't point that out cos I thought people would think I was being picky - but it has no effect on the problem anyway - just two pointless (unused) variable decs and assignments. But whilst I'm being picky - the text in the guide is wrong anyway - they're not constants - they're variables.  There - got that off my chest - thanks Gerry ;D

1496
General Mach Discussion / Re: Smoothstepper and probing, home and THC
« on: September 02, 2010, 08:29:49 AM »
I don't think so - nowhere near fast enough nor synchronized. The thing is, in any feedback loop the outputs cause a change (movement), that changes things (arc voltage), the input comes in, you process it and the result is (hopefully) an output that brings things back to where you wanted. BUT even in a "perfect" system you're allways playing catchup. In Mach this would ideally translate to: every single step in the XY plane may result in a change to arc voltage so before we take another step or at the very least AS we take another step we step the Z. That obviously means that the input is processed for each and every single step i.e. at kernel speed AND in synch.

Ian

...but whatever, I'd still be interested to hear from anyone using a probe with the SS for their thoughts.

1497
General Mach Discussion / Re: Smoothstepper and probing, home and THC
« on: September 02, 2010, 07:55:49 AM »

1498
VB and the development of wizards / Re: More VBscript woes
« on: September 02, 2010, 07:53:41 AM »
I use this all the time in Mill but also just tried it on Lathe and it works fine here. Maybe another SS issue?

BTW - how did your other button problem turn out?  >:D

1499
VB and the development of wizards / Re: Cant get VB script to work
« on: September 02, 2010, 05:41:58 AM »
Don't split your "if expression then" constructs accross lines.

If
RPM > 2501
Then

If RPM > 2501 Then

Cheers
Ian

1500
VB and the development of wizards / Re: select case
« on: September 02, 2010, 05:33:45 AM »
wooow!

"if", "while", "select" and "case" in same sentence!! Looks like a script! =D
Nice one  ;D

However, sorry but you CAN use strings in a select case - not very well explained in the Cypress UG but...