Thanks Andy,
I will give it a go in a little bit. What you are saying
makes perfect sense to me and should work with no issues. Will let you know
either way.
Thanks for your reply,
Paul
----- Original Message -----
From: "Andy Pugh" <[email protected]>
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Sent: Thursday, January 28, 2010 2:28 PM
Subject: Re: [Emc-users] Two MPG encoders
> On 28 January 2010 16:12, Paul Keeton <[email protected]> wrote:
>
>> I have an mpg unit hooked up and it is working well. I also want to hook
>> up a second mpg encoder mounted to the operator panel to control feedrate
>> override. I can get one or the other working but not both hooked up
>> together. I believe the problem is that I need to seperate the mpg-a and
>> mpg-b signals for the to seperate encoders. Do you know what I would do
>> to look at a seperate mpg from the MPG pendant through the seperate lpt
>> port?
>
> You can call the signals anything you like. eg:
>
> net you-can-call-the-signal-anything-you-want parport.0.pin-12-in =>
> encoder.0.phase-a
> net the-name-is-just-a-hook parport.1.pin-25-in => encoder.1.phase-a
>
> (some or all of the pin names above are probably wrong)
>
> It sounds like the MPGs go to different pins in HAL to achieve
> different things, so it should just be a case of adding an extra
> encoder to your HAL and net-ing it together.
> To create more than one encoder, look at the num_chan option here :
> http://www.linuxcnc.org/docview/html//man/man9/encoder.9.html
>
> If you wanted to have both MPGs have the same effect, you would need a
> physical or software switch controlling a demux and then take the
> demux output to the HAL pin to be controlled.
> http://www.linuxcnc.org/docview/html//man/man9/mux2.9.html
>
> --
> atp
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users