Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
The rotary encoder is supplying it's own power (+5v) as it's the encoder  
relay/output from an amplifier and not directly from the rotary encoder.  
The linear encoder is using the inbuilt 7i77 5v. Common ground, at least I  
assume all the encoder inputs have a common ground... So I guess jumpering  
the index over shouldn't be a big deal.


Feels a bit unsatisfying though. I understand the timing issues (though  
I'm not sure with a slow homing cycle I should care) but not solving this  
in a reasonably elegant way in software seems like a fail to me. Maybe  
that's just the Covid Crankiness talking.


-Dave



On Fri, 24 Apr 2020 19:23:18 -0400, Peter C. Wallace   
wrote:



On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 19:02:54 -0400
From: David Berndt 
To: "Enhanced Machine Controller (EMC)"  
,

Peter C. Wallace 
Subject: Re: [Emc-users] Encoder reset on homing to index
 If I understand you correctly that would be the goal. But how do I tie  
them together?


As I understand it now I'll need to detect when index-enable changes  
state to false, as an indication of the preferred index signal being  
detected. Then fire a oneshot to encoder.LinearNumber.reset



I was suggesting that you wire the preferred physical index signal
to both encoder inputs, Then connect motions index-enable pin to both
encoder index enables in hal, no one-shots or resets involved.

In general you would not want to do a physical encoder counter reset
in hal (at least when in motion) because:

1. Its not synchronized with the actual index signal so it will cause a  
somewhat random count error proportional to velocity (random because
the time of index occurance is random compared to the counter reset at  
the servo-thread write time)


2. Resetting the counter will corrupt the velocity calculation



-Dave



On Fri, 24 Apr 2020 18:20:07 -0400, Peter C. Wallace   
wrote:



On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 17:19:10 -0400
From: David Berndt 
Reply-To: "Enhanced Machine Controller (EMC)"
   
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Encoder reset on homing to index
Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems  
to get reset during homing to index? I assume somethnig is triggering  
hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere  
in my HAL.
 I'm adding a linear encoder to a servo axis and am retaining my  
servo homing, but when it homes I need to zero the linear encoder as  
well if the rotary is going to zero to avoid huge f-errors and other  
issues...

 Thanks,
-Dave


 Why dont you use the preferred index signal to zero both encoders?


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

 Peter Wallace
Mesa Electronics
  ___
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] Encoder reset on homing to index

2020-04-24 Thread Peter C. Wallace

On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 19:02:54 -0400
From: David Berndt 
To: "Enhanced Machine Controller (EMC)" ,
Peter C. Wallace 
Subject: Re: [Emc-users] Encoder reset on homing to index

If I understand you correctly that would be the goal. But how do I tie them 
together?


As I understand it now I'll need to detect when index-enable changes state to 
false, as an indication of the preferred index signal being detected. Then 
fire a oneshot to encoder.LinearNumber.reset



I was suggesting that you wire the preferred physical index signal
to both encoder inputs, Then connect motions index-enable pin to both
encoder index enables in hal, no one-shots or resets involved.

In general you would not want to do a physical encoder counter reset
in hal (at least when in motion) because:

1. Its not synchronized with the actual index signal so it will cause a 
somewhat random count error proportional to velocity (random because
the time of index occurance is random compared to the counter reset at the 
servo-thread write time)


2. Resetting the counter will corrupt the velocity calculation



-Dave



On Fri, 24 Apr 2020 18:20:07 -0400, Peter C. Wallace  wrote:


On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 17:19:10 -0400
From: David Berndt 
Reply-To: "Enhanced Machine Controller (EMC)"
   
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Encoder reset on homing to index
Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to 
get reset during homing to index? I assume somethnig is triggering 
hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in my 
HAL.


I'm adding a linear encoder to a servo axis and am retaining my servo 
homing, but when it homes I need to zero the linear encoder as well if the 
rotary is going to zero to avoid huge f-errors and other issues...


Thanks,
-Dave



Why dont you use the preferred index signal to zero both encoders?




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


Peter Wallace
Mesa Electronics


___
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] Encoder reset on homing to index

2020-04-24 Thread David Berndt
If I understand you correctly that would be the goal. But how do I tie  
them together?


