On Friday 04 November 2016 08:18:21 W. Martinjak wrote:

> On 2016-11-04 08:12, Gene Heskett wrote:
> > I have it connected.  I think since no one has responded with
> > a translation of the two different dialects of swahili.
> >     From 7i90 P4-11=SPICLK to R-pi pin 23="SPI0 SCLK"
> >     From 7i90 P4-13=SPIIN to R-Pi pin 21="SPI0 MISO"
> >     From 7i90 P4-15=SPIOUT to R-Pi pin 19="SPI0 MISI"
> >     From 7i90 P4-17=/SPICS to R-Pi pin 24="SPI0 CS0"
> > I have interchanged the MSII and MSIO connections, and I have tried
> > both of the R-Pi's SPI0 CS0 and SPI0 CS1's.
>
> Hey Gene,
>
> there is not much room for interpretation:
>
> https://forum.linuxcnc.org/27-driver-boards/31753-raspberry-pi-and-mes
>a-7i90-spi-works-well#82070
>
> this "translation table" is rather clear.

Yes, first time I have seen it.  Nice. And exactly what I wanted.

> Could you please slow down?
> You are much to jittery.
>
> > The only response I am getting for this second line of the test
> > above, for all the hookup variations I have tried;
> > halcmd loadrt hm2_rpspi
>
> This is only one half of the story:
> I wrote:
>
> "Testing with halcmd:
>
>     halcmd loadrt hostmot2
>     halcmd loadrt hm2_rpspi
>
> "
The first of those 2 commands had already been done.

Now I have it hooked up according to that table.

And I have power cycled the 7i90 and the pi just so we are starting on the same 
page.

Logged back into the pi. OK.
gene@raspberrypi:~ $ halcmd loadrt hostmot2
Waiting for component 'hostmot2' to become ready....Waited 3 seconds for 
master.  giving up.
.Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15

So now even that is failing.  Or is it?
gene@raspberrypi:~ $ halcmd show
Loaded HAL Components:
ID      Type  Name                                            PID   State
     6  User  halcmd823                                         823 ready
     4  RT    hostmot2                                              ready

hostmot2 did not show up before, and that command had also been done. 
So now, try the 2nd line again:

gene@raspberrypi:~ $ halcmd loadrt hm2_rpspi
Base:hm2_7i90.0hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0:     IO Pin 000 (P1-01): StepGen #0, pin Step (Output)
hm2/hm2_7i90.0:     IO Pin 001 (P1-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i90.0:     IO Pin 002 (P1-05): StepGen #1, pin Step (Output)
hm2/hm2_7i90.0:     IO Pin 003 (P1-07): StepGen #1, pin Direction (Output)
hm2/hm2_7i90.0:     IO Pin 004 (P1-09): Encoder #0, pin A (Input)
hm2/hm2_7i90.0:     IO Pin 005 (P1-11): Encoder #2, pin A (Input)
hm2/hm2_7i90.0:     IO Pin 006 (P1-13): Encoder #0, pin B (Input)
hm2/hm2_7i90.0:     IO Pin 007 (P1-15): Encoder #2, pin B (Input)
hm2/hm2_7i90.0:     IO Pin 008 (P1-17): Encoder #0, pin Index (Input)
hm2/hm2_7i90.0:     IO Pin 009 (P1-19): Encoder #2, pin Index (Input)
hm2/hm2_7i90.0:     IO Pin 010 (P1-21): Encoder #1, pin A (Input)
hm2/hm2_7i90.0:     IO Pin 011 (P1-23): Encoder #3, pin A (Input)
hm2/hm2_7i90.0:     IO Pin 012 (P1-25): Encoder #1, pin B (Input)
hm2/hm2_7i90.0:     IO Pin 013 (P1-27): Encoder #3, pin B (Input)
hm2/hm2_7i90.0:     IO Pin 014 (P1-29): Encoder #1, pin Index (Input)
hm2/hm2_7i90.0:     IO Pin 015 (P1-31): Encoder #3, pin Index (Input)
hm2/hm2_7i90.0:     IO Pin 016 (P1-33): StepGen #2, pin Step (Output)
hm2/hm2_7i90.0:     IO Pin 017 (P1-35): StepGen #2, pin Direction (Output)
hm2/hm2_7i90.0:     IO Pin 018 (P1-37): StepGen #3, pin Step (Output)
hm2/hm2_7i90.0:     IO Pin 019 (P1-39): StepGen #3, pin Direction (Output)
hm2/hm2_7i90.0:     IO Pin 020 (P1-41): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i90.0:     IO Pin 021 (P1-43): PWMGen #0, pin Out1 (Dir or Down) 
(Output)
hm2/hm2_7i90.0:     IO Pin 022 (P1-45): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i90.0:     IO Pin 023 (P1-47): PWMGen #1, pin Out1 (Dir or Down) 
(Output)
hm2/hm2_7i90.0:     IO Pin 024 (P2-01): IOPort
etc,etc

Which is exactly what I wanted, 4 stepgens, 4 encoders, and 2 pwmgens,
all on the first 50 pin connector. The rest are gpio and free for me to use.
Not sure what I might use the extra 3 encoders for though.  Or the extra 
pair of stepgens.

Next I guess is go get these mounted where they will live after getting 
some fresh coffee under construction.  ATM they are on the keyboard rest, 
in front of this keyboard. I have run the above show report out to a 
printable file FFR stored on this machine..

> Please again, not all steps must be made at once!
> And leaving out half of the steps or reading every other line is just
> as wrong.

Apparently the only thing I left out was rebooting the pi.

I will however, bitch about these jumpers. tin plated, I expected to see gold 
flash, and the contact material has little if any spring. No effort at all 
to plug them onto a pin the second time. I have had to eject several to bend 
them a teeny for better spring contact. That of course is not your problem, but
a potential future problem for me.

Is there anything else I'll be needing to get off the pi's 40 pin connector?
If not, I am tempted to make up a 26 pin on one end, 40 pin on the other, 
with perhaps 8 strands of the much more flexible ribbon wire between the 
connectors.

running linuxcnc and bringing in the by_interface/hm2-stepper files, and 
telling it "LATHE = 1", I am stopped by:

Missing <max linear speed> specifier
See the 'INI Configuration' documents

Which I will do before the day is done.  This is progress, hooray...

Thank you Matsche.

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>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to