5i25 board confusion with pins directions

More
9 years 3 days ago #100921 by andypugh
It's an input.

But the HAL pin is an OUT HAL pin, because it supplies a value to HAL.

Please Log in to join the conversation.

More
9 years 3 days ago #100922 by juanjor
Yes Andy, but i see the electrical side of this. and the pin goes output when the linuxcnc running, I put the scope in the pin,
and read 5V when linuxcnc running tis goes low 0V, and the 5i25 have the pull-ups enabled, also try to put external pull-ups
and the logical state is in 0V.

why? if declared fine in the hal, the pin goes low?

thanks

Please Log in to join the conversation.

More
9 years 3 days ago #100923 by andypugh
Quick test.
With LinuxCNC running open a terminal.

halcmd show param hm2_5i25.0.gpio.nn.is-output

Maybe even try

halcmd setp hm2_5i25.0.gpio.nn.is-output 0

Please Log in to join the conversation.

More
9 years 3 days ago #100928 by PCW
Can you post this information:

1. the result of:

sudo mesaflash --device 5i25 --readhmid > pinout.txt

(post the pinout.txt file here)

2. your current hal file

3. What pin are you are referring to? (Note that header, DB25 and GPIO numbers are all different)

Please Log in to join the conversation.

More
9 years 1 day ago #101013 by juanjor
Good morning folks!

I attach the requested files.
with respect :

"3. What pin are you are referring to? (Note that header, DB25 and GPIO numbers are all different)"
is pin 1 of db25 (P3). or gpio.017 (is true?)

thanks for the help




attachment=12538]pinout.txt[/attachment]

Attachment not found

Please Log in to join the conversation.

More
9 years 1 day ago #101019 by PCW
No, as I said before, GPIO17 is on P2 (pin 1) not P3

Please Log in to join the conversation.

More
9 years 1 hour ago #101061 by juanjor
Hello Folks!.

Well today i solve the problem, due we recheck all and not found errors in wires (sorry Peter by the confusion of P2 and P3, as you say
is as we connect, the "machine" was hooked to 5i25 P3 and working fine the mpg is hooked to P2), we install the linux again, and the linuxcnc and now working fine, the "machine" and the mpg. I don't understand where is the error. for now, is working.

Thanks, Andy & Peter by the support!

now I try to command the speed of spindle with the linuxcnc.

Please Log in to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum