Mesa 7i96 ETH + Mesa 7i80 ETH

More
4 years 9 months ago #233148 by F0R3WER
Hello guys!

The 7i96 working fine, i can mooveing with axis and spindle. I made a ladder to hidraulic, lube, EMG and many options. Its working.
But the 7i96 card's ENA 0-3 outputs dont working. If i control ENA0 to ON, ENA 1-3 switch with than to ON. I check it on the HAL pins, only 00 output switched to 1. I think its a problem with my 7i96 board a damaged chip or optocouplers. Because i lost 4 output on my config i need more IO. I used 7i80. I can set the IP numbers 192.168.1.121 7i96 and 192.168.1.123 7i80HD.
my hal config works only 7i96, and i see the 7i80HD on HAL pin window. 
I switch a config on 7i80 with mesaflash to Just IO .bit
So my problem now, i dont know how can i use this GPIO -s to output. I try use setp hm2_7i80.0.gpio.00 is_output and try on and off the output.. but the 00 IO pin have only 5V. How can i wiring the GPIO to output or input and how can is set it on my .hal file?

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

More
4 years 9 months ago #233149 by PCW
Replied by PCW on topic Mesa 7i96 ETH + Mesa 7i80 ETH
Do you mean 7I97? on a 7I97 analog outputs 0..3 are controlled by PWM enable 0
So that's expected behaviour.

If you set a GPIO bits is_output parameter true you should be able to set the
GPIOs output state by setting the corresponding out pin, though note if you have
a watchdog bite, the GPIO will revert to input mode (and be in a high state)

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

More
4 years 9 months ago #233207 by F0R3WER
I think the problem in my hal file. I read your comments, and try the "setp hm2_7i80.0.gpio.00 is_output". But if this command on the hal file, linuxcnc cant start. If i send my hal file, do you help me?

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

More
4 years 9 months ago #233209 by PCW
Replied by PCW on topic Mesa 7i96 ETH + Mesa 7i80 ETH
setp hm2_7i80.0.gpio.00 is_output

will fail if that GPIO pin is already claimed by a secondary function (Stepgen Encoder etc)

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

More
4 years 9 months ago - 4 years 9 months ago #233229 by F0R3WER
All function on the 7i96. The 7i80 is only IO.
I think the problem on my hal file.. maybe the 2 ETH Mesa Card config.

loadrt hm2_eth board=ip"192.168.1.121,192.168.1.123" config=" num_encoders=6 num_pwngens=6 num_stepgens=0 sserial_port_0=00××××××"
setp [HMOT](CARD0).watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.y,pid.z,pid.s

addf [HMOT](CARD0).read servo-thread
...

The [HMOT](CARD0) is the first card 7i97. Than i refer to 7i80? If i try this: setp hm2_7i80.0.gpio.00 is_output, linuxcnc cant load.

what i made bad?
Last edit: 4 years 9 months ago by F0R3WER.

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

More
4 years 9 months ago #233234 by PCW
Replied by PCW on topic Mesa 7i96 ETH + Mesa 7i80 ETH
1. Unless you specifically disable special functions, they will all be enabled
so you need a config string for the 7I80 that disables all secondary functions
(or use firmware for the 7i80 that has only GPIO)

2. To actually work, you need read and write functions for both cards

3. Also for performance reasons, you need to overlap read operations
if you are using multiple Ethernet cards on one PC. This is done by using
the read-request functions, something like:

addf servo-thread hm2_7i96.0.read-request
addf servo-thread hm2_7i80.0.read-request
addf servo-thread hm2_7i96.0.read
addf servo-thread hm2_7i80.0.read

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

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