Re: [Emc-users] connecting up spindle to mesa 7i76 card

2020-03-31 Thread Gene Heskett
On Tuesday 31 March 2020 23:42:38 andrew beck wrote:

> hey guys yelping out for help again here.  sorry to me so noisy on the
> email list lol.
>
> just coming back to this problem with my spindle direction signals.
>
> (just to reiterate my set up
>
> I have a mesa 7i76 card and have the anlog input up and working.  I am
> controlling a schiender vfd using 2 wire control at the moment. 
> though I can use 3 wire control if that helps.
>
> the enable pin on the 7i76 is currently set to switch the forward
> rotation on the vfd
> the direction pin is currently set up for switch the reverse input on
> the vfd
That sounds correct but do you have a common return from the negative end 
of the 10 or 12 volt supply most vfd's supply back to the - terminal on 
the 7i76?  This would be your 4th wire.  You need this wire from 
the -supply in the vfd, to the -speed on the 7i76, the wire from the + 
12 of that supply in the vfd to the the +speed of the 7i76, a wire from 
the speed terminal of the 7i76 to the 0-10 volts speed input of the vfd.  
That will run you fwd only. For reverse, now that you have a common - 
rail, you will need to pull down to that, by sinking the reverse. Here 
is the spindle section of my hal file for a 6040 mill with a Chinese 120 
volt vfd that required reprogramming!! 
#***
# setup spindle driver *
#***
net  spindle-cmd <= spindle.0.speed-out  => abs.1.in
# feed always + value to spinout
net  spindle-abs <= abs.1.out => hm2_5i25.0.7i76.0.0.spinout
# set a minimum speed to protect motor
# you can add these vars in the spindle section of the ini file!
setp hm2_5i25.0.7i76.0.0.spinout-maxlim   [SPINDLE_0]MAXREV_LIM
setp hm2_5i25.0.7i76.0.0.spinout-minlim  [SPINDLE_0]MINREV_LIM
setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_0]MAXREV_LIM
net motor-power <=  motion.motion-enabled
net  spindle-enable <= spindle.0.on
# enable spindle forward
net  spindle-enable => fwdpul.in0
net  spindle-ena1   <= fwdpul.out => hm2_5i25.0.7i76.0.0.spinena

# spindle fwd-rev to tallies in xml file
net  spindle-fwd<= spindle.0.forward # used in postgui.hal to turn on 
# and machine power
net  spindle-rev<= spindle.0.reverse => revpul.in0
net  spinrev1   <= revpul.out => hm2_5i25.0.7i76.0.0.spindir

# make the or2's into buffers, not's in other words
setp revpul.in1 false
setp fwdpul.in1 false
# While at it, use motion-enabled to turn on machine and lights, power
# output sinks to ground, relay coil pwr src is 12v term strip
# and don't forget a free-wheeling diode on the relays coil.
net  motor-power=> hm2_5i25.0.7i76.0.0.output-02
# break into 2nd power strips cord, cutting the (black) hot wire with the 
relay contacts so all motor
power and a 4 foot led lamp over machine all come on with the 
motion.enable signal. F2 on the keyboard.

As you can see, I am fond of renaming a module to indicate what its 
doing. :)

Hopefully this should clarify (but it could muddy the waters too since I 
have never seen one of those vfd's) things a bit because the pin names 
are all here.
>
> I can speed up and run the spindle fine forwards its just backwards
> that is a problem)
>
> anyway to carry on with the issue
>
> So its quite funny what happens.
>
> I can start the spindle in forward rotation with m3 s400  then I can
> stop the spindle manually or with m30.  and then start it backwards
> with m4 s400.  then without stopping I can type m3 s500 again and send
> it forwards.  That part all works good.  what doesn't work is if I try
> to send the spindle backwards on the fly.  eg m4 s500 while still
> running forward. The speed changes but the direction doesn't.  Its a
> weird.
>
> One fix for this I suppose is I could connect a relay that switches
> the direction in the vfd between forward and reverse rotation.  that
> is easy but I still don't know if it will work.  I suppose I could
> almost run the enable relay feeding the direction relay so you switch
> the direction relay between fwd and rev and actually turn on the vfd
> with enable relay once the direction relay is set the right way.  But
> that sounds like a pretty complicated setup when I know that I am
> facing a very common problem.  So I will await any ideas before
> mucking around too much..
>
> I will add a photo of what I am thinking and reply here from my phone.
>
> regards
>
> Andrew
>
> On Tue, Mar 17, 2020 at 2:12 PM Gene Heskett  
wrote:
> > On Monday 16 March 2020 19:28:59 andrew beck wrote:
> > > ok gene just a update
> > >
> > > I have the mesa card connected to the vfd now.
> > >
> > > currently the analog signal is working fine I can it being read by
> > > the vfd which is good.
> > >
> > > I am having trouble with the control signals though.
> > >
> > > I currently have the 7i76 spindle enable pin switching the forward
> > > pin on the vfd
> > > the spindle direction pin on 7i76 

