Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Gregg Eshelman
On 10/27/2014 2:07 PM, Chris Morley wrote:

>>> Sorry I don't have one with large spin buttons but maybe you could google 
>>> that.
>>
>> Google ended up in a "DenverCoder9" experience. [1]
>>
>> http://xkcd.com/979/
>>
>> --
>
> Oh well :)

Worse than that is when the only other person you can find with the same 
problem posts a reply to the thread saying "I fixed it!" or something 
similar without saying HOW it was fixed.


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Tue, 28 Oct 2014 02:34:42 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade
> 
> On 28 October 2014 02:17, Chris Morley  wrote:
> > The caller sends a reference of the widget. So you can check what called 
> > the handler.
> 
> Does that help me distinguish between programatic changes to the value
> and User changes?
> ie "it was me, it was you"?
> 
> Thinking about it, if I end up using a pop-up keypad this might all be
> moot, the keypad can call the update values code.
> 
> 

Unfortunately not, it only tells you who sent the message.
but since you know _you_ sent the message (by using the flag)
you probably can make it work.

Glade signals options using the glade editor is weak.
In general I create my signals and handlers programmically because of this.
and this particular problem, updating a widget without endless loop seems
common but I have not seen a well thought out (by GTK creators) way.

PNCconf goes to great lengths to overcome this and I would do it different if I
did it again (I'd use flags)

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
On 28 October 2014 02:17, Chris Morley  wrote:
> The caller sends a reference of the widget. So you can check what called the 
> handler.

Does that help me distinguish between programatic changes to the value
and User changes?
ie "it was me, it was you"?

Thinking about it, if I end up using a pop-up keypad this might all be
moot, the keypad can call the update values code.




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

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
On 28 October 2014 02:17, Kirk Wallace  wrote:

> In my UI the DP entry gets processed with the on_dp_entry_activate
> callback. The Mod gets processed with on_mod_entry_activate. Part of the
> processing of one entry is to calculate and update the other entry
> display.

That's interesting.

I have been using "value-changed". I should try the others. But not tonight...


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

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Tue, 28 Oct 2014 02:06:04 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade
> 
> On 28 October 2014 01:58, Chris Morley  wrote:
> 
> > Probably the easiest is to add a ignore flag to your handlers.
> >
> > Then set the ignore flag, call the handler then unset the flag,
> > ready for the next real entry.
> 
> Hmm. What I didn't mention is that there are 4 boxes in practice (mm
> and inch CP too) so I was hoping to use the same handler for all of
> them, and just decide who was the new-one on entry.
> 
> Maybe I just have to re-think the GUI design.
> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 

The caller sends a reference of the widget. So you can check what called the 
handler.

I am not sure what style of handler you are using..

def my_handler(self,widget):
if widget == SOME WIDGET REFERENCE and flag:
return True

again hard to suggest without code in front of me.

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Kirk Wallace
On 10/27/2014 06:32 PM, andy pugh wrote:
> I seem to have found an earlier point to stall at.
>
> The application is a GUI for my hobber. I want to be able to enter DP
> in the DP box, or Mod in the Mod box.
> If I enter a Mod number I want the DP box to be updated to show the
> equivalent DP, And vice-versa.
>
> Unfortunately this ends up in an infinite loop of calls, as the change
> to one invokes a callback that changes the other which invokes a
> callback. ]
>
> In VBA you get round this with Application.ProcessEvents = 0 (IIRC).
>
> Does anyone know how to do the equivalent thing with Python and Glade.
> (Using Glade to create the GUI means no chance to grab the event
> handler ID at event connection time)
>
> module.handler_block_by_func(module.on_change)
> dp.handler_block_by_func(dp.on_change)
>
> Looked like it might work, but doesn't.
>

In my UI the DP entry gets processed with the on_dp_entry_activate 
callback. The Mod gets processed with on_mod_entry_activate. Part of the 
processing of one entry is to calculate and update the other entry 
display. Changing the other entry from the calc doesn't cause an 
activate, so there is no looping. It may be that looking at what event 
is being used for your entry might shed light on your loop.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
On 28 October 2014 01:58, Chris Morley  wrote:

