2012/12/23 Viesturs Lācis <[email protected]>:
>>
>> Terminal is too unfamiliar for me, so I tried in LinuxCNC. And failed.
>> I took these steps:
>> 1) in hal file disconnected 3ppwmgen inputs from bldc;
>> 2) started up LinuxCNC
>> 3) toggled "machine on" with F2
>> 4) in HALShow I watched hm2_5i23.0.encoder.02.counts and
>> hm2_5i23.0.encoder.02.index-enable pins
>> 5) executed setp hm2_5i23.0.encoder.02.index-enable 1
>> 6) turned motor by hand more than 10 turns, but
>> hm2_5i23.0.encoder.02.index-enable did not go "false"

Finally some success right on Christmas eve.
I enabled the index-mask and got the encoder offset = -103 counts.

I also discovered the epic fail in my config - I have not connected
bldc.n.init pin anywhere to actually tell bldc module to home the
motor. The problem is that I get an error message on startup. telling
that such a pin is not found. I connected it to halui.machine-is-on.

I did another test - I set cfg=n and then manipulated value and
frequency pins to find out, how fast can the drive spin the motor.
Based on encoder velocity, I got it up to 3000 RPM with frequency =
200 and value = 0.85.

I have a suspicion that I have an epic fail in my config, so I would
like to ask, if someone can help me out:
I decided that I should connect bldc.n.init pin somewhere so that
there finally is some signal that tells bldc module to actually home
the motor.
I have bldc cfg=qhi and LinuxCNC on startup complains that there is no
such pin as bldc.0.init. In HalShow I also do not see such a pin, but
I do see initvalue pin (which, according to manual, determines bldc
value, when homing the motor).

Next thing is that this page is confusing me:
http://linuxcnc.org/docs/html/man/man9/bldc.9.html

I do not understand, where to connect bldc.n.index-enable.
There is this sentence in bldc man page:
When the init pin goes high the motor will rotate (in a direction
determined by the rev pin) until the encoder indicates an index-latch
(the servo thread runs too slowly to rely on detecting an encoder
index directly).

While bldc.n.index-enable description tells to connect it to encoder
index-enable pin. Another point of confusion is that I do not see
encoder.nn.index-latch pin in HalShow, there is latch-enable pin. Is
it the same?

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to