As I understand it now I'll need to detect when index-enable changes state  
to false, as an indication of the preferred index signal being detected.  
Then fire a oneshot to encoder.LinearNumber.reset


-Dave



On Fri, 24 Apr 2020 18:20:07 -0400, Peter C. Wallace   
wrote:



On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 17:19:10 -0400
From: David Berndt 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Encoder reset on homing to index
 Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems  
to get reset during homing to index? I assume somethnig is triggering  
hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in  
my HAL.


I'm adding a linear encoder to a servo axis and am retaining my servo  
homing, but when it homes I need to zero the linear encoder as well if  
the rotary is going to zero to avoid huge f-errors and other issues...


Thanks,
-Dave



Why dont you use the preferred index signal to zero both encoders?




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


Peter Wallace
Mesa Electronics


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



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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt

Just a plain KA300 chinese linear encoder.


On Fri, 24 Apr 2020 17:39:51 -0400, Leonardo Marsaglia  
 wrote:



Just because I'm curious,

Is this an absolute linear encoder or an incremental one (or may be it  
can

work in both ways)?

El vie., 24 abr. 2020 a las 18:28, andy pugh ()
escribió:


On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:
>
> Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems  
to

> get reset during homing to index? I assume somethnig is triggering
> hm2_5i25.0.encoder.N.reset?

The encoder counts reset when encoder.N.index-enable is true and an
index is seen.
You can detect this as the index-enable goes false a the same time.

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


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



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



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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Peter C. Wallace

On Fri, 24 Apr 2020, David Berndt wrote:


Date: Fri, 24 Apr 2020 17:19:10 -0400
From: David Berndt 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Encoder reset on homing to index

Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to get 
reset during homing to index? I assume somethnig is triggering 
hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in my 
HAL.


I'm adding a linear encoder to a servo axis and am retaining my servo homing, 
but when it homes I need to zero the linear encoder as well if the rotary is 
going to zero to avoid huge f-errors and other issues...


Thanks,
-Dave



Why dont you use the preferred index signal to zero both encoders?




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


Peter Wallace
Mesa Electronics


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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Leonardo Marsaglia
>
> Index-enable enable is true when index-enable is false? Who designed this?
> Politicians?


The index-enable pin is IO so It's set to TRUE when the homing sequence
requires it. You can also set it to TRUE via HAL (I'm doing the latter with
my homing sequence because I'm using servos in step+dir mode without
encoder feedback)

Once is true, it stays in that value until the encoder triggers the
physical index pulse. I'm passing it through an edge component because I'm
using the index as a "second" home switch once the latch state of the
homing sequence starts.

El vie., 24 abr. 2020 a las 18:43, David Berndt ()
escribió:

> Index-enable enable is true when index-enable is false? Who designed
> this?
> Politicians?
>
> I don't even know what to say as I try to wrap my mind around this one...
> Isn't there some sane/simple way to just tie the index-enable out bit
> from
> the one encoder to the index-enable in bit on the second encoder?
>
> If I have to setup a whole bunch of oneshot shenanigans for this I'm
> going
> to be very disappointed.
>
> -Dave
>
> On Fri, 24 Apr 2020 17:25:00 -0400, andy pugh  wrote:
>
> > On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:
> >>
> >> Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to
> >> get reset during homing to index? I assume somethnig is triggering
> >> hm2_5i25.0.encoder.N.reset?
> >
> > The encoder counts reset when encoder.N.index-enable is true and an
> > index is seen.
> > You can detect this as the index-enable goes false a the same time.
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread René Hopf via Emc-users
Am Fr., 24. Apr. 2020 um 23:43 Uhr schrieb David Berndt :

> Index-enable enable is true when index-enable is false? Who designed
> this?
> Politicians?
>
> I don't even know what to say as I try to wrap my mind around this one...
> Isn't there some sane/simple way to just tie the index-enable out bit
> from
> the one encoder to the index-enable in bit on the second encoder?
>
> If I have to setup a whole bunch of oneshot shenanigans for this I'm
> going
> to be very disappointed.
>