> Probably the easiest is to add a ignore flag to your handlers.
>
> Then set the ignore flag, call the handler then unset the flag,
> ready for the next real entry.

Hmm. What I didn't mention is that there are 4 boxes in practice (mm
and inch CP too) so I was hoping to use the same handler for all of
them, and just decide who was the new-one on entry.

Maybe I just have to re-think the GUI design.

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

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Tue, 28 Oct 2014 01:32:19 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade
> 
> I seem to have found an earlier point to stall at.
> 
> The application is a GUI for my hobber. I want to be able to enter DP
> in the DP box, or Mod in the Mod box.
> If I enter a Mod number I want the DP box to be updated to show the
> equivalent DP, And vice-versa.
> 
> Unfortunately this ends up in an infinite loop of calls, as the change
> to one invokes a callback that changes the other which invokes a
> callback. ]
> 
> In VBA you get round this with Application.ProcessEvents = 0 (IIRC).
> 
> Does anyone know how to do the equivalent thing with Python and Glade.
> (Using Glade to create the GUI means no chance to grab the event
> handler ID at event connection time)
> 
> module.handler_block_by_func(module.on_change)
> dp.handler_block_by_func(dp.on_change)
> 
> Looked like it might work, but doesn't.
> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 

Probably the easiest is to add a ignore flag to your handlers.

Then set the ignore flag, call the handler then unset the flag,
ready for the next real entry.

Ugly but it works - This is what Chris R did in TOUCHY.

I have never found a cleaner/easier method.

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
I seem to have found an earlier point to stall at.

The application is a GUI for my hobber. I want to be able to enter DP
in the DP box, or Mod in the Mod box.
If I enter a Mod number I want the DP box to be updated to show the
equivalent DP, And vice-versa.

Unfortunately this ends up in an infinite loop of calls, as the change
to one invokes a callback that changes the other which invokes a
callback. ]

In VBA you get round this with Application.ProcessEvents = 0 (IIRC).

Does anyone know how to do the equivalent thing with Python and Glade.
(Using Glade to create the GUI means no chance to grab the event
handler ID at event connection time)

module.handler_block_by_func(module.on_change)
dp.handler_block_by_func(dp.on_change)

Looked like it might work, but doesn't.

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

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread pc
--Original Mail--
From: "Peter C. Wallace" 
To: "Enhanced Machine Controller (EMC)" 
Sent: Mon, 27 Oct 2014 14:03:16 -0700 PDT
Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

...

> There's a brief mention on page 18 in the mode options

That is indeed brief. Well, I've got a direction now and a bunch of docs to 
read through and try to mesh. Hopefully I'll have it working this evening :)


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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread Peter C. Wallace
On Mon, 27 Oct 2014, p...@wpnet.us wrote:

> Date: Mon, 27 Oct 2014 15:57:22 -0500
> From: p...@wpnet.us
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
> 
> --Original Mail--
> From: "Peter C. Wallace" 
> To: "Enhanced Machine Controller (EMC)" 
> Sent: Mon, 27 Oct 2014 13:39:46 -0700 PDT
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
>
> ...
>
>> The 7I76 provides one high speed encoder counter for spindle use and 2 medium
>> speed encoder inputs for MPG use on field I/O pins 16,17,18 and 19.
>
>
> Is there a document on configuring this you can point me to? It seems it's 
> not supported in PNCConf, and there is no reference to those inputs as MPG 
> inputs in the 7i76man.pdf either. Have I not found some repository with 
> whitepapers for configurations with the Mesa cards?

There's a brief mention on page 18 in the mode options



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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread Peter C. Wallace
On Mon, 27 Oct 2014, andy pugh wrote:

> Date: Mon, 27 Oct 2014 20:47:39 +
> From: andy pugh 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: "Enhanced Machine Controller (EMC)" 
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
> 
> On 27 October 2014 20:35,   wrote:
>> The 7i76 only provides one encoder input since it's a stepper card not a 
>> servo card. Can you point me in the direction of some docs on loading a 
>> software encoder counter and configuring it for MPG use (one MPG, with axis 
>> and step select switches). I'm new to LinuxCNC so it takes me a while to 
>> find things in the docs (if they're there).
>
> In that case, ignore me, and listen to PCW :-)
>
> Wire the MPG as suggested, then just
>
> net X-jog hm2_5i25.0.7i76.0.0.enc0 => axis.0.jog-counts
> setp axis.0.jog-enable 1
> net Z-jog hm2_5i25.0.7i76.0.0.enc1 => axis.2.jog-counts
> setp axis.2.jog-enable 1
>
> You will need to set the 7i76 into the correct hardware mode, I suspect.


