[Emc-users] Where to get latest PncConf?

2014-07-10 Thread Gene Heskett
I am hitting a road block on setting up the 5i25 when trying to move 
functions to the pins of the BOB I am using, and was wondering if there is 
a newer version available.

Thanks.

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 
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread John Thornton
Gene,

I noticed a new branch with pncconf on it.

http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary

JT

On 7/10/2014 7:21 AM, Gene Heskett wrote:
> I am hitting a road block on setting up the 5i25 when trying to move
> functions to the pins of the BOB I am using, and was wondering if there is
> a newer version available.
>
> Thanks.
>
> Cheers, Gene Heskett


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 06:21:25 John Thornton did opine
And Gene did reply:
> Gene,
> 
> I noticed a new branch with pncconf on it.
> 
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary
> 
> JT

Thanks John.  I had some fun finding it, accidentally pulled the whole 20 
Mb tarball, but it wasn't in there.

Found a .py script that builds it though. ATM Chris M. is looking to see 
if he can configure the 5i25 prob_rfx2 to do what I need.

I take it that "python name_of_this_file.py" will build it?

I am NOT a python guru in any universe. :)

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 
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 06:54:23 Gene Heskett did opine
And Gene did reply:
> On Friday 11 July 2014 06:21:25 John Thornton did opine
> 
> And Gene did reply:
> > Gene,
> > 
> > I noticed a new branch with pncconf on it.
> > 
> > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary
> > 
> > JT
> 
> Thanks John.  I had some fun finding it, accidentally pulled the whole
> 20 Mb tarball, but it wasn't in there.
> 
> Found a .py script that builds it though. ATM Chris M. is looking to
> see if he can configure the 5i25 prob_rfx2 to do what I need.
> 
> I take it that "python name_of_this_file.py" will build it?
> 
> I am NOT a python guru in any universe. :)
> 
> Cheers, Gene Heskett

And on looking at that pull, which was a git directory, it has nothing to 
do with pncconf except the very looong name of the git directory.

Too early, no coffee yet, think I'll recheck my eyelids for leaks. :)

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 
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread John Thornton
Gene,

Look in src/emc/usr_intf/pncconf

JT

On 7/11/2014 6:03 AM, Gene Heskett wrote:
> On Friday 11 July 2014 06:54:23 Gene Heskett did opine
> And Gene did reply:
>> On Friday 11 July 2014 06:21:25 John Thornton did opine
>>
>> And Gene did reply:
>>> Gene,
>>>
>>> I noticed a new branch with pncconf on it.
>>>
>>> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary
>>>
>>> JT
>> Thanks John.  I had some fun finding it, accidentally pulled the whole
>> 20 Mb tarball, but it wasn't in there.
>>
>> Found a .py script that builds it though. ATM Chris M. is looking to
>> see if he can configure the 5i25 prob_rfx2 to do what I need.
>>
>> I take it that "python name_of_this_file.py" will build it?
>>
>> I am NOT a python guru in any universe. :)
>>
>> Cheers, Gene Heskett
> And on looking at that pull, which was a git directory, it has nothing to
> do with pncconf except the very looong name of the git directory.
>
> Too early, no coffee yet, think I'll recheck my eyelids for leaks. :)
>
> Cheers, Gene Heskett


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread John Thornton
I assume to run pncconf you do the standard things like build it etc and 
set the environment the just type in pncconf.

JT

On 7/11/2014 6:03 AM, Gene Heskett wrote:
> On Friday 11 July 2014 06:54:23 Gene Heskett did opine
> And Gene did reply:
>> On Friday 11 July 2014 06:21:25 John Thornton did opine
>>
>> And Gene did reply:
>>> Gene,
>>>
>>> I noticed a new branch with pncconf on it.
>>>
>>> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary
>>>
>>> JT
>> Thanks John.  I had some fun finding it, accidentally pulled the whole
>> 20 Mb tarball, but it wasn't in there.
>>
>> Found a .py script that builds it though. ATM Chris M. is looking to
>> see if he can configure the 5i25 prob_rfx2 to do what I need.
>>
>> I take it that "python name_of_this_file.py" will build it?
>>
>> I am NOT a python guru in any universe. :)
>>
>> Cheers, Gene Heskett
> And on looking at that pull, which was a git directory, it has nothing to
> do with pncconf except the very looong name of the git directory.
>
> Too early, no coffee yet, think I'll recheck my eyelids for leaks. :)
>
> Cheers, Gene Heskett


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread John Thornton
So I just pulled the new_pncconf branch then switched to that branch 
with git.

In the terminal I typed
cd src
./autogen.sh
./configure
make
sudo make setuid
cd ..
. ./scripts/rip-environment
pncconf

and walla the new Pncconf is up and running.

JT

