Hello Guest it is January 20, 2022, 10:11:08 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 - Tony Bullard

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »
101
Mach3Version3.043.053 and .058

I'm using XP and machine hangs (locks up) in VB Script Editor whine I try to use "While IsMoving()".

Example:

DoOemButton(1010)
While Ismoving()
Wend

Anybody else having this trouble?

Thanks,

Tony

102
General Mach Discussion / Re: Unstable analog inputs
« on: February 03, 2012, 07:19:49 AM »
Thanks Ian,

I've never worked with modular arithmetic but it will give this old man something to do today. LOL. I guess I'll start here: http://www.math.rutgers.edu/~erowland/modulararithmetic.html.

Tony

103
General Mach Discussion / Re: Unstable analog inputs
« on: February 02, 2012, 04:39:58 PM »
Thank you, I'll play with that a little. I like it.

Tony

104
General Mach Discussion / Re: Unstable analog inputs
« on: February 02, 2012, 02:07:14 PM »
Yeah but if Y = analog input then it is always an integer, Right?

Then (Y/Z)*Z = Y = INT(Y/Z)*Z

Only when Y is not an integer will (Y/Z)*Z  not = INT(Y/Z)*Z

Just gives me something else to think about.
Thanks,
Tony



105
General Mach Discussion / Re: Unstable analog inputs
« on: February 02, 2012, 10:49:46 AM »
Thanks Ian,

One problem is, as I see it, with distinctive bands is that if the set point is near the edge of the band the output will be hunting between the two bands.
With “If b < (GetVar(609)-2.5) Or b > (GetVar(609)+2.5) Then
SetVar(609,b)” I was trying to get a fixed width band with variable location. This keeps sampling and keeping the output in the center of the band. I realize the “2.5” doesn’t do much good with the integers. Oops.

I probably misunderstood your formula. Relating to mine would it be:
b  =  INT (a/6.8267)* ?? EDIT: now that I look at it again doesn't (Y/Z)*Z = Y?

What I’m trying to avoid is the feed rate hunting while machining in FRO

I do like your way of thinking.

Tony


106
General Mach Discussion / Re: Unstable analog inputs
« on: February 02, 2012, 08:28:14 AM »
Hi Peter,

I was concerned that during a machining operation Mach might not keep up with calculating the vector velocity components of a multi axis feed twenty times a second.

Here’s the code I used in a macropump to buffer it a little. It is pretty jittery so I had to use wide deadbands.

Sub FRO()

a = getinput(64)
b= Fix(a/6.8267)   ‘150%
If b < (GetVar(607)-2.5) Or b > (GetVar(607)+2.5) Then
SetVar(607,b)
If GetVar(607) < 103 And GetVar(607) > 98 Then
SetDro(21,100)
DoOemButton(1014) 'reset overide
Exit Sub
End If
SetDro(21,GetVar(607))
End If
End Sub

Thanks for all your help.

Tony


107
General Mach Discussion / Re: Unstable analog inputs
« on: January 31, 2012, 04:41:36 PM »
Will the floating feed rate overwork Mach while running a program?

Thanks,
Tony

108
General Mach Discussion / Re: Unstable analog inputs
« on: January 31, 2012, 04:36:09 PM »
Thanks Peter,

I'm using the +5V from the ModIo. Could I use an external power supply say from the PC and have less ripply? How about a good stand alone power supply?

Thanks,

Tony

109
General Mach Discussion / Unstable analog inputs
« on: January 31, 2012, 04:03:39 PM »
I’m using two 10K pots for analog inputs through a ModIO for FRO and Speed % DROs The DROs float around about + and – 2% from set point. Is there a way to buffer or smooth out the inputs. I could write a macro with 100 “deadspots” but that doesn’t seem to be the way to go. Any help would be appreciated.

Thanks,

Tony

110
Modbus / Re: How to change output settings?
« on: January 28, 2012, 09:28:09 AM »
"Writing FF to register 103 should turn off the flashing to all outputs.

The Alternative way is to use the Modbus Config tab, acessed from the Modbus Config page.

Cheers,

Peter."

Hi Peter,

Do I uncheck the "Limit Err Flash" checkbox and do I need to jemp the Boot terminals to write to the Modio?

Thanks,
Tony


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »