Hello Guest it is April 30, 2024, 09:07:10 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 - Aeroshade

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 »
21
Brains Development / Re: Feed rate override switch
« on: October 27, 2011, 04:58:30 PM »
I tried that, but for some reason for it reads the largest %. This is how I set it up:

input 1 - invert
input 2 - invert
                              and - formula=0 - OEMDRO 821
input 3 - invert
input 4 - invert


input 1 - pass
input 2 - invert
                              and - formula=10 - OEMDRO 821
input 3 - invert
input 4 - invert



input 1 - invert
input 2 - pass
                              and - formula=20 - OEMDRO 821
input 3 - invert
input 4 - invert



input 1 - pass
input 2 - pass
                              and - formula=30 - OEMDRO 821
input 3 - invert
input 4 - invert



When I enable it, it sets my FRO DRO to 30%, and no matter what I switch it to it stays at 30%.


HELP :)


Aero

22
VB and the development of wizards / Re: Feed rate override switch
« on: October 27, 2011, 02:16:16 PM »
I'm trying to get the Brain up and running. I have attached the Brain I'm messing with, but when I run it, it sets the FRO to the last % on the list (in this Brain it's 30%) and when I turn the switch the FRO doesn't change. Any ideas?




For the Macropump I tried this but I don't see any change:

If IsActive(INPUT1) = False And IsActive(INPUT2) = False And IsActive(INPUT3) = False And IsActive(INPUT4) = False Then
SetOEMDRO(821, 0)
End If


Thanks for the help :)


Aero

23
VB and the development of wizards / Re: Feed rate override switch
« on: October 27, 2011, 12:40:14 PM »
If some one could write a simple one for reference that would be great, and I would much appreciate it.


Thanks

Aero

24
General Mach Discussion / Re: Twitchy MPG
« on: October 27, 2011, 12:38:08 PM »
I switch the polarity of the relays, so instead of 24vdc going through the switch it is grounding the relay. Works perfect now.



Thanks for the help :)

25
General Mach Discussion / Re: Twitchy MPG
« on: October 27, 2011, 11:21:03 AM »
Will this isn't really a Vital Systems issue, it's a me trying to figure out how to wire this issue :P I will try to explain how I have this hooked up better ;)

I have my switches (INPUTS) ran to OPTO 22 relays (G4IDC5, that's 10-30v in and 5v ttl out), and I get the power for the switches from the machines 24vdc power supply. From there they enter the motion control card (via 5v ttl).

The encoder (MPG handwheel) is a single-end (A,B) encoder. I have purchased an encoder converter from US Digital that converts the single-end to a differential signal (A+/-, B+/-).

The handwheel itself is integrated (meaning that the encoder (MPG) and the switches are on one card within the handwheel). In the wiring diagram (all in Japaneses) I can see that the switches share a COM. I have hooked 24vdc to that COM for the switches. When the switches are turned they make contact and send 24vdc to my OPTO relay which in turn forces the relay to send the proper 5vdc TTL to the motion control card triggering the INPUT in Mach3.

My question is since the switches and the MPG are integrated inside the handwheel should I be sending 24vdc through the switches? Should I try to lower the voltage or revers the polarity and make the switch go to ground to trigger the relay instead of sending the 24vdc from the switch to the relay?


Thanks :)

26
General Mach Discussion / Re: Twitchy MPG
« on: October 26, 2011, 07:47:55 PM »
What motion control board are you running????

(;-) TP


Sorry, it is a DSPMC from Vital Systems. I run all my INPUTs and OUTPUTs through OPTO 22 relays.

27
General Mach Discussion / Twitchy MPG
« on: October 26, 2011, 07:26:18 PM »
Hello all. I just hooked up a new handwheel control. It has an MPG, axis select and increment select switches. I used the 24vdc that I run throughout the machine for all my inputs and outputs, for the switches in the handwheel. Once I got the new handwheel hooked up, I tested the MPG and it worked great.. but when I move the axis and or increment switches I see a little jump in the handwheel counts. Obviously I have some voltage bleed over.

The coiled cable (prob. 6 feet unwound) that is connected to the handwheel (encoder and switch wires) is shielded and grounded to the machine through the cannon plug. I then have the wires separate into encoder wires (A+/-,B+/-, 5v and gnd) and the wires for my switches. From the split I run the encoder wires through a shielded cable to my motion control card and ground the shield at the motion control card.

I'm thinking that I'm getting the voltage bleed in the handwheel itself. My question is should I drop the voltage to 12v for the switches? Will this do any good?


Thanks for the help :)

Aero

28
VB and the development of wizards / Re: Feed rate override switch
« on: October 26, 2011, 12:48:29 PM »
FOr that I would do it in the Brains. The Brians are much faster in the actual code side. AND seeing as it is a basic ladder type coding it would work best.

Now the brains CAN be painfull to build long ladders. IF you mess up somewhere you have to start all over from scratch to rebuild the Rungs of the ladder.

Just a thought, (;-) TP

That is what i have been running into, what DRO would I need to change and how do I set its value? I have wrote VERY simple Brains, but I'm up to the challenge if it works good :)


ADD: I have never wrote a Brain were I had to set a value.

29
VB and the development of wizards / Re: Feed rate override switch
« on: October 26, 2011, 12:46:53 PM »
I could prob. do something like this:

CurrentFeedrate = FeedRate()

If IsActive(INPUT1) = False And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
CurrentFeedrate= 0
SetFeedrate(CurrentFeedrate)
End If

If IsActive(INPUT1) And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
CurrentFeedrate= CurrentFeedrate/10
SetFeedrate(CurrentFeedrate)
End If

And so on, not sure if the language is correct, but you get my point.

30
VB and the development of wizards / Feed rate override switch
« on: October 26, 2011, 12:35:27 PM »
Hello all, I have searched for an answer to this for awhile and have come up empty.

I have posted this in Brains and VB to get both opinions.

I have a 16 position binary switch ( 4 pins - 1,2,4,8). I have the pins set to Input #1,2,3 and 4. The way this switch works is pin 1 = 1, pin 2 = 2, pin 1 and pin 2 = 3 and so on tell you get 16 (counting all pins off as a position).

I need to find a way to have this control my feedrate over ride, plus my rapid override at the same time. I'm not sure if the best way would be with a Brain or in VB - Macropump. The most important thing is that the switch works fast.

I don't have a problem writing it up in my Macropump, just need a little guidance on the code.

This is what I was think for the layout, just not sure about the DRO for the FRO:

If IsActive(INPUT1) = False And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
SetOEMDRO(0, 0) <--- Needs to set the DRO to 0%
End If

If IsActive(INPUT1) And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
SetOEMDRO(0, 0) <--- Needs to set the DRO to 10%
End If


So on and so forth, tell I get all 16 positions set.


Any help would be GREAT!!


Thanks,

Aero

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