On 7/11/2014 6:03 AM, Gene Heskett wrote:
> On Friday 11 July 2014 06:54:23 Gene Heskett did opine
> And Gene did reply:
>> On Friday 11 July 2014 06:21:25 John Thornton did opine
>>
>> And Gene did reply:
>>> Gene,
>>>
>>> I noticed a new branch with pncconf on it.
>>>
>>> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=summary
>>>
>>> JT
>> Thanks John.  I had some fun finding it, accidentally pulled the whole
>> 20 Mb tarball, but it wasn't in there.
>>
>> Found a .py script that builds it though. ATM Chris M. is looking to
>> see if he can configure the 5i25 prob_rfx2 to do what I need.
>>
>> I take it that "python name_of_this_file.py" will build it?
>>
>> I am NOT a python guru in any universe. :)
>>
>> Cheers, Gene Heskett
> And on looking at that pull, which was a git directory, it has nothing to
> do with pncconf except the very looong name of the git directory.
>
> Too early, no coffee yet, think I'll recheck my eyelids for leaks. :)
>
> Cheers, Gene Heskett


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 07:16:34 John Thornton did opine
And Gene did reply:
> Gene,
> 
> Look in src/emc/usr_intf/pncconf
> 
> JT

I copied that dir to a scratchpad space, but my python might be too old. 
2.6.5.  Does this need the python3 I see in synaptic?

gene@coyote:/opt/Genes-os9-stf/LCNC/pncconf$ python pncconf.py
Traceback (most recent call last):
  File "pncconf.py", line 52, in 
from pncconf import pages
  File "/opt/Genes-os9-stf/LCNC/pncconf/pncconf.py", line 52, in 
from pncconf import pages
ImportError: cannot import name pages

Since there is a pages.py there, do I have to build it first? Does 
nothing.  I said I was a python dummy...

Thanks John.

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 
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 07:30:22 John Thornton did opine
And Gene did reply:
> So I just pulled the new_pncconf branch then switched to that branch
> with git.
> 
> In the terminal I typed
> cd src
> ./autogen.sh
> ./configure
I had to install missing pkgs
> make
Had to use sudo for make, mc is bad dog
> sudo make setuid
> cd ..
> . ./scripts/rip-environment
> pncconf
> 
> and walla the new Pncconf is up and running.
> 
> JT

Got it running, fires up MUCH faster, but still won't let me assign the IO 
pins I need.  I'd have to rip up all the IO on my C1G & rewire the whole 
maryann.

So I restarted it, enabled 4 stepgens, 2 spindle pwm's, and 2 spindle 
encoders so I could get an idea of what I'd need to rewire, but the test 
button does nothing. When I got to the pin page, no choices, just ins or 
outs. I muddled thru the rest of it and saved it, but no clue where it 
saved it.

So I haven't really learned anything. I am assuming that asking for 4 
stepgens, 2 pwms, and 2 encoders, that it would assign then evenly between 
p3 and p2.  To play with it, I'll need to get another bob, plug it in and 
see what comes out (or in) where.  Frankly, lack of documentation on this 
sux.  So I guess I wait on Chris, maybe he can wave a dead chicken and do 
a chant or 3 & make it work.

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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Peter C. Wallace
On Fri, 11 Jul 2014, Gene Heskett wrote:

> Date: Fri, 11 Jul 2014 11:26:33 -0400
> From: Gene Heskett 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 
> On Friday 11 July 2014 07:30:22 John Thornton did opine
> And Gene did reply:
>> So I just pulled the new_pncconf branch then switched to that branch
>> with git.
>>
>> In the terminal I typed
>> cd src
>> ./autogen.sh
>> ./configure
> I had to install missing pkgs
>> make
> Had to use sudo for make, mc is bad dog
>> sudo make setuid
>> cd ..
>> . ./scripts/rip-environment
>> pncconf
>>
>> and walla the new Pncconf is up and running.
>>
>> JT
>
> Got it running, fires up MUCH faster, but still won't let me assign the IO
> pins I need.  I'd have to rip up all the IO on my C1G & rewire the whole
> maryann.
>
> So I restarted it, enabled 4 stepgens, 2 spindle pwm's, and 2 spindle
> encoders so I could get an idea of what I'd need to rewire, but the test
> button does nothing. When I got to the pin page, no choices, just ins or
> outs. I muddled thru the rest of it and saved it, but no clue where it
> saved it.
>
> So I haven't really learned anything. I am assuming that asking for 4
> stepgens, 2 pwms, and 2 encoders, that it would assign then evenly between
> p3 and p2.  To play with it, I'll need to get another bob, plug it in and
> see what comes out (or in) where.  Frankly, lack of documentation on this
> sux.  So I guess I wait on Chris, maybe he can wave a dead chicken and do
> a chant or 3 & make it work.


The pin assignment for hardware functions like PWM, encoders, stepgens, etc
is hardwired in the FPGA configuration.

(you can read the .pin file to see the pinout for a specific configuration)

dmesg also lists the current configurations pinout

or run mesaflash:


sudo mesaflash --device 5i25 --readhmid

to read your current configurations pinout


Here's the latest mesaflash source:

https://github.com/micges/mesaflash/archive/master.zip