sserial_port_0=20XX in the loadrt hm2_pci config string ought to do

>
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
>
> --
> ___
> 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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread pc
--Original Mail--
From: "Peter C. Wallace" 
To: "Enhanced Machine Controller (EMC)" 
Sent: Mon, 27 Oct 2014 13:39:46 -0700 PDT
Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

...

> The 7I76 provides one high speed encoder counter for spindle use and 2 medium
> speed encoder inputs for MPG use on field I/O pins 16,17,18 and 19.


Is there a document on configuring this you can point me to? It seems it's not 
supported in PNCConf, and there is no reference to those inputs as MPG inputs 
in the 7i76man.pdf either. Have I not found some repository with whitepapers 
for configurations with the Mesa cards?


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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread andy pugh
On 27 October 2014 20:35,   wrote:
> The 7i76 only provides one encoder input since it's a stepper card not a 
> servo card. Can you point me in the direction of some docs on loading a 
> software encoder counter and configuring it for MPG use (one MPG, with axis 
> and step select switches). I'm new to LinuxCNC so it takes me a while to find 
> things in the docs (if they're there).

In that case, ignore me, and listen to PCW :-)

Wire the MPG as suggested, then just

net X-jog hm2_5i25.0.7i76.0.0.enc0 => axis.0.jog-counts
setp axis.0.jog-enable 1
net Z-jog hm2_5i25.0.7i76.0.0.enc1 => axis.2.jog-counts
setp axis.2.jog-enable 1

You will need to set the 7i76 into the correct hardware mode, I suspect.

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

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread andy pugh
On 27 October 2014 20:35,   wrote:
> I'm new to LinuxCNC so it takes me a while to find things in the docs (if 
> they're there).

It's all here:
http://www.linuxcnc.org/docs/html/

But you specifically want:
http://www.linuxcnc.org/docs/html/man/man9/encoder.9.html

loadrt encoder count=1
...
# You would normally have the encoder in a base thread, but there won't be one
# I have used an MPG in the servo-thread, it worked fine.

addf encoder.0.servo-thread
...
# I am guessing the GPIO names here...
net phaseA hm2_5i25.0.7i76.0.0.gpio.00 => encoder.0.phase-A
net phaseB hm2_5i25.0.7i76.0.0.gpio.01 => encoder.0.phase-B
net jog-counts encoder.0.counts => axis.0.jog-counts axis.2.jog-counts

