Re: [Emc-users] Start program with external button

2014-05-15 Thread John Alexander Stewart
Hi Andy;

You realise that that way you end up with bearings of the same quality
> as the current set?
> Have you looked on (for example) www.simplybearings.co.uk ?


Kind of off-topic, but yes, I realize that I'm getting what was in there
again.

But, it does give me a spindle to repair as I see fit, and use the new one
as a CNC spin-indexer when done.

Maybe not the most cost-efficient. BTW - shipping, duties, taxes when
importing to Canada is a bit of a costly exercise. Even some places (like
LittleMachineShop.com) add $$ just for the paperwork. Other places refuse
to send here, e.g., McMaster-Carr, because the paperwork is just not worth
it.

Sigh. JohnS.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-15 Thread andy pugh
On 15 May 2014 18:05, John Alexander Stewart  wrote:
> Lets see - right now the mill is down because of spindle bearing issues;
> new parts on their way from Sieg in China.

You realise that that way you end up with bearings of the same quality
as the current set?
Have you looked on (for example) www.simplybearings.co.uk ?

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-15 Thread John Alexander Stewart
Hi Norbert, Andy;

Norbert - Have most certainly looked at gmoccapy; then went out and priced
touch screens with VGA ports, and...(there's a lot of scots blood in me!)
 I however DO LIKE what you are doing; maybe for my upcoming CNC Lathe.


Andy - the mill has the 2xG540 config in there, powering one G540, the
other header not connected. The printer port on the motherboard has my MPG
connected to it.

I could quite easily use the 2nd 5i25 port as an input - off hand, there's
more than enough pins there to add a couple of buttons that  I think I'd
need.

Lets see - right now the mill is down because of spindle bearing issues;
new parts on their way from Sieg in China.

JohnS.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-15 Thread andy pugh
On 15 May 2014 16:45, John Alexander Stewart  wrote:

> Actually, I could just put a header on the 2nd port of the enclosed 5i25,
> and use that.

Which 5i25 config are you using? There are many ways to add more IO to
a 5i25, it can support something like 768 IO channels.


-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-15 Thread Niemand Sonst
Hallo John,

have you looked at gmoccapy? It has been designed to be used without 
mouse and keyboard, just with a touch screen or hardware buttons placed 
around the screen.

Norbert

Am 15.05.2014 17:45, schrieb John Alexander Stewart:
> Andy - I had forgotten about this.
>
> Actually, I could just put a header on the 2nd port of the enclosed 5i25,
> and use that. Hmmm - the machine is in a small case, but there might be
> room somewhere there for it...
>
> Hmmm - thanks for the creative thoughts.
>
> My goal is to create a set of buttons that will allow me to use my little
> mill with MPG as a manual mill, without the hassle of using the
> keyboard/mouse to do things like set spindle speed, home, etc. The
> mouse/keyboard is not handy to use - they sit on a board that sits on a
> small rubbish bin, and is just far enough from the monitor to be difficult
> to read.
>
> So, the thought was to turn on power, have the computer boot into LinuxCNC,
> use it without resorting to keyboard/mouse, and see how it goes.
>
> John.
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-15 Thread John Alexander Stewart
Andy - I had forgotten about this.

Actually, I could just put a header on the 2nd port of the enclosed 5i25,
and use that. Hmmm - the machine is in a small case, but there might be
room somewhere there for it...

Hmmm - thanks for the creative thoughts.

My goal is to create a set of buttons that will allow me to use my little
mill with MPG as a manual mill, without the hassle of using the
keyboard/mouse to do things like set spindle speed, home, etc. The
mouse/keyboard is not handy to use - they sit on a board that sits on a
small rubbish bin, and is just far enough from the monitor to be difficult
to read.

So, the thought was to turn on power, have the computer boot into LinuxCNC,
use it without resorting to keyboard/mouse, and see how it goes.

John.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread andy pugh
On 14 May 2014 17:54, John Alexander Stewart  wrote:
> know it's not perfect, but as I have run out of inputs on my mill,

You could matrix-wire the buttons, would that help? They don't have to
be physically in a matrix, just logically.

http://www.linuxcnc.org/docs/devel/html/man/man9/matrix_kb.9.html

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread John Alexander Stewart
I know it's not perfect, but as I have run out of inputs on my mill, I have
an Arduino in the mail that will allow me to send keyboard commands with
button presses - I have to be running "Axis", but from there, I think I can
control my mill with this Arduino.

Most arduinos do not allow keyboard emulation, (of course, as I've about 20
at home) but newer ones do - look for "keyboard arduino library".

Not perfect, but pretty simple to do. Maybe it'll help someone?

​JohnS.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread Kip Shaffer
Erik,
While not exactly what you are looking for, you can use C snippets to
create brand new HAL components.  I created a couple myself, one to bring
16 inputs and 16 outputs to a set of external shift registers for expanded
IO capabilities, and one to generate blink codes for a status LED.

I also implemented a RUN/Resume button using only existing HAL components
in a similar way as above.  The one addition I made was to add flip-flops
to the HAL configuration so that each button press could only RUN or RESUME
depending on the state when the button was pressed.  Without the flip-flop,
I found that RESUME would often turn into RUN when the machine switched
away from PAUSED.

Let me know if you would like more information.
-Kip


On Wed, May 14, 2014 at 8:10 AM, Erik Friesen  wrote:

> I have found myself wishing I could insert c snippets somehow, to me it is
> would be way easier that manually figuring out the logic.  It gets very
> hard to follow three or more logic items that work together.  For example,
> it takes quite a few to make a run/resume switch.
>
>
> On Wed, May 14, 2014 at 3:07 AM, Viesturs Lācis  >wrote:
>
> > 2014-05-14 0:57 GMT+03:00 Erik Friesen :
> >
> > > Hmm.  Didn't know you could net more than one per line.
> > >
> >
> > You can do it in one line or break it up (for me breaking up is easier to
> > understand, when I need to go through HAL file few months later), for
> > example,
> > net run-file whatever.gpio.000
> > net run-file halui.mode.auto
> > net run-file halui.program.run
> >
> > Viesturs
> >
> >
> --
> > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> > Instantly run your Selenium tests across 300+ browser/OS combos.
> > Get unparalleled scalability from the best Selenium testing platform
> > available
> > Simple to use. Nothing to install. Get started now for free."
> > http://p.sf.net/sfu/SauceLabs
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread andy pugh
On 14 May 2014 13:10, Erik Friesen  wrote:
> I have found myself wishing I could insert c snippets somehow, to me it is
> would be way easier that manually figuring out the logic.

You can write user-defined components in C.

The problem with C-snippets is that you would be effectively
introducing an interpreted version of C into the realtime threads,
which is likely to get expensive.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread Erik Friesen
I have found myself wishing I could insert c snippets somehow, to me it is
would be way easier that manually figuring out the logic.  It gets very
hard to follow three or more logic items that work together.  For example,
it takes quite a few to make a run/resume switch.


On Wed, May 14, 2014 at 3:07 AM, Viesturs Lācis wrote:

> 2014-05-14 0:57 GMT+03:00 Erik Friesen :
>
> > Hmm.  Didn't know you could net more than one per line.
> >
>
> You can do it in one line or break it up (for me breaking up is easier to
> understand, when I need to go through HAL file few months later), for
> example,
> net run-file whatever.gpio.000
> net run-file halui.mode.auto
> net run-file halui.program.run
>
> Viesturs
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-14 Thread Viesturs Lācis
2014-05-14 0:57 GMT+03:00 Erik Friesen :

> Hmm.  Didn't know you could net more than one per line.
>

You can do it in one line or break it up (for me breaking up is easier to
understand, when I need to go through HAL file few months later), for
example,
net run-file whatever.gpio.000
net run-file halui.mode.auto
net run-file halui.program.run

Viesturs
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-13 Thread Erik Friesen
Hmm.  Didn't know you could net more than one per line.


On Tue, May 13, 2014 at 4:19 PM, Viesturs Lācis wrote:

> 2014-05-13 22:35 GMT+03:00 Erik Friesen :
>
> > What component do I use to start a program with an external switch?
> >
> > Using halui.program.run just tells me
> >
> > "can't do that (EMC_TASK_PLAN_RUN) in manual mode"
> >
>
> Piece of cake :)
> In the same line simply tell it to switch to auto mode:
> net start-program   whatever.gpio.00   halui.mode.auto halui.program.run
>
> Experience shows that putting halui.mode.auto before halui.program.run
> works better...
>
> Viesturs
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-13 Thread Viesturs Lācis
2014-05-13 22:35 GMT+03:00 Erik Friesen :

> What component do I use to start a program with an external switch?
>
> Using halui.program.run just tells me
>
> "can't do that (EMC_TASK_PLAN_RUN) in manual mode"
>

Piece of cake :)
In the same line simply tell it to switch to auto mode:
net start-program   whatever.gpio.00   halui.mode.auto halui.program.run

Experience shows that putting halui.mode.auto before halui.program.run
works better...

Viesturs
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Start program with external button

2014-05-13 Thread Erik Friesen
What component do I use to start a program with an external switch?

Using halui.program.run just tells me

"can't do that (EMC_TASK_PLAN_RUN) in manual mode"
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Start program with external button

2014-05-13 Thread Erik Friesen
Maybe this will get it.
http://www.linuxcnc.org/emc2/index.php/italian/forum/24-hal-components/6442-problem-to-run-a-program-with-external-cycle-start


On Tue, May 13, 2014 at 3:35 PM, Erik Friesen  wrote:

> What component do I use to start a program with an external switch?
>
> Using halui.program.run just tells me
>
> "can't do that (EMC_TASK_PLAN_RUN) in manual mode"
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users