From: Ray H. <re...@up...> - 2004-05-06 15:08:51
|
Hello brane One fellow, Paul, who might best answer this question is hiking in the USA southwest so we may not get a complete answer for a few weeks. What I'd do first is confirm that the home switch is wired correctly and that a manual change in the state of the STG index pin sets a home. Start the homing routine somewhere near the center of axis travel, trip the home switch by hand and have a friend put a 1k ohm resistor from the index pin on the encoder to it's opposite polarity (ground if it is +5 or +5 if 0 volt). If the EMC sees the home it will turn the letters green. That should say that your wiring is okay and that the polarity in your INI file is correct. It might also be that the duration of the index pulse is to short to be seen by the EMC. To test this reduce the velocity at which the axis moves during a homing routine. This is parameter HOMING_VEL = 0.1 in the INI. This may make the axis move very slowly but should allow the index pulse to be seen. I'm not at all certain which of the SGG drivers work well for homing so with the above done, switch from one stg driver to the next. Keep reporting your results or lack of them. Hope this helps. Ray brane wrote: > hello > >------------------------------------------------------------------------ > > Hi ! > > > I have two problems with my EMC : 1) home switch indentification > 2) analog output for the spindle > > Can anybody help me, because I tried many things (also sugestions written in manuals > and discussions on he Source Forge forum for EMC), but it looks that > I come in the position I have no more ideas what to do , only to start to > debug programs (I am new to Linux, also I am not programmer by profession > but electronic and till now I didn't touch EMC programs; if it is necesary > I willdo this with the help of my friends); Perhaps I missed something > trivial in the manuals but I dont' know what. > > > My configuration : a) 3 axis mill > b)PC with pentium 233 MHz and Servo To Go II Card > c) BDI with Linux 6.2 > d) in emc.ini > - bridgeporttask and bridgeport: for IO tasks > - stg2mod :for servotasks > > Problem Nr. 1 : > Present situation: > -MY machine (mill) works well: > -run CNC programs > -responds to the commands in all three modes (auto,MDI, manual).. > -When I press the home button on the Tkemc GUI, machine > starts moving according to the parameters in the emc.ini > file (direction and speed are OK) > -when the choosen axis touch the home switch nothing is happend; > axis moves forward till to limit swithes, where it stops > - with the lstg program I tested inputs on STG card and they > all responds, also respond index pulse for the incremental > encoder > > > What I did : I changed in the emc.ini file: > - polarity of the home switch - no result > - different servo drivers - no result > - different IO drivers - no result > > Perhaps I missed something in manuals, but does exists simple program or > script which shows the status of the home switches when EMC runs (like I/O show > script), because lstg shows me that bits on the STG card: 0, 4 and 8 responds > (change status when I press home switches)? > > Maybe my version of BDI (with Linux 6.2) is too old and the newer versions > works better ? > > > Problem Nr.2 : > What to do (which commands or procedures) to get analog output ? > ( to run the spindle with the speed written in S command: > - to use 4 th axis on the STG II card?; > - to use another card? which? > - to use some bit on the parallel or serial port in the PWM mode?) > > Is there any elegant solution with as little as possible to change the SW? > The changes in HW are no problem for me. > > > Best regards, > > Brane Nardoni > |