Re: [Emc-users] bad 5i25? Fixed I think

2018-09-20 Thread Gene Heskett
On Thursday 20 September 2018 17:55:50 hubert wrote:

> On 09/20/2018 09:49 AM, Gene Heskett wrote:
> > On Wednesday 19 September 2018 21:13:55 Gene Heskett wrote:
> >> On Wednesday 19 September 2018 17:44:15 andy pugh wrote:
> >>> On Wed, 19 Sep 2018 at 21:40, Gene Heskett 
> >>
> >> wrote:
>  My little lathe is doing funny things with the z axis.
>  The halmeter menu cannot find the joint.1.motor-pos-cmd output to
>  monitor it.
> >>>
> >>> That can't possibly be the fault of the 5i25.
> >>>
> >>> In fact, even without a 5i25 that pin should exist.
> >>>
> >>> If num_joints was set to 1 then you wouldn't have that pin.
> >>> Otherwise I suspect that you are looking in the wrong place.
> >>> Signals rather then Pins tab?
> >>
> >> No, I was looking in the pins tab, but was looking for
> >> joint.1.motor.pos.cmd, which does not seem to exist.
> >>
> >> Because theres no motor power though, I can look from here. And
> >> joint.1.motor-pos-cmd does exist now...
> >>
> >> But neither joint.0 or joint.1 motor-pos-cmd existed at 16:50 this
> >> afternoon, with power applied to the BoB and motors.
> >>
> >> Me goes wandering off in the general direction of the fridge for my
> >> nightly near beer.
> >
> > Never did get it, went to bed instead, back killing me.
> >
> > (don't get old, its no fun)
>
> Gene it might not be fun but it sured beats the alternative.
>     At got up Tues to see the Orthopedic Dr and about a knee brace
> ended up swinging by the emergency room on the way home and not making
> it back to the house until late today Thursday.

Ouch.

> It seems a ghost from 
> a twenty-five year old surgery decided to take another whack at me. 

I guess I'm lucky, I've only had maybe 15 stitches in my whole nearly 84 
years of life, all but 4 in fingertips that got someplace they shouldn't 
have. The other 4 were getting the babymakers disconnected 50 years 
ago..

> You know, it hurt just as bad now as it had the first time.  We
> keep getting older but every  fun day is one more than we had before.

This is True.

But I do have a knee that if it had acted up 50 years ago, would have  
been replaced 5 times by now. But I just keep a cane handy when I know 
I'm going farther than from one end of the house to the other. If I baby 
it, it might yet last as long as I. :)

> > Got up this morning and I believe I have fixed it. I first went thru
> > the x stuff, combining net names etc so the signal paths were more
> > obvious. Without bob or motor power, x still worked.  Nuked the
> > whole Z stanza, and copy/pasted the X stuff to a Z stanza, then
> > edited where needed to change x to z and joints and stepgens to 1.
> > Also temporarily made it home individually.  Even passes the
> > two_pass now which it didn't before. So theoreticly, all I need to
> > do is calibrate the scale, and soft limits, and TLM should be usable
> > again.
> >
> > But before I set limits, which are stated as being in machine units,
> > is this the figure from joint.n.position-cmd when the machine is
> > driven to that particular position?
> > [...]
>
I got that sorted too. See another post I made earlier. Now all I have to 
do is wrestle it back into its normal resting place in the shop 
building. Tomorrow if my back wakes up without too much complaining.  
The toolbox TLM is sitting on, and the toolbox are between 250 and 300 
lbs. Either that, or find a place on the motor power box for another BoB 
and wire up P2 on the 5i24 so I can have individual home switches.

Needed some script pills from Wallies, and looked for batteries for the 
laser that looks like a 38 cartridge. Oddball #393's, bought all wally 
had at $7 each. All they had was 4. I guess I'll have to find them 
online. Found a small ND10 at TSC to put in front of the camera. But 
dinner is in a skillet, brussel sprouts in the microwave, so not much 
more will be done yet tonight.

Take care Hubert.

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


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


Re: [Emc-users] bad 5i25? Fixed I think

