Re: [Emc-users] question on gcode parsing
I have followed this thread for a day or two, but I cannot understand what would be achieved by the parsing. The beauty of gcode is its simplicity, a whole block is read and decoded before any action is taken, so why is word order important? Are you looking for: Letter codes without values, or values without letter codes? Wrong type values? Motion with zero speed set? I am currently working on a gcode reader in 'C' for a small 3-axis machine, and wonder if I am missing something? __ John Harris E-Mail jdhhar...@customstage.net On 1/22/2012 2:46 AM, Michael Haberler wrote: Am 22.01.2012 um 04:36 schrieb Scott Hasse: I agree there is a large and difficult problem with respect to the semantic checking if the desire is to assure that a program will run properly. I'm really aiming for a step or two below that, where the code would be parsed, any semantic checks that can be done statically would be done, the words would be re-ordered on the blocks in a standard way, and blocks split up in a standard way to more clearly disambiguate the order of execution. so you're really looking at source-to-source translation and I guess AST rewriting, cool Unfortunately I don't have the C chops to be of much assistance with an interpreter rewrite (I am a Java guy primarily, getting into Python), but -^^^ I'm already sit in that pit I'd be glad to help with work on a common grammar, even though that is only a small part of the problem, as you say. well, my requirements for a vehicle would be roughly like so: - industrial-strength error diagnosis and recovery, LALR(1) capable - can generate a C/C++ scanner/parser from grammer, lexical definition - the parser/scanner can be used from C/C++ or Python - optional parse tree generation a plus - mainstream/widely used code base a plus that probably suggests some bison or byacc base; I'd refrain from a Python-only solution like PLY because that's bound to diverge from the current interpreter since it cant be easily used a frontend; however, there was some discussion about moving the interpreter to fully-Python. I think thats overly ambitious given the resources though. I have zero Java clue and would try to avoid adding another language to the linuxcnc language plethora, which needs to be pruned rather than be added to I'd be interested what you think. - Michael -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] PLC to stepper hardware
Lin Engineering sell a driver RS325, that takes serial commands using RS485 as opposed to RS232. This has the advantage of being able to connect multiple drivers to the same PC port. RS232 to RS485 adapters are available from several places, as well as USB to RS485 adapters __ John Harris E-Mail jdhhar...@customstage.net On 1/18/2012 1:05 PM, Przemek Klosowski wrote: Plenty---most commercial 'stepper motor contollers' are designed to be driven by serial commands, because that's easier to integrate in the industrial world. Galil, Oregon Micro are two that we used, but Google has over 7 million hits for stepper motor controller serial port. Such controllers are usually more expensive: serial port implies passing high-level motion commands, with trajectory profiles calculated by the controller, etc. This is in contrast to the step-direction interface used by cheap controllers/drivers. On Wed, Jan 18, 2012 at 2:27 PM, Karl Schmidtk...@xtronics.com wrote: Can anyone recommend some stepper motor driver that one could send serial coordinate commands? I'm thinking that something like that exists? Karl Schmidt EMail k...@xtronics.com Transtronics, Inc. WEB http://xtronics.com 3209 West 9th Street Ph (785) 841-3089 Lawrence, KS 66049 FAX (785) 841-0434 Hybrid cars are like high-heels, they advertise something, but they aren't practical. -kps -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] ***SPAM*** Re: Idle Current Issues
Hi All, I have been designing step motor drivers and multi-axis controllers as a consultant to several companies for over 15 years. Almost all of the drives use microstepping, but there are a few half-step designs mixed in. There seems to be a lot of confusion about lost steps and current reduction. I hope the following helps to clear the mist a little: 1.Stepmotors cannot loose one step, but the driver can. A 1.8 degree 200 fullstep/rev motor can only slip in increments of four fullsteps to one of the 50 indent positions per revolution. 2.Drives can loose or gain steps for several reasons, but one common cause is noise on the input lines. In the old days (before 9/11) the input opto-coupler acted as an effective low pass filter with about a 200KHz cut-off frequency. New opto-couplers are good up to 15MHz, and unless the driver design includes a simple low-pass filter, there can be lots of false steps. 3. I never used a simple RC for current reduction. It was either a timer IC or a timer function in the microcontroller. The response to full current was typically less than one millisecond, and this did not give a problem unless the motor was supporting a load that could produce a torque overload at the reduced current. If that was the case we did not use the current reduction feature. Regards __ John Harris E-Mail jdhhar...@customstage.net On 9/12/2011 8:52 AM, gene heskett wrote: On Monday, September 12, 2011 10:10:17 AM BRIAN GLACKIN did opine: Gene, You mentioned that you are having/had issues with the idle current setup on your new drives. The problem (imho) is that the hardware ICR solutions require that steps be lost in order to wake the chip. So no matter what, at some point your likely to have missed steps. I played ad nauseum with the velocities and accelerations and kept getting frustrated by the creep (lost steps) on the Z axis of my gantry router. Since I mainly cut 2.5 D, the Z is idle 95% of the time with very short moves deeper into or out of the cut. I do not know how many times my router drove across my 2' X 4' surface at full depth on G0 back to the origin. Its amazing how powerfull 200 oz-in stepper motors are. The Hobbycnc Pro board also has ICR. Take a look at the Wiki regarding this, Kim Mortensen has a nice writeup on the issues with ICR that probably go beyon just that board. ICR on the HCNC board uses an RC pair to trigger the reduction. I suspect that it typical of most setups. In my case, I simply eliminated the RC pairs and direct wired the axis chips to the parrallel port. Amp enable from EMC triggers the chip to wake before any step is issued. This eliminated all issues I had with ICR. I found that these amps have an enable input, but that it was in fact a disable if driven. And since emc enables the amps when out of e-stop, that isn't a lot of help anyway. But thanks for the heads up about lost steps being rather endemic to ICR (nice abbreviation) equipt drivers. I have a 1 stroke dial indicator, so I will setup some lost steps detection moves before I actually make any more swarf with it. The ICR recovery can be many times faster if a re-triggerable multivibrator/timer is used, and in modern integrated circuitry that is far cheaper then an rc circuit. I would think, as an electronics type, that it would be more of a function with the motor inductance impeding its being ramped back up to full current. This could take a small, but important amount of time. Something in the millisecond range that would effectively make the first step a weak one. Since my z motor is a triple stack 425oz, it is higher inductance and would likely show that effect first. But there is no data included with them on how long it must be paused to do the ICR. They only have 2 leds, a green one to indicate power ok, and a red one to indicate a fault. And my cabling does not allow an amprobe to be used. Just a datapoint. I will post what I find. Possibly I can just clip onto the wire insulation near the motor and see tha ICR by stray pickup on the scope. That of course won't be a quantitative measurement, but a relative one that will give me the timing info. In the case of my Z motor, it is an 8 wire motor, I could pull a wire nut off and insert my home-made spindle current ammeter for a visual indication. At full song, it should be about full scale. IF, note caps, the rectifiers I used to make that AC ammeter out of a DC meter are fast enough. SI power diodes have notariously slow reverse recovery's and likely not very efficient at 200khz. Cheers, gene -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation
Re: [Emc-users] Arduino as MPG and DRO for EMC
You might want to take a look at the mbed module www.mebed.org that has been referred to as 'Arduino on steroids'. There has been a lot of porting of Arduino projects to mbed which uses a 100MHz 32-bit processor with free tools. Check the forum for Arduino ports. John - Original Message - From: Colin Kingsbury ckingsb...@gmail.com To: emc-users@lists.sourceforge.net Sent: Tuesday, October 12, 2010 9:31 AM Subject: [Emc-users] Arduino as MPG and DRO for EMC Just thought I'd share a quick update on my project to build an Arduino-based control pendant for EMC. http://www.youtube.com/watch?v=flajZMff28U This video shows an Arduino communicating with EMC and functioning as both an MPG and remote DRO. I will be publishing more details along with source code over on my blog at http://ckcnc.wordpress.com as I get the various loose ends more tied up. In the meantime I am starting to feel like this is approaching robustness. The serial protocol may need a little more work to ensure that things either can't get out of sequence, or that it can recover from such events without requiring a reset. Otherwise it seems to run happily at 9600bps. The DRO is limited to update 10x/sec to avoid saturating the line. As a human-machine interface, things seem to be real-timey enough to function effectively. In this setting, I think the only limitation on the number of I/O signals is the Arduino's memory and processing power. I am using 7.3k of the 16k flash, and I don't know how much of the SRAM and CPU. Most of that is going to the LCD and encoder-reading functions. With 6 outputs to drive the LCD, I have 10 left over, which could theoretically support a 25-key matrix. With all the room on the LCD, I'm curious to see how much more I can squeeze in, e.g., by adding multiple pages to the display. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Arduino as MPG and DRO for EMC
It's basically 'C' code with a proprietary library. The library gives you short cut functionality very similar to Arduino. There is a schematic that you can download from http://mbed.org/handbook/mbed-NXP-LPC1768 look near the bottom of the page. I have built a 4-axis controller card using the LPC1768 microcontroller, (same as mbed), that will some day soon read G Code from a SD card. It already runs the four axis. All the code is developed using the mbed compiler and the binary file is then downloaded. I do a binary to hex conversion and then load it to my card using Flash Magic (free). One day I will convert the library functions that I am using to straight C code. John - Original Message - From: doug metzler doug.metz...@gmail.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, October 12, 2010 1:50 PM Subject: Re: [Emc-users] Arduino as MPG and DRO for EMC Isn't mbed proprietary? I looked for schematics and firmware source on their website but didn't see anything. The last thing I want to do is get locked into somebody's single-source $60 module. DougM On Tue, Oct 12, 2010 at 11:08 AM, Thomas Powderly tomp4...@gmail.comwrote: make that www.mbed.org not mebed goldilocks ;) On Tue, Oct 12, 2010 at 12:18 PM, John Harris jdhhar...@customstage.net wrote: You might want to take a look at the mbed module www.mebed.org that has been referred to as 'Arduino on steroids'. There has been a lot of porting of Arduino projects to mbed which uses a 100MHz 32-bit processor with free tools. Check the forum for Arduino ports. John -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Random Direction Changes
Hi, Under some circumstances this effect can be produced by one motor winding connection not being good at the driver end of the motor cable. Usually with a long (2 mtr) cable. Can also be due to one output of the driver unit being bad. With power off, use an ohmmeter to check the winding resistance at the motor end off the cable, then look for similar resistance at the output pins of the driver unit, and the output pins of the driver ICs. If that looks good, with power on and the motor running look with a scope at the waveforms on all four driver outputs. The two outputs for one winding are different, but one output on one winding should be the same as one output on the other winding, and the other two should also match. Also an open circuit Direction signal, with the open at the breakout board end of the cable can produce similar effects as suggested below. - Original Message - From: Slavko Kocjancic esla...@gmail.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, March 30, 2010 2:23 AM Subject: Re: [Emc-users] Random Direction Changes darcys...@gmail.com pravi: Hi all, I am experiencing some odd direction changes on a home-brew CNC machine that I have on loan. The machine was apparently purchased off ebay, and all the settings I dug out from data sheets for the driver chips and motors. X and Y are working well, but Z (which has a similarly spec'ed but different motor from the other two) decides to change direction at random. The basic behavior is that when you push the jog button in a certain direction you don't know which direction it will go. It will maintain it's course in that direction, but when releasing the button and pressing it again, it will again choose a random direction. Thus the problem it is very easy to reproduce. I am interested to hear what you think this problem may be caused by? I have yet to pull out the oscilloscope, but being a relative newcomer I wanted to ask for advise on how best to debug this problem. I should add that I did have this CNC set up briefly on Mach3, and encountered the same issue. Thanks in advance, Just check the wires again. That can be caused by bad connection of DIR signal or even replaced dir/step signal or shorted together. If you don't have scope then just use earphone. Connect earphone trought 10k resistor to direction signal and ground. You should hear nothing when motor moves. But must hear click when you change direction. On the step pin you should hear clear tone without clicking. That's works even betterthan scope!. As all interrupts are heard as clicking in steady signal. On scope is very easy to miss that glitch. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Absolute Encoder Connector
Hi Kirk, Try Samtec at http://www.samtec.com/documents/webfiles/pdf/FTSH_TH.PDF They only do dual row headers, and they also do ribbon cable connectors to match. You can get free samples if you find your way to their Sudden Service page. I f you can tell me exactly the row and pin count, with SMT or through hole, I may be able to give you the exact part number. Their catalog and web site are tough unless you know your way. John - Original Message - From: Kirk Wallace kwall...@wallacecompany.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Thursday, March 04, 2010 2:40 PM Subject: [Emc-users] Absolute Encoder Connector I've got my encoders from Avnet (AEAT-6010): http://wallacecompany.com/machine_shop/EMC2/absolute_encoder/ but now I need to figure out how to connect to them. I figured I could get by for now with soldering wires to the back of the PC board, but there is no way, it's way to small. So I need to find a proper connector, but I don't know what keywords to search on. The pins have a .05 pitch. Thanks for any help. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Magnetic Encoder
All, Be cautious about fitting magnetic encoders to the back of NEMA34 or larger step motors. The magnetic field in the area where the encoder is to be installed is strong enough to screw up the encoder readings. The effect shows up as noise on the position reading. John (The hard way) - Original Message - From: Kirk Wallace kwall...@wallacecompany.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, February 28, 2010 1:14 PM Subject: [Emc-users] Magnetic Encoder Does anyone have a source for these?: http://www.avagotech.com/docs/AV02-0188EN Mouser wants to sell me 204 of these. Digikey says it's a non-stock item. One nice thing about these is the SPI like output. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] How Exactly does a Mister Work
Hi All, Back in the late 50s when, as a young apprentice, I was turning knobs on a milling machine as part of my education, the shop foreman replaced the flood system on the mill with a new-fangled mister. The mister feed tank was filled with the same stuff that was used for the flood system. That is water with 15(?) percent soluble oil. The foreman told me that the mist cooled the part and the tool by evaporating the water, and the oil gave some lubrication to the cutting action. Also misting greatly aided the water evaporation compared to the flood system. As the foreman is by now no longer with us, I feel safe in raising the question, was what he told me true? If it was, why are you now using only oil that is much less efficient in absorbing heat by evaporation than water? Regards all. I love reading the chat. __ John Harris E-mail: jdhhar...@customstage.net -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] How Exactly does a Mister Work
Hm. I don't think carbide bits were around in 58, so it looks like the foreman was not too far off. The fast oxidization of aluminum during cutting is an interesting effect. In the early 60s, we were making small electronic modules by soldering tiny Fairchild ICs to printed circuit cards, using locally made hot nitrogen soldering. There was a wall powered gadget that extracted nitrogen from the air, and a bell jar that held the nitrogen at 1/2 PSI. A plastic tube fed the nitrogen to something that looked like a normal soldering iron, except that the tip was a hypodermic needle with a blunt tip. The nitrogen came out of the needle tip hot enough to melt (reflow) the solder at the joint, but while doing so flooded the area around the joint with nitrogen to prevent oxidation. You do not need the heat but maybe a low flow of nitrogen to the cutting point may stop the oxidation long enough for the next cutting edge to get there. Anyone have any ideas on how the gadget running from wall power that made the nitrogen worked? John - Original Message - From: Leslie Newell les.new...@fastmail.co.uk To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Friday, November 20, 2009 8:43 AM Subject: Re: [Emc-users] How Exactly does a Mister Work In general flood with a water based coolant will shift more heat than a mist system. Flood also usually shifts the chips better. On the down side it is very messy and can actually reduce the life of carbide tooling. Carbide tooling can take a lot of heat but it hates thermal shock. The cutting edges of a milling cutter operating in flood coolant will get heated rapidly while they are actually cutting then suddenly cooled as they hit the coolant. This can cause cracking and chipping. Oil has a much lower thermal capacity and conductivity than water so it doesn't cause as much thermal shock. To a large extent you can get around the problem by using high pressure flood coolant to make sure the cutter does not get a chance to heat up. So why are mist systems still fairly rare in industry? Two main reasons spring to mind. 1) flood keeps the work and machine at an even temperature so you don't need to allow for thermal expansion. 2) Flood has always been used. If it works, why change it? In my experience carbide works well with oil misters, HSS needs flood or a heavy mist of water based coolant. Les John Harris wrote: Hi All, Back in the late 50s when, as a young apprentice, I was turning knobs on a milling machine as part of my education, the shop foreman replaced the flood system on the mill with a new-fangled mister. The mister feed tank was filled with the same stuff that was used for the flood system. That is water with 15(?) percent soluble oil. The foreman told me that the mist cooled the part and the tool by evaporating the water, and the oil gave some lubrication to the cutting action. Also misting greatly aided the water evaporation compared to the flood system. As the foreman is by now no longer with us, I feel safe in raising the question, was what he told me true? If it was, why are you now using only oil that is much less efficient in absorbing heat by evaporation than water? Regards all. I love reading the chat. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Steppers
Hi, From your description 'the spindle rotated feebly but the slightest touch on the spindle stopped it and it just sat there quivering and buzzing gently'. This is the exactly the effect you get with a bi-phase stepmotor if one wire is not connect to the driver. Check your connections carefully. Measure coil resistance from the driver side of the driver to motor connector. Regards John Harris Ex-Brit - Original Message - From: Ian W. Wright watchma...@talktalk.net To: emc-users@lists.sourceforge.net Sent: Thursday, October 15, 2009 3:02 PM Subject: [Emc-users] Steppers Hi, I am totally perplexed! I have two apparently very similar stepper motors - i.e. made by the same company ( Oriental Stepper), both 32 size and single stack although one is about 1/4in longer than the other. Lets call them X and Y to avoid confusion. I also have two driver boards - not identical as I blew one up recently :_{ - one is a commercial microstepping board, set to abut 1.5A capacity and the other is a L297/L298 board - both are set to half stepping. Lets call these A and B. I had them connected up on a little machine with motor X driven by board A and Motor Y by board B and everything ran fine. I decided that I wanted to swap the axes over and so I unplugged motor X from board A and plugged it into board B and vice versa for motor Y. Now motor Y connected to the L297/l298 board had no power at all - the spindle rotated feebly but the slightest touch on the spindle stopped it and it just sat there quivering and buzzing gently. Motor X was quite happy and running at full power. I changed them back again and once again both motors ran at full power I did the changing over several times to verify that it wasn't due to a bad connection or something and I double checked that both motors were wired in exactly the same way - also that the EMC2 settings in the .INI file were the same for each axis. I can't find any data on the motors as they are obsolete, so I can't tell if there are any differences in the windings but both sets of coils ( they are 8 wire motors wired as 2 series pairs of coils and the pair colours correspond on both motors) seem to be wired the same and have the same resistance on both motors. Does anyone have any words of wisdom to explain this phenomenon? It has me completely baffled Thanks, Ian -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] A wish - Closed Loop Steppers
In any feedback motor control system when an torque overload occurs, you have two choices, stop or slow down. In a CNC environment there is a good chance the slowing down would remove the torque overload, so the trick would be too slow down all of the machine motors in a strictly proportional manner. JohnDHH - Original Message - From: RogerN re...@wildblue.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, January 04, 2009 8:36 AM Subject: Re: [Emc-users] A wish - Closed Loop Steppers I've thought about trying the following in EMC2. Set up the stepper axis with encoder feedback. Have the step rate be the commanded step rate + proportional to error. Have a following error shut the system down if error is greater than maybe 10 steps. If the axis is stalled, the error should grow greater than 10 steps real fast, if not it should be able to make up lost steps. The idea I was interested in was to use linear scales from a DRO for actual position feedback. This could get you to position with or without lead screw errors, step errors, etc. It wouldn't prevent stalling an axis but at least detecting the following error could shut down before ruining the part. (assuming it stalled out on a roughing cut that can be cleaned up on a finishing cut, and didn't gouge) RogerN - Original Message - From: Roger vrsculp...@hotmail.com To: emc-users@lists.sourceforge.net Sent: Sunday, January 04, 2009 9:07 AM Subject: Re: [Emc-users] A wish - Closed Loop Steppers Snip ___ 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 -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel port in the future - query
Hi All, You might want to take a look at a Saxo board sold through the www.knjn.com site. It combines the Cypress CY7C68013, with an Altera FPGA and an ARM7 microcontroller. both the FPGA and the ARM7 can be reprogrammed through the USB port, which simplifies code development. Even if you do not use this board, the fact that you can update embedded code through the USB port is worth knowing. Separate subject: In my 3-axis microscope stage controller, I have a means of mixing imperative commands like Stop into the the positioning command stream. At the upstream end of the USB connections, the imperatives are inserted ahead of buffered positioning commands, and at the downstream end these commands are acted on without going through the FIFO buffer used for the positioning commands. Each positioning command, that is like a G Code block in binary is given a 1/100 second timestamp at the upstream end and this timestamp tells the embedded control system when the command is to be executed. John Harris - Original Message - From: Jon Elson [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Thursday, October 30, 2008 10:05 PM Subject: Re: [Emc-users] Parallel port in the future - query John Kasunich wrote: This subject seems to come up every month or two. The answer is and will probably always be the same. Yes, it is possible to make a box that lives outside the PC and can queue up enough motion in advance that it doesn't require realtime performance from the PC. I agree that taking the PC completely out of the real-time game is a mistake in two senses. First, we've already done the heavy lifting, and it works. Second is, if you are NOT real-time, then there is no upper bound to latency, and one day, the system won't get the data there in time, and the buffer will run empty. The machine will crash to a stop, possibly with disasterous consequences. But, there might be another way. Keep EMC real-time, but have a USB device that can pump out parallel bytes from a FIFO. This requires EMC to sync to the USB clock instead of the system timer. Every tick of that clock, a whole batch of step pulses, just like they are spoon-fed to the parallel port now, would be buffered and sent to the USB device to be de-buffered at a constant rate such that as the last byte was sent, the next buffer would be ready. I think the Cypress CY7C68013 can do all this in hardware, once configured. You can do that if you want, but you lose one of the big benefits of PC based control. On a PC based control, it is easy to find problems, add features, and update the software. If you embed everything in some external box with no keyboard, no screen, no development tools, etc, you are rather locked down. It's one thing to embed simple stuff that can be tested and proven robust, and that is unlikely to change. It is much tougher to embed complex code that will need to be debugged and changed to meet evolving needs. Well, using the Cypress chip, or some other USB-FIFO device, is an intermediate step. If it only has a one ms buffer, the user would never know the difference. And, it would not be moving all the motion control of EMC into some external device, it is just a FIFO and an interface device. Of course, it needs real-time determinism on the USB. I have no idea what state that is in, but I think there has been some work done in that area. A quick Google search appears to show that EVERY document containing the text USB also contains real time, using it to means something happening within a couple of seconds! UGH! But, it looks like Jan Kiszka, who did the rt-net package also has a USB stack for rtai, originally started by Joerge Langenberg. I should point out that I am NOT volunteering for this project, although after I get some hardware and software expertise with this Cypress chip, I might be willing to contribute to such a project. I have a bigger interest in possibly using this chip to connect my other boards to a PC without parallel ports. It might also increase the performance, as the CPU having to process each byte laboriously through the parallel port is becoming a bottleneck. But, I don't know if the chip, or the USB model, is really conducive to the existing boards' model of communication. The fact that it can do one-way FIFO transfers without intervention of the slow 8051 CPU is tantalizing, though. With some additional FPGA logic to format blocks of data to be read from the FPGA to the CPU, though, I think it MIGHT work. I need to learn more about how many balls this chip can keep in the air at once. But, the idea is : Every micro-frame, the FPGA sends encoder position and digital inputs to the CPU, and every micro-frame, EMC sends new velocity and digital output info the the FPGA, based on the last data it processed. It would always be one microframe out of sync
Re: [Emc-users] Parallel port in the future - query
Hi Jim, I'm very interested in your proposed project, of moving the 'Real Time' out of the box and into a USB replacement for the parallel port breakout board. I design motorized microscope XY stages and focus knob drives for Z, with a 3-axis controller running from a USB port. I also have two mills that are potential targets for a EMC2 based CNC upgrade. When Microsoft (can I use that word?) upgraded to Win3.x and became multi-threaded with the added feature of latency, I moved all my real-time stuff out of the box. A FIFO command buffer takes care of the latency and a bunch of FPGA code allows complete parallel control of the three axis. I have been thinking some time, that a similar solution could be made for EMC2, to switch to USB when there are no more parallel ports So where would you divide EMC2 to split off the latency susceptible real-time stuff, and what would be the software to software interface through the USB port? I have not done box software other than LabVIEW since Win95, so I'm a little reluctant to dive into the EMC2 source code on my own. John Harris - Original Message - From: Jim Combs [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Thursday, October 30, 2008 11:04 AM Subject: Re: [Emc-users] Parallel port in the future - query Guess it would do well for me to sign my message! BUT, USB is a shared resource. Up to 127 devices can be on the bus and there is no guarantee of timed delivery. You could identify the device a as a video interface and the USB bus would allocate specific bandwidth to an interface. Making a USB based IO EMC2 hardware controller would be the way to go. I know enough to do the hardware side, but not enough to do the Ubuntu side. Then the Parallel port could go away and RIP. It has served it's time VERY WELL! Jim Combs (Lexington, Ky) - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Parrallel Port Breakout Board
Hi, Does EMC2 still support the use of a single Parallel Port? If so where can I find documentation on the functions handled by a single port system and how this is done? Thanks John Harris E-mail: [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Parallel Port Breakout Board
Hi Kirk, So there is no default usage for each of the 12 outputs and 4 inputs? I'm thinking about a 3-axis small mill with limit switches on the two X and Y axis plus spindle on/off and two coolants. Outputs 3 Step and 3 Direction = 6 1 Common Enable, 2 Coolant and 1 Spindle = 4 Total 10 outputs Inputs 2 Left Limit and 2 Right limit = 4 Total 4 inputs. Will the .ini file allow this combination? What magic do the Pico Systems or Pluto-P controllers do that enables them to run faster than the standard Parallel Port? My project is a PCB design with 3 stepmotor drivers and the breakout all on the one board, for a small CNC ready mill I have had sitting under a bench for three years. Thanks John - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, October 19, 2008 11:26 AM Subject: Re: [Emc-users] Parrallel Port Breakout Board On Sun, 2008-10-19 at 10:14 -0600, John Harris wrote: Hi, Does EMC2 still support the use of a single Parallel Port? If so where can I find documentation on the functions handled by a single port system and how this is done? Thanks John Harris It depends on what you are trying to do. With a typical single port, you have twelve outputs and four inputs: http://www.linuxcnc.org/docview/html//hal_drivers.html#sec:Parport http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?EmcKnowledgeBase If you have three axes that are controlled by step and direction, that will take up six outputs. If you are going to use limit and/or home sensors, I think that anywhere from two to nine or more inputs will be needed. So a single port could run a CNC machine, but it might not have all of the features you want. It depends on the details of your design. The assignment of each pin is controlled by what you enter into your .ini file. A Pico Systems or Pluto-P controller would give you more speed and I/O in a single port solution. Kirk - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Fw: Ubuntu related question
Hi John and Kirk, I found a software package called a 'wrapper' in Ubuntuland that enabled me to use my Win-XP driver with Ubuntu. Exactly how I found it is lost in the mists of time (more than a week ago), but the word 'wrapper' might help you get what you need. Regards JohnDH - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, October 15, 2008 10:55 AM Subject: Re: [Emc-users] Ubuntu related question On Wed, 2008-10-15 at 12:01 -0400, John Domville wrote: I am In the process of setting up my CNC mill with EMC2 software it has become apparent that I need internet access for updates and what not. The computer (a Dell) dual boots Windows XP and Ubuntu 8.xxx. Under windows I have been able to configure the Linksys wireless adapter to work. But I am at a loss on how to install the drivers under Ubuntu. Keep you directions simple as I am new to Linux/Ubuntu. Thanks John Domville Elmira NY If you bring up System/Administration/Network do you see any wireless connection entries in the connections tab? You will need to unlock and enter your connection settings (usually the lower of two wireless connections in the list). It took me some trial and error to get mine to work. If you don't see any wireless connections in the list, it can be a real problem to get your adapter to work. In fact, now that I am thinking about it, for my EMC PC's I use a wireless client to Ethernet adapter. This could save you allot of frustration. http://www.newegg.com/Product/Product.aspx?Item=N82E16833127053 Kirk - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users