>
> 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
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 11:36:20 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > Date: Fri, 11 Jul 2014 11:26:33 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > On Friday 11 July 2014 07:30:22 John Thornton did opine
> > 
> > And Gene did reply:
> >> So I just pulled the new_pncconf branch then switched to that branch
> >> with git.
> >> 
> >> In the terminal I typed
> >> cd src
> >> ./autogen.sh
> >> ./configure
> > 
> > I had to install missing pkgs
> > 
> >> make
> > 
> > Had to use sudo for make, mc is bad dog
> > 
> >> sudo make setuid
> >> cd ..
> >> . ./scripts/rip-environment
> >> pncconf
> >> 
> >> and walla the new Pncconf is up and running.
> >> 
> >> JT
> > 
> > Got it running, fires up MUCH faster, but still won't let me assign
> > the IO pins I need.  I'd have to rip up all the IO on my C1G &
> > rewire the whole maryann.
> > 
> > So I restarted it, enabled 4 stepgens, 2 spindle pwm's, and 2 spindle
> > encoders so I could get an idea of what I'd need to rewire, but the
> > test button does nothing. When I got to the pin page, no choices,
> > just ins or outs. I muddled thru the rest of it and saved it, but no
> > clue where it saved it.
> > 
> > So I haven't really learned anything. I am assuming that asking for 4
> > stepgens, 2 pwms, and 2 encoders, that it would assign then evenly
> > between p3 and p2.  To play with it, I'll need to get another bob,
> > plug it in and see what comes out (or in) where.  Frankly, lack of
> > documentation on this sux.  So I guess I wait on Chris, maybe he can
> > wave a dead chicken and do a chant or 3 & make it work.
> 
> The pin assignment for hardware functions like PWM, encoders, stepgens,
> etc is hardwired in the FPGA configuration.
> 
> (you can read the .pin file to see the pinout for a specific
> configuration)
> 
> dmesg also lists the current configurations pinout
> 
> or run mesaflash:
> 
> 
> sudo mesaflash --device 5i25 --readhmid

This assumes the card is installed but linuxcnc isn't running so no 
drivers are loaded?

I can do that without a lot of problems I think.
> 
> to read your current configurations pinout
> 
> 
> Here's the latest mesaflash source:
> 
> https://github.com/micges/mesaflash/archive/master.zip

IOW Peter, I'll have to rip up the current BOB wiring.  I was hoping it 
was a matter of moving the db25 connector on the rear of the machine.

I'll print this, and go get it on that box. gunzip works on that .zip file 
I'd assume.

What I will do is reconfigure my BOB to try & match the 5i25 pin outs.  
The .hal files won't match when I move the plug, but I'll see how much 
schmardter I can get doing it.

Back later, I promise, unless I get dead or something.

Thanks Peter.

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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Peter C. Wallace
On Fri, 11 Jul 2014, Gene Heskett wrote:
> I can do that without a lot of problems I think.
>>
>> to read your current configurations pinout
>>
>>
>> Here's the latest mesaflash source:
>>
>> https://github.com/micges/mesaflash/archive/master.zip
>
> IOW Peter, I'll have to rip up the current BOB wiring.  I was hoping it
> was a matter of moving the db25 connector on the rear of the machine.

Probably not, one of the existing pinouts should be close wo what you need
(thats a good reason to read the .pin files that come with the 5i25.zip file)

If no existing pinout is close enough its easy enough for me to make a custom 
one  (only a few minutes)

>
> I'll print this, and go get it on that box. gunzip works on that .zip file
> I'd assume.
>
> What I will do is reconfigure my BOB to try & match the 5i25 pin outs.
> The .hal files won't match when I move the plug, but I'll see how much
> schmardter I can get doing it.
>
It surely will not match a parallel port hal file
the stepgen and PWM numbers can be made to match however



> Back later, I promise, unless I get dead or something.
>
> Thanks Peter.
>
> 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 
> 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
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 11:36:20 Peter C. Wallace did opine
[...]
 
> Here's the latest mesaflash source:
> 
> https://github.com/micges/mesaflash/archive/master.zip

The "archive" subdir does not exist from either this machine, or the 
lathes machine, I tried both Firefox and git. ??
> 
Thanks Peter.

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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > I can do that without a lot of problems I think.
> > 
> >> to read your current configurations pinout
> >> 
> >> 
> >> Here's the latest mesaflash source:
> >> 
> >> https://github.com/micges/mesaflash/archive/master.zip
> > 
> > IOW Peter, I'll have to rip up the current BOB wiring.  I was hoping
> > it was a matter of moving the db25 connector on the rear of the
> > machine.
> 
> Probably not, one of the existing pinouts should be close wo what you
> need (thats a good reason to read the .pin files that come with the
> 5i25.zip file)
> 
> If no existing pinout is close enough its easy enough for me to make a
> custom one  (only a few minutes)
> 
> > I'll print this, and go get it on that box. gunzip works on that .zip
> > file I'd assume.
> > 
> > What I will do is reconfigure my BOB to try & match the 5i25 pin
> > outs. The .hal files won't match when I move the plug, but I'll see
> > how much schmardter I can get doing it.
> 
> It surely will not match a parallel port hal file
> the stepgen and PWM numbers can be made to match however

I could not select a different pwmgen pin, and no stepgen dir outputs were 
shown when I did select one.  All sorts of BLDC stuffs yes, but not 
stepgens.
 
> > Back later, I promise, unless I get dead or something.
> > 
> > Thanks Peter.
> > 
> > Cheers, Gene Heskett
> > 
> > -
> > - ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> Peter Wallace
> Mesa Electronics
> 
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
> 
> 
> ---
> --- ___
> 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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Peter C. Wallace
On Fri, 11 Jul 2014, Gene Heskett wrote:

> Date: Fri, 11 Jul 2014 14:54:32 -0400
> From: Gene Heskett 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 
> On Friday 11 July 2014 11:36:20 Peter C. Wallace did opine
> [...]
>
>> Here's the latest mesaflash source:
>>
>> https://github.com/micges/mesaflash/archive/master.zip
>
> The "archive" subdir does not exist from either this machine, or the
> lathes machine, I tried both Firefox and git. ??