Re: [Emc-users] best diy 4th axis

2020-03-31 Thread Bari

Sorry I left out:

What accuracy is required?

What repeatability is required?


On 3/31/20 10:03 PM, andrew beck wrote:

Hey guys.

I have been thinking about my 4th axis I am going to make.

I have my cnc mill working now though there is still a bunch of work to get
done.  But I have been thinking about how I can make the best 4th axis and
after that 5th axis.

I have narrowed it down to either harmonic drives or Hypocycloidal gear
boxes.

I am thinking the hypocyloidal type looks the most rigid and best to make
as it looks like the it would be very easy to make on a cnc mill and a
harmonic drive relies on a thin strain wave gear that is not the
strongest.  I actually have a rather large one which I have been thinking
about using but I would like to go with a the hypocycloidal design instead.

all you guys out there with awesome cncs sitting in your sheds have you
ever built one of these?  I don't want to reinvent the wheel if I don't
have to.  And I am on the track to making my cnc a 5th axis when I get to
it.  First I will make the 4th axis and pump a bit of work through it and
make some money lol.  But 5 axis looks pretty fun and cool and I think it
is finally doable for the pro diy person.

I have all the toys like a surface grinder and lathes etc and of course the
cnc mill.

also don't mind spending money if needed as it is a business.

here are some links to get the ideas flowing

videos

https://www.youtube.com/watch?v=Eds48L4cJjM

fuson 360 scripts to generate the gear profile.


https://github.com/mawildoer/cycloidal_generator/blob/master/README.md
https://github.com/tapnair/Fusion360HypocycloidGear


and just to show that it has been done before I say that the new Hass
umc500 has cycloidal gearboxes in it so the design must be pretty good.

https://www.haascnc.com/machines/vertical-mills/universal-machine/models/umc-500.html


regards

Andrew

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] best diy 4th axis

2020-03-31 Thread Bari

How fast do you need it to move?

How much torque do you require?


On 3/31/20 10:03 PM, andrew beck wrote:

Hey guys.

I have been thinking about my 4th axis I am going to make.

I have my cnc mill working now though there is still a bunch of work to get
done.  But I have been thinking about how I can make the best 4th axis and
after that 5th axis.

I have narrowed it down to either harmonic drives or Hypocycloidal gear
boxes.

I am thinking the hypocyloidal type looks the most rigid and best to make
as it looks like the it would be very easy to make on a cnc mill and a
harmonic drive relies on a thin strain wave gear that is not the
strongest.  I actually have a rather large one which I have been thinking
about using but I would like to go with a the hypocycloidal design instead.

all you guys out there with awesome cncs sitting in your sheds have you
ever built one of these?  I don't want to reinvent the wheel if I don't
have to.  And I am on the track to making my cnc a 5th axis when I get to
it.  First I will make the 4th axis and pump a bit of work through it and
make some money lol.  But 5 axis looks pretty fun and cool and I think it
is finally doable for the pro diy person.

I have all the toys like a surface grinder and lathes etc and of course the
cnc mill.

also don't mind spending money if needed as it is a business.

here are some links to get the ideas flowing

videos

https://www.youtube.com/watch?v=Eds48L4cJjM

fuson 360 scripts to generate the gear profile.


https://github.com/mawildoer/cycloidal_generator/blob/master/README.md
https://github.com/tapnair/Fusion360HypocycloidGear


