> Hi Anders
> Thanks for response.
> 
> I don't have strong electronics wiring background so I want to ask some 
> questions.
> 5i20 card that I use has two parts, first is analog to drive axis and second 
> for I/O.
> First part (axis drive) has capability to move 4 axes and I use only 3 of 
> them. 
>  Where do I need wire my manual pulse generator (jog wheel)? 
> I believe that the right place is to use remaining connections for 4 axes, 
> because only this connector has area for 
> encoder with 15 pins.  Actually remaining connector for 4 axes has 25 pins  
> (DB 25) and I believe that I need pick those that address encoder.
> Am I right?

The 'standard' Hostmot-4 config that most people use has four main 
hardware encoder counters (like you describe above), and four secondary 
encoder counters (see the pinout in the manual).
You could connect your jogwheel A/B-quadrature signals to any of these 
hardware encoder counters. Your HAL code will then look a bit different 
from what I have on my blog.

I connected the A/B signals to standard IO and used the HAL software 
encoder counter component. That works fine too, since the pulse rate 
from my jogwheel (100ppr) never exceeds 1 kHz or so (the encoder counter 
HAL component needs hooked up to a thread which updates at maybe 10kHz)

> 6 and 4 position switches and 4 push type switches should be connected to I/O 
> area of 5i20. 
> Am I right?

Yes. Any of the 16 inputs on the two IO connectors will do, you just 
have to remember where they are when you start HAL programming.


Anders

PS: someone should make a really cool pyvcp m5i20 test panel (hostmot-4 
to start with). I think tomp already did something, is it in cvs yet?

PS2: the integrator manual should contain case studies of the whole 
electrical + HAL wiring for machines that EMCers have converted. I'll 
try to contribute my own stuff in a month or so. Something like this:
http://www.anderswallin.net/sandbox/servo.pdf
along with HAL (net2dot images + descriptions)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to