Hello Guest it is May 28, 2024, 11:54:31 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 - M250cnc

51
VB and the development of wizards / Re: More VBscript woes
« on: September 02, 2010, 09:54:23 AM »
Thanks guys, it's so nice to know that it doesn't work whether they are variables or constants unnecessary parts or whatever.  >:(  ::)

52
VB and the development of wizards / Re: More VBscript woes
« on: September 02, 2010, 08:01:03 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

OK thought maybe it was me somehow, yeah the other button works great but i took the feed part out so it just runs at the current feedrate.

Thanks for the help

53
VB and the development of wizards / More VBscript woes
« on: September 02, 2010, 06:16:56 AM »
This is copied from RayL's VB ref guide

RefCombination
Sub RefCombination(Axes As Integer)
This function allows any combination of axes to be simultaneously referenced (homed). Which axes will
be referenced is determined by the Axes argument, which is a bit-mapped variable, with the bits mapped
as defined below.
Arguments:
Axes is a bit-mapped value the defines which axes are to be referenced. The value of Axes can be
calculated by adding the values corresponding to the individual axes to be referenced. The axis
values are:
X = 1
Y = 2
Z = 4
A = 8
B = 16
C = 32
So, for example, to reference the X, Z and B axes, Axes = 1 + 4 + 16 = 21.
Return Value:
None
Example:
‘ Define some constants
RefX = 1
RefY = 2
RefZ = 4
RefZ = 8
RefB = 16
RefC = 32
‘ Reference Y, Z and C axes
RefCombination(RefY + RefZ + RefC)

So my code is

RefX=1
RefZ=4
RefCombination (5)

Only one axis moves (X) this on a lathe, current stable release i have individual home switches on different pins using a SS

So what the hell is wrong.  ???

54
General Mach Discussion / Re: VB Code On A Button Help Required
« on: August 28, 2010, 11:21:41 AM »

   GCN = Format(VBNum, "#########0.000000")      ' 6 sig digits to right of decimal point should be enough
Dave

Dave i tried with your helper but i got an error on the line in the quote

As i will be manually adding the number i will only have a max of two digits after the decimal

Here is the code

X_Distance = GetUserDRO ( 2011 )

Code "G04 P.25"

Code "G01 X" & (X_Distance)

I took away the feed rate in code so it runs at the the current feedrate in either G94 or G95 mode

55
General Mach Discussion / Re: Stepper moves 1/4 turn then stops
« on: August 27, 2010, 05:44:48 PM »
I must have pushed a button that I shouldn't have.

Tommy never push that button again.  ;D

56
Fix the machine then no need to worry about backlash compensation

57
General Mach Discussion / Re: VB Code On A Button Help Required
« on: August 27, 2010, 04:29:12 PM »
Dave & Gerry

Thank you for you help, i will try it out tomorrow and I'm sure it will work and i will report back

58
General Mach Discussion / Re: VB Code On A Button Help Required
« on: August 27, 2010, 12:55:59 PM »
Thanks Gerry

Yes i can see how not having the axis letter could be a problem  ::)

I just tried fixing that and i got nothing

I tried all of your suggestion, but still nothing  :'(

59
General Mach Discussion / VB Code On A Button Help Required
« on: August 27, 2010, 12:00:10 PM »
Mach version 3.42 on a lathe

I think these newer Mach versions are all Boolean and Double Bubble Trouble  ;D

I think anyone who knows what they are doing "Unlike Me" should be able to sort this mess out.

When i press the BUTTON nothing happens

X_Distance = GetUserDRO ( 2011 )
Code "G04 P.25"
Code "G01 X_Distance F.10"

Pretty Please

60
PoKeys / Re: Bead support poKeys
« on: August 20, 2010, 07:13:24 AM »
Scott,

There are many people here that appreciate your efforts me included, but i can understand how you might feel after your experience with the OP.

Now what's that saying "All bad workmen blame their tools" add software to the list. :)