and just to show that it has been done before I say that the new Hass
umc500 has cycloidal gearboxes in it so the design must be pretty good.

https://www.haascnc.com/machines/vertical-mills/universal-machine/models/umc-500.html


regards

Andrew

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] best diy 4th axis

2020-03-31 Thread John Dammeyer
> From: andrew beck [mailto:andrewbeck0...@gmail.com]

> Hey guys.
> 
> I have been thinking about my 4th axis I am going to make.
> 
> I have my cnc mill working now though there is still a bunch of work to get
> done.  But I have been thinking about how I can make the best 4th axis and
> after that 5th axis.
> 
> I have narrowed it down to either harmonic drives or Hypocycloidal gear
> boxes.

After Andy Pugh posted an Ebay link for a harmonic drive like his a couple of 
years ago I jumped at it and bought it.  I'm still way behind as I'm just 
working on the crucible to hold enough aluminium to cast the holder.  Patterns 
are done and the STMBL runs it nicely sitting in the 3D printed example of what 
I'll be machining.  But no faceplate or chuck yet either.

And does have his working with the STMBL drive.  He's the best person to report 
on harmonic drive for a 4th Axis.  

> 
> I am thinking the hypocyloidal type looks the most rigid and best to make
> as it looks like the it would be very easy to make on a cnc mill and a
> harmonic drive relies on a thin strain wave gear that is not the
> strongest.  I actually have a rather large one which I have been thinking
> about using but I would like to go with a the hypocycloidal design instead.
> 
> all you guys out there with awesome cncs sitting in your sheds have you
> ever built one of these?  I don't want to reinvent the wheel if I don't
> have to.  And I am on the track to making my cnc a 5th axis when I get to
> it.  First I will make the 4th axis and pump a bit of work through it and
> make some money lol.  But 5 axis looks pretty fun and cool and I think it
> is finally doable for the pro diy person.
> 
> I have all the toys like a surface grinder and lathes etc and of course the
> cnc mill.
> 
> also don't mind spending money if needed as it is a business.
> 
> here are some links to get the ideas flowing
> 
> videos
> 
> https://www.youtube.com/watch?v=Eds48L4cJjM
> 
> fuson 360 scripts to generate the gear profile.
> 
> 
> https://github.com/mawildoer/cycloidal_generator/blob/master/README.md
> https://github.com/tapnair/Fusion360HypocycloidGear
> 
> 
> and just to show that it has been done before I say that the new Hass
> umc500 has cycloidal gearboxes in it so the design must be pretty good.
> 
> https://www.haascnc.com/machines/vertical-mills/universal-machine/models/umc-500.html
> 
> 
> regards
> 
> Andrew
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ensure_mdi function call

2020-03-31 Thread nkp

in this case the mode does not switch:
that is - when you press F5, the mode remains "manual"


01.04.2020 00:42, andy pugh пишет:

So seems deliberate.




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up spindle to mesa 7i76 card

2020-03-31 Thread andrew beck
hey guys yelping out for help again here.  sorry to me so noisy on the
email list lol.

just coming back to this problem with my spindle direction signals.

(just to reiterate my set up

I have a mesa 7i76 card and have the anlog input up and working.  I am
controlling a schiender vfd using 2 wire control at the moment.  though I
can use 3 wire control if that helps.

the enable pin on the 7i76 is currently set to switch the forward rotation
on the vfd
the direction pin is currently set up for switch the reverse input on the
vfd

I can speed up and run the spindle fine forwards its just backwards that is
a problem)

anyway to carry on with the issue

So its quite funny what happens.

I can start the spindle in forward rotation with m3 s400  then I can stop
the spindle manually or with m30.  and then start it backwards with m4
s400.  then without stopping I can type m3 s500 again and send it
forwards.  That part all works good.  what doesn't work is if I try to send
the spindle backwards on the fly.  eg m4 s500 while still running forward.
The speed changes but the direction doesn't.  Its a weird.

One fix for this I suppose is I could connect a relay that switches the
direction in the vfd between forward and reverse rotation.  that is easy
but I still don't know if it will work.  I suppose I could almost run the
enable relay feeding the direction relay so you switch the direction relay
between fwd and rev and actually turn on the vfd with enable relay once the
direction relay is set the right way.  But that sounds like a pretty
complicated setup when I know that I am facing a very common problem.  So I
will await any ideas before mucking around too much..

