7I43 output problem!

More
11 Nov 2017 08:21 #101645 by soroosh.av
Hi all

I don't know if this is a silly problem or not, I have a 7I43 with a 7I37 for I/Os. All inputs are working correctly and without problem I can see from hal configuration that they are working. But I can't see any living sign! from outputs. I tried to set them in hal file or connected them to an input pin, from hal configuration i see that the related output is set but i don't see any hardware change.

From dmesg > hm2.txt i see that all gpios are from p3 and i connected that board to it. I don't know what to check more, any idea or anything may i missed?

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

More
11 Nov 2017 16:51 #101660 by PCW
Replied by PCW on topic 7I43 output problem!
Are the GPIO pins that drive the 7I37 outputs set to output mode?
Normally for a 7I37/7I37TA/7I37COM you want something like this in you hal file

(assuming the 7I37 is on the 7I43s IO 24..47 connector)

setp hm2_7i43.0.gpio.040.is_output true
setp hm2_7i43.0.gpio.040.invert-output true

setp hm2_7i43.0.gpio.041.is_output true
setp hm2_7i43.0.gpio.041.invert-output true

setp hm2_7i43.0.gpio.042.is_output true
setp hm2_7i43.0.gpio.042.invert-output true

setp hm2_7i43.0.gpio.043.is_output true
setp hm2_7i43.0.gpio.043.invert-output true

setp hm2_7i43.0.gpio.044.is_output true
setp hm2_7i43.0.gpio.044.invert-output true

setp hm2_7i43.0.gpio.045.is_output true
setp hm2_7i43.0.gpio.045.invert-output true

setp hm2_7i43.0.gpio.046.is_output true
setp hm2_7i43.0.gpio.046.invert-output true

setp hm2_7i43.0.gpio.047.is_output true
setp hm2_7i43.0.gpio.047.invert-output true
The following user(s) said Thank You: soroosh.av

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

More
18 Nov 2017 08:51 - 18 Nov 2017 10:50 #101966 by soroosh.av
Replied by soroosh.av on topic 7I43 output problem!
Thank you for your help.
sorry that I ask too much basic questions, I'm new to linuxcnc. I have another question, I have an encoder on the spindle and I want to use it for spindle synchronized motions only, not for spindle orientation. Is it possible to connect it to encoder channel 2 on the 7I33 and just see those encoder pins like a common input?
I connect that 5V encoder to the channel 2 and from dmesg I found the related pins that has an input pin inside hal configuration (/A, /B, /Z), but I don't see any change in hal configuration pins. I don't want to use 7I37 Inputs.

I found a spindle orientation topic on wiki, do I need to configure it like that or there is a simple way? If I could see the inputs from 7I33, I know the rest.
Last edit: 18 Nov 2017 10:50 by soroosh.av.

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

More
18 Nov 2017 14:16 - 18 Nov 2017 14:16 #101974 by PCW
Replied by PCW on topic 7I43 output problem!
If you need to look at the encoder A/B/Z signals directly you can use the encoder hal pins:

hm2_7i43.0.encoder.02.input-a
hm2_7i43.0.encoder.02.input-b
hm2_7i43.0.encoder.02.input-index

You can also use the GPIO pins where the encoder pins A,B,Index are wired but the encoder pins
have the advantage that they have a digital filter so tend to be cleaner and they don't change names with
different firmware.
Last edit: 18 Nov 2017 14:16 by PCW.
The following user(s) said Thank You: soroosh.av

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

Time to create page: 0.067 seconds
Powered by Kunena Forum