I didnt use git, I just downloaded mesaflash-master-zip from the above URL
unzipped, and built it (read the README for the PCI lib you need)



>>
> Thanks Peter.
>
> 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
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Peter C. Wallace
On Fri, 11 Jul 2014, Gene Heskett wrote:

> Date: Fri, 11 Jul 2014 14:57:32 -0400
> From: Gene Heskett 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 
> On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
> And Gene did reply:
>> On Fri, 11 Jul 2014, Gene Heskett wrote:
>>> I can do that without a lot of problems I think.
>>>
>>>> to read your current configurations pinout
>>>>
>>>>
>>>> Here's the latest mesaflash source:
>>>>
>>>> https://github.com/micges/mesaflash/archive/master.zip
>>>
>>> IOW Peter, I'll have to rip up the current BOB wiring.  I was hoping
>>> it was a matter of moving the db25 connector on the rear of the
>>> machine.
>>
>> Probably not, one of the existing pinouts should be close wo what you
>> need (thats a good reason to read the .pin files that come with the
>> 5i25.zip file)
>>
>> If no existing pinout is close enough its easy enough for me to make a
>> custom one  (only a few minutes)
>>
>>> I'll print this, and go get it on that box. gunzip works on that .zip
>>> file I'd assume.
>>>
>>> What I will do is reconfigure my BOB to try & match the 5i25 pin
>>> outs. The .hal files won't match when I move the plug, but I'll see
>>> how much schmardter I can get doing it.
>>
>> It surely will not match a parallel port hal file
>> the stepgen and PWM numbers can be made to match however
>
> I could not select a different pwmgen pin, and no stepgen dir outputs were
> shown when I did select one.  All sorts of BLDC stuffs yes, but not
> stepgens.

You will not be able to change PWM pins as this is determined by the FPGA 
configuration (or what pncconf thinks the FPGA configuration is), What I menat 
is that I can easily change the FPGA pinout and where PWM outputs are for 
example, but unless your current FPGA config is one that supported by pncconf 
you will have issues

Why not just start with an example hal file like hm2-stepper.hal?


>
>>> Back later, I promise, unless I get dead or something.
>>>
>>> Thanks Peter.
>>>
>>> Cheers, Gene Heskett
>>>
>>> -
>>> - ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>> Peter Wallace
>> Mesa Electronics
>>
>> (\__/)
>> (='.'=) This is Bunny. Copy and paste bunny into your
>> (")_(") signature to help him gain world domination.
>>
>>
>> ---
>> --- ___
>> 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
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 14:59:51 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > Date: Fri, 11 Jul 2014 14:54:32 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > On Friday 11 July 2014 11:36:20 Peter C. Wallace did opine
> > [...]
> > 
> >> Here's the latest mesaflash source:
> >> 
> >> https://github.com/micges/mesaflash/archive/master.zip
> > 
> > The "archive" subdir does not exist from either this machine, or the
> > lathes machine, I tried both Firefox and git. ??
> 
> I didnt use git, I just downloaded mesaflash-master-zip from the above
> URL unzipped, and built it (read the README for the PCI lib you need)

This time it seems to have worked to this machine, I'll go try it again, 
but I noted that the file saved is mesaflash-master.zip. 

And since the last msg, I may be a bit smarter.  Comparing the .pin file 
with my existing hal file, the obvious diffs are:

That I'll have to convince hal that stepgen1 is the Z axis, which matches 
those 4 pins.

A small shuffling of the encoder input pins.

And of course disable stepgens 2 and 3 because I need those 4 outputs for 
other things.  I see there is a spindle reverse pin but I'm already doing 
that in my hal, so if that pin can be disabled it would be nice.
A spindle enable/brake  plus 3 levels of dynamic braking on the pins the 
stepgen's would use if enabled. PID & PWMgen are not aware that the 
spindle is running backwards as hal sorts all that.

Has to, single quadrant driver. It even synthesizes the stop for a G33.1 
cycle in hal.

So I have to disable the 5i25's spindle dir pin, I need it for my spindle 
dir from hal.

So basically I need the pins that stegen2 & 3 use for the rest of my 
spindle control.  Pin 10 is my probe & home switch input, with hal sorting 
the differences.

Can I assume that stepgen0 is x, and that hal will also use stepgen1 for Z 
if so programmed in hal?

Example hal line to do that?

When I put the card in, nothing in dmesg, but a 4 line output in an lspci 
-v shows up.

05:00.0 DPIO module: Device 2718:5125
Subsystem: Device 2718:5125
Flags: medium devsel, IRQ 10
Memory at e010 (32-bit, non-prefetchable) [size=64K]

pncconf seems unable to handle that stepgen disabling stuff.  Also the 
stepgen scale factors needed seems to elude me.  Seems like I ought not to 
have to do anything if the ini file fetches them. Ditto for the pulse 
timings in ns these drivers need. Someone said 2500, but I've been running 
them somewhat faster than that for a couple years now.

So, its sitting on the shelf, parport cable unplugged, waiting on advice. 
:)