I will add a photo of what I am thinking and reply here from my phone.

regards

Andrew

On Tue, Mar 17, 2020 at 2:12 PM Gene Heskett  wrote:

> On Monday 16 March 2020 19:28:59 andrew beck wrote:
>
> > ok gene just a update
> >
> > I have the mesa card connected to the vfd now.
> >
> > currently the analog signal is working fine I can it being read by the
> > vfd which is good.
> >
> > I am having trouble with the control signals though.
> >
> > I currently have the 7i76 spindle enable pin switching the forward pin
> > on the vfd
> > the spindle direction pin on 7i76 switches reverse pin on vfd
> >
> > I am a bit stuck with what I need to do to connect up the hal
> > signals.. any help there would be appreciated.  and let me know what
> > info you need from me.
> >
> > regards
> >
> > Andrew
> >
> > On Mon, Mar 16, 2020 at 7:02 PM andrew beck 
> >
> > wrote:
> > > I have a schiender vfd made in France so a proper manual lol.
> > >
> > > It's just the Mesa card I'm not sure about lol
> > >
> > > On Mon, Mar 16, 2020, 9:10 PM Gene Heskett 
> wrote:
> > >> On Monday 16 March 2020 00:28:43 andrew beck wrote:
> > >> > Hey guys..
> > >> >
> > >> > this has probably been rehashed a few times but did some google
> > >> > searches and couldn't find it so am asking here
> > >> >
> > >> > I just want to connect my mesa 7i76 spindle outputs to my vfd.
> > >> >
> > >> > I will use 0-10 volts control speed reference and a forward pulse
> > >> > and reverse pulse.
> > >> >
> > >> > I am not sure what actual pins I should be using though and am
> > >> > slightly confused.
> > >> >
> > >> > any help would be appreciated
> > >>
> > >> There are pins designated for that on the 7i76D, what seems to
> > >> confuse folks is that the spindle speed is an electronic resistor
> > >> that acts exectly like the arm of the front panel speed pot on the
> > >> vfd, but the vfd must be programmed to use it that way. Print the
> > >> 7i76 manual and reread it, it is explained.
> > >>
> > >> Less clearly done is the explanation in the vfd manual as most are
> > >> chinglish or engrish translations that are only half-assedly done.
> > >> Sometimes they switch halves in mid sentence too, just to make it
> > >> interesting :-[
> > >>
> > >> > regards
> > >> >
> Get the Sheldon package from my web site, my vfd is being fed from pwmgen
> 0, follow that to where the pwm feeds a spinx1, bypass that, and feed
> the pwmgen to the spindle-speed on the 7i76. I'll also attach the hal
> file for my G0704, but it doesn't have a vfd as its useing a pico
> pwm-servo to run its pmdc motor. But between those 2 files, that should
> show you how the analog signal gets from point A to point B on a 7i76.
>
> If not, yelp again.
>
> Take care, avoid this virus if you can.
> > >> > Andrew
> > >> >
> > >> > ___
> > >> > Emc-users mailing list
> > >> > Emc-users@lists.sourceforge.net
> > >> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > >>
> > >> Cheers, Gene Heskett
> > >> --
> > >> "There are four boxes to be used in defense of liberty:
> > >>  soap, ballot, jury, and ammo. Please use in that order."
> > >> -Ed Howdershelt (Author)
> > >> If we desire respect for the law, we must first make the law
> > >> respectable. - Louis D. Brandeis
> > >> Genes 

[Emc-users] best diy 4th axis

2020-03-31 Thread andrew beck
Hey guys.

I have been thinking about my 4th axis I am going to make.

I have my cnc mill working now though there is still a bunch of work to get
done.  But I have been thinking about how I can make the best 4th axis and
after that 5th axis.

I have narrowed it down to either harmonic drives or Hypocycloidal gear
boxes.

I am thinking the hypocyloidal type looks the most rigid and best to make
as it looks like the it would be very easy to make on a cnc mill and a
harmonic drive relies on a thin strain wave gear that is not the
strongest.  I actually have a rather large one which I have been thinking
about using but I would like to go with a the hypocycloidal design instead.

all you guys out there with awesome cncs sitting in your sheds have you
ever built one of these?  I don't want to reinvent the wheel if I don't
have to.  And I am on the track to making my cnc a 5th axis when I get to
it.  First I will make the 4th axis and pump a bit of work through it and
make some money lol.  But 5 axis looks pretty fun and cool and I think it
is finally doable for the pro diy person.

I have all the toys like a surface grinder and lathes etc and of course the
cnc mill.

also don't mind spending money if needed as it is a business.

here are some links to get the ideas flowing

videos

https://www.youtube.com/watch?v=Eds48L4cJjM

fuson 360 scripts to generate the gear profile.


https://github.com/mawildoer/cycloidal_generator/blob/master/README.md
https://github.com/tapnair/Fusion360HypocycloidGear


and just to show that it has been done before I say that the new Hass
umc500 has cycloidal gearboxes in it so the design must be pretty good.

https://www.haascnc.com/machines/vertical-mills/universal-machine/models/umc-500.html


regards

Andrew

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up mpg

2020-03-31 Thread andrew beck
Hey just another question here guys.

I am running out of spare io and want to close the loop back to the control
with my encoders so the machine can home to index and knows where it is
when drives are turned off under e stop condition.

I know about the 7i85 with 4 encoder inputs but the rest of that board
looks like it's all serial connections.  Can I use those for general inputs
and outputs or do I need another card like the 7i73(operator interface
card) ?

Regards

Andrew

On Wed, Apr 1, 2020, 1:34 PM andrew beck  wrote:

> Hey John that sounds awesome.  I think I will just machine/ 3d print a
> case like you have.
>
> I have some 25mm thick acrylic I might use what could be cool.
>
> On Wed, Apr 1, 2020, 8:40 AM Jon Elson  wrote:
>
>> On 03/31/2020 02:21 PM, andrew beck wrote:
>> > Does anyone have any reasonablely priced simple mpg pendants I can
>> buy?  I
>> > just want a estop, selector switches and mpg on it.  And would like
>> cheap
>> > lol
>> >
>> >
>> Well, I made my own.
>> See http://pico-systems.com/pendant.html  The top one was
>> the first I did, later I came up with the 2nd one, which is
>> a lot more convenient.  The HAL files are written for my
>> Pico Systems motion interfaces, but at least some of what
>> they do is generic.  I have XYZ jogging plus feedrate and
>> spindle overrides on them.
>> I also have an enable button that has to be held to enable
>> the dial to change anything, that is an important safety
>> feature.
>>
>> Jon
>>
>>
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up mpg

2020-03-31 Thread andrew beck
Hey John that sounds awesome.  I think I will just machine/ 3d print a case
like you have.

I have some 25mm thick acrylic I might use what could be cool.

On Wed, Apr 1, 2020, 8:40 AM Jon Elson  wrote:

> On 03/31/2020 02:21 PM, andrew beck wrote:
> > Does anyone have any reasonablely priced simple mpg pendants I can buy?
> I
> > just want a estop, selector switches and mpg on it.  And would like cheap
> > lol
> >
> >
> Well, I made my own.
> See http://pico-systems.com/pendant.html  The top one was
> the first I did, later I came up with the 2nd one, which is
> a lot more convenient.  The HAL files are written for my
> Pico Systems motion interfaces, but at least some of what
> they do is generic.  I have XYZ jogging plus feedrate and
> spindle overrides on them.
> I also have an enable button that has to be held to enable
> the dial to change anything, that is an important safety
> feature.
>
> Jon
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ensure_mdi function call

2020-03-31 Thread andy pugh
On Tue, 31 Mar 2020 at 21:27, nkp  wrote:

> function call is missing. (ensure_mdi)
> is this a bug?

Happened here:
https://github.com/LinuxCNC/linuxcnc/commit/b7a13a899c59fb329602e2493d5edd07d3bf4244#diff-3b786d0e176b753ddb19c28e71968d66

Refers to these two issues:
https://github.com/LinuxCNC/linuxcnc/issues?q=is%3Aissue+285

So seems deliberate.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] ensure_mdi function call