2018-09-20 Thread hubert

On 09/20/2018 09:49 AM, Gene Heskett wrote:

On Wednesday 19 September 2018 21:13:55 Gene Heskett wrote:


On Wednesday 19 September 2018 17:44:15 andy pugh wrote:

On Wed, 19 Sep 2018 at 21:40, Gene Heskett 

wrote:

My little lathe is doing funny things with the z axis.
The halmeter menu cannot find the joint.1.motor-pos-cmd output to
monitor it.

That can't possibly be the fault of the 5i25.

In fact, even without a 5i25 that pin should exist.

If num_joints was set to 1 then you wouldn't have that pin.
Otherwise I suspect that you are looking in the wrong place. Signals
rather then Pins tab?

No, I was looking in the pins tab, but was looking for
joint.1.motor.pos.cmd, which does not seem to exist.

Because theres no motor power though, I can look from here. And
joint.1.motor-pos-cmd does exist now...

But neither joint.0 or joint.1 motor-pos-cmd existed at 16:50 this
afternoon, with power applied to the BoB and motors.

Me goes wandering off in the general direction of the fridge for my
nightly near beer.


Never did get it, went to bed instead, back killing me.

(don't get old, its no fun)

Gene it might not be fun but it sured beats the alternative.
   At got up Tues to see the Orthopedic Dr and about a knee brace ended 
up swinging by the emergency room on the way home and not making it back 
to the house until late today Thursday.  It seems a ghost from a 
twenty-five year old surgery decided to take another whack at me.  You 
know, it hurt just as bad now as it had the first time.  We

keep getting older but every  fun day is one more than we had before.

Got up this morning and I believe I have fixed it. I first went thru the
x stuff, combining net names etc so the signal paths were more obvious.
Without bob or motor power, x still worked.  Nuked the whole Z stanza,
and copy/pasted the X stuff to a Z stanza, then edited where needed to
change x to z and joints and stepgens to 1. Also temporarily made it
home individually.  Even passes the two_pass now which it didn't before.
So theoreticly, all I need to do is calibrate the scale, and soft
limits, and TLM should be usable again.

But before I set limits, which are stated as being in machine units,
is this the figure from joint.n.position-cmd when the machine is driven
to that particular position?
[...]





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


Re: [Emc-users] bad 5i25? Fixed I think

2018-09-20 Thread Gene Heskett
On Thursday 20 September 2018 10:49:33 Gene Heskett wrote:

> On Wednesday 19 September 2018 21:13:55 Gene Heskett wrote:
> > On Wednesday 19 September 2018 17:44:15 andy pugh wrote:
> > > On Wed, 19 Sep 2018 at 21:40, Gene Heskett 
> >
> > wrote:
> > > > My little lathe is doing funny things with the z axis.
> > > > The halmeter menu cannot find the joint.1.motor-pos-cmd output
> > > > to monitor it.
> > >
> > > That can't possibly be the fault of the 5i25.
> > >
> > > In fact, even without a 5i25 that pin should exist.
> > >
> > > If num_joints was set to 1 then you wouldn't have that pin.
> > > Otherwise I suspect that you are looking in the wrong place.
> > > Signals rather then Pins tab?
> >
> > No, I was looking in the pins tab, but was looking for
> > joint.1.motor.pos.cmd, which does not seem to exist.
> >
> > Because theres no motor power though, I can look from here. And
> > joint.1.motor-pos-cmd does exist now...
> >
> > But neither joint.0 or joint.1 motor-pos-cmd existed at 16:50 this
> > afternoon, with power applied to the BoB and motors.
> >
> > Me goes wandering off in the general direction of the fridge for my
> > nightly near beer.
>
> Never did get it, went to bed instead, back killing me.
>
> (don't get old, its no fun)
>
> Got up this morning and I believe I have fixed it. I first went thru
> the x stuff, combining net names etc so the signal paths were more
> obvious. Without bob or motor power, x still worked.  Nuked the whole
> Z stanza, and copy/pasted the X stuff to a Z stanza, then edited where
> needed to change x to z and joints and stepgens to 1. Also temporarily
> made it home individually.  Even passes the two_pass now which it
> didn't before. So theoreticly, all I need to do is calibrate the
> scale, and soft limits, and TLM should be usable again.
>
> But before I set limits, which are stated as being in machine units,
> is this the figure from joint.n.position-cmd when the machine is
> driven to that particular position?
> [...]
The answer is a resounding no! Looking around I did find where to source 
that data.

That problem was easy enough to solve once I had applied a 3rd cuppa, the 
key is in the DRO's display modes. Put it in actual, machine mode, run 
it to where you want the soft limits, write down what the DRO says in 
RAD for x, and whatever it displays for Z, after of course homing the 
machine. Put those in the 2 places for each per axis n and joint n in 
the ini file. Restart LCNC and check. Works, but I've litterally a 
micron between the back of the crossfeed and the face of the x home 
switch and an all done, very solid mechanical stop, I had to move the 
limit out .05mm at a time to stop the limit disable while homing X.

But I hate to admit it, but when I copy/pasted the new Z section in my 
hal file, one paragraph of "get it from the ini" stuffs didn't get its 
0's rewritten with 1's. I spent over an hour running the z scale up 
about 20% at a time trying to make a g1 f50 Z-25.4 give me more 
than .776" of motion.

Anyway, I think TLM, subject to some possible following error tolerance 
adjustments, is ready to go again.

===

Now I need to see if I can remove the camera lens, and find a chunk of 
ND10 to cover it, and find out if I have a camera with a big enough 
image chip in it to make this 38 cal laser thing actually workable.

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


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


Re: [Emc-users] bad 5i25? Fixed I think

2018-09-20 Thread Gene Heskett
On Wednesday 19 September 2018 21:13:55 Gene Heskett wrote:

> On Wednesday 19 September 2018 17:44:15 andy pugh wrote:
> > On Wed, 19 Sep 2018 at 21:40, Gene Heskett 
>
> wrote:
> > > My little lathe is doing funny things with the z axis.
> > > The halmeter menu cannot find the joint.1.motor-pos-cmd output to
> > > monitor it.
> >
> > That can't possibly be the fault of the 5i25.
> >
> > In fact, even without a 5i25 that pin should exist.
> >
> > If num_joints was set to 1 then you wouldn't have that pin.
> > Otherwise I suspect that you are looking in the wrong place. Signals
> > rather then Pins tab?
>
> No, I was looking in the pins tab, but was looking for
> joint.1.motor.pos.cmd, which does not seem to exist.
>
> Because theres no motor power though, I can look from here. And
> joint.1.motor-pos-cmd does exist now...
>
> But neither joint.0 or joint.1 motor-pos-cmd existed at 16:50 this
> afternoon, with power applied to the BoB and motors.
>
> Me goes wandering off in the general direction of the fridge for my
> nightly near beer.
>
Never did get it, went to bed instead, back killing me.

(don't get old, its no fun) 

Got up this morning and I believe I have fixed it. I first went thru the 
x stuff, combining net names etc so the signal paths were more obvious. 
Without bob or motor power, x still worked.  Nuked the whole Z stanza, 
and copy/pasted the X stuff to a Z stanza, then edited where needed to 
change x to z and joints and stepgens to 1. Also temporarily made it 
home individually.  Even passes the two_pass now which it didn't before. 
So theoreticly, all I need to do is calibrate the scale, and soft 
limits, and TLM should be usable again.

But before I set limits, which are stated as being in machine units,
is this the figure from joint.n.position-cmd when the machine is driven 
to that particular position?
[...]

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


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


Re: [Emc-users] bad 5i25?

2018-09-19 Thread Gene Heskett
On Wednesday 19 September 2018 17:44:15 andy pugh wrote:

> On Wed, 19 Sep 2018 at 21:40, Gene Heskett  
wrote:
> > My little lathe is doing funny things with the z axis.
> > The halmeter menu cannot find the joint.1.motor-pos-cmd output to
> > monitor it.
>
> That can't possibly be the fault of the 5i25.
>
> In fact, even without a 5i25 that pin should exist.
>
> If num_joints was set to 1 then you wouldn't have that pin. Otherwise
> I suspect that you are looking in the wrong place. Signals rather then
> Pins tab?

No, I was looking in the pins tab, but was looking for 
joint.1.motor.pos.cmd, which does not seem to exist.

Because theres no motor power though, I can look from here. And 
joint.1.motor-pos-cmd does exist now...

But neither joint.0 or joint.1 motor-pos-cmd existed at 16:50 this 
afternoon, with power applied to the BoB and motors.

Me goes wandering off in the general direction of the fridge for my 
nightly near beer.

=

I finally received those 2 laser cartridges today, and must say they are 
gawdawfull bright, but the beam is a good 2 to 3mm wide just an inch or 
so from it, and nowhere near a round circle. It does appear to be well 
colimated as its not a lot bigger on the wall 7 feet away. With an ND10 
welding glass in front of todays camera chips after the lens itself has 
been removed, the spot may be bigger than the imaging chip! Time to 
clear a spot behind the lathe for a table and monitor.  And go trolling 
the likes of tractor supply for a small ND-9 or ND-10 welding mask 
filter. Let the fun begin!

Thanks Andy.

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


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


Re: [Emc-users] bad 5i25?

2018-09-19 Thread andy pugh
On Wed, 19 Sep 2018 at 21:40, Gene Heskett  wrote:

> My little lathe is doing funny things with the z axis.
> The halmeter menu cannot find the joint.1.motor-pos-cmd output to monitor it.

That can't possibly be the fault of the 5i25.

In fact, even without a 5i25 that pin should exist.

If num_joints was set to 1 then you wouldn't have that pin. Otherwise
I suspect that you are looking in the wrong place. Signals rather then
Pins tab?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916


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


Re: [Emc-users] bad 5i25?

2018-09-19 Thread Peter C. Wallace

On Wed, 19 Sep 2018, Gene Heskett wrote:


Date: Wed, 19 Sep 2018 17:17:30 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] bad 5i25?

On Wednesday 19 September 2018 16:49:59 Peter C. Wallace wrote:


On Wed, 19 Sep 2018, Gene Heskett wrote:

My little lathe is doing funny things with the z axis.
The halmeter menu cannot find the joint.1.motor-pos-cmd output to
monitor it.

Since is the 1st 5i25 I've put in service quite a few years back,
and it is supposed to have a 5i25_prob_rfx2.bit file in it, same as
in my G0704 mill, I thought I'd verify it, but didn't get too far.

This command line:

sudo mesaflash --device 5i25 --verify 5i25_prob_rfx2.bit
says boot ok, then gets to 0x1000EA where it expects to read an
0x10, but gets an 0x00 and exits with the error.


You cannot in general verify stored bitfiles against current bitfiles
as even a re-compile will change the bitfile contents so verify will
fail.


Do I have a forgetfull card?  Or is it actually programmed to some
other bitfile? This, being the original card I bought, was
preprogrammed when I ordered it all those years ago.

How should I proceed?


No need to do anything really, a card cannot forget even a single bit
or it will not load the firmware from the flash chip (it will have a
CRC error and fallback to the alternate configuration which 1. Will
blink the red INIT light, 2. Is a justio config that has nothing but
GPIO)


In that event, where are the missing pins?


Which missing pin? you only listed a missing pin from motion, not hardware



Z moves normally when the key is held down. Then runs on for an
additional distance in the same direction.  A 6.35mm move, moves the
6.35mm's, then drops to about .001mm velocity for an additional 9 thou
at which point the pos-cmd and motor-pos-fb finally match.  And its
cumulative, ask it to move an inch (25.4mm's) at 500mm/min and it moves
at that speed, then virtually stops, taking around a minute to arrive at
matching counts, which can be an additional move of more than 20 thou at
the end of the high speed move. So I have no instant control and that
kills homing. The esc and f2 keys are ignored during this ultra slow
final move.



Sounds like a stepgen setup/tuning issue



I'll do some more checking but that would be a lot easier to see if I
could turn off geany's color as most of the vars and pin names are
rendered in red.  And thats making my cataract problems worse. Black
text on a white screen is ok, red on white not so much. If I can find
someone to drive me on Oct 17, I get the first eye fixed, 2 weeks later
the other one.

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>


___
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] bad 5i25?

2018-09-19 Thread Gene Heskett
On Wednesday 19 September 2018 16:49:59 Peter C. Wallace wrote:

> On Wed, 19 Sep 2018, Gene Heskett wrote:
> > My little lathe is doing funny things with the z axis.
> > The halmeter menu cannot find the joint.1.motor-pos-cmd output to
> > monitor it.
> >
> > Since is the 1st 5i25 I've put in service quite a few years back,
> > and it is supposed to have a 5i25_prob_rfx2.bit file in it, same as
> > in my G0704 mill, I thought I'd verify it, but didn't get too far.
> >
> > This command line:
> >
> > sudo mesaflash --device 5i25 --verify 5i25_prob_rfx2.bit
> > says boot ok, then gets to 0x1000EA where it expects to read an
> > 0x10, but gets an 0x00 and exits with the error.
>
> You cannot in general verify stored bitfiles against current bitfiles
> as even a re-compile will change the bitfile contents so verify will
> fail.
>
> > Do I have a forgetfull card?  Or is it actually programmed to some
> > other bitfile? This, being the original card I bought, was
> > preprogrammed when I ordered it all those years ago.
> >
> > How should I proceed?
>
> No need to do anything really, a card cannot forget even a single bit
> or it will not load the firmware from the flash chip (it will have a
> CRC error and fallback to the alternate configuration which 1. Will
> blink the red INIT light, 2. Is a justio config that has nothing but
> GPIO)
>
In that event, where are the missing pins?

Z moves normally when the key is held down. Then runs on for an 
additional distance in the same direction.  A 6.35mm move, moves the 
6.35mm's, then drops to about .001mm velocity for an additional 9 thou 
at which point the pos-cmd and motor-pos-fb finally match.  And its 
cumulative, ask it to move an inch (25.4mm's) at 500mm/min and it moves 
at that speed, then virtually stops, taking around a minute to arrive at 
matching counts, which can be an additional move of more than 20 thou at 
the end of the high speed move. So I have no instant control and that 
kills homing. The esc and f2 keys are ignored during this ultra slow 
final move. 

I'll do some more checking but that would be a lot easier to see if I 
could turn off geany's color as most of the vars and pin names are 
rendered in red.  And thats making my cataract problems worse. Black 
text on a white screen is ok, red on white not so much. If I can find 
someone to drive me on Oct 17, I get the first eye fixed, 2 weeks later 
the other one.

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 


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


Re: [Emc-users] bad 5i25?

2018-09-19 Thread Peter C. Wallace

On Wed, 19 Sep 2018, Gene Heskett wrote:

My little lathe is doing funny things with the z axis.
The halmeter menu cannot find the joint.1.motor-pos-cmd output to monitor it.

Since is the 1st 5i25 I've put in service quite a few years back, and it is 
supposed to have a
5i25_prob_rfx2.bit file in it, same as in my G0704 mill, I thought I'd verify 
it, but didn't get too
far.

This command line:

sudo mesaflash --device 5i25 --verify 5i25_prob_rfx2.bit
says boot ok, then gets to 0x1000EA where it expects to read an 0x10, but gets 
an 0x00 and exits with
the error.


You cannot in general verify stored bitfiles against current bitfiles as even 
a re-compile will change the bitfile contents so verify will fail.





Do I have a forgetfull card?  Or is it actually programmed to some other 
bitfile?
This, being the original card I bought, was preprogrammed when I ordered it all 
those years ago.

How should I proceed?



No need to do anything really, a card cannot forget even a single bit or it 
will not load the firmware from the flash chip (it will have a CRC error and 
fallback to the alternate configuration which 1. Will blink the red INIT 
light, 2. Is a justio config that has nothing but GPIO)




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


___
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