On Wed, 28 Nov 2018, Gene Heskett wrote:
Date: Wed, 28 Nov 2018 11:51:50 -0500
From: Gene Heskett <ghesk...@shentel.net>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] For PCW
On Wednesday 28 November 2018 10:25:40 Peter C. Wallace wrote:
On Wed, 28 Nov 2018, Gene Heskett wrote:
Date: Wed, 28 Nov 2018 10:16:07 -0500
From: Gene Heskett <ghesk...@shentel.net>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] For PCW
On Wednesday 28 November 2018 06:31:30 andy pugh wrote:
On Wed, 28 Nov 2018 at 04:26, Gene Heskett <ghesk...@shentel.net>
wrote:
And that brought cr1 back on, and an attempt to run LCNC now shows
two
gpio's as serial tx and rx, but doesn't show anything that from my
understanding, should be there on that subcircuit. And should
there not be 2 such on adjacent pins pairs, a total of 3 per 7i76?
If the HAL pins show as TX and RX and have not reverted to GPIO
then that means that they have found the 7i76 smart-serial channel.
You won't see the other ones without a smart-serial remote on the
7i76 expansion connection.
Hmm, makes sense.
The 7i76 field-IO doesn't show in dmesg. You should see it with
halcmd show pin.
I hadn't considered that, thanks. And it works. Lots and lots of
i/o. Saved and printed. Should be helpfull but will need translation
from gpio-nn to tb-#-# to use. Go feed the missus and input some
more coffee and get to it, starting with getting the other bob for
5i25-p2 powered. Looks like this will get me going as soon as
another standoff kit gets here, promised tomorrow evening. The box
is 3" tall, so I'll mount the cards about 2" high, and take all the
cableing to the machine out under the boards, so the terminals are
not buried in wire. And I'll have a kajillion of these to fix:
twopass: Error in file ./GO704fast.hal:
setting parameter 'hm2_5i25.0.gpio.007.is_output' to 'true'
parameter or pin 'hm2_5i25.0.gpio.007.is_output' not found
Hmmm, ack that printout, it almost exist, but is_output does not,
only invert and open_drain. Since that is also the stepgen #3 step
output, that line can be nuked in favor of an open_drain, which is
how I've driven the steppers anyway.
The 7I76's 5 step/dir outputs are buffered 5V signals so open_drain is
not appropriate, invert is typically not used either because you have
differential pairs for each of the 7I76's 5 step/dir signals so you
just choose the correct (+ or -) output for the type of drive you have
(or swap +,- outputs for diffentially driven drives)
Of which I have none, so we scope them and use the correct polarity...
okay. My encoder inputs are ttl level so one side only does it, athough
the encoder is push pull on all 3 sigs, implying that a little box with
rs485-ttl conversions in it could go away at the expense of some
stranded cat-5 exiting another teeny mid cable box, but the ttl works so
that can be an afterthought. Cleanup maybe?
No need to scope the Step/DIR outputs, the + outputs are active high
and match the FPGA pin polarity, the - outputs are inverted
The lack of being capable of bidir on its gpio's reduces my inputs to a
max of 21, 16 in the 7i76 ad 5 on the std bob. Might get crowded, we'll
see but the 3 from the encoder won't come out of that, so that helps, a
lot. For gpio inputs I'll probably do like I did on the 7i90 on the
pi/sheldon, I started from the top, gpio.071 and worked down, so the
uncommited stuff was always in the middle, and thats worked well, I've
not had to move anything to add another in/out circuit.
Umm the 7I76 has 32 field inputs (and 16 field outputs), so you probably dont
need any GPIO...
I take it the ability to change a gpio's direction was lost in the
7i76? Abd I just discovered that none of the 7i76 stuffs made it to
the save all output. I guess I'll toss these printouts and make the
pin file with screen copy pasted to geany, which added 60 more lines
to the printout.
Laborious, but I'll get there.
Thank you Peter. Now for that 2nd cuppa. And feed the missus. Then
make more coffee, this is yesterdays leftovers. :)
All done, but I had a bowl of cereal too so I'll see about a sugar driven
nap next.
--
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
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users