7c80 install on rpi 4

More
21 Apr 2023 14:38 #269556 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Hi,
I think its appropriate to continue in that topic (if not, I'll create a new one)

I have strange issue with 7c80,
Im configuring spindle. Spindleout works finally,
but I cant configure ENA/DIR isolated output

I configured them as
setp hm2_7c80.0.gpio.020.invert_output true
setp hm2_7c80.0.gpio.020.is_output true
setp hm2_7c80.0.gpio.021.invert_output true
setp hm2_7c80.0.gpio.021.is_output true

net spindle-cw => hm2_7c80.0.gpio.020.out
net spindle-ccw => hm2_7c80.0.gpio.021.out

I see that it works in a halmon once I enable it
But it does not enable the pins on a TB5

another point (not sure if it should be so) is that in the readhmid I see the following (no secondary function):
TB5-2 18 IOPort PWM 0 PWM (Out)
TB5-2 19 IOPort PWM 0 /Enable (Out)
TB5-5,6 20 IOPort None
TB5-7,8Internal 21 IOPort None

Any idea toward the error in my DNA ?

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

More
21 Apr 2023 15:16 #269557 by PCW
Replied by PCW on topic 7c80 install on rpi 4
The ENA/DIR or FWD/REV outputs are switches, not voltage outputs
so must be tested with a ohmmeter or switching a load.

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

More
21 Apr 2023 15:45 #269558 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
you, thats how I connect it, as a switch
and it does not connect it once TRUE, ohmmeter shows line disconnect

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

More
21 Apr 2023 15:48 #269559 by PCW
Replied by PCW on topic 7c80 install on rpi 4
Do inputs GPIO20 and GPIO21 show low when the corresponding outputs are set true?

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

More
21 Apr 2023 15:51 #269561 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Im not sure I know how to check that ? could you point me to the right command ?

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

More
21 Apr 2023 16:00 #269562 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
If its the output of halmon, than yes
(with spindle enable in lcnc)
36 bit OUT TRUE hm2_7c80.0.gpio.020.in
36 bit OUT FALSE hm2_7c80.0.gpio.020.in_not

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

More
21 Apr 2023 16:01 #269563 by PCW
Replied by PCW on topic 7c80 install on rpi 4
halshow
watch tab
hm2_7c80.0.gpio.020.in
hm2_7c80.0.gpio.021.in

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

More
21 Apr 2023 16:07 #269564 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Is that ok (it looks like TB5 5,6,7,8 are not connected in FW)
mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid | grep TB5

 
Attachments:

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

More
21 Apr 2023 16:23 - 21 Apr 2023 16:28 #269565 by PCW
Replied by PCW on topic 7c80 install on rpi 4
TRUE hm2_7c80.0.gpio.020.in

means disabled

This is because the outputs that drive the OPTOs are active low.
This is why you invert the outputs so setting GPIO 20 output pin
high gives an low output state.

 
Last edit: 21 Apr 2023 16:28 by PCW.

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

More
21 Apr 2023 16:27 #269566 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Return back inverted mode

36 bit OUT FALSE hm2_7c80.0.gpio.020.in
36 bit OUT TRUE hm2_7c80.0.gpio.020.in_not
36 bit IN TRUE hm2_7c80.0.gpio.020.out <== spindle-cw

Same - no switching between EN+/EN-

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

Moderators: PCWjmelson
Time to create page: 0.187 seconds
Powered by Kunena Forum