Re: [Emc-users] 5i25 gpio's

2018-10-26 Thread Peter C. Wallace

On Fri, 26 Oct 2018, Gene Heskett wrote:


Date: Fri, 26 Oct 2018 21:17:29 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: [Emc-users] 5i25 gpio's

Greetings all;

I just hooked up a couple cables to the BOB on a 5i25's p2 connector. But
gpio 31-32-33-34-35 apparently have no pullup.I searched thru the hal
file looking for gpio.013, which is the pin all three switches formerly
shared and is wired to p3-10.  Those pins have a pullup, to about 4.85
volts.


All I/O pins on P2 and P3 have 3.3K pullups



I don't recall ever having to make a std parport pin an input an input,
but somethings out of whack. I'll take the box apart again tomorrow to
make sure that BOB is powered. I'm also considering making a new, bigger
box, and moving both bobs to it, this machine's bob wiring has about
exceeded the real estate dedicated to the bob interface.  Needs more
playroom.

In the meantime, if this rings a bell, with 5i25b users, speak up.

Thank you all.

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)
Genes Web page 


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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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


[Emc-users] 5i25 gpio's

2018-10-26 Thread Gene Heskett
 Greetings all;

I just hooked up a couple cables to the BOB on a 5i25's p2 connector. But 
gpio 31-32-33-34-35 apparently have no pullup.I searched thru the hal 
file looking for gpio.013, which is the pin all three switches formerly 
shared and is wired to p3-10.  Those pins have a pullup, to about 4.85 
volts.

I don't recall ever having to make a std parport pin an input an input, 
but somethings out of whack. I'll take the box apart again tomorrow to 
make sure that BOB is powered. I'm also considering making a new, bigger 
box, and moving both bobs to it, this machine's bob wiring has about 
exceeded the real estate dedicated to the bob interface.  Needs more 
playroom.

In the meantime, if this rings a bell, with 5i25b users, speak up.

Thank you all.

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)
Genes Web page 


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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread Gene Heskett
On Friday 26 October 2018 09:41:15 Les Newell wrote:

> You can't have a pointer on an encoder because you have no way of
> knowing where zero is.
>
> Les

Tactilly this is true, but its z index could use used to zero the hal 
representation. But not having a mechanical stop at that zero seems like 
an accident that WILL find a place to happen. That fellow Murphy can 
show up at the most damaging time. ;-)


> On 26/10/2018 13:42, Todd Zuercher wrote:
> > For the OCD like myself, the one machine I work with that has a
> > factory pot for feed override, is a pain to twiddle the knob to get
> > the control to show exactly 100% on the screen.  It's always a
> > little over or under.  I would very much prefer an encoder.  Just
> > because you have an encoder knob doesn't mean you can't have a
> > graphic on the knob like the photo you showed.  You just need to use
> > an encoder with a fine enough count to get the resolution you want
> > in the sweep area you'll use.


-- 
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)
Genes Web page 


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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread andy pugh
On Fri, 26 Oct 2018 at 14:43, Les Newell  wrote:

> You can't have a pointer on an encoder because you have no way of
> knowing where zero is.

You could have a ring of LEDs on the encoder knob to form a virtual
pointer. (Serially addressed with slip-rings)

An LED next to each 10% mark is probably more practical.

-- 
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, 1916


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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread Les Newell
You can't have a pointer on an encoder because you have no way of 
knowing where zero is.


Les

On 26/10/2018 13:42, Todd Zuercher wrote:

For the OCD like myself, the one machine I work with that has a factory pot for 
feed override, is a pain to twiddle the knob to get the control to show exactly 
100% on the screen.  It's always a little over or under.  I would very much 
prefer an encoder.  Just because you have an encoder knob doesn't mean you 
can't have a graphic on the knob like the photo you showed.  You just need to 
use an encoder with a fine enough count to get the resolution you want in the 
sweep area you'll use.




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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread Todd Zuercher
For the OCD like myself, the one machine I work with that has a factory pot for 
feed override, is a pain to twiddle the knob to get the control to show exactly 
100% on the screen.  It's always a little over or under.  I would very much 
prefer an encoder.  Just because you have an encoder knob doesn't mean you 
can't have a graphic on the knob like the photo you showed.  You just need to 
use an encoder with a fine enough count to get the resolution you want in the 
sweep area you'll use.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: Les Newell  
Sent: Friday, October 26, 2018 7:53 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Feed/Rapid override physical knob selection

