Hi i did change to emc2 2.5 finished tuning and back to feed control. the direction /////////////////////////////////////////////////////////
1) Make sure that there is a spare encoder counter, find the relevant line in the HAL file and change it: loadrt hm2_pci config="....num_encoders=4......" 2) Set the 4th encoder to counter-mode: setp hm2_5i20.0.encoder.03.counter-mode 1 3) set the scale such that 5V = 100% setp hm2_5i20.0.encoder.03.scale 1234.5678 (The number should be found by experiment) 4) Connect the encoder velocity to the adaptive-feed pin: net feed-control hm2_5i20.encode.03.velocity => motion.adaptive-feed ////////////////////////////////////////////////////////////////////////// 7i33 has 4 axis(4 encoders) and i did add one more axis to use it encoder about============= find the relevant line in the HAL file and change it: loadrt hm2_pci config="....num_encoders=4...... //////////////////// 1. # A [3] Axis to control feed 2. # ################ 1. # axis enable chain 2. newsig emcmot.03.enable bit 3. sets emcmot.03.enable FALSE 4. net emcmot.03.enable => pid.3.enable 5. net emcmot.03.enable => hm2_[HOSTMOT2](BOARD).3.pwmgen.00.enable 6. net emcmot.03.enable <= axis.3.amp-enable-out 1. # encoder feedback 2. setp hm2_[HOSTMOT2](BOARD).0.encoder.03.counter-mode 0 3. setp hm2_[HOSTMOT2](BOARD).0.encoder.03.filter 1 4. setp hm2_[HOSTMOT2](BOARD).0.encoder.03.index-invert 0 5. setp hm2_[HOSTMOT2](BOARD).0.encoder.03.index-mask 0 6. setp hm2_[HOSTMOT2](BOARD).0.encoder.03.index-mask-invert 0 1. setp hm2_[HOSTMOT2](BOARD).0.encoder.00.scale [AXIS_0]INPUT_SCALE 2. net motor.00.pos-fb hm2_[HOSTMOT2](BOARD).0.encoder.00.position => pid.0.feedback 3. net motor.00.pos-fb => axis.0.motor-pos-fb #push copy back to Axis GUI 1. # set PID loop gains from inifile 2. setp pid.0.Pgain [AXIS_3]P 3. setp pid.0.Igain [AXIS_3]I 4. setp pid.0.Dgain [AXIS_3]D 5. setp pid.0.bias [AXIS_3]BIAS 6. setp pid.0.FF0 [AXIS_3]FF0 7. setp pid.0.FF1 [AXIS_3]FF1 8. setp pid.0.FF2 [AXIS_3]FF2 9. setp pid.0.deadband [AXIS_3]DEADBAND 10. setp pid.0.maxoutput [AXIS_3]MAX_OUTPUT 1. # position command signals 2. setp hm2_[HOSTMOT2](BOARD).0.pwmgen.03.output-type 1 #pwm on pin1, dir on pin2 3. setp hm2_[HOSTMOT2](BOARD).0.pwmgen.03.scale [AXIS_3]OUTPUT_SCALE 1. net emcmot.03.pos-cmd axis.3.motor-pos-cmd => pid.0.command 2. net motor.03.command pid.3.output => hm2_[HOSTMOT2](BOARD).0.pwmgen.03.value 1. # ################ this is axis that i add and i think that line that need to be replaced one of 10-11-12-13-14 am i right/wrong ? thank you On Wed, May 21, 2014 at 1:17 AM, a k <pccncmach...@gmail.com> wrote: > hi > i start to loading > ---Ubuntu 10.04 Lucid Lynx and LinuxCNC (current release)--- > > thanks > aram > > > On Tue, May 20, 2014 at 3:25 PM, andy pugh <bodge...@gmail.com> wrote: > >> On 20 May 2014 23:17, andy pugh <bodge...@gmail.com> wrote: >> >> > You _might_ be able to use a software encoder connected to the parallel >> port >> >> A better solution is the ddt HAL component that could be used to >> differentiate the position pin value to give a velocity. >> >> -- >> atp >> If you can't fix it, you don't own it. >> http://www.ifixit.com/Manifesto >> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. >> Get unparalleled scalability from the best Selenium testing platform >> available >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> _______________________________________________ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users >> > > ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users