On Sunday 02 December 2018 10:11:38 andy pugh wrote:

> On Sun, 2 Dec 2018 at 14:17, Gene Heskett <ghesk...@shentel.net> wrote:
> > Am I understanding things correctly? That dmesg is correct and "show
> > pins" is showing me stuff I can't use because its already used by
> > the stepgens?
>
> No, the other way round. dmesg no longer tells you anything useful,
> rely on "show pins" instead.

Boggles the mind so I did, and am doing some testing. Show pins appears 
to be accurate for computer outputs to named functions, fails for 
outputs to the machinery, for that I have to use dmesg

For outputs, the dmesg and the halscope selector both appear to be  
correct, I just fired up lcnc and ran the halscope, no signals from the 
machine are connected to anything as I am waiting on some 5 pin 
connectors, and the 8 stepgen sigs, step(4) & dir(4) signals are indeed 
on 5i25 gpio.000 thru gpio.007, so dmesg isn't lying to me and I've got 
to move every i/o of that group I am using to some other gpio. gpio's 
that show pin says are bi-dir. Ack show pins, that is gpio.008,
009, 012, 013 that feeds p3.

show-pins says they (5i25.0.gpio.000 thru gpio.007) as uncommitted but 
they are in fact the outputs of the stepgens, and unavailable for 
anything else. The giveaway in the show-pins list is that particular 
gpio has no bit-IN line.

Since 5i25 gpio's are all bi-dir, if show-pins only shows 2 lines of 
input from the computer, both called bit OUT, but there's no bit IN 
line, then its used by the 7i76. For something else. Basicly, forget 
about using the first 16 gpio's that feed P3.

What I'm trying to do is make up a list that does tell me whats usable, 
and what shows in show pin that has already been taken by something else 
show pin doesn't know about since it hasn't processed the whole 761 
lines of the hal file. So I am surveying to see whats left when I find a 
clash that for some reason, is not an error when hal parses it at 
startup.  So I am trying to see whats left in the 5i25 from gpio.016 to 
gpio.033. Thats all on 5i25-P2, looking at a std bob, so the 7i76 hasn't 
a clue its there.

And using a wagon load of paper keeping my work sheets up to date. I 
would like to be able to walk thru a .hal printout, and everytime I come 
across a clash that hal doesn't detect, to know what the heck I am doing 
when I move a signal to a different gpio to solve a tug of war each time 
I have to. And that correction then generates another 18 page .hal 
printout. And a page of dmeg as I add comments, plus 5 or 6 pages of 
show pins as I add comments to it as to what that pin is actually doing.

ATM I have 7 tally switches to configure, and 9 more outputs, only 4 of 
which I've found and verified are working as far as seeing them at the 
outputs of these 3 cards.

Next is finding if the pwmgen signals are on p2 where they apparently 
were moved to by the 5i25_7i76_7i78 firmware I've put in the 5i25. dmesg 
says I ought to find them at 5i25.0.gpio.025<->027 (p2-5-6-7). And in 
checking that, I just for another problem, pwmgen dir isn't getting to 
gpio.027, and show pins doesn't say what or why. More searching thru the 
hal file. And it cannot be found in the .hal file!

More head scratching to do. Possibly a pwmgen type 1 is missing and 
searching thru the hal file it is not declared. So where do I put that 
declaration? or do I have a bad p2 cable? Ran LCNC, used halmeter to 
look up that param, and its properly set to a type 1. I think that says 
bad cable at p2-7? Go "ring" the cable, 'twouldn't be the first time 
with these damned IDC connectors.

We celebrate 29 years without an Alaskan Divorce today, so I'm trying to 
take better care of Dee today like feeding her a little closer to normal 
time and such. And I get the left eye done early Tuesday.  That ought to 
help my vision a bit. But the coming week is likely a sit and wait week 
anyway, connecters and cable to wire it all back up are in shipment from 
some place I can't pronounce on the other side of the big pond. :)

Take care Andy & thanks.

-- 
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>


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to