Hello Guest it is March 28, 2024, 04:45:52 AM

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 - coyotegd

Pages: 1 2
1
General Mach Discussion / Parallel Port Pin 1 problem
« on: December 17, 2009, 10:38:23 PM »
 ???

I don't know what caused this but pin 1 of the parallel port stopped functioning as my X axis step output.  I tried using pin 1 as the direction output instead to no avail.  Tried using it with the Y and Z axis, but still no success.

Has anyone had this problem before?  I am using all of the output pins, so I can't just change to another pin.  I've tried upgrading to 3.45, without success, and given the port driver causing problems with laptops, I went back to version 2.65.

I know the parallel port output is the problem as I have tested the outputs with a digital probe.  It is not my breakout board.

Thanks in advance for any suggestions.

Ken Klausner

2
Those are used in bongs for smoking pot.

3
VB and the development of wizards / Re: How to attach VB script to button
« on: September 13, 2007, 10:10:09 PM »
That gives me an idea.  I struggled with my microchip programming and the charge pump 12.5kHz signal output to my breakout board.  The charge pump, for me anyway, is not a clean signal, and my microchip could not count the frequency properly.  Now, however, I can just use "Enable 1" to activate when Mach3 starts up.  The active signal on "Enable 1" will be a clear low signal for my microchip to read and thereby enable my stepper drivers.  Cool.

Now I can forget the charge pump and it's "watchdog timer" function.  Whatever purpose that serves.  The Mach3 manual states that the charge pump is the signal to show when Mach3 is up and running, but if the Enable outputs are active when Mach3 starts up, they can serve the same purpose.

4
VB and the development of wizards / Re: How to attach VB script to button
« on: September 13, 2007, 09:43:30 PM »
I didn't realize you could do that with the LED.  I like the blinking LED better than solid, and if I implement Enable 1 through 6 in another way, I'll have them blink.  However, whether I made "Enable 1" output active high or low, Mach3 makes the output active when Mach3 starts up.  I need the output to start deactivated, so I will continue to use Output 6, which starts deactivated.


5
VB and the development of wizards / Re: How to attach VB script to button
« on: September 13, 2007, 09:17:05 PM »
Bingo.  Thank you.  I've got it working, but I changed from "Enable 1" output to "Output 6".  When I start Mach3, "Enable 1" begins active, and although I know I could use a start-up macro to turn "Enable 1" off by placing the start-up macro's name in the "Initialization String" textbox on the "General Config..." page, I decided to use the following code, and it works great:

Code: [Select]
Option Explicit
Dim Test As Boolean
Test = GetOEMLED (79)
If (Test = True) Then
DeActivateSignal(Output6)
Else
ActivateSignal(Output6)
End If

I need to work on my understanding of Mach3's functions, OEM codes, and user created stuff.  Once I know those, my VB is pretty good, and I'll pick up on how to implement macros.  I found the following to work exactly like the code above:

Code: [Select]
If GetOEMLED (79) Then
DeActivateSignal(Output6)
Else
ActivateSignal(Output6)
End If

It's interesting to me and seems a bit unorthodox to check the LED rather than the signal itself to see if the signal is active or not, but as long as it works, it's fine with me.  I see that by activating the output, the LED turns on automatically.  That is, I'm not required to activate the output and turn on the LED too.

6
VB and the development of wizards / Re: How to attach VB script to button
« on: September 13, 2007, 07:56:16 PM »
I think I need to clarify what I am trying to do.  I have created a screen (just the diagnostics screen with an additional button) that includes an "Aux Pwr Toggle" button.  I want to make the Enable 1 output active, which will then trigger a relay that supplies 120VAC to an outlet on the back of my Mill's driver box.

I would like to create a macro for the "Aux Pwr Toggle" button that does two things: (1) it makes Enable 1 output active and toggles it on and off; and (2) when Enable 1 is active Enable 1 LED on the diagnostics screen blinks.  I don't know if blinking is automatic or not.  I hope it is.

I can't get a my button's macro to do this.  Can someone please supply the necessary code.

Thanks you

7
VB and the development of wizards / Re: How to attach VB script to button
« on: September 13, 2007, 03:34:25 PM »
Yes.  I follow you completely.  Thanks.  I just didn't understand the procedure.

Regarding the actual button macro, is there a toggle function?

If not, how do you test for "Enable 1" on or off?

I found this at Wiki:

ActivateSignal(Enable1) and DeActivateSignal(Enable1)

However, when the button is pressed, "Enable 1" needs to toggle from one to the other.  Will the following work?

AuxPwr = GetParam("Enable1")
If NOT AuxPwr Then
     ActivateSignal(Enable1)
Else
     DeActivateSignal(Enable1)
End If

I tried this in the diagnostics page, but the Enable 1 LED did not blink.  Do I need to turn the Enable 1 LED on and off or will the fact that the signal is turning on and off affect the LED?

Am I using the correct functions?  The correct syntax?

Help!


8
VB and the development of wizards / How to attach VB script to button
« on: September 13, 2007, 02:55:46 PM »
I'm in Screen4, I've created a new button.  However, after reviewing Wiki, I still do not have a clue as to how to attach a VB macro to the button's press event.

Can someone list code that will toggle "Enable 1" on and off when the button is pressed?

Given that I now have "toggle Enable 1" VB code in a macro, how do I attach it to the button's press event?

I need specific instructions as I can't find the answers in Wiki.  Too confused I guess.

9
General Mach Discussion / Re: Charge Pump Signal Hiccup
« on: September 10, 2007, 07:22:55 PM »
I'm using a Microchip 16F877A.  I would say my electronics knowledge is as good as a Techenical College degree.  By decoupling the signal do you mean having a capacitor between the signal input and ground?

I didn't know there was a "decoupled signal" example in the downloads.

10
General Mach Discussion / Re: How to use Mach3 outputs?
« on: September 10, 2007, 05:56:56 PM »
No I don't have "Mach3Screen.exe" in my Mach3 folder.  I looked in the downloads on the Artsoft website, but I can't find it.

Where do you download the screen editor and other advanced Mach3 software?

NEVER MIND I FOUND THE DOWNLOAD.

Pages: 1 2