Hi Kirk Your fast period is way too fast to do a PPMC read/write.
The PPMC update is meant to run in the servo thread, which might be 1-2 KHz. The read function has to write several control bytes to the parport, then read 12 bytes for the 4 encoder registers, plus other data. That will take you well beyond the 20 us base period in the HAL file. - Steve Kirk Wallace wrote: >On Fri, 2007-12-14 at 16:50 -0800, Kirk Wallace wrote: > > >>On Fri, 2007-12-14 at 14:46 -0600, Jon Elson wrote: >> >> >>>Kirk Wallace wrote: >>> >>> >>>>I need to use my mill manually while I am converting it to EMC. Because >>>> >>>> >... snip > > >>>>I looked at my .hal files >>>> >>>> >>>It's not there, it is in the .ini file. Change FERROR and >>>MIN_FERROR to 100.0 and you shouldn't have the problem. >>> >>>Jon >>> >>> >>Yea, thats what I meant, those configuration thingies. I put 100 in for >>FERROR and MIN_FERROR and it works fine. Kind of takes the wind out of >>my pvVCP sails. >> >> > >Well I got out to the shop and tried using the pyvcp DRO. I found a few >problems. > >In my .hal file I referenced the wrong .xml. This should be fixed now. > >The .hal file uses the xor2 component, which is not in EMC 2.1.7. I >changed the mill's Synaptic repositories and updated to 2.2 and the >component now works. > >Then I found that the <scale> tag would visually function properly but >the halpin tag would fail with a "pin 'pin_name' not found ... link >failed". The only thing that worked in the long run was to switch to ><spinbox>. Is there a known problem with <scale>? > >Apparently, "loadrt hal_ppmc extradac=0x00" is not enough to get the UPC >working. As soon as I hit "addf ppmc.0.read fast" the PC would lock up. >I had to unplug the computer to reboot. Can the UPC encoder counters and >DAC be run only using HAL? > >Now that FERROR and MIN_FERROR settings have allowed me to start making >chips, it's not that important for me to complete the DRO/VFD project, >but the knowledge gained may come in handy in the future. For the price >of a PCI parallel port, some junk box parts and HAL, someone could >probably do allot with EMC before jumping into axis control. > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
