Re: [Emc-users] Hal mux

2014-11-17 Thread andy pugh
On 17 November 2014 01:53, Kasey Matejcek ka...@lkm.bz wrote: This doesn't work because I can't find a component that works with only bit mux_generic works with bits (and can convert between types internally if required). http://www.linuxcnc.org/docs/html/man/man9/mux_generic.9.html However it

Re: [Emc-users] Hal mux

2014-11-17 Thread Kasey Matejcek
Thanks lut worked great I would never have thought to use it for this -Original Message- From: Jeff Epler [mailto:jep...@unpythonic.net] Sent: Sunday, November 16, 2014 9:06 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Hal mux The lut5 component can be used

Re: [Emc-users] Hal mux

2014-11-17 Thread Viesturs Lācis
2014-11-17 3:53 GMT+02:00 Kasey Matejcek ka...@lkm.bz: I'm working on a config with hal what I need is close to the mux is floating point component but I only in bit form There are lots of ways to skin that cat. I usually edit mux2.comp file to change pin types to bit, save it under another

Re: [Emc-users] Hal mux

2014-11-17 Thread andy pugh
On 17 November 2014 13:50, Viesturs Lācis viesturs.la...@gmail.com wrote: There are lots of ways to skin that cat. I usually edit mux2.comp file to change pin types to bit, save it under another name (mux2bit or whatever)and then sudo comp install. That seems like a lot of trouble when

Re: [Emc-users] Hal mux

2014-11-17 Thread Viesturs Lācis
2014-11-17 16:09 GMT+02:00 andy pugh bodge...@gmail.com: On 17 November 2014 13:50, Viesturs Lācis viesturs.la...@gmail.com wrote: There are lots of ways to skin that cat. I usually edit mux2.comp file to change pin types to bit, save it under another name (mux2bit or whatever)and then sudo

Re: [Emc-users] Hal mux

2014-11-17 Thread Sebastian Kuzminsky
On 11/17/2014 07:09 AM, andy pugh wrote: On 17 November 2014 13:50, Viesturs Lācis viesturs.la...@gmail.com wrote: There are lots of ways to skin that cat. I usually edit mux2.comp file to change pin types to bit, save it under another name (mux2bit or whatever)and then sudo comp install.

Re: [Emc-users] Hal mux

2014-11-17 Thread andy pugh
On 17 November 2014 15:11, Sebastian Kuzminsky s...@highlab.com wrote: Maybe we should deprecate the muxN components in favor of mux_generic? I think that there is some argument for this, one advantage is that it is easy to make the mux bigger without all the pin names changing. The downside,

Re: [Emc-users] Hal mux

2014-11-17 Thread Dave Cole
I have one suggestion for this problem. Classic Ladder. Hal is great, but when it comes to doing logic, at that level, ladder logic rules.. :-) Life is short, learn ladder. Dave On 11/17/2014 10:37 AM, andy pugh wrote: On 17 November 2014 15:11, Sebastian Kuzminsky s...@highlab.com

Re: [Emc-users] Hal mux

2014-11-17 Thread andy pugh
On 17 November 2014 16:34, Dave Cole linuxcncro...@gmail.com wrote: I have one suggestion for this problem. Classic Ladder. For this application that might well work, though it would depend on the nature of the signal being manipulated. CL would be a poor choice for step signals, as CL is not

Re: [Emc-users] Hal mux

2014-11-17 Thread Dave Cole
On 11/17/2014 11:42 AM, andy pugh wrote: On 17 November 2014 16:34, Dave Cole linuxcncro...@gmail.com wrote: I have one suggestion for this problem. Classic Ladder. For this application that might well work, though it would depend on the nature of the signal being manipulated. CL would be

Re: [Emc-users] Hal mux

2014-11-17 Thread andy pugh
On 17 November 2014 16:59, Dave Cole linuxcncro...@gmail.com wrote: The CL logic runs via the servo cycle as a real time task just like hal?So aren't they running at the same speed? Sorry, I appear to have been labouring under a misapprehension for some time. classicladdr_rt runs in the

Re: [Emc-users] Hal mux

2014-11-17 Thread Dave Cole
On 11/17/2014 12:16 PM, andy pugh wrote: On 17 November 2014 16:59, Dave Cole linuxcncro...@gmail.com wrote: The CL logic runs via the servo cycle as a real time task just like hal?So aren't they running at the same speed? Sorry, I appear to have been labouring under a misapprehension for

Re: [Emc-users] Hal mux

2014-11-17 Thread alex chiosso
classicladdr_rt runs in the servo thread like any other realtime module. This is an important information. That means that the CL logic is processed every servo period isn't it ? This point is missing into the documentation (as I know) . Alex On Mon, Nov 17, 2014 at 6:16 PM, andy pugh

[Emc-users] Hal mux

2014-11-16 Thread Kasey Matejcek
I'm working on a config with hal what I need is close to the mux is floating point component but I only in bit form I have 2 input devices that need to write to 1 pin I want them to be able to select witch one writes to the pin from a Mcode that can set the select pin Pin 0 is connected

Re: [Emc-users] Hal mux

2014-11-16 Thread Jeff Epler
The lut5 component can be used to implement arbitrary functions of up to 5 bit inputs. Since the kind of lut you need has just three bit inputs, it is a good candidate for being implemented by lut5. http://linuxcnc.org/docs/html/man/man9/lut5.9.html http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Lut5