I use pots on all of my machines. Generally I have 3 pots, FRO, maximum feed 
and spindle override. The ADC is provided by an Arduino which controls all of 
my front panel buttons and talks to LCNC via Modbus over USB. I did put the 
code on the wiki many years ago but I just did a search and couldn't find it 
again. There do appear to be a few other Arduino Modbus examples out there. 
Doing it this way, my front panel just needs one USB cable going back to the 
control computer. This page 
 shows a simple Arduino 
example that reads analog inputs and spits them out over modbus. 
The MB2HAL module will handle the LinuxCNC side.

> too many pots don't have an absolute zero, and they can creep the 
> machine if left enabled.

I can't say I have experienced any issues with creep. I have had pots fail but 
if you use decent quality plastic track pots they last a very long time. I find 
it quite handy being able to tell at a glance what your feed rate 
override/spindle override etc is, no matter what LinuxCNC is doing at the time.

The only issue I have seen is that it can be a pain to get the pots initially 
synchronized. Halui seems to ignore pots until the first time you move them.

Les



On 26/10/2018 09:25, Gene Heskett wrote:
> Generally a Potentiometer, which will need an A/D in the interface to 
> read it. With an activate pushbutton so they time out.  Do that in 
> your hal file.
>
> Why? too many pots don't have an absolute zero, and they can creep the 
> machine if left enabled. One of the reasons I prefer the encoder, it 
> has receivers built into the mesa cards making the encoder simpler to 
> hack up the hal to use them, the machine stops dead when the dial 
> stops turning (might be some windup it has to use up first if you've 
> spun the dial too fast, so be ready to spin it the other way when its 
> going to run into something) and I still time it out in about a minute 
> after its last use.  Safety, safety.
>
> I use the encoder to set the jog size per count, all done in the hal 
> file, display the size of the jog per click in the axis gui using 
> pyvcp, a pusbutton enables that and the encoder dial is enabled when 
> the button is released, and a one shot to shut it all off about a 
> minute after the last "jog" move.
>



___
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] Feed/Rapid override physical knob selection

2018-10-26 Thread Les Newell
I use pots on all of my machines. Generally I have 3 pots, FRO, maximum 
feed and spindle override. The ADC is provided by an Arduino which 
controls all of my front panel buttons and talks to LCNC via Modbus over 
USB. I did put the code on the wiki many years ago but I just did a 
search and couldn't find it again. There do appear to be a few other 
Arduino Modbus examples out there. Doing it this way, my front panel 
just needs one USB cable going back to the control computer. This page 
 shows a simple 
Arduino example that reads analog inputs and spits them out over modbus. 
The MB2HAL module will handle the LinuxCNC side.



too many pots don't have an absolute zero, and they can creep the
machine if left enabled.


I can't say I have experienced any issues with creep. I have had pots 
fail but if you use decent quality plastic track pots they last a very 
long time. I find it quite handy being able to tell at a glance what 
your feed rate override/spindle override etc is, no matter what LinuxCNC 
is doing at the time.


The only issue I have seen is that it can be a pain to get the pots 
initially synchronized. Halui seems to ignore pots until the first time 
you move them.


Les



On 26/10/2018 09:25, Gene Heskett wrote:

Generally a Potentiometer, which will need an A/D in the interface to
read it. With an activate pushbutton so they time out.  Do that in your
hal file.

Why? too many pots don't have an absolute zero, and they can creep the
machine if left enabled. One of the reasons I prefer the encoder, it has
receivers built into the mesa cards making the encoder simpler to hack
up the hal to use them, the machine stops dead when the dial stops
turning (might be some windup it has to use up first if you've spun the
dial too fast, so be ready to spin it the other way when its going to
run into something) and I still time it out in about a minute after its
last use.  Safety, safety.