the index is captured in hardware, not in software. otherwise you could
miss it.
http://linuxcnc.org/docs/html/man/man9/hostmot2.9.html#encoder


>
> -Dave
>
> On Fri, 24 Apr 2020 17:25:00 -0400, andy pugh  wrote:
>
> > On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:
> >>
> >> Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to
> >> get reset during homing to index? I assume somethnig is triggering
> >> hm2_5i25.0.encoder.N.reset?
> >
> > The encoder counts reset when encoder.N.index-enable is true and an
> > index is seen.
> > You can detect this as the index-enable goes false a the same time.
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
Index-enable enable is true when index-enable is false? Who designed this?  
Politicians?


I don't even know what to say as I try to wrap my mind around this one...  
Isn't there some sane/simple way to just tie the index-enable out bit from  
the one encoder to the index-enable in bit on the second encoder?


If I have to setup a whole bunch of oneshot shenanigans for this I'm going  
to be very disappointed.


-Dave

On Fri, 24 Apr 2020 17:25:00 -0400, andy pugh  wrote:


On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:


Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to
get reset during homing to index? I assume somethnig is triggering
hm2_5i25.0.encoder.N.reset?


The encoder counts reset when encoder.N.index-enable is true and an
index is seen.
You can detect this as the index-enable goes false a the same time.



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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Leonardo Marsaglia
Just because I'm curious,

Is this an absolute linear encoder or an incremental one (or may be it can
work in both ways)?

El vie., 24 abr. 2020 a las 18:28, andy pugh ()
escribió:

> On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:
> >
> > Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to
> > get reset during homing to index? I assume somethnig is triggering
> > hm2_5i25.0.encoder.N.reset?
>
> The encoder counts reset when encoder.N.index-enable is true and an
> index is seen.
> You can detect this as the index-enable goes false a the same time.
>
> --
> 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, 1912
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

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


Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread andy pugh
On Fri, 24 Apr 2020 at 22:21, David Berndt  wrote:
>
> Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to
> get reset during homing to index? I assume somethnig is triggering
> hm2_5i25.0.encoder.N.reset?

The encoder counts reset when encoder.N.index-enable is true and an
index is seen.
You can detect this as the index-enable goes false a the same time.

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


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


[Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to  
get reset during homing to index? I assume somethnig is triggering  
hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in my  
HAL.


I'm adding a linear encoder to a servo axis and am retaining my servo  
homing, but when it homes I need to zero the linear encoder as well if the  
rotary is going to zero to avoid huge f-errors and other issues...


Thanks,
-Dave


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


Re: [Emc-users] cloning hard drive to new SSD

2020-04-24 Thread Chris Albertson
All the advice to use "dd" is OK.   But it will spend hours copying many
gigabytes of blank areas of the disk.I bet there is only a few
megabytes of data you really need.

The simple way is to make a bootable disk or SD card  (or better an SSD)
from scratch.   Just the same way everyone installs from scratch.   Then
boot that drive, mount the old disk and copy those files you need across.
 This is MUCH faster.  Buy a cheap USB SSD, it is much faster and more
reliable than an SD card.  Small ones are realy cheap now.

But BEFORE you do anything at all BACKUP the important data off the failing
drive.   Do this twice then verify you can read the backups then place the
backup someplace out of reach.   No need to backup data you can download
from the Internet.   Only backup the files you made yourself.

Then think about how to automate the backup so you never have to worry
about losing data.  Even SSDs can fail.

Now that you have a safe backup make the new boot drive.   I would not
 "clone" the old drive.

On Wed, Apr 22, 2020 at 7:25 PM andrew beck 
wrote:

> Hey guys.
>
> Just a quick question here
>
> I recently heard some funny clanking noises in my old 2nd hand hard drive
> on my VMC and thought I better change it out and get a SSD in there.
>
> I have a bunch of stuff loaded onto the hardrive for probe basic gui and
> other stuff and would like to clone the drive and keep everything.
>
> I can manage a windows cloning I am just not sure if the process will work
> on a linux system.  I am using a crucial brand SSD and can download the
> drive cloning software (it is rebadged acronis cloning software)
>
> anyway some help would be appreciated.
>
>
> regards
>
> Andrew
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

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