I would get to a very basic setup then add a feature or two at a time,
test, rinse, repeat, until it breaks, then back up one step.
Disable things like backlash & leadscrew correction, as I think they could
have an effect on counting.

Some of the signals in your HAL example are quite different than what i
have in my config.  Did things change a lot in 2.8?
I don't have anything with "joint" in the name.  Do have a bunch with
"axis" in the name.

Ray

--J. Ray Mitchell Jr.
jrmitche...@gmail.com


The dogmas of the quiet past, are inadequate to the stormy present. The
occasion is piled high with difficulty, and we must rise with the occasion.
As our case is new, so we must think anew and act anew. We must disenthrall
ourselves, and then we shall save our country.*Abraham Lincoln
<http://www.quotationspage.com/quotes/Abraham_Lincoln/>*, *Annual message
to Congress, December 1, 1862*
*16th president of US (1809 - 1865)*

On Sat, Oct 21, 2017 at 3:50 PM, Gene Heskett <ghesk...@shentel.net> wrote:

> On Saturday 21 October 2017 13:17:13 Gene Heskett wrote:
>
> > On Friday 20 October 2017 21:27:43 Gene Heskett wrote:
> > > On Friday 20 October 2017 20:41:04 andy pugh wrote:
> > > > On 20 October 2017 at 20:00, Gene Heskett <ghesk...@shentel.net>
> > > > wrote:
> >
> > What I saw while running it with halrun, is that its working fine.
> >
> > But I may have found the problem. Somehow, and I don't recall doing
> > it, I have wound up trying to run all 3 steppers in both position, AND
> > velocity modes. How I arrived at that shall remain a mystery, but
> > probably by following man pages. Referring to the 750 page doc, since
> > the docs for the 5i25 are totally mute of any operational
> > configuration help, I find the docs say under hal components,
> > stepgens:
> >
> > velocity-cmd (only for velocity mode)
> > and
> > position-cmd (only for position mode)
> >
> > That seems to be the only place where that restriction is mentioned.
> >
> > So now I need to go thru the .hal file and make it one or the other.
> >
> > For a 3 or 4 axis mill, is there a best way?
> >
> > I've always used position, but I can as I've learned, that there are
> > also advantages to velocity, but do they actually exist w/o an encoder
> > feedback, which is normally not done with steppers.
> >
> > I have gone thru the hal file in the last 4 or 5 days, and cleaned it
> > up to be more logically readable, without actually changing anything,
> > so here is that hookup stanza for Z:
> >
> > #*************************************
> > # ---closedloop stepper signals for Z
> > #*************************************
> > net z-pos-cmd   <= joint.2.motor-pos-cmd => pid.z.command
> > net z-vel-cmd   <= joint.2.vel-cmd => pid.z.command-deriv
> > net z-pos-fb    <= hm2_5i25.0.stepgen.02.position-fb =>
> > joint.2.motor-pos-fb pid.z.feedback net z-idx-ena   <=>
> > pid.z.index-enable
> > net z-mtr-vel   <=  pid.z.output => hm2_5i25.0.stepgen.02.velocity-cmd
> > net z-enable    <= joint.2.amp-enable-out =>
> > hm2_5i25.0.stepgen.02.enable pid.z.enable
> >
> > This is what all 3 active axises look like. So which do I nuke out of
> > the above to arrive at pure position, or pure velocity control? And
> > what about line 2?
> >
> > The assumption seems to be, if following the description starting on
> > page 655 of the doc.pdf, is all position mode, the velocity pins
> > aren't even shown in the gfx on the next page.  If the velocity mode
> > has been added since that gfx was created, perhaps the gfx should also
> > be updated to reflect that? In the meantime I am going to make it
> > position only, just for S&G.  With luck, this will fix it.
> >
>
> Update after todays frustrations. Background. I have two Dells, one 520x
> I generally use for programming these cards, either in its one pci slot,
> or for 7i90's, a 3 foot parallel cable to fit the parport on one end,
> and the 26 pin header of a 7i90 on the other.
>
> I have 4 ea 5i25's. A 5th one has been tossed as the ptc blew up hard
> enough to leave a carbonized crather in the pcb. So it is not counted in
> the 4 I have.  All have been flashed with 5i25_prob_rfx2.bit files, and
> at least 3 that will do a verify against that file, when plugged into
> the Dell 520.
>
> Plugged into the huge Optiplex 745 with a 3.4 GHz dual core intel cpu, 2
> of them will turn the power led orange, which stops the boot in its
> tracks in under a second from powerup.
>
> And two of them look to be 100% functional cards when plugged into the
> big Optiplex, except, with the pid's enabled, and the stepgens enabled,
> I can see the stepgen.nn.position-cmd's from the pid's just fine, but
> now no counts ever occur, and of course the position-fb's remain at
> 0.00000000.
>
> Loading up Andy's test config, after the loadrt of hm2_pci, a show shows
> a boatload of data, all of which looks good to me.
>
> One of the pins on the 2 cards that don't kill the Optiplex, does show,
> and that registers on the DRO too, the backlash move when I change the
> requested movement direction. Something is the .002 to .003" range, but
> after that, its all silent until I have moved that axis enough to
> trigger the following error.
>
> Its close to $200 for another pair of those 5i25's, so what are the
> chances they can be repaired for a bit less total sheckles?
>
> Thanks everybody.
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to