Thanks Peter.

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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 15:04:08 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > Date: Fri, 11 Jul 2014 14:57:32 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
> > 
> > And Gene did reply:
> >> On Fri, 11 Jul 2014, Gene Heskett wrote:
> >>> I can do that without a lot of problems I think.
> >>> 
> >>>> to read your current configurations pinout
> >>>> 
> >>>> 
> >>>> Here's the latest mesaflash source:
> >>>> 
> >>>> https://github.com/micges/mesaflash/archive/master.zip
> >>> 
> >>> IOW Peter, I'll have to rip up the current BOB wiring.  I was
> >>> hoping it was a matter of moving the db25 connector on the rear of
> >>> the machine.
> >> 
> >> Probably not, one of the existing pinouts should be close wo what
> >> you need (thats a good reason to read the .pin files that come with
> >> the 5i25.zip file)
> >> 
> >> If no existing pinout is close enough its easy enough for me to make
> >> a custom one  (only a few minutes)
> >> 
> >>> I'll print this, and go get it on that box. gunzip works on that
> >>> .zip file I'd assume.
> >>> 
> >>> What I will do is reconfigure my BOB to try & match the 5i25 pin
> >>> outs. The .hal files won't match when I move the plug, but I'll see
> >>> how much schmardter I can get doing it.
> >> 
> >> It surely will not match a parallel port hal file
> >> the stepgen and PWM numbers can be made to match however
> > 
> > I could not select a different pwmgen pin, and no stepgen dir outputs
> > were shown when I did select one.  All sorts of BLDC stuffs yes, but
> > not stepgens.
> 
> You will not be able to change PWM pins as this is determined by the
> FPGA configuration (or what pncconf thinks the FPGA configuration is),
> What I menat is that I can easily change the FPGA pinout and where PWM
> outputs are for example, but unless your current FPGA config is one
> that supported by pncconf you will have issues
> 
> Why not just start with an example hal file like hm2-stepper.hal?

Now, why the heck didn't I think of that?  (I know the answer, don't rub 
it in). It will show me syntax etc too.

Thanks Peter.

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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Chris Morley


> From: ghesk...@wdtv.com
> To: emc-users@lists.sourceforge.net
> Date: Fri, 11 Jul 2014 15:58:31 -0400
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 

> 
> pncconf seems unable to handle that stepgen disabling stuff.  Also the 
> stepgen scale factors needed seems to elude me.  Seems like I ought not to 
> have to do anything if the ini file fetches them. Ditto for the pulse 
> timings in ns these drivers need. Someone said 2500, but I've been running 
> them somewhat faster than that for a couple years now.
> 
> So, its sitting on the shelf, parport cable unplugged, waiting on advice. 
> :)
> 
> Thanks Peter.
> 
> Cheers, Gene Heskett
> -- 

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.

That being said PNCconf can only disable stepgens in a specific order (highest 
to lowest)
If you need the stepgen in a specific location that doesn't follow this 
convention,
then you need custom firmware. (as Peter has told you)
This is a limitation of hostmot2.

The numbering system displayed is the component number not the physical pin 
number.
luckily since you don't use a daughter board it is easy to figure out.
The top left is physical pin 1, under it pin 2 etc.
top right is pin 13, down pin 14 etc

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.

Chris M
  
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 15:04:08 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > Date: Fri, 11 Jul 2014 14:57:32 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
> > 
> > And Gene did reply:
> >> On Fri, 11 Jul 2014, Gene Heskett wrote:
> >>> I can do that without a lot of problems I think.
> >>> 
> >>>> to read your current configurations pinout
> >>>> 
> >>>> 
> >>>> Here's the latest mesaflash source:
> >>>> 
> >>>> https://github.com/micges/mesaflash/archive/master.zip
> >>> 
> >>> IOW Peter, I'll have to rip up the current BOB wiring.  I was
> >>> hoping it was a matter of moving the db25 connector on the rear of
> >>> the machine.
> >> 
> >> Probably not, one of the existing pinouts should be close wo what
> >> you need (thats a good reason to read the .pin files that come with
> >> the 5i25.zip file)
> >> 
> >> If no existing pinout is close enough its easy enough for me to make
> >> a custom one  (only a few minutes)
> >> 
> >>> I'll print this, and go get it on that box. gunzip works on that
> >>> .zip file I'd assume.
> >>> 
> >>> What I will do is reconfigure my BOB to try & match the 5i25 pin
> >>> outs. The .hal files won't match when I move the plug, but I'll see
> >>> how much schmardter I can get doing it.
> >> 
> >> It surely will not match a parallel port hal file
> >> the stepgen and PWM numbers can be made to match however
> > 
> > I could not select a different pwmgen pin, and no stepgen dir outputs
> > were shown when I did select one.  All sorts of BLDC stuffs yes, but
> > not stepgens.
> 
> You will not be able to change PWM pins as this is determined by the
> FPGA configuration (or what pncconf thinks the FPGA configuration is),
> What I menat is that I can easily change the FPGA pinout and where PWM
> outputs are for example, but unless your current FPGA config is one
> that supported by pncconf you will have issues
> 
> Why not just start with an example hal file like hm2-stepper.hal?

That will teach me the syntax.

Back to pinouts, I got mesaflash to read it, and I find that what I have 
wired at the BOB up is amazingly close.  If I can disable stepgens 4-7, 
and move the encoder feedback by one pin down on Phase A, 12 to 11, and 
Phase B from pin 15 to 12, that should take care of the encoder.