(the last pins come from "motion" '
http://www.linuxcnc.org/docs/html/man/man9/motion.9.html )

You probably need to set up the jog-enable pins for each axis. If you
have an MPG for each, then just:

setp axis.0.jog-enable 1


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

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread Chris Morley


> From: p...@wpnet.us
> To: emc-users@lists.sourceforge.net
> Date: Mon, 27 Oct 2014 15:35:04 -0500
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
> 
> The 7i76 only provides one encoder input since it's a stepper card not a 
> servo card. Can you point me in the direction of some docs on loading a 
> software encoder counter and configuring it for MPG use (one MPG, with axis 
> and step select switches). I'm new to LinuxCNC so it takes me a while to find 
> things in the docs (if they're there).
> 
> Thanks,
> 
>Pete C.
> 

Here is the example in the manual for an MPG using the parport:
http://www.linuxcnc.org/docs/2.6/html/examples/mpg.html
You would need to change all the parport pins names to mesa GPIO names.

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread Peter C. Wallace
On Mon, 27 Oct 2014, p...@wpnet.us wrote:

> Date: Mon, 27 Oct 2014 15:35:04 -0500
> From: p...@wpnet.us
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
> 
> The 7i76 only provides one encoder input since it's a stepper card not a 
> servo card. Can you point me in the direction of some docs on loading a 
> software encoder counter and configuring it for MPG use (one MPG, with axis 
> and step select switches). I'm new to LinuxCNC so it takes me a while to 
> find things in the docs (if they're there).
>
> Thanks,
>
>   Pete C.
>


The 7I76 provides one high speed encoder counter for spindle use and 2 medium
speed encoder inputs for MPG use on field I/O pins 16,17,18 and 19.



>
> --Original Mail--
> From: "John Kasunich" 
> To: 
> Sent: Mon, 27 Oct 2014 16:30:47 -0400
> Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
>
> HAL supports a nearly infinite list of things.
>
> Configuration wizards by there very nature can only support a small subset of 
> that.
>
> You can certainly load a software encoder counter and use it for the MPG.
>
> But if the Mesa card provides enough encoders (one per servo axis, one
> for the spindle, and one for the MPG), you might as well use a hardware
> encoder counter even though the speed is low.
>
> If you run out of hardware encoders, then use the software counter and a
> couple of GPIO pins.
>
>
> On Mon, Oct 27, 2014, at 04:16 PM, p...@wpnet.us wrote:
>> I'm back at work on my lathe conversion, reviewing what I have so far, 
>> cleaning up documentation, etc. I've run into an issue / question, hopefully 
>> I'm just missing something.
>>
>> I have my spindle encoder connected to the Mesa 7i76 TB3 encoder inputs, 
>> which seems to be ok (still have to test operation). I'm looking to connect 
>> my MPG encoder somewhere on the 7i76, and I though that could be done on 
>> regular inputs due to it's relatively low frequency operation. Looking in 
>> PNCConf I don't seem to see an option to put the MPG encoder elsewhere. Am I 
>> missing something? Is it supported but not in PNCConf?
>>
>> Thanks,
>>
>>Pete C.
>>
>>
>> --
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> --
>  John Kasunich
>  jmkasun...@fastmail.fm
>
> --
> ___
> 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
>

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread Chris Morley


> From: p...@wpnet.us
> To: emc-users@lists.sourceforge.net
> Date: Mon, 27 Oct 2014 15:16:59 -0500
> Subject: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76
> 
> I'm back at work on my lathe conversion, reviewing what I have so far, 
> cleaning up documentation, etc. I've run into an issue / question, hopefully 
> I'm just missing something.
> 
> I have my spindle encoder connected to the Mesa 7i76 TB3 encoder inputs, 
> which seems to be ok (still have to test operation). I'm looking to connect 
> my MPG encoder somewhere on the 7i76, and I though that could be done on 
> regular inputs due to it's relatively low frequency operation. Looking in 
> PNCConf I don't seem to see an option to put the MPG encoder elsewhere. Am I 
> missing something? Is it supported but not in PNCConf?
> 
> Thanks,
> 
>Pete C.
> 

It is supported but not by pncconf.
I believe you have two options.
If the firmware is right, I believe there is a different 5i25/7i76 mode that 
has an MPG input.
That MPG will be specific pins though (check the manual form Mesa)
This is a nice option as there is a x1 mode just for MPGs.

The other option is to load a software encoder counter and use any GPIO
inputs to supply it (even a spare parport)
I'm not sure if you would need a base thread or if the servo thread would be
fast enough - but I would bet the servo thread is fast enough.

Surely others can give you more specific answers.

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


Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread pc
The 7i76 only provides one encoder input since it's a stepper card not a servo 
card. Can you point me in the direction of some docs on loading a software 
encoder counter and configuring it for MPG use (one MPG, with axis and step 
select switches). I'm new to LinuxCNC so it takes me a while to find things in 
the docs (if they're there).

Thanks,

   Pete C.


--Original Mail--
From: "John Kasunich" 
To: 
Sent: Mon, 27 Oct 2014 16:30:47 -0400
Subject: Re: [Emc-users] Lathe conversion with Mesa 5i25 / 7i76

HAL supports a nearly infinite list of things.

Configuration wizards by there very nature can only support a small subset of 
that.

You can certainly load a software encoder counter and use it for the MPG.

But if the Mesa card provides enough encoders (one per servo axis, one
for the spindle, and one for the MPG), you might as well use a hardware
encoder counter even though the speed is low.

If you run out of hardware encoders, then use the software counter and a
couple of GPIO pins.


On Mon, Oct 27, 2014, at 04:16 PM, p...@wpnet.us wrote:
> I'm back at work on my lathe conversion, reviewing what I have so far, 
> cleaning up documentation, etc. I've run into an issue / question, hopefully 
> I'm just missing something.
> 
> I have my spindle encoder connected to the Mesa 7i76 TB3 encoder inputs, 
> which seems to be ok (still have to test operation). I'm looking to connect 
> my MPG encoder somewhere on the 7i76, and I though that could be done on 
> regular inputs due to it's relatively low frequency operation. Looking in 
> PNCConf I don't seem to see an option to put the MPG encoder elsewhere. Am I 
> missing something? Is it supported but not in PNCConf?
> 
> Thanks,
> 
>Pete C.
> 
> 
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
  John Kasunich
  jmkasun...@fastmail.fm

--
___
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] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread John Kasunich
HAL supports a nearly infinite list of things.

Configuration wizards by there very nature can only support a small subset of 
that.

You can certainly load a software encoder counter and use it for the MPG.

But if the Mesa card provides enough encoders (one per servo axis, one
for the spindle, and one for the MPG), you might as well use a hardware
encoder counter even though the speed is low.

If you run out of hardware encoders, then use the software counter and a
couple of GPIO pins.


On Mon, Oct 27, 2014, at 04:16 PM, p...@wpnet.us wrote:
> I'm back at work on my lathe conversion, reviewing what I have so far, 
> cleaning up documentation, etc. I've run into an issue / question, hopefully 
> I'm just missing something.
> 
> I have my spindle encoder connected to the Mesa 7i76 TB3 encoder inputs, 
> which seems to be ok (still have to test operation). I'm looking to connect 
> my MPG encoder somewhere on the 7i76, and I though that could be done on 
> regular inputs due to it's relatively low frequency operation. Looking in 
> PNCConf I don't seem to see an option to put the MPG encoder elsewhere. Am I 
> missing something? Is it supported but not in PNCConf?
> 
> Thanks,
> 
>Pete C.
> 
> 
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
  John Kasunich
  jmkasun...@fastmail.fm

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


[Emc-users] Lathe conversion with Mesa 5i25 / 7i76

2014-10-27 Thread pc
I'm back at work on my lathe conversion, reviewing what I have so far, cleaning 
up documentation, etc. I've run into an issue / question, hopefully I'm just 
missing something.

I have my spindle encoder connected to the Mesa 7i76 TB3 encoder inputs, which 
seems to be ok (still have to test operation). I'm looking to connect my MPG 
encoder somewhere on the 7i76, and I though that could be done on regular 
inputs due to it's relatively low frequency operation. Looking in PNCConf I 
don't seem to see an option to put the MPG encoder elsewhere. Am I missing 
something? Is it supported but not in PNCConf?

Thanks,

   Pete C.


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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Mon, 27 Oct 2014 19:50:32 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade
> 
> On 27 October 2014 19:35, Chris Morley  wrote:
> 
> > The GTK theme controls the basic size of such things.
> > Here is a theme with large sliders that works better with touch screens.
> 
> Thanks but it looks like I can't avoid coding anyway, so I will look
> at the popup keyboard first.
> 
> > Sorry I don't have one with large spin buttons but maybe you could google 
> > that.
> 
> Google ended up in a "DenverCoder9" experience. [1]
> 
> http://xkcd.com/979/
> 

I might add that 'onboard' and 'matchbox' virtual keyboards are meant for this 
sort of thing.
Onboard at least, allow custom keyboard definitions.
Onboard is not available with debian annoyingly

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Mon, 27 Oct 2014 19:50:32 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade
> 
> On 27 October 2014 19:35, Chris Morley  wrote:
> 
> > The GTK theme controls the basic size of such things.
> > Here is a theme with large sliders that works better with touch screens.
> 
> Thanks but it looks like I can't avoid coding anyway, so I will look
> at the popup keyboard first.
> 
> > Sorry I don't have one with large spin buttons but maybe you could google 
> > that.
> 
> Google ended up in a "DenverCoder9" experience. [1]
> 
> http://xkcd.com/979/
> 
> -- 

Oh well :)

For anyone else interested:
in the gtkrc file I previously posted:

look in that file for:


style "spin"
{
  engine "pixmap" 
   {
image 
  {
function= BOX
recolorable = TRUE
state= PRELIGHT
file= "spin2.png"
border  = { 4,5,4,5 }
stretch = TRUE
  }


add to  it:

style "spin"
{
  xthickness = 20
  ythickness = 20
  engine "pixmap" 


It is easy to over do this.
In fact to really do this right it is possible to only change the size of 
specific
spinboxes... but it ties you to a theme that was made for it.

Chris M

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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
On 27 October 2014 19:35, Chris Morley  wrote:

> The GTK theme controls the basic size of such things.
> Here is a theme with large sliders that works better with touch screens.

Thanks but it looks like I can't avoid coding anyway, so I will look
at the popup keyboard first.

> Sorry I don't have one with large spin buttons but maybe you could google 
> that.

Google ended up in a "DenverCoder9" experience. [1]

http://xkcd.com/979/

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

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


Re: [Emc-users] building a linuxcnc computer

2014-10-27 Thread Chris Morley


> From: bodge...@gmail.com
> Date: Sun, 26 Oct 2014 13:53:27 +
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] building a linuxcnc computer
> 
> On 26 October 2014 01:00, Chris Morley  wrote:
> 
> > looking for some fairly specific info, I am not up on or very interested
> > in researching every option.
> 
> I quite like the Pico PSUs, partly because they plug in to the MB and
> don't need to be mounted separately.
> For the same reason, on a dedicated LinuxCNC machine I like the SATA
> DOM drives, that simply plug in to the SATA port.
> This sort of thing.
> http://www.ebay.co.uk/itm/Kingspec-8GB-SATA-DOM-MLC-Flash-SSD-Solid-State-Hard-Disk-Drive-for-PC-LAPTOP-/111282354949
> They don't come in large capacities, but then G-code files aren't very
> big, and you may want to keep them on a separate networked drive
> anyway.
> I also don't know how long they last for. My machines don't even get
> used every day, things might be different on a 3-shift machine. (but a
> pre-formatted spare would be easy to arrange)
> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 

Thank you for your experience and opinions.
This will narrow down things a lot.
 
Chris M
  
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Marius Liebenberg
Andy
As I have it, the size of the spinbox is fixed but if you have a look at 
how we did it in the plasma screen of gmoccapy it might help. We used a 
button for positive increment and one for negative. There is s label 
above the buttons and that label value is changed by pushing either 
button. Small bit of python is required to run the buttons.

On 2014-10-27 14:29, andy pugh wrote:
> My milling machine has a a touchscreen, and no keyboard.
> It works nicely with Touchy for normal milling.
>
> I am trying to set up a custom tab for the hobbing setup. I have it
> working, but entering DP and tooth count is a bit painful. I am
> currently using spinbuttons, but as far as I can see (and as far as
> google can see) there is no way to make the spinbutton arrows bigger
> than "tiny" which is rather awkward on a touchscreen.
>
> So, what is the "right" way to do numeric entry in GladeVCP and a touchscreen?
>

-- 

Regards /Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
QQ 1767394877


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


Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Dewey Garrett

There is a numeric-only popup keyboard used with pyngcgui 
in some sim configs (example: configs/sim/touchy/ngcgui/pyngcgui_touchy.ini)
(based on original work by J. Thornton)

Example python code to use:

#!/usr/bin/env python
import popupkeyboard

g_popkbd = popupkeyboard.PopupKeyboard(use_coord_buttons=False)

if g_popkbd.run(initial_value='',title='your_title'):
print "result=",g_popkbd.get_result()
else:
print "user canceled"

-- 
Dewey Garrett


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


[Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
My milling machine has a a touchscreen, and no keyboard.
It works nicely with Touchy for normal milling.

I am trying to set up a custom tab for the hobbing setup. I have it
working, but entering DP and tooth count is a bit painful. I am
currently using spinbuttons, but as far as I can see (and as far as
google can see) there is no way to make the spinbutton arrows bigger
than "tiny" which is rather awkward on a touchscreen.

So, what is the "right" way to do numeric entry in GladeVCP and a touchscreen?

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

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