On Saturday 12 July 2014 15:05:19 Chris Morley did opine And Gene did reply: > > From: ghesk...@wdtv.com > > To: emc-users@lists.sourceforge.net > > 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.
The scale box itself is ghosted, inactive in terms of entering data > > 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" Aha! For my next try, then loadrt hm2_pci config="num_encoders=2 num_pwmgens=0 num_stepgens=4" I am trying to use a mix-n-match of stuff that needs a base thread, by using the software pwmgen module and importing all my logic from the pure software hal file. But I am stuck at the moment by this: Starting LinuxCNC... my_LinuxCNC_machine.hal:187: Pin 'motion.spindle-speed-out-rps-abs' does not exist Shutting down and cleaning up LinuxCNC... Running HAL shutdown script Cleanup done LinuxCNC terminated with an error. You can find more information in the log: /home/gene/linuxcnc_debug.txt and /home/gene/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal So I think I'm going to have to import a lot more more of my old, working software config, which will generate that missing signal, much of which works from base-thread. But I got side tracked & went back to a somewhat working software setup, moved the encoder lines around to match the 5i25 & made that work, but when I chucked a digital caliper to check Z scale I found it off about 2%, fooled around & fixed that, then did the same for X. The x screw is supposed to be a 2.5mm pitch, but I have to use a larger value to make the movements measure correctly. I should hang a pointer on the backshaft, put a dial on the toolpost, and turn it exactly 10 turns to see how far it actually moves. In re the above, I guess next is getting the home switches to be recognized. Lots of other things I can't test till it will home itself. > 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) I miss-typed, I think the stepgens I can use, and the first 2 on each socket are already on the correct pins. So I am getting there, the above line for my hal file will facilitate things considerably. But its about 90F in the shop already, and I'm leaving salty puddles as I move about. :( Thanks for that hint, I'll do some more hal carving later as it cools. > > > > > Chris M > > ----------------------------------------------------------------------- > ------- _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users