The motors run, but backwards, slow (99mm/minute) and call a surveyor for 
accels.  I suspect because I set mm in this, but the ini is in inches for 
those vars.

And they stop (no errors reported) for what should be a continuous jog 
after 3 or 5 seconds, needing a release and fresh push on the arrow keys.

I need to hit pin 17 with a spindle enable, lack of that keeps the spindle 
quiet atm.  So obviously that needs to be an inverted out, this BOB 
doesn't take an in on pin 17.

Getting rid of the last 2 stepgens on P3, gives me enough pins to do the 
rest in hal (I think)

I've no idea how pwm knows a reverse, (look at the hal) what I do in hal 
is 100% fwd via some abs modules, and the reverse is done entirely in 
relays as its a single quadrant driver.  IT cannot go straight from fwd to 
reverse, so I have to manufacture a stop when the fwd/rev line changes 
state.  Part of the reason my hal file is very close to 300 LOC.

If the pwm "dir" on pin 16 can be free'd up, leaving that pin for my hal 
to handle, then my hal's chicken waving can do it in the proper sequence 
to make the G33.1 work.

Home & probe are input on pin 10 inverted, currently free.

Some limited progress at understanding, no edits have been made, yet.

Thanks for your patience Peter.

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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Friday 11 July 2014 21:46:47 Chris Morley did opine
And Gene did reply:
> > From: ghesk...@wdtv.com
> > To: emc-users@lists.sourceforge.net
> > Date: Fri, 11 Jul 2014 15:58:31 -0400
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > 
> > 
> > pncconf seems unable to handle that stepgen disabling stuff.  Also
> > the stepgen scale factors needed seems to elude me.  Seems like I
> > ought not to have to do anything if the ini file fetches them. Ditto
> > for the pulse timings in ns these drivers need. Someone said 2500,
> > but I've been running them somewhat faster than that for a couple
> > years now.
> > 
> > So, its sitting on the shelf, parport cable unplugged, waiting on
> > advice.
> > 
> > :)
> > 
> > Thanks Peter.
> > 
> > Cheers, Gene Heskett
> 
> 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?

> That being said PNCconf can only disable stepgens in a specific order
> (highest to lowest) If you need the stepgen in a specific location
> that doesn't follow this convention, then you need custom firmware.
> (as Peter has told you)
> This is a limitation of hostmot2.

I had assumed as much.
 
> The numbering system displayed is the component number not the physical
> pin number. luckily since you don't use a daughter board it is easy to
> figure out. The top left is physical pin 1, under it pin 2 etc.
> top right is pin 13, down pin 14 etc
> 
> 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. :)

Also, due to a clash with the 5i25 pwmgens, I may have to disable those 
and use the slower software version.  The pwn rev signal on pin 16 
apparently is part of using the 5i25 pwm, and in order to run the G33.1, 
I'll have to forgo the 5i25's pwm's and handle that reverse in my longer 
hal file as it synths a stop when that line changes state, zeroing the pid 
& pwm inputs until it has essentially stopped, then initiates the ramp up 
in the other direction from zero speed.  Currently it runs a G33.1 in a 
half turn increment peck cycle just fine.

The main reason for putting the 5i25 in is the noise in the velocity 
output of the encoder, caused by the relatively low rate of sampling the 
base-thread does.  At the lower speeds, its occasionally slamming the 
gears in the headstock when not loaded while trying to hold a steady 100 
or 200 rpm.

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.

Once the 5i25 has been setup by disabling what I don't need, does this 
hold over a powerdown?

Thanks Chris.

> 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


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Peter C. Wallace
On Fri, 11 Jul 2014, Gene Heskett wrote:

> Date: Fri, 11 Jul 2014 22:12:23 -0400
> From: Gene Heskett 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Where to get latest PncConf?
> 
> On Friday 11 July 2014 15:04:08 Peter C. Wallace did opine
> And Gene did reply:
>> On Fri, 11 Jul 2014, Gene Heskett wrote:
>>> Date: Fri, 11 Jul 2014 14:57:32 -0400
>>> From: Gene Heskett 
>>> Reply-To: "Enhanced Machine Controller (EMC)"
>>>
>>> 
>>>
>>> To: emc-users@lists.sourceforge.net
>>> Subject: Re: [Emc-users] Where to get latest PncConf?
>>>
>>> On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
>>>
>>> And Gene did reply:
>>>> On Fri, 11 Jul 2014, Gene Heskett wrote:
>>>>> I can do that without a lot of problems I think.
>>>>>
>>>>>> to read your current configurations pinout
>>>>>>
>>>>>>
>>>>>> Here's the latest mesaflash source:
>>>>>>
>>>>>> https://github.com/micges/mesaflash/archive/master.zip
>>>>>
>>>>> IOW Peter, I'll have to rip up the current BOB wiring.  I was
>>>>> hoping it was a matter of moving the db25 connector on the rear of
>>>>> the machine.
>>>>
>>>> Probably not, one of the existing pinouts should be close wo what
>>>> you need (thats a good reason to read the .pin files that come with
>>>> the 5i25.zip file)
>>>>
>>>> If no existing pinout is close enough its easy enough for me to make
>>>> a custom one  (only a few minutes)
>>>>
>>>>> I'll print this, and go get it on that box. gunzip works on that
>>>>> .zip file I'd assume.
>>>>>
>>>>> What I will do is reconfigure my BOB to try & match the 5i25 pin
>>>>> outs. The .hal files won't match when I move the plug, but I'll see
>>>>> how much schmardter I can get doing it.
>>>>
>>>> It surely will not match a parallel port hal file
>>>> the stepgen and PWM numbers can be made to match however
>>>
>>> I could not select a different pwmgen pin, and no stepgen dir outputs
>>> were shown when I did select one.  All sorts of BLDC stuffs yes, but
>>> not stepgens.
>>
>> You will not be able to change PWM pins as this is determined by the
>> FPGA configuration (or what pncconf thinks the FPGA configuration is),
>> What I menat is that I can easily change the FPGA pinout and where PWM
>> outputs are for example, but unless your current FPGA config is one
>> that supported by pncconf you will have issues
>>
>> Why not just start with an example hal file like hm2-stepper.hal?
>
> That will teach me the syntax.
>
> Back to pinouts, I got mesaflash to read it, and I find that what I have
> wired at the BOB up is amazingly close.  If I can disable stepgens 4-7,
> and move the encoder feedback by one pin down on Phase A, 12 to 11, and
> Phase B from pin 15 to 12, that should take care of the encoder.
>
> The motors run, but backwards, slow (99mm/minute) and call a surveyor for
> accels.  I suspect because I set mm in this, but the ini is in inches for
> those vars.
>
> And they stop (no errors reported) for what should be a continuous jog
> after 3 or 5 seconds, needing a release and fresh push on the arrow keys.
>
> I need to hit pin 17 with a spindle enable, lack of that keeps the spindle
> quiet atm.  So obviously that needs to be an inverted out, this BOB
> doesn't take an in on pin 17.
>
> Getting rid of the last 2 stepgens on P3, gives me enough pins to do the
> rest in hal (I think)
>
> I've no idea how pwm knows a reverse, (look at the hal) what I do in hal
> is 100% fwd via some abs modules, and the reverse is done entirely in
> relays as its a single quadrant driver.  IT cannot go straight from fwd to
> reverse, so I have to manufacture a stop when the fwd/rev line changes
> state.  Part of the reason my hal file is very close to 300 LOC.
>
> If the pwm "dir" on pin 16 can be free'd up, leaving that pin for my hal
> to handle, then my hal's chicken waving can do it in the proper sequence
> to make the G33.1 work.
>
> Home & probe are input on pin 10 inverted, currently free.
>
> Some limited progress at understanding, no edits have been made, yet.
>
> 

Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Gene Heskett
On Saturday 12 July 2014 00:20:30 Peter C. Wallace did opine
And Gene did reply:
> On Fri, 11 Jul 2014, Gene Heskett wrote:
> > Date: Fri, 11 Jul 2014 22:12:23 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Where to get latest PncConf?
> > 
> > On Friday 11 July 2014 15:04:08 Peter C. Wallace did opine
> > 
> > And Gene did reply:
> >> On Fri, 11 Jul 2014, Gene Heskett wrote:
> >>> Date: Fri, 11 Jul 2014 14:57:32 -0400
> >>> From: Gene Heskett 
> >>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>> 
> >>> 
> >>> 
> >>> To: emc-users@lists.sourceforge.net
> >>> Subject: Re: [Emc-users] Where to get latest PncConf?
> >>> 
> >>> On Friday 11 July 2014 14:45:45 Peter C. Wallace did opine
> >>> 
> >>> And Gene did reply:
> >>>> On Fri, 11 Jul 2014, Gene Heskett wrote:
> >>>>> I can do that without a lot of problems I think.
> >>>>> 
> >>>>>> to read your current configurations pinout
> >>>>>> 
> >>>>>> 
> >>>>>> Here's the latest mesaflash source:
> >>>>>> 
> >>>>>> https://github.com/micges/mesaflash/archive/master.zip
> >>>>> 
> >>>>> IOW Peter, I'll have to rip up the current BOB wiring.  I was
> >>>>> hoping it was a matter of moving the db25 connector on the rear
> >>>>> of the machine.
> >>>> 
> >>>> Probably not, one of the existing pinouts should be close wo what
> >>>> you need (thats a good reason to read the .pin files that come
> >>>> with the 5i25.zip file)
> >>>> 
> >>>> If no existing pinout is close enough its easy enough for me to
> >>>> make a custom one  (only a few minutes)
> >>>> 
> >>>>> I'll print this, and go get it on that box. gunzip works on that
> >>>>> .zip file I'd assume.
> >>>>> 
> >>>>> What I will do is reconfigure my BOB to try & match the 5i25 pin
> >>>>> outs. The .hal files won't match when I move the plug, but I'll
> >>>>> see how much schmardter I can get doing it.
> >>>> 
> >>>> It surely will not match a parallel port hal file
> >>>> the stepgen and PWM numbers can be made to match however
> >>> 
> >>> I could not select a different pwmgen pin, and no stepgen dir
> >>> outputs were shown when I did select one.  All sorts of BLDC
> >>> stuffs yes, but not stepgens.
> >> 
> >> You will not be able to change PWM pins as this is determined by the
> >> FPGA configuration (or what pncconf thinks the FPGA configuration
> >> is), What I menat is that I can easily change the FPGA pinout and
> >> where PWM outputs are for example, but unless your current FPGA
> >> config is one that supported by pncconf you will have issues
> >> 
> >> Why not just start with an example hal file like hm2-stepper.hal?
> > 
> > That will teach me the syntax.
> > 
> > Back to pinouts, I got mesaflash to read it, and I find that what I
> > have wired at the BOB up is amazingly close.  If I can disable
> > stepgens 4-7, and move the encoder feedback by one pin down on Phase
> > A, 12 to 11, and Phase B from pin 15 to 12, that should take care of
> > the encoder.
> > 
> > The motors run, but backwards, slow (99mm/minute) and call a surveyor
> > for accels.  I suspect because I set mm in this, but the ini is in
> > inches for those vars.
> > 
> > And they stop (no errors reported) for what should be a continuous
> > jog after 3 or 5 seconds, needing a release and fresh push on the
> > arrow keys.
> > 
> > I need to hit pin 17 with a spindle enable, lack of that keeps the
> > spindle quiet atm.  So obviously that needs to be an inverted out,
> > this BOB doesn't take an in on pin 17.
> > 
> > Getting rid of the last 2 stepgens on P3, gives me enough pins to do
> > the rest in hal (I think)
> > 
> > I've no idea how pwm knows a reverse, (look at the hal) what I do in
> > hal is 100% fwd via some abs modules, and the reverse is done
> > entirely in relays as its a single quadrant driver.  IT cannot 

Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Philipp Burch
Hi Gene!