2020-03-31 Thread nkp

--- axis2.7.15.tcl
+++ axis.master.tcl
...
...
...
@@ -804,7 +822,7 @@
 $_tabs_manual configure -borderwidth 2
 $_tabs_mdi configure -borderwidth 2

-${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus 
${_tabs_mdi}.command]; ensure_mdi"
+${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus 
${_tabs_mdi}.command];"

 #${pane_top}.tabs raise manual
 after idle {
 ${pane_top}.tabs raise manual
...
...
...




function call is missing. (ensure_mdi)
is this a bug?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up mpg

2020-03-31 Thread Jon Elson

On 03/31/2020 02:21 PM, andrew beck wrote:

Does anyone have any reasonablely priced simple mpg pendants I can buy?  I
just want a estop, selector switches and mpg on it.  And would like cheap
lol



Well, I made my own.
See http://pico-systems.com/pendant.html  The top one was 
the first I did, later I came up with the 2nd one, which is 
a lot more convenient.  The HAL files are written for my 
Pico Systems motion interfaces, but at least some of what 
they do is generic.  I have XYZ jogging plus feedrate and 
spindle overrides on them.
I also have an enable button that has to be held to enable 
the dial to change anything, that is an important safety 
feature.


Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up mpg

2020-03-31 Thread andrew beck
hey guys I grabbed another MPG I had on my slant bed lathe that needs a
retrofit next, this one is a 5 volt mpg so I get a way from the
annoyance for now of having a 12 volt mpg though I will still try Johns
idea with resistors as this other mpg is a fanuc brand and much stiffer and
not so nice as my first option so I will probably use the other option

can I just get you guys to look over my thinking here and tell me if I am
moving in the right direction?

by the looks of it first things first I need to set up my 7i76 into mpg
mode with this piece of code in the Hal file
*sserial_port_0=20xx*
Then I need to connect up mpg to inputs 16 and 17.

Power from 24 volts io power source (pulled down to 12 volts by resistors)

For the rest I am following Rods excellent spaceship build thread he
explains it so good.  I will probably be in touch about the Hal connections
though

So I think I am away laughing.

Though now I'm thinking I need to get a mpg pendant instead of just
installing the mpg in the panel haha.

Does anyone have any reasonablely priced simple mpg pendants I can buy?  I
just want a estop, selector switches and mpg on it.  And would like cheap
lol

Regards

Andrew

On Tue, Mar 31, 2020 at 3:39 PM andrew beck 
wrote:

> hey guys I love both the suggestions.  I have a problem though.
>
> the whole of New Zealand is currently on lockdown and I can't buy anything.
>
> I have a whole box of resistors that I bought and might have a few diodes
> left.
>
> is it possible to hack something together for now?
>
> and also do you guys think it would be possible to connect 24 volts
> directly to the 12 volt mpg or I am going to blow something?  my initial
> thought it bad idea but it can't hurt to ask
>
> On Tue, Mar 31, 2020 at 3:36 PM Chris Albertson 
> wrote:
>
>> How much current is needed in the 12 volt supply?   I'm guessing less
>> than 100 ma.
>>
>> If you have 24 volts DC available then you can drop it down to 12 volts a
>> few different ways but the simplest might be an LM7812 linear regulator.
>> The LM7812 is nearly bomb proof. These cost under $2
>> Look at figure 9 on the datasheet and note the values of the caps are not
>> critical at all.
>> https://www.mouser.com/datasheet/2/149/LM7812-461970.pdf
>> 
>>
>>
>>
>> On Mon, Mar 30, 2020 at 6:54 PM andrew beck 
>> wrote:
>>
>> > hey guys I was asking about connecting a 12v mpg encoder to my mesa 7i76
>> > card. last week.  I have done some testing with a pc atx power supply
>> and a
>> > multimeter and it looks like at 12 v when measuring between the A
>> channel
>> > and ground(0V) the high value is 5.2 volts and low is zero(or close to
>> it)
>> > also there are some nice status leds that show what the channels on the
>> mpg
>> > are doing.
>> >
>> > when powering it with 5 volts the leds don't work and the high voltage
>> is
>> > 2.7 volts and the low is zero volts.  I read the threshold in the mpg
>> > inputs is 2.5 volts with 10 percent hysteresis so I need to pull at
>> least
>> > 2.8 volts.  also I am thinking that might be a bit close and result is
>> > unreliable operation.
>> >
>> > Is there anyway I can supply this with 12 volts from my board?  I am
>> > running the field voltage at 24volts.
>> >
>> > regards
>> >
>> > Andrew
>> >
>> >
>> > On Tue, Mar 24, 2020 at 7:53 AM Peter C. Wallace 
>> wrote:
>> >
>> > > On Tue, 24 Mar 2020, andrew beck wrote:
>> > >
>> > > > Date: Tue, 24 Mar 2020 07:34:01 +1300
>> > > > From: andrew beck 
>> > > > Reply-To: "Enhanced Machine Controller (EMC)"
>> > > > 
>> > > > To: "Enhanced Machine Controller (EMC)" <
>> > emc-users@lists.sourceforge.net
>> > > >
>> > > > Subject: Re: [Emc-users] connecting up mpg
>> > > >
>> > > > Hey Peter.
>> > > >
>> > > > When I enable the mpg mode does that mean I will lose my whole
>> config
>> > or
>> > > do
>> > > > I just need to change something in the Hal file.
>> > >
>> > > YOU just change some settings in the hal file
>> > > >
>> > > > I'm thinking It sounds like the best thing is to setup all my io in
>> > > > pnfconfig leaving the mpg inputs spare and then after that start
>> hard
>> > > > coding in Hal.
>> > >
>> > > Yes leave the 2 or 4 pins (for 1 or 2 MPGs) free if you want to use a
>> MPG
>> > > Note the enabling the MPG in the hal file will not cause you to lose
>> the
>> > > ability
>> > > to use inputs 16..19  for normal digital input use
>> > >
>> > > > Do you know how much I can do in pnfconfig?
>> > > >
>> > >
>> > > I dont think pncconf supports MPG setup, so this needs to be done by
>> > > editing the
>> > > HAL file
>> > >
>> > >
>> > > > New Zealand is going in to total isolation for a month from tomorrow
>> > > > because of covid 19 so I have some time for this lol :)
>> > > >
>> > > > Regards
>> > > >
>> > > > Andrew
>> > > >
>> > > > Regards
>> > > >
>> > > > Andrew
>> > > >
>> > > > On Mar 24, 2020 3:18 AM, "Peter C. Wallace" 
>> wrote:
>> > > >
>> > > > On Mon, 23 Mar 2020, 

