On Fri, 2007-12-14 at 23:29 -0500, Stephen Wille Padnos wrote: > 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
Steve - I put a gold star by your name. The Bridgeport VCP is usable now. I posted the latest files: http://www.wallacecompany.com/machine_shop/bridgeport/pyvcp-dro2-bp2.hal http://www.wallacecompany.com/machine_shop/bridgeport/pyvcp-dro2-bp2.hal I still have the <scale><halpin> problem but spinbox is working. I found that if I click the data entry box, from that point on, the up down arrows ramp the numbers. It's pretty handy. The X axis encoder polarity happened to be wrong, so I changed the ppmc.0.encoder.00.scale to a negative value, but that didn't fix it. I could switch the A and B wires, but I thought the encoder scale should have. I need to look into this a little more. For anyone wanting to play with pyVCP, I found these pages helpful: http://www.linuxcnc.org/docs/html/hal_vcp.html http://www.pythonware.com/library/tkinter/introduction/tkinter-reference.htm http://developer.mozilla.org/en/docs/XUL:hbox http://developer.mozilla.org/en/docs/XUL_Tutorial:The_Box_Model I haven't been able to get a few things like the flex option to work yet, so I am wondering if pyVCP has a full implementation of XUL or Tkinter. It sure is fun to be able to customize the display, but I guess I need to get some real work done. (I have an "extra" wire on my Accurite linear scales, does anyone know if linear scales normally have an index?) ------------------------------------------------------------------------- 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
