5i25 + 7i85s +....

More
10 Nov 2016 18:18 #82679 by andypugh
Replied by andypugh on topic 5i25 + 7i85s +....

I dont know what P3 and P2 means, sorry.

P2 and P3 are the two 25-pin headers. I think 3 is the D-sub and 2 is the internal.

I have downloaded the 5i25_7i85sspx2.bit file. How can i install it?


You flash Mesa cards with Mesaflash.

Please Log in or Create an account to join the conversation.

More
10 Nov 2016 18:18 #82680 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
The 5I25 has 2 I/O connectors, P3 = DB25 on bracket and P2 = 26 pin rectangular header

Which connector is the 7I85S attached to?

you update the firmware like this:

sudo mesaflash --device 5i25 --write 5i25_7i85sspx2.bit
and then
sudo mesaflash --device 5i25 --reload

Please Log in or Create an account to join the conversation.

More
15 Nov 2016 10:25 - 15 Nov 2016 12:53 #82829 by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Sorry for the delay.

My 7i85s is attached to the DB25 on bracket of the 5i25. So i guess the PIN i have to use is the hm2_5i25.0.gpio.019.out.

I have set the HAL file to num_stepgens=3.

The thing is that the LED of the SPIN1X of the ENABLE (green one) is always on. I change the value of the hm2_5i25.0.gpio.019.out to 1 with this line:

halcmd setp hm2_5i25.0.gpio.019.out 1

In fact, i see in the HAL configurator that this PIN change his color to yellow ( i guess that means that this PIN is ON). But the LED of the SPIN1X is always on, so i think im doing something wrong.

Thank you!
Last edit: 15 Nov 2016 12:53 by casetero.

Please Log in or Create an account to join the conversation.

More
15 Nov 2016 12:28 #82830 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
Again: You probably want to use 5i25_7i85sspx2.bit since it has PWM gens on TX6 and TX7 (on both P3 and P2)
( this config puts the PWM generator that the SPINX1 requires in place of Stepgen3 on P3)

If you want to play around with the GPIO pins, note that GPIO19 is on P2 NOT the DB25 (P3)
GPIO 2 is the GPIO that drives TX7 on P3

Please Log in or Create an account to join the conversation.

More
15 Nov 2016 12:53 #82831 by casetero
Replied by casetero on topic 5i25 + 7i85s +....
When i will install the 5i25_7i85sspx2.bit, then the TX7 and TX6 will be PWM only? I would like to use one for PWM control of the SPIN1X and the other one to ENABLE.

Im trying to do this before because i want to be capable of control my SPIN1X before messing up with the PWM signal. I have tried with the hm2_5i25.0.gpio.002.out:

halcmd setp hm2_5i25.0.gpio.002.out 1

The LED for ENABLE continues always ON, no matter if the hm2_5i25.0.gpio.002.out PIN is set to 1 or 0.

Does affect here the line of the HAL file sserial_port_0=000xxx ??

Thank you!

Please Log in or Create an account to join the conversation.

More
15 Nov 2016 15:32 #82834 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
That suggests you have the DB25 pinout wrong
Rather than wire up the SPINX1, check the DB25 pins with a voltmeter
ALL I/O pins should be high before LinuxCNC is launched

Please Log in or Create an account to join the conversation.

More
16 Nov 2016 15:35 #82863 by casetero
Replied by casetero on topic 5i25 + 7i85s +....
I´ve been testing the 7i85s with a voltimeter.

When I launch Linuxcnc with num_stegens=3 the PIN 13 of TB1 ( where is located the TX7) is set as 0 V.

When I launch Linuxcnc with num_stegens=4 the PIN 13 of TB1 ( where is located the TX7) is set as 5 V.

I think this is normal.

The problem is that i can´t control the state of this PIN via halcmd. I guess that when linuxcnc launched with num_stegens=3, I should be capable of change the state of the PIN 13 of TB1 by the command:

halcmd setp hm2_5i25.0.gpio.002.out 1

But the PIN continues showing 0 V.

The PIN 14 of TB1 ( where is located non-TX7) works normally and always is the non state of TX7.

Maybe the ENABLE PIN of the SPIN1X is not wired in the correct place. Ive wired it at the PIN 13 of TB1 of the 7i85s daughter card.

Thank you!!

Please Log in or Create an account to join the conversation.

More
16 Nov 2016 15:55 - 16 Nov 2016 15:56 #82864 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
To get an GPIO output to work you first need to set the GPIO pin into output mode:

halcmd setp hm2_5i25.0.gpio.002.is_output 1
Last edit: 16 Nov 2016 15:56 by PCW.

Please Log in or Create an account to join the conversation.

More
16 Nov 2016 16:31 #82865 by casetero
Replied by casetero on topic 5i25 + 7i85s +....
I have already done that. In fact in the HAL configurator i see these PINs High (yellow):

hm2_5i25.0.gpio.002.out

hm2_5i25.0.gpio.002.is_output

But the PIN 13 of TB1 of the 7i85s continues low ( 0 V.)

Thank you.

Please Log in or Create an account to join the conversation.

More
16 Nov 2016 16:37 #82866 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
try setting the out pin to 0

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.175 seconds
Powered by Kunena Forum