Re: [Emc-users] LinuxCNC Integrator meeting Germany?
19th and 20th of October would be a good time for me too. BR Max. On Mon, Jul 8, 2013 at 10:27 PM, Viesturs Lācis viesturs.la...@gmail.comwrote: If there are no objections I would reserve my workplace/workshop in Stuttgart, BW for the 19./20.th October for our integrator meeting so we can all put it down in our schedules and move ahead with planning. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Need MESA 5i25 + 7i77 in EU quickly
Hello Marius, I always order mine from Lascar Elektronik in Germany. If you are lucky then they have something in stock. www.lascar.com +49 7459 1271 BR+Good luck Max. Does somebody have spare kit in EU? Need it in Lithuania. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] LinuxCNC Integrator meeting Germany?
Hello Rene, is your workshop big enough for all the people that have already stated their interest? Can you tell me/us where you are located around Stuttgart ? And maybe we should move this to a wiki page ? BR Max. Hello, my name is Rene I'm also located next to Stuttgart. A meeting in Stuttgart would be very great! Me and my cousin will come for sure. We have a big working Linuxcnc machine and visiting our workshop would be no problem to us. We are currently working on something that would change Linuxcnc a lot for professional users and when I say a lot I mean really a lot ! But I will not say more at this time :) Maybe we can introduce it to you during the meeting in Stuttgart. Since this is a big project it will take at least half a year for for first release (everything opensource of course) Greets Rene -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] LinuxCNC Integrator meeting Germany?
Hello Everybody, I collected these emails of the eleven interested people who already stated their interest in a linuxcnc meeting. Four of those people are close to Stuttgart, two are from Austria (please correct me if I am wrong). So I think it would be sensible to meet somewhere in or around Stuttgart. So I think there are three mayor questions: 1. Location - Something big enough to bring gear, something to mess around with, maybe have one cnc machine there ? Anybody got ideas ? 2. Date - maybe not before the summer holidays start ? So maybe late September or early October 2013 - when everybody is back ? That would give people time to make travel arrangements and have a chance at a still free schedule. 3. What to do if we should meet up ;) I have a small (1,2m x 1,5m) cnc machine with linuxcnc that I could load into a van. But I'd need a forklift at the destination to unload and three phase electric power, too. -- Here are the interested people: Christian Stöveken, christian.stoeve...@gmail.com, Stuttgart, Germany Michael Haberler, mai...@mah.priv.at, Austria Martin Schöneck, c...@martinschoeneck.de, Ludwigsburg - near Stuttgart, Germany Alex Joni, alex.j...@robcon.ro, Timișoara (still?), Romania Sven Wesley, svenne.d...@gmail.com, loc. unknown Viesturs Lācis, viesturs.la...@gmail.com, loc. unknown Matt Shaver, m...@mattshaver.com, USA Alex Chiosso, achio...@gmail.com, northern Italy Jan Maier, jan.ma...@joline.net, Tuebingen - near Stuttgart, Germany W. Martinjak, mats...@play-pla.net, Graz, Austria Maximilian H., mhemc2nos...@googlemail.com, near Stuttgart, Germany BR Max. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] LinuxCNC Integrator meeting Germany?
Hello Everybody, southern Germany sounds great to me ;) (Especially since I am living close to Stuttgart). So I'd love to come. BR Max. Hello all. Is there a LinuxCNC integrator workshop planned in/around Germany within the next year or so? If not - are there people interested in attending/getting an integrator meeting up? I will probably finish the 6-axis Manutechttp://www.youtube.com/watch?v=wslOMT6_e6k at work somewhen this year and feel confident enough to help others out (well I have to read up on all my notes again first ;-). Btw. I'm located in Stuttgart, Germany if someone else is close by. Cheers, Christian -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello Everybody, many thanks for your great input. It has given me some ideas of what I can try next. As we have a holiday on Monday I will not be in the shop until Tuesday. I have a ssh connection to the machine, but since I started this thread the machine has been running linuxcnc with the 7i43+7i33+interface pcb without any problems in the lab again. The current load of the machine ( uptime/top ) is about 6, and I still have a working realtime for almost two days now. Summarizing all replies, ideas, questions. 1. Ntp/network is a good idea, since I do have this setup via cron to check the time every 20 minutes. However, these ntp updates happen also in the lab, and there I don't get any watchdog bite. Anyway I'll disable the ntp updates and see what happens. 2. Yes, I should have saved the output of dmesg. I checked it, but did not save it. There was no unexpected realtime delay message, that I do remember. I will save dmesg's output next time. 3. I am running a 1ms servo loop on two other linuxcnc machines with 7i43+7i33. A 1ms servo loop only works for me with onboard lpt ports. I had no such luck with pci boards. I must say that I have never checked with pci-e cards. When building a pc for use with linuxcnc I just always make sure to have an onboard lpt port for the epp communication. This a dual core machine at 3GHz that I am using, so there is enough cpu power to spare, even if one core is busy with the servo loop. And after Friday's email to the list, the last thing I tried was running with a 5ms servo loop and the watchdog did bite again. 4. Monitoring the epp communication with a digital scope would be an option, I don't have one myself, but I know somebody how does. Certainly it would make sense to see if the communication really breaks down for over 500ms. But I know nobody who owns a logic analyzer, so I can only check 2 chan max. What pins on the ribbon cable are the most interesting ? 5. EMI certainly/unfortunately is a possibility. The ribbon cable from the pc to the 7i43 is short, about 30cm, but who knows what kind of EMI I do have in a 30y old mill. And of course the ribbon cable is not shieled either. I tried running with the converter for the spindle powered down, but that did not help either. 6. The 7i43's watchdog timeout I first had set to 5ms, then 100ms and increased that value to a final value of 500ms. And still I got watchdog bites at a timeout of 500ms without any unexpected realtime delay message. Of course, once the watchdog bites, I get following errors too since the axes don't move anymore once the watchdog has bitten. 7. I will try to decrease vm swappiness from 60 (ubuntu's default) to 10. The machine has 4Gb ram of which only 3,5 are useable because of the 32bit architecture. The linuxcnc pc never runs anything except linuxcnc, so it should never swap anyway. 8. External events. I could use the 7i43's hm2_7i43.0.watchdog.has_bit pin as a trigger for halscope, but what other events should I monitor in halscope ? Halscope can only monitor a maximum of 8 channel, I believe. Or does somebody have an working example of a streamer/halstreamer setup that I could copy. Anyway, what other values from hal space would be interesting to debug this ? Ferror, cmd pos, fb pos, velocities, accel for all axes, pwm values, the watchdog has-bit pin, the io_error pin, and what else ? 9. Question. Since I don't have an io_error 16 bit RW FALSE hm2_7i43.0.io_error and the documentation at http://linuxcnc.org/docs/html/man/man9/hm2_7i43.9.html tells me that the io_error should be set if I do have a broken epp communication, does that mean that I can rule out EMI on the cable from the lpt port to the 7i43 ? 10. I could buy a pcie lpt port and see if that helps. 11. Video drivers are vesa, no nvidia hardware. No flash, no firefox, nothing but the linuxcnc ubuntu 10.04 32bits and the cnc software running. 12. Did I forget something else that I could check ? BR Max. On Fri, 17 May 2013, Sebastian Kuzminsky wrote: Date: Fri, 17 May 2013 15:33:05 -0400 From: Sebastian Kuzminsky s...@highlab.com To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ? On 05/17/2013 03:27 PM, Andrew wrote: 2013/5/17 Maximilian H mhemc2nos...@googlemail.com I use a servo loop of one millisecond. I'd say 1ms is too short for 7i43, at least it never worked for me. Try increasing it to 4ms to eliminate the possible cause. I've run a 7i43 at 1 kHz, it worked fine for me. I guess it would depend on the user's hardware how well it works. Maximilian reported that after a watchdog bit, the max time taken by the servo thread was 765 us: Realtime Threads: Period FP Name ( Time, Max-Time ) 498550 YES servo-thread ( 6060, 764883 ) ... so a 1 ms servo period doesn't seem to be the problem here. -- Sebastian
Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello Peter, One thing to verify once you get a watchdog has bitten error is to verify if that its a real watchdog bite or whether its somehow a false noise generated report. Can you toggle any I/O bits (via halcmd) after the watchdog has bit event? I do have leds on the digital outputs and inputs that use on my custom pcb machine interface. Once the watchdog bites, all signals (inputs and output, haven't checked pwm and encoders) then have the led switched off. And I do at least have always the EstopWrite and EstopSense and AmpEnable leds switched on and shining while the machine is running normally. But I have not tried toggling digital outputs via halcmd after the watchdog bite. Just to be sure, you mean toggling the output *before* I reset the watchdog via halcmd setp hm2_7i43.0.watchdog.has_bit 0 ? If you can, the report is bogus. I really dont expect this is caused by noise but this is pretty strange (never heard of a similar watchdog issue) Yes, it is strange :( BR Max. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello Dave, no, there is no usb device connected at all. Mouse and keyboard on PS/2. I always try to avoid usb with emc2/linuxcnc since I was once burned by a Pentium II mainboard that had strange usb issues with realtime. However, your idea does have merits. There might be a faulty device that does drive me nuts which is not connected to usb but somewhere else. I will check interrupts and their frequency. Maybe something is wrong there. BR Max. I'm hesitant to ask this but... any chance you have a USB connected device that is either not plugged in entirely, intermittent or flaky? Some systems seem to take a time out when a USB device goes on or offline. Dave On 5/19/2013 10:19 AM, Maximilian H wrote: Hello Everybody, many thanks for your great input. It has given me some ideas of what I can try next. As we have a holiday on Monday I will not be in the shop until Tuesday. I have a ssh connection to the machine, but since I started this thread the machine has been running linuxcnc with the 7i43+7i33+interface pcb without any problems in the lab again. The current load of the machine ( uptime/top ) is about 6, and I still have a working realtime for almost two days now. Summarizing all replies, ideas, questions. 1. Ntp/network is a good idea, since I do have this setup via cron to check the time every 20 minutes. However, these ntp updates happen also in the lab, and there I don't get any watchdog bite. Anyway I'll disable the ntp updates and see what happens. 2. Yes, I should have saved the output of dmesg. I checked it, but did not save it. There was no unexpected realtime delay message, that I do remember. I will save dmesg's output next time. 3. I am running a 1ms servo loop on two other linuxcnc machines with 7i43+7i33. A 1ms servo loop only works for me with onboard lpt ports. I had no such luck with pci boards. I must say that I have never checked with pci-e cards. When building a pc for use with linuxcnc I just always make sure to have an onboard lpt port for the epp communication. This a dual core machine at 3GHz that I am using, so there is enough cpu power to spare, even if one core is busy with the servo loop. And after Friday's email to the list, the last thing I tried was running with a 5ms servo loop and the watchdog did bite again. 4. Monitoring the epp communication with a digital scope would be an option, I don't have one myself, but I know somebody how does. Certainly it would make sense to see if the communication really breaks down for over 500ms. But I know nobody who owns a logic analyzer, so I can only check 2 chan max. What pins on the ribbon cable are the most interesting ? 5. EMI certainly/unfortunately is a possibility. The ribbon cable from the pc to the 7i43 is short, about 30cm, but who knows what kind of EMI I do have in a 30y old mill. And of course the ribbon cable is not shieled either. I tried running with the converter for the spindle powered down, but that did not help either. 6. The 7i43's watchdog timeout I first had set to 5ms, then 100ms and increased that value to a final value of 500ms. And still I got watchdog bites at a timeout of 500ms without any unexpected realtime delay message. Of course, once the watchdog bites, I get following errors too since the axes don't move anymore once the watchdog has bitten. 7. I will try to decrease vm swappiness from 60 (ubuntu's default) to 10. The machine has 4Gb ram of which only 3,5 are useable because of the 32bit architecture. The linuxcnc pc never runs anything except linuxcnc, so it should never swap anyway. 8. External events. I could use the 7i43's hm2_7i43.0.watchdog.has_bit pin as a trigger for halscope, but what other events should I monitor in halscope ? Halscope can only monitor a maximum of 8 channel, I believe. Or does somebody have an working example of a streamer/halstreamer setup that I could copy. Anyway, what other values from hal space would be interesting to debug this ? Ferror, cmd pos, fb pos, velocities, accel for all axes, pwm values, the watchdog has-bit pin, the io_error pin, and what else ? 9. Question. Since I don't have an io_error 16 bit RW FALSE hm2_7i43.0.io_error and the documentation at http://linuxcnc.org/docs/html/man/man9/hm2_7i43.9.html tells me that the io_error should be set if I do have a broken epp communication, does that mean that I can rule out EMI on the cable from the lpt port to the 7i43 ? 10. I could buy a pcie lpt port and see if that helps. 11. Video drivers are vesa, no nvidia hardware. No flash, no firefox, nothing but the linuxcnc ubuntu 10.04 32bits and the cnc software running. 12. Did I forget something else that I could check ? BR Max. On Fri, 17 May 2013, Sebastian Kuzminsky wrote: Date: Fri, 17 May 2013 15:33:05 -0400 From: Sebastian Kuzminskys...@highlab.com To: Enhanced Machine Controller (EMC)emc-users
[Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello, I have a old mill that I want to use with linuxcnc. I have prepared a pc with a 7i43+7i33+custom pcb to interface the mill. That pc with the interface I have both tested with the latency test and also with 7i43+7i33+pcb and the output for EstopWrite connected to the input of EstopSense in the lab for over *two weeks*, not days, with no latencies at all to speak of. Max. latency with huge load of IO was in the order of a few tens of microsecs, so I expected no problems. I use a servo loop of one millisecond. Now when I connect the setup to the mill I get bitten by the 7i43's watchdog within maybe an hour, often much earlier, and I have already increased the watchdog timeout from 5 milliseconds to 0.5 seconds, i.e. 500 milliseconds. I am a bit out of ideas of what could be the cause for the watchdog biting. The lab setup runs fine with latency test, the pc+7i43+7i33 on the lab bench with the servo calculations running also makes no problems. I am getting no message of unexpected realtime delays in axis or in dmesg when the watchdog bites - which I would also expect when the watchdog is not pet for 0.5 seconds. Finally is there an IO pin in the motion module to which I can connect the 7i43 watchdog's has-bit pin ? Both to use the message to generate an estop and to be able to reset it ? I looked at the pins of motion at http://linuxcnc.org/docs/html/man/man9/motion.9.html, but could not see something suiteable. Because right now I have to manually halcmd setp hm2_7i43.0.watchdog.has_bit 0 in a terminal, and I would like to be able to reset that when I get out of estop. BR Max. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello, Which version of LinuxCNC are you using? I tried with both 2.5.2 and 2.4.7, machine is a ubuntu 10.04 lucid 32 bits with rtai installed from the emc2 cd. The 2.5.2 version is stock from the deb packages. The 2.4.7 version has some changes to the interpreter, but no other changes to other parts. The ini file and the hal file are the same for both versions of emc2/linuxcnc that I use. This is the 7i43 loadrt: loadrt hm2_7i43 config=firmware=hm2/7i43/SVST4_4S.BIT num_encoders=4 num_pwmgens=4 num_stepgens=0 epp_wide=1 When .has-bit goes high, does the .io-error pin also go high? No it doesn't. 16 bit I/O TRUE hm2_7i43.0.watchdog.has_bit 16 bit RW FALSE hm2_7i43.0.io_error Can you show us 'halcmd show funct' and 'halcmd show thread' before and after the watchdog bites? These are the values after the watchdog has bit. I unfortunately don't have values from just before the watchdog bites. Would the values help that I get when I switch on the cnc with with 7i43+7i33 attached ? Realtime Threads: Period FP Name ( Time, Max-Time ) 498550 YES servo-thread ( 6060, 764883 ) 1 debounce.0 2 motion-command-handler 3 motion-controller 4 pid.0.do-pid-calcs 5 pid.1.do-pid-calcs 6 offset.0.update-output 7 offset.1.update-output 8 offset.0.update-feedback 9 offset.1.update-feedback 10 limit3.0 11 limit3.1 12 near.0 13 near.1 14 sum2.0 15 sum2.1 16 and2.0 17 hm2_7i43.0.read 18 hm2_7i43.0.write 19 hm2_7i43.0.pet_watchdog 20 xor2.0 21 tool-output.0 22 not.0 23 and3.0 Exported Functions: Owner CodeAddr Arg FP Users Name 00013 fe3aa000 fe152268 NO 1 and2.0 00013 fe3aa000 fe152278 NO 0 and2.1 00020 fe45e000 fe152920 NO 1 and3.0 00012 fe3a fe1521f8 NO 1 debounce.0 00016 fe3cb17f f64f9000 NO 1 hm2_7i43.0.pet_watchdog 00016 fe3c4921 f64f9000 YES 1 hm2_7i43.0.read 00016 fe3c48a1 f64f9000 YES 1 hm2_7i43.0.write 9 fe382000 fe152098 YES 1 limit3.0 9 fe382000 fe1520e8 YES 1 limit3.1 6 fe1c28d0 YES 1 motion-command-handler 6 fe1c4d9a YES 1 motion-controller 00010 fe38c000 fe152148 YES 1 near.0 00010 fe38c000 fe152168 YES 1 near.1 00019 fe43f000 fe152900 NO 1 not.0 8 fe378000 fe152058 YES 1 offset.0.update-feedback 8 fe37801b fe152058 YES 1 offset.0.update-output 8 fe378000 fe152070 YES 1 offset.1.update-feedback 8 fe37801b fe152070 YES 1 offset.1.update-output 7 fe36d000 fe151ef8 YES 1 pid.0.do-pid-calcs 7 fe36d000 fe151f80 YES 1 pid.1.do-pid-calcs 00011 fe396000 fe152198 YES 1 sum2.0 00011 fe396000 fe1521c0 YES 1 sum2.1 00018 fe435000 fe1528c0 YES 1 tool-output.0 00017 fe415000 fe1528a0 NO 1 xor2.0 You could use the .has-bit pin as another input into your classic ladder estop chain, and that would probably make sense. Yes I could add it to the estop chain, however I don't use the classic ladder and I thought that there is maybe a special pin for the watchdog to generate a more descriptive error other than just plain estop. You could also add some other logic to reset the watchdog when you leave estop, but i don't think you should. The watchdog should never, ever bite, and it shouldn't be a routine matter to reset it. Let's figure out why it's biting, and fix that problem. I agree that the watchdog should never bite and I am aware that I could write a custom .comp for it and tie that into the estop chain, which I'll probably do. The thing is that I'd rather continue the job if I can and not throw away the material, makes my purse weep ;) If it helps, these are the 7i43 pins after the watchdog has bit, unfortunately I don't know anymore if I had pressed the estop button or not. 16 s32 OUT-1 hm2_7i43.0.encoder.00.count 16 s32 OUT 0 hm2_7i43.0.encoder.00.count-latched 16 bit I/O FALSE hm2_7i43.0.encoder.00.index-enable = Xindex 16 bit IN FALSE hm2_7i43.0.encoder.00.latch-enable 16 bit IN FALSE hm2_7i43.0.encoder.00.latch-polarity 16 float OUT -0.01 hm2_7i43.0.encoder.00.position == Xpos-fb 16 float OUT 0 hm2_7i43.0.encoder.00.position-latched 16 s32 OUT-1 hm2_7i43.0.encoder.00.rawcounts 16 s32 OUT 0 hm2_7i43.0.encoder.00.rawlatch 16
Re: [Emc-users] 7i43 watchdog has bitten, looking for the cause ?
Hello, as an additional info the cpu is a athlon x2 250 @3GHz, 4G of ram installed, asus mainboard, onboard lpt port to connect to the 7i43. BR Max. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i43 and estop
Hello Bruce, I am running a Mesa 7i43+7i33 servo setup myself. If you press estop, or if estop is generated through the estop chain, then you do not loose position. To loose position on a rotary encoder or linear scale with a 7i33 you'd need to switch off power to the 7i33, which should trigger the estop. If you do only loose power on the rotary encoder or linear scale then the position will not be updated anymore. BR Max. On 01/20/2013 10:03 PM, Bruce Klawiter wrote: I can't seem to find this information anywhere, if I use the Mesa 7i33 any I/O and 7i33 servo interface with LinuxCNC, if I hit the estop will I lose position and need to re-home my machine? The 7i33 is a servo amp, so I'll assume you're asking about a servo machine. With hostmot2 the machine still tracks the encoders during estop, so you do not lose position and you do not need to re-home. On stepper machines, of course you always lose position when the steppers lose power, so you'd need to re-home after estop. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Lava Moko L72.2 pci parallel port card - epp wide mode for Mesanet 7i43 ?
Hello, I have a Lava Moko L72.2 pci parallel port card, but I can only use it with epp_wide=0 in the loadrt line for the mesanet 7i43. $ halrun halcmd: loadrt hostmot2 halcmd: loadrt probe_parport halcmd: loadrt hm2_7i43 config=firmware=hm2/7i43/SVST4_4B.BIT num_encoders=4 num_pwmgens=4 num_stepgens=0 ioaddr=0xd600 epp_wide=0 Using epp_wide=1 does currently not work in the loadrt line. lspci -vn 01:02.0 0701: 1407:8000 (prog-if 01 [BiDir]) Flags: slow devsel, IRQ 3 I/O ports at d600 [size=8] lspci -v 01:02.0 Parallel controller: Lava Computer mfg Inc Lava Parallel (prog-if 01 [BiDir]) Flags: slow devsel, IRQ 3 I/O ports at d600 [size=8] Does anybody have an idea on how I could get the lava moko card into another mode that supports epp_wide=1 ? Thanks BR Max. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] /etc/update-manger/release-upgrades: Prompt=lts = Prompt=never
Hello, while there is a too big to miss notice in the wiki that upgrading from 8.04 to 10.04. will break things-which is all well if you are yourself the well informed operator of the machine-it will happen somewhere ;) Needless to say I had to write back a backup after I had the case of an machine operator starting said upgrade last week. I found that there is a switch for the update notification in /etc/update-manger/release-upgrades Changing it from Prompt=lts to Prompt=never will elimate the risk of accidental upgrades from the gui. I haven't tried yet if this will work in 10.04 and 12.04, but perhaps this could please be included in a future version of the ubuntu linuxcnc installation cd ? BR Max. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 5i25 detected, but not the 7i77 yet
Hey Peter, Hey List, I wrote my standalone pyvcp panel which runs with halrun only for my lab setup and everything looks good at this moment. I ordered the 5i25 and the 7i77 together some weeks back. Not having the correct firmware does not matter, since I now know how to program it anyway. So a very big thanks to Michael Geszkiewicz for writing the linux flash program :) BR Max. On Mon, 18 Jun 2012, Maximilian H wrote: Date: Mon, 18 Jun 2012 12:55:37 +0200 From: Maximilian H mhemc2nos...@googlemail.com Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet Hello Peter, thanks for your last answer. Power cycling the computer did solve my problem. The 5i25 now loads fine together with the 7i77. I will now proceed to write some pyvcp debugger gui for my intended setup to get things going. Big thanks to you for providing the answers to my problems on the weekend, second thanks for writing a firmware update tool for linux (that saved me putting the 5i25 in another windows pc). BR Max. We (mesa) dont deserve much thanks, if the 5I25 was shipped with the 7I77, it should have had the correct (7I77x2) firmware so you should not have had this trouble at all. And actually you should thank Michael Geszkiewicz for writing the Linux 5I25 flash utility. SNIP- [14170.506738] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver [14170.506740] hm2/hm2_5i25.0: failed to parse Module Descriptor 2 [14170.506745] hm2_5i25.0: board fails HM2 registration SNIP Note that you need to cycle the motherboard power to load new firmware Peter Wallace Mesa Electronics -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your ()_() signature to help him gain world domination. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] 5i25 detected, but not the 7i77 yet
Hello, I have now spend the last few hours trying to create a first lab setup with the mesanet 5i25 and the 7i77, but the 7i77 is not recognized at all. In general I have been setting up and running a few machines with the 7i43 cards since 2008 now-so I am not a total noob. The 5i25 is installed in a pci slot. The 7i77 is connected to the 5i25 with a ribbon cable that is connected to the P3 on the 5i25. W2 is down,i.e. the 5i25 does not supply +5V to the 7i77. The ribbon cable is 45cm long. Pin1 on the 5i25's p3 db25 is on pin1 on the 7i77. The 7i77 has +5V and GND on TB1 and +12V on TB2 (12V on pin1 and GND on pin 8.) W1 is on the left side, i.e. VIN gets power from VFIELD. W5 is on the right side, i.e. the 7i77 uses power from TB1. Measured voltages are +4,98V on TB1 and +12,02V on TB2. The computer runs ubuntu 10.04 32 bits from linuxcnc installation cd. Linuxcnc is at version 2.5 from the repository. The 5i25 is installed in a pci slot and recognized when I loadrt hm2_pci without any num_encoders in the config parameter. But from various post I see that the 7i77 should be recognized when hm2_pci is loaded, which it is not in my case. LEDs CR1, CR7, R61 and CR3 are lid up on the 7i77. Can somebody perhaps point me in the right direction ? More details: From lspci -v: 03:01.0 DPIO module: Device 2718:5125 Subsystem: Device 2718:5125 Flags: fast devsel, IRQ 16 Memory at febf (32-bit, non-prefetchable) [size=64K] Now when I run halrun and loadrt the following happens: First terminal: $ halrun halcmd: loadrt hostmot2 Second terminal: [ 6918.164123] I-pipe: Domain RTAI registered. [ 6918.164131] RTAI[hal]: 3.8.1 mounted over IPIPE-NOTHREADS 2.6-03. [ 6918.164132] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [ 6918.164156] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 6918.164158] PIPELINE layers: [ 6918.164160] fb154e20 9ac15d93 RTAI 200 [ 6918.164162] c085cb20 0 Linux 100 [ 6918.179447] RTAI[malloc]: global heap size = 2097152 bytes, BSD. [ 6918.179588] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: with RTAI OWN KTASKs, kstacks pool size = 524288 bytes. [ 6918.179593] RTAI[sched]: hard timer type/freq = APIC/12503538(Hz); default timing: periodic; linear timed lists. [ 6918.179596] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2600669000 hz. [ 6918.179598] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. [ 6918.179672] RTAI[usi]: enabled. [ 6918.226253] RTAI[math]: loaded. [ 6925.687839] hm2: loading Mesa HostMot2 driver version 0.15 In the following examples I always did an unloadrt hm2_pci to clean up before attempting to load hm2_pci again. - So far so good, now in the first halrun terminal halcmd: loadrt hm2_pci config=num_encoders=6 num_stepgens=0 num_pwmgens=6 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid parameters stdin:3: exit value: 1 stdin:3: insmod failed, returned -1 See the output of 'dmesg' for more information. In the second terminal: [ 7094.230021] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 [ 7094.230062] hm2_pci :03:01.0: PCI INT A - GSI 16 (level, low) - IRQ 16 [ 7094.230065] hm2_pci: discovered 5i25 at :03:01.0 [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver [ 7094.230619] hm2/hm2_5i25.0: failed to parse Module Descriptor 2 [ 7094.230625] hm2_5i25.0: board fails HM2 registration [ 7094.230641] hm2_pci :03:01.0: PCI INT A disabled [ 7094.230651] hm2_pci: probe of :03:01.0 failed with error -22 - I also tried this loadrt line, but that does fail to see the 7i77 too, but the 5i25 is recognized, but only gives two encoders (from where?). halcmd: loadrt hm2_pci config=num_stepgens=0 num_pwmgens=6 [ 7186.682013] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 [ 7186.682054] hm2_pci :03:01.0: PCI INT A - GSI 16 (level, low) - IRQ 16 [ 7186.682057] hm2_pci: discovered 5i25 at :03:01.0 [ 7186.682723] hm2/hm2_5i25.0: Smart Serial Firmware Version 31 [ 7186.738177] hm2/hm2_5i25.0: 34 I/O Pins used: [ 7186.738181] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort [ 7186.738183] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort [ 7186.738185] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort [ 7186.738187] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort [ 7186.738189] hm2/hm2_5i25.0: IO Pin 004 (P3-03): IOPort [ 7186.738191] hm2/hm2_5i25.0: IO Pin 005 (P3-16): IOPort [ 7186.738193] hm2/hm2_5i25.0: IO Pin 006 (P3-04): IOPort [ 7186.738195] hm2/hm2_5i25.0: IO Pin 007 (P3-17): IOPort [ 7186.738196] hm2/hm2_5i25.0: IO Pin 008 (P3-05): IOPort [ 7186.738198] hm2/hm2_5i25.0: IO Pin 009 (P3-06): IOPort [ 7186.738200] hm2/hm2_5i25.0: IO
Re: [Emc-users] 5i25 detected, but not the 7i77 yet
Hello Andy, Hello Peter, thanks for your fast replies. I will try the firmware tool in the support software 5i25.zip that you suggested + the loadrt line without the pwmgens on Monday. Thanks BR Max. On Sat, 16 Jun 2012, andy pugh wrote: Date: Sat, 16 Jun 2012 17:45:09 +0100 From: andy pugh bodge...@gmail.com Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet On 16 June 2012 17:23, Maximilian H mhemc2nos...@googlemail.com wrote: [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver My first guess would be that the 5i25 does not contain the correct firmware for the 7i77 for some reason. That would be my thought as well (only 2 encoders found when all enabled suggests a 7I76x2 config to me) Other things to note 1. There are no PWM gens used with 7I77s (or standard 7I76 configs) so invoking one will always cause a error 2. I would use a config line like this as I have seen some trouble (possibly fixed) with wildcard (missing specs) sserial configs BOARD=5i25 CONFIG=num_encoders=6 sserial_port_0=000xxx Peter Wallace Mesa Electronics -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Mesa 7i43 fpga internal input pull ups - could sb synthesise another firmware for the 7i43 with pull downs for GPIO pins please ?
Hello List, I have run into a problem with my new revision of my pcb which adapts a 7i43 and a 7i33 to a machine of mine. Before I had W3 in the up position, which enabled the pull ups on the 7i43. Then I inverted the polarity of the outputs in the hal layer,i.e. the output signals where active low. While designing the new pcb I thought I'd get rid of the inversion of the polarity in the hal layer and designed the output signals to be active high. Turns out that this was a *bad* idea. Now I running into the same problem as Malte on the 11th of this month in [Emc-users] Mesa 7i43 hostmot and EMC2 exiti,i.e. once emc2 unloads the watchdogs bite, all output are reconfigured as input. The internal pullup drive the pin high and all my outputs on the pcb are enabled. Now I was looking for a quick fix and found lines like these in the 7i43.ucf. These are the pins that I use for outputs. Pin numbers are 24 to 31 in the hal layer. 7i43u.ucf:NET IOBITS27 LOC = p27 | IOSTANDARD = LVCMOS33 | DRIVE = 24 | SLEW = SLOW | PULLUP ; I am hoping that putting PULLDOWN here instead of PULLUP would solve my problems. Could somebody comment on that ? As anybody tried ? Could somebody synthesise a new firmware for me with these pins having internal pulldown instead of pullups. Thanks BR Max. -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Dell D610 laptop success?
Hello, I tried a Dell Latidude D600 about 8 months back with EMC2 10.04. The D600 is the predecessor to the D610. They have the same accessoires, docking station, screen. CPU and mainboard are different, afaik. I could install without problems, but the laptop frooze after a few hours of usage of EMC2. Latency test was ok for using servos, too. This did not happen with a normal ubuntu installation, so I think that the freeze was due to RTAI. I never investigated further into the cause of the freeze after a few hours. Might have been power managment issues, fan speed control, etc. BR Max. Peter, I have a very old Dell Latitude laptop, so old I forgot the exact type :) but I run EMC on top of it reliable and with very good latency numbers. However, I had to make a little script that does two things: 1) Turn on the fans at full speed. 2) Turn of SMI (System Management Interrupt) With the Debian CD (6.x??) I couldn't run RTAI, however with my own compiled kernel it worked flawless. This is a very good read http://wiki.linuxcnc.org/emcinfo.pl?TroubleShooting#RTAI_Latency_test Ries On May 30, 2011, at 8:11 PM, Peter Loron wrote: Thanks for the pointers. I'll give the live CD a shot tomorrow and definitely add them to the wiki. I'm going to be using stepper motors. I actually have 5 of the D610 laptops...picked them up for free...the company IT department was scrapping them. -Pete On May 30, 2011, at 5:58 PM, Kent A. Reed wrote: On 5/30/2011 8:20 PM, Peter Loron wrote: Hello, folks. I'm in the process of getting parts for a small CNC mill. I have a Dell D610 laptop I'm hoping to use for running EMC2. I know there are issues with some laptops. Has anybody had experience with trying to run EMC2 on a D610? Thanks! -Pete Hi, Pete. The wiki and the email archives will give you a sense of the general disfavor of laptops. Since you already have the D610 on hand, download the EMC2 LiveCD and run the latency test, preferably for longer than you contemplate a job would take on your mill. Look at the numbers and compare to the latency test results on the wiki (and add them to the wiki, pretty please!) You don't say whether you plan to use steppers or servos. The choice may make the difference if your latency test numbers are moderately high. Good luck! Regards, Kent -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] EMC2 10.04 sim problems
Hey David, I use emc2 inside virtualbox myself for compiling emc2 and building deb packages inside the guest os for myself with the tweaks I need. That way I can do this on my work laptop in a stable environment even if I have other versions of Ubuntu (like 10.10 amd64) running as the host. Attempting to run any real cnc machine in any vm is asking for disaster, even if you'd manage to get communicatations with the real io to the cnc machine in the first place. However the simulation is practical for designing your own pyvcp panels in a silent office as opposed to a noisy machine shop. I haven't yet tried to run 10.04 with emc2 as a guest under virtualbox as Mark tried. So I cannot comment on that. It also depends on which architecture is used (x86, amd64). As I understand it, the 10.04 emc2 is not generally working in amd64 arch yet. Cheers Max. Hello All, Please excuse my ignorance, but why would you want to install EMC2 in VirtualBox ? I would have thought, with my admittedly limited knowledge of Linux, that doing that would be like playing Russian Roulette with a loaded machine gun? David Winter. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] nasty bug in the stg driver: dac output voltage wraps around for min. commanded value to max. possible value
Hello Everybody, after noticing some bad noises on a machine I noticed that when I command an output of -10.0V on an stg2 card that it actually outputs +10V. To debug and reproduce I did this: setp stg.2.dac-value -10 or setp stg.2.dac-value -9.999 measured approx. +10V with a voltmeter, not ok setp stg.2.dac-value -9.99 measured approx. -9.96V with a voltmeter, ok Such large values should not usually happen if you use the dac output for a servo amp because then you've run into saturation, but if you use the output for something else, like spindle velocity control+ direction, then it really does. The relevant code is how the ncounts variable gets calculated in hal_stg.c: ncounts = (short) ((-10.0 - volts) / 20.0 * 0x1FFF); The relevant stg documentation is on p. 30 of the stg2 manual. Values written to the register are inverted before arriving at the dac. 0x = -10V 0x1000 = 0V 0x1FFF = +10V Changing the calculation to: ncounts = (short) -10.0 - volts) * 0x1FFF) / 20.0) - 1 ); solves the problem. Check with the attached test program. Notice the 0x values for -10V after the inverting is done in the old calc. Current Emc2 calculation: Values written to register are: -10V: 0x, -9,999V: 0x, -9,99V: 0xFFFC, 0V: 0xF001, +10V: 0xE001 Current Emc2 calculation: Values arriving at DAC (inverted) are: -10V: 0x, -9,999V: 0x, -9,99V: 0x0003, 0V: 0x0FFE, +10V: 0x1FFE Mod. Emc2 calculation: Values written to register are: -10V: 0x, -9,999V: 0x, -9,99V: 0xFFFB, 0V: 0xF000, +10V: 0xE000 Mod. Emc2 calculation: Values arriving at DAC are: -10V: 0x, -9,999V: 0x, -9,99V: 0x0004, 0V: 0x0FFF, +10V: 0x1FFF I also checked this fix 5 mins ago on the real machine - works now. BR Max. #include stdio.h short emc2_calc( double lvolts ) { short retval ; retval = (short) ((-10.0 - lvolts) / 20.0 * 0x1FFF); return retval; } short emc2_calc_mod( double lvolts ) { short retval ; retval = (short) -10.0 - lvolts) * 0x1FFF) / 20.0) - 1 ); return retval; } int main( int argc, char **argv ) { short n0, n1, n2, n3, n4; short m0, m1, m2, m3, m4; n0 = emc2_calc( -10.0L ); n1 = emc2_calc( -9.999L ); n2 = emc2_calc( -9.99L ); n3 = emc2_calc( 0.0L ); n4 = emc2_calc( +10.0L ); printf( Current Emc2 calculation: Values written to register are: -10V: 0x%04hX, -9,999V: 0x%04hX, -9,99V: 0x%04hX, 0V: 0x%04hX, +10V: 0x%04hX\n, n0, n1, n2, n3, n4 ); printf( Current Emc2 calculation: Values arriving at DAC (inverted) are: -10V: 0x%04hX, -9,999V: 0x%04hX, -9,99V: 0x%04hX, 0V: 0x%04hX, +10V: 0x%04hX\n, ~n0, ~n1, ~n2, ~n3, ~n4 ); m0 = emc2_calc_mod( -10.0L ); m1 = emc2_calc_mod( -9.999L ); m2 = emc2_calc_mod( -9.99L ); m3 = emc2_calc_mod( 0.0L ); m4 = emc2_calc_mod( +10.0L ); printf( Mod. Emc2 calculation: Values written to register are: -10V: 0x%04hX, -9,999V: 0x%04hX, -9,99V: 0x%04hX, 0V: 0x%04hX, +10V: 0x%04hX\n, m0, m1, m2, m3, m4 ); printf( Mod. Emc2 calculation: Values arriving at DAC are: -10V: 0x%04hX, -9,999V: 0x%04hX, -9,99V: 0x%04hX, 0V: 0x%04hX, +10V: 0x%04hX\n, ~m0, ~m1, ~m2, ~m3, ~m4 ); return 0; } -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] PROGRAM_INCLUDE_PATH in addition to PROGRAM_PREFIX?
Hey, I like your idea, which is interesting to me because I currently keep the user defined M100+ files are in the same directory as the other ngc files - which is not a good idea since ngc files sometimes need to be deleted or changed, but the M files should be kept immutable. So if PROGRAM_PREFIX could be made a list of directories, that would be really a good idea. Just for O files I think it is possible so use WIZARD_ROOT even if that variable in the ini file might be intended for something else (interp_o_word.cc). BR Max. Let me first state that I love EMC2, it is awesome etc. I have recently discovered that EMC2 G code is a full fledged programming language with subroutines, conditionals, named everything, etc. Since then, I have been happy as a clam and writing G code functions for pocketing, facing, etc. So do not interpret the foregoing as some kind of a negative. I do feel, however, that EMC could be slightly enhanced to take an optional argument such as PROGRAM_INCLUDE_PATH, that would list a number of directories, separated by ':', that would be searched with subs are called or files are otherwise needed. Without that, program_prefix is a hodgepodge of all sorts of stuff instead of keeping things properly organized. Also the path to open scripts could be different from the path to keep functions. Alternatively, specifying directory path when invoking subs, could also work. Also if this is already provided, I would love to know. Thanks guys! i -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] SPI bus communication with mesa cards ?
Hello Everybody, I'd like to use some extra ICs to read an ADC at a relatively low speed to get some values from potentiometers. And I2C or SPI integrated circuits are quite common. I currently have a mesa 7i43, 200k and 400k versions with an extra pcb to adapt to the cnc machine. I'd like to put an extra SPI bus on my own pcb, connect some ICs to the SPI bus an happily read and write to these ICs. Is there any work already done in the hostmot driver for the mesa cards ? I've seen the page in the wiki, but I think this was just more or less a brainstorm on how this could be done. How about a software implementation of the spi protocol. Has anybody worked with that ? How fast could you go with a sw impl. ? BR Max -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Logging pos, vel and accel with errors to syslog
Hello Everybody, is there a way to log the current position, velocity and acceleration to syslog if there is an error situation that gets logged to /var/log/syslog ? I might have a problem with the mechanics that only happens under certain conditions and I want to have more data to see if a pattern emerges. Thanks Cheers Max -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Mesa 7i43 and a oxford semiconductor ox12pci840 chipset pci parallel card
Hello Everybody, I am trying to get this combination of a mesa 7i43 and an oxford semiconductor ox12pci840 chipset pci parallel card to run, but I cannot get it to run in epp_wide mode and I cannot get a servo thread to run with a cycle time of less than 10 millisecs. With onboard mainboards I got 1 millisecs cycle times without errors. Has anybody succeeded where I failed so far ? Additional information from lspci -v 01:02.0 Parallel controller: Oxford Semiconductor Ltd VScom 011H-EP1 1 port parallel adaptor (prog-if 03 [IEEE1284]) Subsystem: Oxford Semiconductor Ltd Unknown device Flags: medium devsel, IRQ 3 I/O ports at d600 [size=8] I/O ports at d700 [size=4] I/O ports at d800 [size=32] Memory at f1001000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 1 And my loadrt line: loadrt hm2_7i43 config=firmware=hm2/7i43/SVST4_4S.BIT num_encoders=4 num_pwmgens=4 num_stepgens=0 ioaddr=0xd600 ioaddr_hi=0xd700 epp_wide=0 I have tried any other combination of ioaddr, ioaddr_hi and epp_wide=0|1 with the io ports listed in lspci without success. Is the information in the hm2_7i43 doc still valid that moschip 9805 parport pci cards are junk ? Thanks Cheers Max -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Working parport pci chipsets
Hello, thanks for all your fast and detailed replies - I do feel that I am in excellent virtual company on this nice and rainy Sunday afternoon :) To summarize: I should be ok as long as I use a 2 feet parallel port cable with either a SUN1888 or Oxford PCI952 card and a 7i43 rev. C. Cheers Max -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Servo cycle times for pci parallel cards and mesa 7i43 cards
Hello Everybody, I was wondering which is a reliable setting for a servo cycle time with an extra pci parallel card, assuming that the whole setup works as it should ? I have been using a 1 millisec servo cycle time with onboard motherboard parallel ports, but with extra pci parallel port cards I have no experience so far. Thanks Cheers Max -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Servo cycle times for pci parallel cards and mesa 7i43 cards
Hello Jon, 0,5 millisecs is quite good. I was asking because I could get the Oxford PCI840 to just about 10ms servo cycle time before the driver would cause an error. Cheers Max Maximilian H wrote: Hello Everybody, I was wondering which is a reliable setting for a servo cycle time with an extra pci parallel card, assuming that the whole setup works as it should ? I have been using a 1 millisec servo cycle time with onboard motherboard parallel ports, but with extra pci parallel port cards I have no experience so far. The PCI parallel port should be a little faster, I'm sure you could go to 0.5 ms and probably even higher. I'm not sure whether this will be any advantage, though. Jon -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Feed word
Hey Steve, have a look at the interpreter source file interp_convert.cc, function int Interp::convert_straight. The piece of code that you probably want to change is this one: START_SPEED_FEED_SYNCH(block-k_number, 0); Just as a try I'd suggest you change that to: START_SPEED_FEED_SYNCH(block-f_number, 0); and then recompile. Also do change the code for G33.1 a little bit later on in the same function. BR Max Hi guys Can somebody explain why K was used for Feed in G33 move and not F ? I'm finding it impossible to produce a turn post processor because of this. I can get my CAM to put the K in, but it also puts the F in too! Is there a particular machine this was based on then I can look at the post processor for that. Another weird one with feed is it appears not to be modal if you do an arc then a G01 - emc moans that there is no feed set on the G1 line? N1220 G40 N1230 G03 X7.046 Z-8.649 I-0.06 K-0.08 F200 N1240 X11.595 Z-13.26 I-3.623 K-4.654 N1250 X12.744 Z-14.093 I-0.316 K-0.833 N1260 X12.06 Z-14.795 I-0.891 K0.0 N1270 G01 X10.948 Z-15.229 Failing on line N1270 saying no feed set for G1 ?? Surely G01, G02 and G03 are in the same modal group? Steve Blackmore -- -- 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] Using M64, M65 and M66
Hello Eric, please have a look at the motion.digital-out-XX pins in hal and the num_dio parameter to the loadrt motmod line if the default number of 4 dio pins is not enough. I think the num_dio parameter is a fairly recent feature enhancement, so you should run a 2.3.something version to use it. http://www.linuxcnc.org/docview/html/man/man9/motion.9.html BR Max. Hi all, The documentation here: http://www.linuxcnc.org/docview/html/gcode_main.html#sec:M62-to-M65: Describes the use of M62-65 (really only M64 and M65, the user's manual states that M62 and M63 are not implemented) as follows: quote To control a digital output bit, program M- P-, where the M-word ranges from 62 to 65, and the P-word ranges from 0 to a default value of 3 in EMC2. If needed the value can be increased by using the num_dio parameter when loading the motion controller. /quote I may have missed a bull fiddle in a telephone booth, but I have so far not found a description of how the P-Word value is mapped to a specific HAL output, or in the case of M66, a HAL input. Any pointers would be appreciated. Regards, Eric -- 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
[Emc-users] (AXIS,hide) and (AXIS,show) of one G0 move
Hello Everybody, I am trying to suppress the drawing of the preview in AXIS of one G0 move using (AXIS,hide) and (AXIS,show). However, it does not work as I think it should ;) Does anybody have something similar working or could point me to a working example ? Excerpt of non-working gcode: #diff_x = [#curr_x - #old_x] #diff_y = [#curr_y - #old_y] (AXIS,hide) G0 X#diff_x Y#diff_y (AXIS,show) If I put the line in a comment like this: (G0 X#diff_x Y#diff_y) the preview is like I want it to be, but of course this breaks my gcode program. I am using emc2_2.3.2 Thanks BR Max -- 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] O-words with n-words, patch attached
Hello Chris, i do have more interpreter code. To whom to i submit it for discussion/review/commit ? Thanks BR Max On Mon, Jun 29, 2009 at 02:28:12PM +0200, Maximilian H wrote: The attached small patch to Interp::read_items allows o-words with n-words without changing any other behaviour (methinks). This tested OK so I committed it for you. Thanks for contributing! Chris -- ___ 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] O-words with n-words, patch attached
Hello, i am still using n-words ( line numbers, old habbits die hard ). However when the line contains o-words, currently (2.3.1) no other words may be present. The attached small patch to Interp::read_items allows o-words with n-words without changing any other behaviour (methinks). Would you mind including it into the main source tree ? Sorry to put this on the main user list, but i do not know who to ask specifically for this. I have more small code changes for the rs274x interpreter, who is the right person to talk to ? Thanks BR Max --- src/emc/rs274ngc/interp_read.cc_orig2009-06-29 14:10:57.0 +0200 +++ src/emc/rs274ngc/interp_read.cc 2009-06-29 14:15:44.0 +0200 @@ -787,6 +787,10 @@ if (line[counter] == '/') /* skip the slash character if first */ counter++; + if (line[counter] == 'n') { +CHP(read_n_number(line, counter, block)); + } + if (line[counter] == 'o') /* Handle 'o' explicitly here. Default is to read letters via pointer calls to related @@ -801,11 +805,7 @@ // if we are skipping, do NOT evaluate non-olines return INTERP_OK; } - else if (line[counter] == 'n') - { -CHP(read_n_number(line, counter, block)); - } for (; counter length;) { CHP(read_one_item(line, counter, block, parameters)); } -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] STG hardware watchdog, anybody using that feature ?
Hey Chris, perfect, thanks!- You pointed to exactly the right location. The stg1 and stg2 cards do have hardware watchdogs that drive the DACs to 0V. Is anybody using that feature - does anybody have a working stg watchdog setup that i could copy ? Or is that uncharted waters ? Or shall i write it up so that everybody can use it ? Cheers Max On Wed, Nov 12, 2008 at 05:43:19AM +0100, Maximilian wrote: When i close the axis gui with the big X in the upper right corner of the window my amps stay tuned on and start drifting because there is no pid controller providing any commanded position. [...] Hardware is a stg2 card. Does the STG have a watchdog? If not, you really need an external charge pump in your estop chain. There's no other safe way. Successfully exiting the software could do something graceful to the STG, but that's not the only way the software might go away while the DACS are on full. - 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
Re: [Emc-users] Amps stay enabled when i close the axis gui - is this normal ?
Hey Jon, thanks for your fast reply and your link. I just had a closer look, fortunately the stg watchdog pin 17 on P2 is still unused on my breakout box pcb, so i can incorporate that into the pcb when i do a new one. Cheers Max Chris Radek wrote: On Wed, Nov 12, 2008 at 05:43:19AM +0100, Maximilian wrote: When i close the axis gui with the big X in the upper right corner of the window my amps stay tuned on and start drifting because there is no pid controller providing any commanded position. [...] Hardware is a stg2 card. Does the STG have a watchdog? If not, you really need an external charge pump in your estop chain. There's no other safe way. The STG has a sort of watchdog function, it toggles an output at 20 Hz or something when it is constantly getting updates from the computer. I did build a circuit to shutdown the servo amps and aux functions, see the 2nd schematic from the bottom at http://pico-systems.com/EMC.html I don't know why this is still on my web site, but it did work for the STG. Jon - 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