Setting up 7i97t w idc26 bob
- bentiggin
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 4
07 Sep 2024 07:19 #309543
by bentiggin
Setting up 7i97t w idc26 bob was created by bentiggin
I can’t figure out how to set up a bob on the 7i97t.
It’s just a simple pass through breakout.
Can I use the idc26/bob with normal 7i97t firmware?
I was trying to set it up using my existing hal file, but I don’t know what the idc pins are. Like the equivalent of hm2_7197.0.ssr.00.out-1 or hm2_7197.0.inmux.00.input-1.
Ive tried setting it up in mesact with both 7i97t_d.bin and 7i97t_5abobd.bin, but inputs/outputs 16+ are grayed out.
I also tried with pncconf. If I use the inputs/outputs in the io3 tab, then linuxcnc won’t launch saying they don’t exist.
It’s just a simple pass through breakout.
Can I use the idc26/bob with normal 7i97t firmware?
I was trying to set it up using my existing hal file, but I don’t know what the idc pins are. Like the equivalent of hm2_7197.0.ssr.00.out-1 or hm2_7197.0.inmux.00.input-1.
Ive tried setting it up in mesact with both 7i97t_d.bin and 7i97t_5abobd.bin, but inputs/outputs 16+ are grayed out.
I also tried with pncconf. If I use the inputs/outputs in the io3 tab, then linuxcnc won’t launch saying they don’t exist.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
07 Sep 2024 09:16 #309549
by andypugh
Replied by andypugh on topic Setting up 7i97t w idc26 bob
Well, it's likely to depend on the pinout of the BoB.
So the first thing to try would be to find which firmware suits the BoB, as the pin assignment of the 7i97 is fixed by the firmware.
(Whilst you could switch it by rewiring the cable between the BoB and the 7i97, doing that with ribbon cables is fiddly at best)
If you start linuxcnc from the command-line then as soon as the Mesa card loads it will print out the pinout (even if the startup of LinuxCNC subsequently fails)
Start with the config tool that gets closest, and then accept that you are probably going to have to do some hand-editing of the HAL file later.
(The initial concept of HAL was for it to be entirely hand-generated, you shouldn't be scared of it)
So the first thing to try would be to find which firmware suits the BoB, as the pin assignment of the 7i97 is fixed by the firmware.
(Whilst you could switch it by rewiring the cable between the BoB and the 7i97, doing that with ribbon cables is fiddly at best)
If you start linuxcnc from the command-line then as soon as the Mesa card loads it will print out the pinout (even if the startup of LinuxCNC subsequently fails)
Start with the config tool that gets closest, and then accept that you are probably going to have to do some hand-editing of the HAL file later.
(The initial concept of HAL was for it to be entirely hand-generated, you shouldn't be scared of it)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19408
- Thank you received: 6507
07 Sep 2024 13:07 #309563
by tommylight
Replied by tommylight on topic Setting up 7i97t w idc26 bob
Picture?It’s just a simple pass through breakout.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17899
- Thank you received: 4774
07 Sep 2024 14:05 #309572
by PCW
Replied by PCW on topic Setting up 7i97t w idc26 bob
If you just need GPIO all 17 P1 I/O pins are available as GPIO
with the default firmware.
The GPIO numbers vs P1 pins are listed in the .pin file:
IO Connections for P1 -> 7I97_2
Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
P1-01/DB25-01 34 IOPort None
P1-02/DB25-14 35 IOPort None
P1-03/DB25-02 36 IOPort None
P1-04/DB25-15 37 IOPort None
P1-05/DB25-03 38 IOPort None
P1-06/DB25-16 39 IOPort None
P1-07/DB25-04 40 IOPort None
P1-08/DB25-17 41 IOPort None
P1-09/DB25-05 42 IOPort None
P1-11/DB25-06 43 IOPort None
P1-13/DB25-07 44 IOPort None
P1-15/DB25-08 45 IOPort None
P1-17/DB25-09 46 IOPort None
P1-19/DB25-10 47 IOPort None
P1-21/DB25-11 48 IOPort None
P1-23/DB25-12 49 IOPort None
P1-25/DB25-13 50 IOPort None
Each GPIO pin (GPIO 50 = DB25-13 shown here)
Will have three hal pins available for connections
in your hal file:
hm2_7i97.0.gpio.050.in
hm2_7i97.0.gpio.050.in_not
hm2_7i97.0.gpio.050.out
and three parameters that need to be set
appropriately if the GPIO pin is an outrput
hm2_7i97.0.gpio.050.is_output
hm2_7i97.0.gpio.050.invert_output
hm2_7i97.0.gpio.050.is_opendrain
All GPIO pins startup as inputs so the "is_output"
parameter must be set "true" for any GPIO pin you wish
to use as an output
with the default firmware.
The GPIO numbers vs P1 pins are listed in the .pin file:
IO Connections for P1 -> 7I97_2
Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
P1-01/DB25-01 34 IOPort None
P1-02/DB25-14 35 IOPort None
P1-03/DB25-02 36 IOPort None
P1-04/DB25-15 37 IOPort None
P1-05/DB25-03 38 IOPort None
P1-06/DB25-16 39 IOPort None
P1-07/DB25-04 40 IOPort None
P1-08/DB25-17 41 IOPort None
P1-09/DB25-05 42 IOPort None
P1-11/DB25-06 43 IOPort None
P1-13/DB25-07 44 IOPort None
P1-15/DB25-08 45 IOPort None
P1-17/DB25-09 46 IOPort None
P1-19/DB25-10 47 IOPort None
P1-21/DB25-11 48 IOPort None
P1-23/DB25-12 49 IOPort None
P1-25/DB25-13 50 IOPort None
Each GPIO pin (GPIO 50 = DB25-13 shown here)
Will have three hal pins available for connections
in your hal file:
hm2_7i97.0.gpio.050.in
hm2_7i97.0.gpio.050.in_not
hm2_7i97.0.gpio.050.out
and three parameters that need to be set
appropriately if the GPIO pin is an outrput
hm2_7i97.0.gpio.050.is_output
hm2_7i97.0.gpio.050.invert_output
hm2_7i97.0.gpio.050.is_opendrain
All GPIO pins startup as inputs so the "is_output"
parameter must be set "true" for any GPIO pin you wish
to use as an output
Please Log in or Create an account to join the conversation.
- bentiggin
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 4
07 Sep 2024 16:26 #309590
by bentiggin
Replied by bentiggin on topic Setting up 7i97t w idc26 bob
What I’m trying to do is to hook up a bts7690 h bridge to drive a dc motor.
So i think need more than just gpio. I was under the impression I could treat it like a parallel port using pwmgen/stepgen.
If i load the firmware 7i97t_5abobd.bin(the only choice I see in mesact for bob) linuxcnc fails to load with the message-
hm2_7i97.0.pwmgen.00.dither not found.
Which is for my servos that are connected to the 7i97, not the bob.
If I just ignore that for now, I see
Io pin 036 (p-1-04/DB25-15): StepGen #0, pin Step (output)
How would that look in Hal?
hm2_7197.0.stepgen.00?
If I wanted to use a pwm, I’d need a firmware that starts at pwmgen #07? since pwmgen.00-.06 are already used for the 9t97?
I will potentially get a different bob and replace the dc motor with a stepper/servo and driver, but I’m just messing around with what I have, trying to learn something.
So i think need more than just gpio. I was under the impression I could treat it like a parallel port using pwmgen/stepgen.
If i load the firmware 7i97t_5abobd.bin(the only choice I see in mesact for bob) linuxcnc fails to load with the message-
hm2_7i97.0.pwmgen.00.dither not found.
Which is for my servos that are connected to the 7i97, not the bob.
If I just ignore that for now, I see
Io pin 036 (p-1-04/DB25-15): StepGen #0, pin Step (output)
How would that look in Hal?
hm2_7197.0.stepgen.00?
If I wanted to use a pwm, I’d need a firmware that starts at pwmgen #07? since pwmgen.00-.06 are already used for the 9t97?
I will potentially get a different bob and replace the dc motor with a stepper/servo and driver, but I’m just messing around with what I have, trying to learn something.
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
07 Sep 2024 17:20 #309592
by andypugh
Replied by andypugh on topic Setting up 7i97t w idc26 bob
Try this incantation at the command-line. It will give you a full set of pin and parameter names, without the complication of the rest of LinuxCNC.
Everything that is in the HAL file can be run interactively at the command line. Which is often very useful when debugging.
halrun
loadrt hostmot2
loadrt hm2_eth board_ip=192.168.1.121 (or whatever you are actually using)
show pin
show param
exit
Everything that is in the HAL file can be run interactively at the command line. Which is often very useful when debugging.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17899
- Thank you received: 4774
07 Sep 2024 17:43 #309595
by PCW
Replied by PCW on topic Setting up 7i97t w idc26 bob
The 7i97t_5abob firmware likely predates the PWM dither option
Here is firmware that includes the PWM dither option:
This also brings out the PWM direction pin (It was left as GPIO
on the previous firmware)
Note when connecting 7I97T P1 pins to a power device
(that will likely have large negative switching spikes)
Its a good idea to add a say 100 Ohm series resistor
to all P1 interface pins used to avoid damage to the
input clamp diodes
Here is firmware that includes the PWM dither option:
This also brings out the PWM direction pin (It was left as GPIO
on the previous firmware)
Note when connecting 7I97T P1 pins to a power device
(that will likely have large negative switching spikes)
Its a good idea to add a say 100 Ohm series resistor
to all P1 interface pins used to avoid damage to the
input clamp diodes
Attachments:
Please Log in or Create an account to join the conversation.
- bentiggin
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 4
07 Sep 2024 20:36 #309603
by bentiggin
Replied by bentiggin on topic Setting up 7i97t w idc26 bob
I tried to use the files you sent, but I’m still having the dither not found error.
I replaced both the .bin and .vhd files in the file directory.
I then used mesact to flash.
I assume I’m skipping a step.
Andy, thanks. That will definitely get used.
I replaced both the .bin and .vhd files in the file directory.
I then used mesact to flash.
I assume I’m skipping a step.
Andy, thanks. That will definitely get used.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17899
- Thank you received: 4774
07 Sep 2024 20:38 #309605
by PCW
Replied by PCW on topic Setting up 7i97t w idc26 bob
Did you do a reload or power cycle after writing the firmware?
Please Log in or Create an account to join the conversation.
- bentiggin
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 4
07 Sep 2024 21:05 #309607
by bentiggin
Replied by bentiggin on topic Setting up 7i97t w idc26 bob
Yep. Tried reload in mesact, tried restarting the computer, power cycled the 7i97t, in every combination, together and separate.
but I also tried flashing 7i97t_d.bin and linuxcnc starts without the error every time.
Then I’ll try 7i97t_5abobd.bin and it I get the same error.
but I also tried flashing 7i97t_d.bin and linuxcnc starts without the error every time.
Then I’ll try 7i97t_5abobd.bin and it I get the same error.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.091 seconds