On Sat, 13 Nov 2010 20:47:38 +0000 Andy Pugh <a...@andypugh.fsnet.co.uk> wrote:
> I have attached a revised patch, including documentation of the new > feature. I'd like to get this working "in real life". 1. I've ordered the parts and am going to wire up this: http://www.mattshaver.com/cad/000006B.pdf 2. The 5i20 based emc setup I want to hook this thing to looks like this: http://www.mattshaver.com/cad/124002A.pdf Page 2 of 3 shows the 7i47 RS-422 interface, currently unused pins of which are connected to the 8i20's serial port (in drawing 000006B). 3. This control system currently runs using the config files configs/smithy/1240.hal and configs/smithy/1240.ini included with the emc2 distribution. 4. The next step is probably to save the patch file (patch_8i20_v3.patch) in my emc2-dev and apply it: msha...@matt:/home/mshaver/emc2-dev$ patch -p1 < patch_8i20_v3.patch I get: patching file docs/man/man9/hostmot2.9 Hunk #4 succeeded at 465 (offset -3 lines). Hunk #5 succeeded at 688 (offset -3 lines). patching file src/Makefile patching file src/hal/drivers/mesa-hostmot2/hostmot2.c patching file src/hal/drivers/mesa-hostmot2/hostmot2.h patching file src/hal/drivers/mesa-hostmot2/mesa_7i64.c patching file src/hal/drivers/mesa-hostmot2/mesa_8i20.c patching file src/hal/drivers/mesa-hostmot2/pins.c patching file src/hal/drivers/mesa-hostmot2/sserial.c Looking through the new hostmot2.9 man page it adds support for "Smart Serial" devices like the 8i20. 5. The eventual application of this is a BLDC spindle motor driven by the 8i20. For now, I would be happy to just control the motor and run it a different speeds to verify that it works. My questions are: A. Do I need a new version of the 5i20 firmware? In this case I'm using SVST2_4_7I47.BIT. B. The example in the man page shows the configuration parameter "conf_sserial" being used to assign pins to serial port functions. If (as shown in the 000006B drawing) I want to send data to the 8i20 on 5i20 bit 21, and receive 8i20 data on 5i20 bit 14, what is the correct value for "conf_sserial"? I think with this information I should be able to get started with "setup_sserial" to program the 8i20 parameters. Thanks, Matt ------------------------------------------------------------------------------ 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/msIE9-sfdev2dev _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers