Hello Guest it is April 28, 2024, 08:19:23 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 - HimyKabibble

1221
General Mach Discussion / M01 Optional Stop
« on: April 13, 2009, 05:59:09 PM »
Obviously, I don't understand this....  If I have an M01 in my code, and I turn *off* M1 Optional Stop, I expect the M01 line to be skipped, but it's not.  What's the trick?

Also, if I have the following macros:

M991.m1s:

If GetOEMLED(65) = 0 Then
    DoOEMButton(177)
End If

M992.m1s:

If GetOEMLED(65) = 1 Then
    DoOEMButton(177)
End If


I expect the sequence:

M991
M992
M991
M992

To toggle M1 Optional Stop mode, and toggle OEM LED 65.  However, M991 will SET M1 Optional Stop mode, but M992 will NOT clear it!

Regards,
Ray L.

1222
General Mach Discussion / Re: Parts are not correct size!
« on: April 05, 2009, 12:46:53 PM »
I don't think you said what machine you're running this on.  It could well be flex in the machine itself.  If you repeat the finish cut several times, does the dimension improve?

Regards,
Ray L.

1223
General Mach Discussion / Re: connecting vacuum cleaner to mach 3
« on: March 30, 2009, 08:25:17 PM »
You could also modify the M3/M4/M5 macros to turn any output on and off to contrl the vacuum at the same time the spindle is turned on and off.  Then you wouldn't have to mess with the LazyCAM post.

Regards,
Ray L.

1224
General Mach Discussion / Re: VB Dialog Controls
« on: March 29, 2009, 12:47:43 PM »
OK, I seem to be able to set control values with DlgText, and it looks like DlgValue should get a controls value, but all I can read is zeroes....

Regards,
Ray L.

1225
General Mach Discussion / Re: VB Dialog Controls
« on: March 29, 2009, 12:31:31 PM »
Hmmmmm....  This is interesting as well.  The Cypress documentation says Action 3 does:

"Action 3 Corresponds to a change in a text box or combo box. This value is passed when a control loses the focus (for example, when the user presses the TAB key to move to a different control) or after the user clicks an item in the list of a combo box (an Action value of 2 is passed first). Note that if the contents of the text box or combo box do not change, an Action value of 3 is not passed."

But, Action 3 actually occurs on *every* keystroke entered into a TextBox....

Regards,
Ray L.

1226
General Mach Discussion / VB Dialog Controls
« on: March 29, 2009, 12:04:00 PM »
I'm screwing around with VB and dialogs, but can't seem to get reading and writing TextBox controls to work.  My code is below.  It appears to me I *should* be able to write to the TextBox control with:

        Dlg1.VFDFreq = "abcd"  or, perhaps Dlg1.VFDFreq.Text = "abcd"

Both throw syntax errors.  What am I doing wrong?

Regards,
Ray L.


' Spindle Speed Calculator

Sub Main

   Begin Dialog BoxSample 16,35,256,89,"Motor Speed Calculator", .OnAction

      CancelButton 204,44,40,14
      
      Text         12,12,64,8,"Target Speed:"
      TextBox      16,24,32,10,        .TargetSpeed
      
      Text         130,12,  50, 8,"VFDFreq:"
      TextBox      130, 24, 50, 10,    .VFDFreq
      
   End Dialog

   Dim Dlg1 As BoxSample
   Button = Dialog ( Dlg1 )

End Sub

Function OnAction( ControlID$, Action%, SuppValue% )

   Dlg1.VFDFreq.Text("ABCD")

   Select Case Action%

   Case 1

   Case 2
      If ControlID$ = "TargetSpeed" Then
         Dlg1.VFDFreq.Text = "1234"
      End If
   Case Else
   
   End Select
   
End Function       

1227
General Mach Discussion / Re: Motor tuning calculations
« on: March 29, 2009, 10:54:51 AM »
Sounds to me like you're not really running 1/2 steps.  If you set it to 200, and tell it to move 1", does the motor turn exactly one turn, or half a turn?  I"m guessing you'll find it moves a full turn.

Regards,
Ray L.

1228
General Mach Discussion / Re: Mach3 Spindle/VFD plug-in - Interested?
« on: March 29, 2009, 12:07:22 AM »
I'm curious - to you, which is more important - overall cost (excluding your time input) or functionality?

Well, since I've never had a problem with my VFD, I'd have a hard time putting error handling very high on my list.  If the VFD faults, I'll probably know why.  I suspect it depends a lot on the kind of machine you're running.  Mine is a CNC'd BP clone, so when something goes wrong, I know immediately what caused it, since I'm right there.  And the spindle is about the most reliable part of the whole machine, and the strongest.  On a larger machine, like a VMC, I could see something like that being more useful.

Regards,
Ray L.

1229
General Mach Discussion / Re: Mach3 Spindle/VFD plug-in - Interested?
« on: March 28, 2009, 10:30:25 PM »
Pretty much everyone I know with a VFD *is* using Mach to control spindle speed, through a DigiSpeed or similar interface.  I don't know anyone doing any error capture, but then the low-end VFDs (I have a TECO FM-50) I don't think provide that.

Regards,
Ray L.

1230
General Mach Discussion / Re: Mach Basic - Which Flavor
« on: March 28, 2009, 08:00:23 PM »
Thanks Hood!  That's a big help!