On 12.07.2014 04:12, Gene Heskett wrote:
> ... 
> And they stop (no errors reported) for what should be a continuous jog 
> after 3 or 5 seconds, needing a release and fresh push on the arrow keys.
> 

...

I know this effect, it happens when the machine is not homed. When you
jog in the unhomed state, the continuous jogging stops after travelling
the maximum distance as given by the min/max limits in the ini file.
Say, you have your axis (joint, actually) set to minimum 0mm and maximum
300mm, then jogging will stop after travelling 300mm in one run. You can
then press the key again to get some new 300mm of travel. If your scale
is incorrect, this can easily generate the effect you described, as the
machine then "thinks" that it's travelled the whole distance, while the
physical distance may be much shorter.

Best regards,
Philipp



signature.asc
Description: OpenPGP digital signature
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-11 Thread Chris Morley



> > 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}


> > 
> > 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 don't understand what you mean by getting the info from the HAL file.

> 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.

> 
> > Chris M
> > 

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


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Gene Heskett
On Saturday 12 July 2014 02:16:05 Philipp Burch did opine
And Gene did reply:
> Hi Gene!
> 
> On 12.07.2014 04:12, Gene Heskett wrote:
> > ...
> > And they stop (no errors reported) for what should be a continuous
> > jog after 3 or 5 seconds, needing a release and fresh push on the
> > arrow keys.
> 
> ...
> 
> I know this effect, it happens when the machine is not homed. When you
> jog in the unhomed state, the continuous jogging stops after travelling
> the maximum distance as given by the min/max limits in the ini file.
> Say, you have your axis (joint, actually) set to minimum 0mm and
> maximum 300mm, then jogging will stop after travelling 300mm in one
> run. You can then press the key again to get some new 300mm of travel.
> If your scale is incorrect, this can easily generate the effect you
> described, as the machine then "thinks" that it's travelled the whole
> distance, while the physical distance may be much shorter.
> 
> Best regards,
> Philipp

I believe you just explained it.  And I can't home using the present BOB 
wiring, home switches are on no pin because I'll have to edit that into 
the .hal file which I have not done yet. PncConf does not know about home 
switches yet, or at least I've not found them in the menu's.

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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Chris Morley

> I believe you just explained it.  And I can't home using the present BOB 
> wiring, home switches are on no pin because I'll have to edit that into 
> the .hal file which I have not done yet. PncConf does not know about home 
> switches yet, or at least I've not found them in the menu's.
> 
> Cheers, Gene Heskett
> -- 

look at the GPIOI - limits and Homing  or shared are all there.

Chris M
  
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Gene Heskett
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:
4683if stepdrive:
4684# stepmotor scale

so we aren't looking at the same code
 
> > > 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.

> 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?

> > 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?
 
> > > Chris M

Thanks Chris.

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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Gene Heskett
On Saturday 12 July 2014 03:26:23 Chris Morley did opine
And Gene did reply:
> > I believe you just explained it.  And I can't home using the present
> > BOB wiring, home switches are on no pin because I'll have to edit
> > that into the .hal file which I have not done yet. PncConf does not
> > know about home switches yet, or at least I've not found them in the
> > menu's.
> > 
> > Cheers, Gene Heskett
> 
> look at the GPIOI - limits and Homing  or shared are all there.
> 
> Chris M

Ok, but that GPIOI doesn't ring any bells. The pncconf on the lathes box 
is the older one, takes around a minute before it even throws up the 
little loading advisory.  And nearly 2 minutes to open its initial screen.

Maybe this could be pushed to the next 2.5.4 release so I am synched up?

Thanks, going back to bed now as its 4am.

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 
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


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Chris Morley


> 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:
> 4683if 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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where to get latest PncConf?

2014-07-12 Thread Gene Heskett
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:
> > 4683if 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 tracke