I use the encoder to set the jog size per count, all done in the hal
file, display the size of the jog per click in the axis gui using pyvcp,
a pusbutton enables that and the encoder dial is enabled when the button
is released, and a one shot to shut it all off about a minute after the
last "jog" move.





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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread Gene Heskett
On Friday 26 October 2018 02:33:49 Tomaz T. wrote:

> I would prefere to have potentiometer style of knobs where I can
> include scale from 0-120%
>
>
> Like on this picture:
>
> https://www.dropbox.com/s/tc315af7ayee3gk/Rotary_switch.jpg?dl=0
>
>
> Are for this used potentiometer or encoder?
>
Generally a Potentiometer, which will need an A/D in the interface to 
read it. With an activate pushbutton so they time out.  Do that in your 
hal file.

Why? too many pots don't have an absolute zero, and they can creep the 
machine if left enabled. One of the reasons I prefer the encoder, it has 
receivers built into the mesa cards making the encoder simpler to hack 
up the hal to use them, the machine stops dead when the dial stops 
turning (might be some windup it has to use up first if you've spun the 
dial too fast, so be ready to spin it the other way when its going to 
run into something) and I still time it out in about a minute after its 
last use.  Safety, safety.

I use the encoder to set the jog size per count, all done in the hal 
file, display the size of the jog per click in the axis gui using pyvcp, 
a pusbutton enables that and the encoder dial is enabled when the button 
is released, and a one shot to shut it all off about a minute after the 
last "jog" move.

-- 
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)
Genes Web page 


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


Re: [Emc-users] need something like rockhopper, but faster

2018-10-26 Thread Gene Heskett
On Thursday 25 October 2018 22:56:33 Jon Elson wrote:

> On 10/25/2018 05:59 PM, andy pugh wrote:
> > On Thu, 25 Oct 2018 at 20:48, Kenneth Lerman 
 wrote:
> >> At any rate, Gene brings up a real problem should be solvable with
> >> a simple tool.
> >
> > One fly in the ointment is that I don't think anything knows which
> > function reads inputs and which writes outputs for each component.
>
> MOST hal components do it all in one shot.  Generally, only
> the ones related to complicated I/O devices like Pico
> Systems and Mesa boards have a separate read and write
> functions that require TWO ADDF lines.  (The software
> encoder has two functions that are typically run in separate
> THREADS, that's another whole complication.)  At least for
> the Pico PPMC devices, you do the read function as the VERY
> first thing in the thread, and the write as the last.
>
> Jon

And that is how I've composed the hal files here, even for the one simple 
software stepper running the teeny hf mill. But do I have all the 
intermediary stuff in the correct order? I think I do, but no way to 
certify that I have.  And that may be impinging on the speed I can move, 
or on following errors.

The hf mill has no spindle encoder, so I can't thread on it, and its 200 
watt motor doesn't have the power anyway. Where it really stars is doing 
edm, Its done several parts for the Sheldon doing edm to cut slots for 
compression fittings. Works well but really dirty using k2 for 
dielectric fluid but actually works well using distilled water too, 
cutting faster with the water I believe. I have a 400 watt motor that 
came off TLM when I put the 1hp motor on it, and someday I'll strip that 
box off the top, and make a 3 speed belt drive using the 400 watt motor, 
which will make room for an encoder. Someday. Need to find my round tuit 
again. :) I did order a 1x2 foot sheet of .500 thick alu, ostensibly to 
make a new apron for the Sheldon, moving the Z nut an inch to the right 
and relocating new gain pushbuttons for the jog dials to make them more 
comfortable to push. That will make good stock for a 3 speed belt 
shifting drive.

But I'm still waiting for the new master-rt with the fixed function 
keys. ??? Andy said the buildbot was done 10 minutes after my previous 
post on that most of a week ago, but synaptic hasn't offered it as an 
update to the x86 machines yet. The pi & Sheldon, with a slightly older 
version, works well.

Thanks all.

-- 
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)
Genes Web page 


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


Re: [Emc-users] Feed/Rapid override physical knob selection

2018-10-26 Thread Tomaz T .
I would prefere to have potentiometer style of knobs where I can include scale 
from 0-120%


Like on this picture:

https://www.dropbox.com/s/tc315af7ayee3gk/Rotary_switch.jpg?dl=0


Are for this used potentiometer or encoder?

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