Re: [Emc-users] VFD's and Modbus
Hi, I decided to join this thread instead creating new. I have 2.2 kW chinese spindle with Huanyang VFD and want to control it with Modbus. There's a thread on cnczone http://www.cnczone.com/forums/diy-cnc_router_table_machines/91847-huanyang_vfd_rs485_modbus.html with a component and config files for the VFD (message 26). When I start EMC2 using them, hy_vfd gives an error: EMC2 - 2.6.0~pre Machine configuration directory is '/home/pkm/emc2/configs/machine' Machine configuration file is 'machine.ini' Starting EMC2... spindle-vfd: device='/dev/ttyS0', baud=19200, bits=8, parity='none', stopbits=1, address=1, verbose=1, PID=1433 Opening /dev/ttyS0 at 19200 bauds (none) RTAPI: ERROR: version mismatch 1 vs 0 HAL: ERROR: rtapi init failed spindle-vfd: ERROR: hal_init failed custom.hal:5: hy_vfd exited without becoming ready Shutting down and cleaning up EMC2... Cleanup done Is it because of newer EMC2 version? How can I correct it? Andrew -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] A question
You will need a hal specific driver. You can have a look to some of the drivers, in order to understand the programming. I'm not a expert but I think hal_motenc.c and corresponding motenc.h files for motenc-100 cards, emc2-dev/src/hal/drivers/hal_motenc.c emc2-dev/src/hal/drivers/motenc.h would contain almost anything you need, you can start modifying those files to suit your needs. It look pretty straightforward for somebody with knowledge on digital electronics. If you wont to make it work with linux in general, appart from hal, you'll need to develop a specific driver, a starting point can be the COMEDI project. Again I'm not an expert. Good look, Javier On Sat, Jul 16, 2011 at 6:39 AM, Farzin Kamangar farzin.kaman...@gmail.comwrote: Dear Sirs, I want to make a PCI card for EMC. I have experience of making ISA and PCI I/O board, but I have never done it for Linux. Can you give me some information how can I go ahead for EMC? Do I need to write a driver for that? Where is the interface data of EMC and PCI hardware? Best regards, Farzin -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] VFD's and Modbus
On 16 July 2011 08:45, Andrew parallel.kinemat...@gmail.com wrote: RTAPI: ERROR: version mismatch 1 vs 0 HAL: ERROR: rtapi init failed Have you re-compiled the spindle modbus components, or are you using the executable file from that zip archive? I have just tried it and the INSTALL script in that package appears to work fine on EMC2.6 -- atp Torque wrenches are for the obedience of fools and the guidance of wise men -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] A question
On 16 July 2011 05:39, Farzin Kamangar farzin.kaman...@gmail.com wrote: Can you give me some information how can I go ahead for EMC? Do I need to write a driver for that? Where is the interface data of EMC and PCI hardware? Typically you just use inb() and outb() in a driver. I wrote one for an ISA card a few weeks ago, and it was fairly easy. http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/catid,38/id,10910/lang,english/ -- atp Torque wrenches are for the obedience of fools and the guidance of wise men -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] A question
On Saturday, July 16, 2011 10:46:42 AM andy pugh did opine: On 16 July 2011 05:39, Farzin Kamangar farzin.kaman...@gmail.com wrote: � � � � � � � �Can you give me some information how can I go ahead for EMC? Do I need to write a driver for that? Where is the interface data of EMC and PCI hardware? Typically you just use inb() and outb() in a driver. I wrote one for an ISA card a few weeks ago, and it was fairly easy. http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/ catid,38/id,10910/lang,english/ Isn't there another function, (ioport?) a sort of a locking mechanism that allows the user exclusive access to the hardware, and a correspond release call to be executed when the user is finished with the hardware? I screwed around with a pci based card with a pile of 8255's in it about 7-8 years ago (before I discovered emc) and had to wrap my stepper motor exercise code inside that pair of calls before it would work. Or is that pci specific? My wet ram could be spoiling, its rather old to be without refrigeration. ;-) Cheers, gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Success covers a multitude of blunders. -- George Bernard Shaw -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] VFD's and Modbus
2011/7/16 andy pugh bodge...@gmail.com: On 16 July 2011 08:45, Andrew parallel.kinemat...@gmail.com wrote: RTAPI: ERROR: version mismatch 1 vs 0 HAL: ERROR: rtapi init failed Have you re-compiled the spindle modbus components, or are you using the executable file from that zip archive? I have just tried it and the INSTALL script in that package appears to work fine on EMC2.6 Thanks, Andy! Yes, I recompiled it by that script make sudo make install. To be sure I just tried it once again $ sudo make clean $ make $ sudo make install Nothing changed. I try to use it for run-in-place version 2.6.0~pre. But it works for installed version 2.4.6!! How can I make it work for run-in-place version? Andrew -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Using a PC in extended temperature ranges and mobile application
Hi Guys.. I am considering using EMC2 (or part of it) in a mobile application that defines the term rugged. The application itself is pretty simple so I am not worried about the software. I am worried about the survival of the hardware. The equipment will be mounted in a box on a piece of drilling equipment. Power will be supplied via a diesel engine driving an alternator into a set of batteries. The drilling equipment is rotary - no impact - so the vibration should be reasonable if I shock mount the control panel. However the machine will only be used once in a while. This machine will live outside year around.When it is not being used, the machine will be un-powered so I have no way of putting a panel heater in the box to keep out condensation. I'm thinking about using some type of desiccant system?? to keep the humidity down in the panels to avoid a condensation problem. I'm really not concerned about the higher range of temperatures since there will be a roof over the control panel so I should be able to keep the sun off it. I am mostly concerned about the low end of the temperature range. They could be using this drilling machine in temps as low as 20 degrees F or so. They will expect to be able to start up the engine, run it for 5 minutes or so and then flip on the controls and have them function properly. This might be after the machine has been sitting for a few months outside in places like the Rocky Mountains in Colorado I'd like to use as many off the shelf devices as possible - PC boards etc... if possible. Being a typical customer, they want to keep the costs down but they also want it to work and operate reliably. I've had good luck using conventional industrial controls on machines that operate outside, but I have always been able to include a panel heater to minimize condensation issues. Do you guys have any suggestions? Dave -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Using a PC in extended temperature ranges and mobile application
You can do the same thing electricians do in an explosion-proof enclosure. The idea of an explosion proof enclosure is not to prevent the vapors from entering the enclosure, but to contain any explosion that could occur inside the enclosure. ( Kind of re-assuring, isn't it?) When these enclosures have threaded openings, they have 2 to 4 times as many threads as the non-explosion proof openings, and they have larger or square openings with large flanges and usually gaskets. In order to meet code, the conduit which leads to these enclosures have to have a conduit seal with putty or epoxy in them to prevent the flow or explosion from/to other places. It's actually more complicated than this, but this is the kind of detail that you will want to know. You don't have to go explosion proof, but can copy their techniques. I would be leery of putting batteries in a totally enclosed box, though. Date: Sat, 16 Jul 2011 18:58:48 -0400 From: e...@dc9.tzo.com To: emc-users@lists.sourceforge.net Subject: [Emc-users] Using a PC in extended temperature ranges and mobile application Hi Guys.. I am considering using EMC2 (or part of it) in a mobile application that defines the term rugged. The application itself is pretty simple so I am not worried about the software. I am worried about the survival of the hardware. The equipment will be mounted in a box on a piece of drilling equipment. Power will be supplied via a diesel engine driving an alternator into a set of batteries. The drilling equipment is rotary - no impact - so the vibration should be reasonable if I shock mount the control panel. However the machine will only be used once in a while. This machine will live outside year around.When it is not being used, the machine will be un-powered so I have no way of putting a panel heater in the box to keep out condensation. I'm thinking about using some type of desiccant system?? to keep the humidity down in the panels to avoid a condensation problem. I'm really not concerned about the higher range of temperatures since there will be a roof over the control panel so I should be able to keep the sun off it. I am mostly concerned about the low end of the temperature range. They could be using this drilling machine in temps as low as 20 degrees F or so. They will expect to be able to start up the engine, run it for 5 minutes or so and then flip on the controls and have them function properly. This might be after the machine has been sitting for a few months outside in places like the Rocky Mountains in Colorado I'd like to use as many off the shelf devices as possible - PC boards etc... if possible. Being a typical customer, they want to keep the costs down but they also want it to work and operate reliably. I've had good luck using conventional industrial controls on machines that operate outside, but I have always been able to include a panel heater to minimize condensation issues. Do you guys have any suggestions? Dave -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Using a PC in extended temperature ranges and mobile application
On 16 July 2011 23:58, Dave e...@dc9.tzo.com wrote: Do you guys have any suggestions? I suspect that a layer of conformal coating on the PC motherboard after assembly (including attaching connectors) would mean that that didn't care about condensation. The display is likely to be the problem. You might even want to consider a CRT, because at least then condensation can't get behind the glass. A hermetically sealed enclosure and a tray of dessicant might work. -- atp Torque wrenches are for the obedience of fools and the guidance of wise men -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Using a PC in extended temperature ranges and mobile application
On Saturday, July 16, 2011 10:03:15 PM Dave did opine: Hi Guys.. I am considering using EMC2 (or part of it) in a mobile application that defines the term rugged. The application itself is pretty simple so I am not worried about the software. I am worried about the survival of the hardware. The equipment will be mounted in a box on a piece of drilling equipment. Power will be supplied via a diesel engine driving an alternator into a set of batteries. The drilling equipment is rotary - no impact - so the vibration should be reasonable if I shock mount the control panel. However the machine will only be used once in a while. This machine will live outside year around.When it is not being used, the machine will be un-powered so I have no way of putting a panel heater in the box to keep out condensation. I'm thinking about using some type of desiccant system?? to keep the humidity down in the panels to avoid a condensation problem. I'm really not concerned about the higher range of temperatures since there will be a roof over the control panel so I should be able to keep the sun off it. I am mostly concerned about the low end of the temperature range. They could be using this drilling machine in temps as low as 20 degrees F or so. They will expect to be able to start up the engine, run it for 5 minutes or so and then flip on the controls and have them function properly. This might be after the machine has been sitting for a few months outside in places like the Rocky Mountains in Colorado I'd like to use as many off the shelf devices as possible - PC boards etc... if possible. Being a typical customer, they want to keep the costs down but they also want it to work and operate reliably. I've had good luck using conventional industrial controls on machines that operate outside, but I have always been able to include a panel heater to minimize condensation issues. Do you guys have any suggestions? Dave I'd go with the desiccant setup, but would rig it so when there is power, the desiccant would be vented to the outside, with a heater good for about 250F to recycle the desiccant each time the power is available. We use such rigs to keep dry air in rigid coaxial lines. Loaded with teeny solenoid valves that reroute the plumbing when it is time to recycle the desiccant. For this scene, I'd just put it in a container that is largely open to the inside of the housing, like a S. S. bowl, but when power becomes available, open 2 vents so air can move across the container, and fire up a fan at the same time to exhaust the moisture driven off by the heat. That should keep 20 lbs it in decent shape if power was available for 4+ hours per use over a year I'd think. You'll need enough heat to hit the boiling point even in 10F weather though. Any danger of it being jostled enough to spill the bowl? Cheers, gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Barth's Distinction: There are two types of people: those who divide people into two types, and those who don't. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Using a PC in extended temperature ranges and mobile application
Dave, I wouldn't waste my time trying to beef up a consumer-grade computer. There are many industrial- and military-grade i86 computers available commercially that you could start from. The rub is your characterization Being a typical customer, they want to keep the costs down but they also want it to work and operate reliably. Remind them that of the trilogy good-fast-cheap, they can choose any two. Off-the-shelf ruggedness costs money. Trying to build in ruggedness after the fact (and testing to make sure you succeeded) costs time and labor which equals money, but you know that :-) Good luck! Regards, Kent -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Using a PC in extended temperature ranges and mobile application
On Sun, 2011-07-17 at 01:30 +, James Reed wrote: You can do the same thing electricians do in an explosion-proof enclosure. The idea of an explosion proof enclosure is not to prevent the vapors from entering the enclosure, but to contain any explosion that could occur inside the enclosure. ( Kind of re-assuring, isn't it?) When these enclosures have threaded openings, they have 2 to 4 times as many threads as the non-explosion proof openings, and they have larger or square openings with large flanges and usually gaskets. In order to meet code, the conduit which leads to these enclosures have to have a conduit seal with putty or epoxy in them to prevent the flow or explosion from/to other places. It's actually more complicated than this, but this is the kind of detail that you will want to know. You don't have to go explosion proof, but can copy their techniques. I would be leery of putting batteries in a totally enclosed box, though. Date: Sat, 16 Jul 2011 18:58:48 -0400 From: e...@dc9.tzo.com To: emc-users@lists.sourceforge.net Subject: [Emc-users] Using a PC in extended temperature ranges and mobile application Hi Guys.. I am considering using EMC2 (or part of it) in a mobile application that defines the term rugged. The application itself is pretty simple so I am not worried about the software. I am worried about the survival of the hardware. The equipment will be mounted in a box on a piece of drilling equipment. Power will be supplied via a diesel engine driving an alternator into a set of batteries. The drilling equipment is rotary - no impact - so the vibration should be reasonable if I shock mount the control panel. However the machine will only be used once in a while. This machine will live outside year around.When it is not being used, the machine will be un-powered so I have no way of putting a panel heater in the box to keep out condensation. I'm thinking about using some type of desiccant system?? to keep the humidity down in the panels to avoid a condensation problem. I'm really not concerned about the higher range of temperatures since there will be a roof over the control panel so I should be able to keep the sun off it. I am mostly concerned about the low end of the temperature range. They could be using this drilling machine in temps as low as 20 degrees F or so. They will expect to be able to start up the engine, run it for 5 minutes or so and then flip on the controls and have them function properly. This might be after the machine has been sitting for a few months outside in places like the Rocky Mountains in Colorado I'd like to use as many off the shelf devices as possible - PC boards etc... if possible. Being a typical customer, they want to keep the costs down but they also want it to work and operate reliably. I've had good luck using conventional industrial controls on machines that operate outside, but I have always been able to include a panel heater to minimize condensation issues. Do you guys have any suggestions? Dave That IS a demanding application: Problems: a. temp range -30 to -40 F to maybe 110 F. b. the need to be up and running in 5 min implies pretty steep temp gradients upon start-up if it is cold. c. good cooling in the summer. d. keep alive and probably desulfation for the batteries. e. hard disks really don't turn very well when cold so some kind of bulk semiconductor memory is probably indicated. Still it does sound like a challenge and should keep life from getting dull. Good luck. Dave -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net