Re: [Emc-users] 2-axis head -> 5-axis kinematics

2020-03-31 Thread andy pugh
On Tue, 31 Mar 2020 at 15:14, Tomaz T.  wrote:

> is there maybe 5-axis kinematics module suited for this kind of 2-axis head 
> design which has A (or B) axis at an angle, for example 50 degrees, like the 
> on from following link:
> https://www.hiteco.net/en/products/bi-rotary-units.c8396/serie-orbital-j-50deg.8398/orbital-jqx-50-compressed-air.101428

They seem to be 2-DOF serial kinematics + cartesian.

Inverse kinematics is easy, but forward seems a bit harder.

I don't think that genserkins can be forced in to that shape due to
the non-serial prismatic axes.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] 2-axis head -> 5-axis kinematics

2020-03-31 Thread Tomaz T .
Hi all,

is there maybe 5-axis kinematics module suited for this kind of 2-axis head 
design which has A (or B) axis at an angle, for example 50 degrees, like the on 
from following link:
https://www.hiteco.net/en/products/bi-rotary-units.c8396/serie-orbital-j-50deg.8398/orbital-jqx-50-compressed-air.101428

Video: https://www.youtube.com/watch?v=rJs8RaKsnw8



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-31 Thread andy pugh
On Tue, 31 Mar 2020 at 05:14, Sam Sokolik  wrote:

