[Emc-users] Differental Input to PWM
Hi all, Note: Reposted with smaller attachment. I am trying to read an RS422 differential input and convert it to an analog based on the duty cycle, using a Mesa m5i20 Anything I/O board. Provided this post is under the maximum size allowed, the schematic is attached. I really only have access to the section labeled CABLE TO RF AMP INTERFACE CONNECTOR, so I can't at this point directly access the Pulse Generator. I wrote a simple component to convert PWM duty cycle to an analog (pwmtoa) which can be represented as follows: Bias Gain | | |__|___ | | Enable | | | | Out In | | |_| Where Enable and In are bits, and Bias, Gain and Out are floats. Under the current implementation, it just maintains a running average of the last 100 samples and outputs the average on time (0.0 to 1.0). When using a signal generator this component seems to be working quite well, at least for my purposes (error +/- 1% and latency of a couple msecs, which is more than adequate for my purposes). I set the base period and servo period out of phase with the signal (2kz) to make sure it does not keep sampling at the same point in the wave form. What I don't understand is how to covert this differential signal to single ended. I can see the differential signal on a scope (real one, not halscope), but when I try to reference the signal, or the not signal to ground I get nothing, either on the scope or as an input to the m5i20. Can anyone enlighten me on how to read this type of signal. Thanks, Eric attachment: RS422.jpg- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Differental Input to PWM
You have to reference the signal with it's counterpart. The signal should have two pins, a plus and minus. A comparator would work to convert the signal to a single ended (referenced to ground) signal. or use a RS-422 transeiver chip (ST490AB). Jim C Eric H. Johnson [EMAIL PROTECTED] ics.com To Sent by: 'Enhanced Machine Controller emc-users-bounces (EMC)' @lists.sourceforg emc-users@lists.sourceforge.net e.net cc Subject 03/31/2008 03:04 [Emc-users] Differental Input to AMPWM Please respond to Enhanced Machine Controller (EMC) [EMAIL PROTECTED] sourceforge.net Hi all, Note: Reposted with smaller attachment. I am trying to read an RS422 differential input and convert it to an analog based on the duty cycle, using a Mesa m5i20 Anything I/O board. Provided this post is under the maximum size allowed, the schematic is attached. I really only have access to the section labeled CABLE TO RF AMP INTERFACE CONNECTOR, so I can't at this point directly access the Pulse Generator. I wrote a simple component to convert PWM duty cycle to an analog (pwmtoa) which can be represented as follows: Bias Gain | | |__|___ | | Enable | | | | Out In | | |_| Where Enable and In are bits, and Bias, Gain and Out are floats. Under the current implementation, it just maintains a running average of the last 100 samples and outputs the average on time (0.0 to 1.0). When using a signal generator this component seems to be working quite well, at least for my purposes (error +/- 1% and latency of a couple msecs, which is more than adequate for my purposes). I set the base period and servo period out of phase with the signal (2kz) to make sure it does not keep sampling at the same point in the wave form. What I don't understand is how to covert this differential signal to single ended. I can see the differential signal on a scope (real one, not halscope), but when I try to reference the signal, or the not signal to ground I get nothing, either on the scope or as an input to the m5i20. Can anyone enlighten me on how to read this type of signal. Thanks, Eric (See attached file: RS422.jpg) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users attachment: RS422.jpg- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Differental Input to PWM
On Mon, 2008-03-31 at 08:09 -0400, [EMAIL PROTECTED] wrote: You have to reference the signal with it's counterpart. The signal should have two pins, a plus and minus. A comparator would work to convert the signal to a single ended (referenced to ground) signal. or use a RS-422 transeiver chip (ST490AB). Jim C Something like this? http://www.wallacecompany.com/machine_shop/RS422-1a.jpg -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending Craftsman AA 109 restoration) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Differential Input to PWM
Yep. You got it Jim C Kirk Wallace [EMAIL PROTECTED] company.com To Sent by: Enhanced Machine Controller (EMC) emc-users-bounces emc-users@lists.sourceforge.net @lists.sourceforg cc e.net Subject Re: [Emc-users] Differental Input 03/31/2008 01:07 to PWM PM Please respond to Enhanced Machine Controller (EMC) [EMAIL PROTECTED] sourceforge.net On Mon, 2008-03-31 at 08:09 -0400, [EMAIL PROTECTED] wrote: You have to reference the signal with it's counterpart. The signal should have two pins, a plus and minus. A comparator would work to convert the signal to a single ended (referenced to ground) signal. or use a RS-422 transeiver chip (ST490AB). Jim C Something like this? http://www.wallacecompany.com/machine_shop/RS422-1a.jpg -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending Craftsman AA 109 restoration) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Audio hardware as EMC output?
I've been playing with using an audio amplifier with a tone generator to make a low power VFD, and have been wondering what it would take to build a HAL module to produce simple audio waveforms. After I got to thinking, it seems that audio hardware could probably do a higher frequency PWM than the parport can, too. I'm just not sure how fast of a response could be had, although playing music and the like is constant changes in the output... even if it was a little slow, it seems like it could work for something like spindle in pwm or if it was just driving tones to an amplifier to run the motors directly... So does anyone have any thoughts on this? I'd love to hear 'em. Jim Coleman - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 5I20 in 72 bit parrallel mode
Yes, I want all the pins as I/O. How are you going to get around the counters and PWM's on the HostMot firmware to access the individual pins as I/O? That is why I suggested using the parallel mode firmware. Tony -Original Message- From: [EMAIL PROTECTED] [mailto:emc-users- [EMAIL PROTECTED] On Behalf Of Sebastian Kuzminsky Sent: Friday, March 28, 2008 7:42 PM To: [EMAIL PROTECTED]; Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Mesa 5I20 in 72 bit parrallel mode Tony Bussan wrote: Has anyone got the Mesa 5I20 working with EMC in the mode where it is just one big block of parallel I/O? If no one has, where would I get started writing a driver for this mode? I would like to use 3 5I20's in our mill, 1 in host controller configuration, and 2 in parallel I/O configuration. I believe the current hal_m5i20 driver is fixed at 48 I/O pins per board, but I may be wrong about that. I'm working on a driver for the HostMot2 firmware on the 5i20 board (and all the other Mesa Anything I/O boards) that will let you configure all the pins as gpio, if that's what you want. It should be ready for beta testing within a month or so. -- Sebastian Kuzminsky Yes, we have a soul. But it is mechanical. -- Daniel Dennet - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpla ce ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Large Retrofit Advice
I'm open to considering any hardware options, but will there be HAL drivers available? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, March 23, 2008 6:00 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Large Retrofit Advice hi Tony, we are releasing a new motenc board that will provide servo and stepper controls. the io are similar to motencLite with opto22 style connectors. In addition, we are also planning fieldbus I/O support (most likely devicenet) that will extend the i/o points to accomodate large mills. the fieldbus I/O come in a variety of ac/dc/relay contacts. so you don't need to use opto22 style i/o boards. Abdul Rafiq www.VitalSystem.com - Original Message From: Tony Bussan [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, March 23, 2008 10:16:02 AM Subject: [Emc-users] Large Retrofit Advice I am hoping that I can get some advice from those of you that have done large scale retrofits of bigger machines. We have a Cincinnati Millicron with tool changer that we are retrofitting with EMC2. What motion control cards have you had good success with? Right now I am leaning toward the Motenc-lite. How are you handling the 5/24 volt transition between computer and machine? Are the Motenc breakout boards good enough or is OPTO22 the only way to go? How are you handling the massive number of I/O? I have something like 116 in and 38 out digital. I don't think I want to use parports. Is there a generic large digital I/O PCI board I am not finding? Has anyone done much modification to AXIS to make it more compatible with existing physical control panels? Removing duplicate buttons and sliders from AXIS, etc. Thanks in advance, Tony Bussan - This SF.net http://sf.net/ email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 5I20 in 72 bit parrallel mode
Tony Bussan wrote: Yes, I want all the pins as I/O. How are you going to get around the counters and PWM's on the HostMot firmware to access the individual pins as I/O? That is why I suggested using the parallel mode firmware. I don't know anything about the old HostMot, I'm writing my driver for the new HostMot2. In HostMot2 each I/O pin can be switched at runtime between multiple functions, one of which is always GPIO. -- Sebastian Kuzminsky If you need a machine today and don't buy it, tomorrow you will have paid for it and not have it. -- Henry Ford - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Large Retrofit Advice
hi Tony, I am hoping one of the software guru will port the motenc-lite plugin to the new board. I am very greatfull for all the help we have got. regards, abdul www.VitalSystem.com - Original Message From: Tony Bussan [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Monday, March 31, 2008 6:24:38 PM Subject: Re: [Emc-users] Large Retrofit Advice I’m open to considering any hardware options, but will there be HAL drivers available? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, March 23, 2008 6:00 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Large Retrofit Advice hi Tony, we are releasing a new motenc board that will provide servo and stepper controls. the io are similar to motencLite with opto22 style connectors. In addition, we are also planning fieldbus I/O support (most likely devicenet) that will extend the i/o points to accomodate large mills. the fieldbus I/O come in a variety of ac/dc/relay contacts. so you don't need to use opto22 style i/o boards. Abdul Rafiq www.VitalSystem.com - Original Message From: Tony Bussan [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, March 23, 2008 10:16:02 AM Subject: [Emc-users] Large Retrofit Advice I am hoping that I can get some advice from those of you that have done large scale retrofits of bigger machines. We have a Cincinnati Millicron with tool changer that we are retrofitting with EMC2. What motion control cards have you had good success with? Right now I am leaning toward the Motenc-lite. How are you handling the 5/24 volt transition between computer and machine? Are the Motenc breakout boards good enough or is OPTO22 the only way to go? How are you handling the massive number of I/O? I have something like 116 in and 38 out digital. I don't think I want to use parports. Is there a generic large digital I/O PCI board I am not finding? Has anyone done much modification to AXIS to make it more compatible with existing physical control panels? Removing duplicate buttons and sliders from AXIS, etc. Thanks in advance, Tony Bussan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users