> From: [email protected]
> To: [email protected]
> Date: Sat, 12 Jul 2014 03:54:28 -0400
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 
> On Saturday 12 July 2014 02:52:13 Chris Morley did opine
> And Gene did reply:
> > > > I looked into PNCconf with the  prob_x2   XML file.
> > > > I found a bug caused by Peters's XML's not using the same labels as
> > > > linuxcnc's XMLs. It caused some of the GPIO pins not to show.
> > > > I will push a fix.
> > > 
> > > Great.  Downloadable by itself?  URL?
> > 
> > I will push to 2.5.x but it is a one line fix in pncconf.py :
> > 
> > line 4683:             pinconvertnone = {"NOT USED":GPIOI}
> My copy of the srcs:
> 4682       try:
> 4683            if stepdrive:
> 4684            # stepmotor scale
> 
> so we aren't looking at the same code
>  

Nope, you are looking at the new_pncconf branch :)

> > > > It might be nice to add the PIN info to the XML file, then pncconf
> > > > might be able to display better numbers, but it gets complicated
> > > > when using daughter boards.
> > > 
> > > I got a pinout from mesaflash, by interrogating the card, which does
> > > show both component and pins.  Very, very helpful. :)
> > 
> > Yes I hand wrote some files for some of the firmware and pressing the
> > help key will show them but there isn't any for your particular
> > firmware :(
> > 
> > > Basically, all I really need out of the 5i25 is its much higher
> > > sample speed encoder, I am happy with the way everything else runs
> > > right now.
> > > 
> > > PncConf makes that encoder config needlessly complex, making me enter
> > > a bunch of numbers I don't have instant access to. If we could get
> > > the 50 slots/rev and x4 settings out of the hal file by default, it
> > > would be much easier to setup correctly.
> > 
> > Did you realize you can set the scale directly? You don't need to
> > calculate it using pncconf.  Just type it in the scale box.
> 
> I could click on it and get more questions, most of which I didn't know 
> the answers to.

Don't press the calculate button, just enter the scale in the spinbox beside it.

> > I don't understand what you mean by getting the info from the HAL file.
> 
> In a manner similar to how it gets the stuff from the .ini file. Could it 
> not read the .hal file too?
> 

Pncconf was not made with converting configs in mind, so usually there is no HAL
file to look into and it also doesn't look in the INI file either.

> > > Once the 5i25 has been setup by disabling what I don't need, does
> > > this hold over a powerdown?
> > > 
> > > Thanks Chris.
> > 
> > After you flash a custom firmware, the firmware will always be the same
> > after a powerdown. The (de)selection of components to change to GPIO,
> > is done at load time so will need to be done correctly each time you
> > start linuxcnc.
> 
> By loading what file?
>  

This is loaded in the HAL file by a line similar to this:

loadrt hm2_pci config=" num_encoders=6 num_pwmgens=0 num_stepgens=0"

This particular line says: 
enable 6 encoders, (so if the firmware defines 10 the rest after 6 would be 
GPIO)
enable none of the PWM (so all the pins are GPIO)
enable none of the step gens (so all the pins are GPIO)

> > > > Chris M

                                          
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to