svētd., 2021. g. 14. febr., plkst. 00:23 — lietotājs Peter C. Wallace (<[email protected]>) rakstīja: > > On Sat, 13 Feb 2021, Viesturs L?cis wrote: > > > Date: Sat, 13 Feb 2021 20:44:58 +0200 > > From: "[UTF-8] Viesturs L?cis" <[email protected]> > > Reply-To: "Enhanced Machine Controller (EMC)" > > <[email protected]> > > To: "Enhanced Machine Controller (EMC)" <[email protected]> > > Subject: [Emc-users] Some questions about 6i25 and 7i77+7i74 combo > > > > Hello! > > > > I am trying to figure out, how to set up HAL config for 6i25 card that > > will have 7i77 and 7i74 attached to it. > > I flashed it with 5i25_7i77_7i74.bit firmware. I did also --verify and > > it reports that board configuration verified successfully. Is this > > correct approach? > > > > Then I am puzzled about pwmgens. I do not see tham in HalConfig. I > > suspect that they are replaced with analogout0, analogout1 etc. How do > > I connect them in HAL? Are they equivalent for pwmgen.n.value pins? > > Yes, they are replaced by the analogoutN pins plus they have associated > scaling > and bounding pins.
Where can I find some more info on their meaning? I did not yet notice them in HalShow. What I did notice there is that I do not understand, how to determine, which gpio pins are outputs and which are inputs. For 7i96 board outputs have ssr in the pin name. 7i77 also has output drivers on board so I would expect them assigned to particular gpio pin number. So either at the beginning or at the end of list of 32 gpio pins there should be 16 pins that could be set as outputs. But the HalShow shows something strange - there are several pins at the beginning that can be set as outputs, then there are some that are inputs only, then again some are possible outputs. I do not see any consistency so I would like to ask for some more detailed explanation: https://www.picpasteplus.com/v.php?i=4ca48b6343 > I would use pncconf to create a sample configuration which will illustrate the > pin connections and parameter setting. Also 'man sserial' I actually did try pncconf and long story short - it does not work. Is it actually supposed to work with 7i77? I tried 2 different approaches: 1) I tried to choose from existing firmware options in pncconf 2) I let it do automatic discovery of connected boards It seems to me that I got further with the first approach. But I still got stuck and could not go "forward". Here are firmware options it allowed me to select from (there is no 7i77+7i74 that I have flashed, so I had to choose the closest): https://www.picpasteplus.com/v.php?i=e4578ff06f I selected 7i77x2 with one 7i77 It does not allow me to set number of pwmgens and there are no other options regarding analog outputs for servo drives. This why I have a question if pncconf is supposed to work with 7i77: https://www.picpasteplus.com/v.php?i=fced84ea23 Then I looked at the tab for P3 connector: https://www.picpasteplus.com/v.php?i=f21aecd3c0 There are still no options about analog signal to servo drives P2 connector allowed to set any pins as gpio. If I try to go forward, I get stuck at this: https://www.picpasteplus.com/v.php?i=bb8b087fa2 When I tried the second approach, I get following results: After selecting automatic discovery, it asked for password and then showed this error: https://www.picpasteplus.com/v.php?i=36a601db22 But that output in the background seemed to be correct. But I still cannot set any pwmgens: https://www.picpasteplus.com/v.php?i=b87c105bee P3 connector setup seems different from the first approach (especially in column "PIN type", where I cannot change anything) https://www.picpasteplus.com/v.php?i=9fb30bdc56 P2 connector setup seems more appropriate: https://www.picpasteplus.com/v.php?i=e384811e9d BTW what do I select here? The particular board that will be attached to 7i74? I will have 7i64 and 7i66, but I see only one of them in this list. Anyway, I got an error on "accepting component changes": https://www.picpasteplus.com/v.php?i=bbcdd79acb I would really apreciate, if somebody could share a working config for 5i25+7i77 that I could use as a starting point for editing. Viesturs _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
