Wow!  That was fast...

Successfully loaded the firmware and all seems to be working as intended.  My 
existing 7i39 HAL file works just like it did before, and I've done a few quick 
tests of the 7i30 PWM and it seems to work as well (just did a few setp 
commands to drive some voltage).

It's the end of the day here, but tomorrow I'll resume the control algorithm 
work.

Thanks Peter!

John Kasunich


On Wed, Nov 6, 2024, at 5:41 PM, Peter Wallace wrote:
> On Wed, 6 Nov 2024, John Kasunich wrote:
>
>> Date: Wed, 06 Nov 2024 17:03:20 -0500
>> From: John Kasunich <jmkasun...@fastmail.fm>
>> Reply-To: "Enhanced Machine Controller (EMC)"
>>     <emc-users@lists.sourceforge.net>
>> To: Emc-users@lists.sourceforge.net
>> Subject: [Emc-users] mix and match boards on 5i20 cables?
>> 
>> This is mostly for PCW, but I'll take answers and advice from anybody.
>>
>> I have an application (for my day job) where I want to run a 7i39 
>> three-phase motor driver board and a 7i30 H-bridge board from the same 5i20 
>> anything I/O board (on two separate ribbon cables of course).  Ideally both 
>> at the same time, but I can also live with loading a different HAL fill for 
>> each one.  The application is comparing a couple different motor 
>> technologies; it would be great to run them side-by-side but I can live with 
>> running one at a time.
>>
>> Ultimately what I need is at least one encoder counter (ideally going 
>> through the input pins on the 7i39), at least one three-phase PWM output 
>> (must go to the proper pins on the 7i39), and at least two regular PWM 
>> outputs (must go to the proper pins on the 7i30).
>>
>> I have a working setup with just the 7i39.  I load bitfile SVTP6-7I39.BIT, 
>> configure num_3pwmgens=2, and put the board on the first cable.
>>
>> I'm confident that I could make a working setup with just the 7i30.  I'd 
>> load bitfile SV12.BIT, configure num_pwmgens=4, and put the board on the 
>> first cable.  Haven't done that yet but will start soon while I wait to see 
>> if there is a better way.
>>
>> The problem with this plan is that I have to swap the boards before running 
>> each HAL file.  Sooner or later I'll accidentally run the 7i39 HAL file 
>> while the 7i30 board is connected or vice-versa.
>>
>> I tried putting the 7i30 on the second cable, but the only way to get pwm 
>> signals on that cable seems to be to configure num_pwmgens=8.  That puts 
>> 7i30-style PWM on BOTH cables.  If the 7i39 is plugged into the first cable 
>> bad things might happen.
>>
>> Is there a way to tell for example the SV12 bitfile that I want 
>> num_pwmgens=4, but those 4 should be on the second cable?  Leave the first 
>> cable unconfigured (GPIO).  That way, each HAL file sends signals to its 
>> board over its cable, and leaves the other cable alone.
>>
>> Even better would be a bitfile that has both 3pwmgen and regular pwmgen (and 
>> encoder) and puts the signals on the appropriate cables and pins.  Then I 
>> could run both at the same time.  What is involved in making such a bit file?
>>
>> --
>>  John Kasunich
>>  jmkasun...@fastmail.fm
>>
>>
>> _______________________________________________
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
> Heres a test bitfile: (and changed pinout file source)
>
> http://freeby.mesanet.com/5i20_7i39_7i30.zip
>
> you can compile these yourself but Spartan2 requires a really
> old version of ISE/Webpack (this was done with 9.2i)
>
>
> Peter Wallace
> Mesa Electronics
>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

-- 
  John Kasunich
  jmkasun...@fastmail.fm


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to