> The encoder on the motor that goes back to the stmbl is pretty high count -
> like 20k/rev.  But only a small ribbed belt between the motor and the
> spindle.  (why I put the gear tooth encoder there)

So, what you would need would be a PLL to keep the motor encoder
counts in synch with the low-count encoder.
There probably is actually a way to do this. Maybe a PID to add a
phase difference to the motor encoder using the spindle encoder as a
feedback.

For normal rigid tapping the evidence seems to be that you can get
away with a ribbed belt (20 or 30 turns, typically) but this
application is probably as critical as it gets with many more turns
than usual.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-31 Thread Gene Heskett
On Tuesday 31 March 2020 00:11:56 Sam Sokolik wrote:

> The encoder on the motor that goes back to the stmbl is pretty high
> count - like 20k/rev.  But only a small ribbed belt between the motor
> and the spindle.  (why I put the gear tooth encoder there)
>
The ribbed belt, aka a polygroove can handle lots more power than a 
v-belt of equ width. But it is not without a very small slip angle so is 
impractical to turn an encoder if you intend to do any rigid tapping. 
Putting the A/B on the rear of the motor was about 4 hours work because 
makeing the motors back shaft was a bit of a problem.  I used the socket
in the back of its flush shaft as a center drill starter, and drilled 
about 10mm deep, then tapped it for a 3mmx.7 cap screw. Then I made a 
hollow brass extension shaft about 15mm long with a flange on one end 
turned about a thou hollow on its bottom face so the outside edge sat on 
the 14mm motor shaft. 3mm cap screw thru it into the motor shaft.

The encoder came with a coupler that fit a .250 shaft. Then I made 4 
standoffs after cutting away the top of the motor houseing leaving about 
5/16 around the edge, drilled the 4 corners and made an alu plate to 
hold the encoder, and stood it all up on top of the motor with 4 shop 
made standoffs.

It will take around twice the width in a toothed belt to handle the 
power.  I've stripped the teeth off a cogged belt half a dozen times 
which in turn burns up the plastic pulley on my 7x12, which now has a 
1HP treadmill motor turning it and fed to at least 1.5HP by my choice of 
psu's. Back to the G0704, I already had a home-made optical encoder on 
top of the spindle so the index pulse remained connected to it, hence 
the need for some tally switches on the knob, and some hal stuff to keep 
the pyvcp tach dead on. But the disk came loose a month back and 
totalled the opto's so the index is now a ferrous pin JBWelded to the 
side of the drawbar cap, and an ATS667.

> Maybe a toothed belt is in the future..  - could gear it down a bit
> more for slow rpm projects like this.

I'd luv to be able to switch low gear from 1500 max down to 500, but...
Unforch for me the drive in a G0704 is all gears, and made from cast 
nylon. Why I haven't munched them I haven't a clue because I'm hitting 
that 1HP 90 volt, 9.7 FLA motor with 125 volts at 17+ amps limit set in 
the Pico pwm-servo driver.

I've some hal stuff to sequence the reversal, but despite that slowdown 
dictated by Z's inability to keep up, my turn-around times from 3k to 3k 
in the opposite direction run to about 400 milliseconds.  Not too shabby 
for a piece of junk that isn't even square.  The post leans about 2 
degrees. Someday before the rapture I'd like to fix that. :(

Stay safe Sam, you are a treasure of innovation.

> On Mon, Mar 30, 2020 at 7:19 AM Gene Heskett  
wrote:
> > On Monday 30 March 2020 07:34:02 andy pugh wrote:
> > > On Sat, 28 Mar 2020 at 19:40, Sam Sokolik  
wrote:
> > > > You can really see the spindle res...
> > > > http://electronicsam.com/images/greenmachine/IMG_20200328_140150
> > > >.jpg
> > >
> > > Is there a motor encoder? You could try using that instead,
> > > especially if it's a toothed belt drive.
> >
> > I highly recommend it. I have a 1000ppr on the back of my spindle
> > motor, and some tally switches on the edge of the gear shift knob.
> > So my operative spindle scale is something over 7k in high gear and
> > a bit over 14k in low gear. That is such a fine resolution I can run
> > the PID's Pgain well above 20. There is not a detectable slowdown or
> > even working hard sound when the load comes on until I hear the iron
> > in the motor squeaking when the Pico pwm-servo's current limit kicks
> > in at around 17 amps.
> >
> > Cheers, Gene Heskett
> > --
> > "There are four boxes to be used in defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author)
> > If we desire respect for the law, we must first make the law
> > respectable. - Louis D. Brandeis
> > Genes Web page 
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users