Re: [Emc-users] Tandem home switches on single axis

2021-03-03 Thread Gene Heskett
On Wednesday 03 March 2021 03:49:51 andy pugh wrote:

> On Wed, 3 Mar 2021 at 03:03, Gene Heskett  wrote:
> >  'PROGRAM_EXTENSION = .gcode 3D Printer
> >
> > Without a second quote.
>
> That does seem spurious.
>
> They all have it, but the problem is a missing closing quote.
> https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/config/ini-c
>onfig.txt#L482
>
> > Do we actually have such a gcode dialect translator?
>
> Not that I know of, it is an example showing an example location (on
> the putative local machine)

I was hoping, with a , that I had actually missed it since if 
we had such a critter, I could make that single tooth press-on cam on 
the GO704, and feed the 3d45 printer with the code to make it. I could 
make it 10 thou tight in PETG and it would still fit, but 10 thou tight 
in alu?  That's pushing the limits of my ability to calibrate the 
leaning tower of Pisa that this G0704 is. Which I likely need to do 
anyway as its been quite a while.. ;-(

Better yet, call up HighLand Hdwe in hotlanta and see if they still carry 
the 1/2" melamine sheet in sq ft pieces.  Make that puppy on the 6040! 
It is very well calibrated for x/y. I just used it to make a couple ER20 
wrenches out of 1/2" plate, fit is perfect, first pass.

Doesn't have to be that thick though, 1/8" plate would work.  And I have 
that on hand and a mister on the 6040.

And a new 18" caliper to calibrate the G0704 that I didn't have then.

Now I need some warmer weather. Need to open the garage door and do some 
house cleaning. Starting with all the stuff I took off the Sheldon while 
cnc-ing it, taper kit, all the gears, main screw, rack, apron etc.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-03 Thread andy pugh
On Wed, 3 Mar 2021 at 03:03, Gene Heskett  wrote:

>  'PROGRAM_EXTENSION = .gcode 3D Printer
>
> Without a second quote.

That does seem spurious.

They all have it, but the problem is a missing closing quote.
https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/config/ini-config.txt#L482

> Do we actually have such a gcode dialect translator?

Not that I know of, it is an example showing an example location (on
the putative local machine)

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


Re: [Emc-users] Tandem home switches on single axis

2021-03-02 Thread Gene Heskett
On Tuesday 02 March 2021 03:59:49 andy pugh wrote:

> On Mon, 1 Mar 2021 at 04:24, Feral Engineer 
 wrote:
> > z axis utilize a mechanical limit switch to latch home position, but
> > then each axis has a pnp proximity sensor that triggers the actual
> > home position
>
> Are both the switch and the PNP on at the same time?
> Is the PNP "long" enough to serve as a limit switch all by itself?
>
> If it is, then you can use AND logic, either in the HAL or, as
> suggested by R Jollivert, in the physical wiring.
>
> If the PNP pulse is too short to serve as a home switch then you could
> try using HOME_INDEX_NO_ENCODER_RESET
> http://linuxcnc.org/docs/devel/html/config/ini-config.html#_joint__lt_
>num_gt_section Though that only exists in Master.

Another rather odd sentence in that file.

 'PROGRAM_EXTENSION = .gcode 3D Printer

Without a second quote.

Do we actually have such a gcode dialect translator? I missed the memo 
big time if so.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-02 Thread Gene Heskett
On Tuesday 02 March 2021 03:59:49 andy pugh wrote:

> On Mon, 1 Mar 2021 at 04:24, Feral Engineer 
 wrote:
> > z axis utilize a mechanical limit switch to latch home position, but
> > then each axis has a pnp proximity sensor that triggers the actual
> > home position
>
> Are both the switch and the PNP on at the same time?
> Is the PNP "long" enough to serve as a limit switch all by itself?
>
> If it is, then you can use AND logic, either in the HAL or, as
> suggested by R Jollivert, in the physical wiring.
>
> If the PNP pulse is too short to serve as a home switch then you could
> try using HOME_INDEX_NO_ENCODER_RESET

> http://linuxcnc.org/docs/devel/html/config/ini-config.html#_joint__lt_
>num_gt_section Though that only exists in Master.

Did I spot a spelling error already? last line above the [FILTER] section 
reads:
HELP_FILE = tklinucnc.txt - Path to help file.
Shouldn't that be tklinuxcnc.txt? :)

25 pages to print, but worthwhile, lots of new info in that, thank you 
very much, 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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-02 Thread Gene Heskett
On Tuesday 02 March 2021 03:51:26 andy pugh wrote:

> On Tue, 2 Mar 2021 at 07:36, Gene Heskett  wrote:
> > The problem with homing the bs-1 is that the home switch is
> > activated by a notch in the hub of its spindle
>
> It's probably best to home a rotary axis to a 180 degree target. With
> search and backoff speeds set high, and a slow latch.
>
Agreed. But cutting the notch for the switch roller strains a 5mm carbide 
tool, that is hardened steel.  So I quit cutting while I still hadn't 
broken the tool. I could see in flexing.

> Then it only ever has to make a half turn.
>
> But, then, I have never bothered to put any switches on my rotary, it
> seems to be very rarely necessary to home it as the work that goes in
> isn't indexed to the chuck.

That could be fixed now that I've got a decent 3d printer. But I'd need 
some instructions on how to get freecad or openscad to make me a ring to 
fit the edge of the spindle flange, with a single tooth spanning 180 
degrees. openscad seems like it might be easier.  But my attempts have 
not been successful. All I seem to be able to generate are squares. 
GT2_3MM pulleys are a piece of cake, I've made a 13 tooth for the motor 
on the A axis that came with the 6040 mill, and an 83 tooth with a huge 
axle hole that is a tight press fit over the OEM axle pulley, using it 
for a hub since it has the key machined in.

I'm now waiting for the junk that has a pair of 3mm tooth x 6mm wide 
belts on it to arrive, but that's not till the end of the month.

Then I've got to design and make a couple sliders to carry ball bearing 
idlers to get a tight belt, well wrapped on the 13 toother.

This Dremel DigiLab 3d45 printer, makes 3mm pulleys that actually fit the 
belt OOTB, whereas I'm still fiddling with the steps/mm settings on the 
ender-3. PETG is at the extreme end of the enders temp ranges, but the 
3d45 acts like that's its sweet spot although its slower to heat at 
startup.

PETG parts made on the ender, like that 83 tooth sprocket, are almost 100 
grains heavier without much the stringing when the same .stl is fed to 
the 3d45 once cura has been taught to drive the 3d45. Beautiful parts 
that don't need a 30 minute cleanup. 5 minutes and they're 100% ready 
for use.  And PETG is tougher/harder than PLA by quite a bit. It should 
wear very slowly.

And I've not figured out how to enable freecad-19 to draw me anything, 
the drawing tools are all grayed out.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-02 Thread andy pugh
On Mon, 1 Mar 2021 at 04:24, Feral Engineer  wrote:

> z axis utilize a mechanical limit switch to latch home position, but then
> each axis has a pnp proximity sensor that triggers the actual home position

Are both the switch and the PNP on at the same time?
Is the PNP "long" enough to serve as a limit switch all by itself?

If it is, then you can use AND logic, either in the HAL or, as
suggested by R Jollivert, in the physical wiring.

If the PNP pulse is too short to serve as a home switch then you could
try using HOME_INDEX_NO_ENCODER_RESET
http://linuxcnc.org/docs/devel/html/config/ini-config.html#_joint__lt_num_gt_section
Though that only exists in Master.

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


Re: [Emc-users] Tandem home switches on single axis

2021-03-02 Thread andy pugh
On Tue, 2 Mar 2021 at 07:36, Gene Heskett  wrote:

> The problem with homing the bs-1 is that the home switch is activated by
> a notch in the hub of its spindle

It's probably best to home a rotary axis to a 180 degree target. With
search and backoff speeds set high, and a slow latch.

Then it only ever has to make a half turn.

But, then, I have never bothered to put any switches on my rotary, it
seems to be very rarely necessary to home it as the work that goes in
isn't indexed to the chuck.


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-01 Thread Gene Heskett
On Monday 01 March 2021 14:11:00 Jon Elson wrote:

> On 03/01/2021 11:02 AM, Feral Engineer wrote:
> > Hi Jon
> >
> > No encoders. Besides the 7i76e and raspberry pi, the machine is
> > using the original steppers and electronics.
>
> OK, without encoders, then you are limited by the servo
> period.  So, figure some way to tie
> the sensor in with the mechanical switch, and make the home
> move slow enough so you are doing less than 1000
> steps/second.  Previous messages mentioned some schemes to
> tie the sensor in with the switch.  The idea is that
> LinuxCNC will make a fast approach until the and of the
> sensor and switch show true at HOME_SEARCH_VEL, then back
> off and approach slowly until they show true again at
> HOME_LATCH_VEL, and that is the home position.
>
> Jon
This gives me an idea Jon, but would assume the back off move runs the 
backoff move until the switch opens again.

The problem with homing the bs-1 is that the home switch is activated by 
a notch in the hub of its spindle and is only good for about 2 degrees, 
so if I use a SEARCH_VEL fast enough to find home in a reasonable time, 
by the time the home logic recognizes the switch, it will coast on by 
it, look again, find the switch false and will then run it at search vel 
for another full turn. Wash, rinse, and repeat forever.  So I have to 
use a search vel that's very slow. Much slower than it can move.

So, if I start a timer whose job is to lengthen the switches closure, 
holding that state true for 3 or 4 seconds, however long enough to back 
it off far enough to bypass the switch going the other way, then set 
HOME_LATCH_VEL slow and the same polarity as HOME_SEARCH_VEL, it should 
then find it again, and do it w/o any offsets if HOME_LATCH_VEL is slow 
enough. There is a small offset now, perhaps .005 to .01 degrees.

This is complicated by there don't seem to be a MAX_OUTPUT setting that 
stops the windup in the PID, and if I don't use very slow ACELL 
settings, it tries to reverse too quick, which crowbars the 400 watt 24 
volt psu, shutting it off for a minute plus to cool and needs a power 
cycle to restore.

The F2 power cycle caused by the resulting following error unhomes the 
whole machine, so wash, rinse, and repeat forever. Frustrating is not an 
adequate description.

Or will stretching the switch with a timer screw things up as the 4 
something degree HOME_OFFSET move takes place with the possibility the 
timer hasn't timed out by the time the HOME_OFFSET move is completed?

IDK. Advice plz.

Thanks Jon.
>
>
> ___
> 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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-01 Thread Feral Engineer
I'll take a look. Sounds like this might be very helpful. Thanks a bunch!

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Mon, Mar 1, 2021, 2:59 PM Marius Alksnys  wrote:

> I think I solved that problem in Emcoturn 220 integration and went even
> further. I added a protection of lost steps with the sensor. Here is my
> config:
>
> https://drive.google.com/drive/folders/1tjU-i8v7iAPqDlRHX5l45pFpincPqneS?usp=sharing
>
> Hope this helps.
>
> On 2021-03-01 06:21, Feral Engineer wrote:
> > Hello Hive mind,
> >
> > Question for the group. I have an emco pc turn 55. I've successfully
> gotten
> > everything working 100% on LCNC with the exception of one thing, the x
> and
> > z axis utilize a mechanical limit switch to latch home position, but then
> > each axis has a pnp proximity sensor that triggers the actual home
> position
> > on a 1 ppr encoder of sorts. I've just been using the mechanical
> switches,
> > but I'd like to try and get the proximity sensors working during the home
> > sequence.
> >
> > Any suggestions on where to start getting this to work?
> >
> > Thanks in advance
> >
> > Phil
> > The Feral Engineer
> >
> > Check out my LinuxCNC tutorials, machine builds and other antics at
> > www.youtube.com/c/theferalengineer
> >
>
>
>
> ___
> 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] Tandem home switches on single axis

2021-03-01 Thread Marius Alksnys
I think I solved that problem in Emcoturn 220 integration and went even 
further. I added a protection of lost steps with the sensor. Here is my 
config:

https://drive.google.com/drive/folders/1tjU-i8v7iAPqDlRHX5l45pFpincPqneS?usp=sharing

Hope this helps.

On 2021-03-01 06:21, Feral Engineer wrote:

Hello Hive mind,

Question for the group. I have an emco pc turn 55. I've successfully gotten
everything working 100% on LCNC with the exception of one thing, the x and
z axis utilize a mechanical limit switch to latch home position, but then
each axis has a pnp proximity sensor that triggers the actual home position
on a 1 ppr encoder of sorts. I've just been using the mechanical switches,
but I'd like to try and get the proximity sensors working during the home
sequence.

Any suggestions on where to start getting this to work?

Thanks in advance

Phil
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer





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


Re: [Emc-users] Tandem home switches on single axis

2021-03-01 Thread Feral Engineer
Hi Jon

I have it feeding back slowly to latch the proximity switch, but it's
picking up from an encoder pulse that it found 6 inches away from the home
position unless I move the machine close to the switch, close Linuxcnc,
reload LinuxCNC and command a zero return from there.

I disconnected the proximity sensors last night because I got fed up, but
it wouldn't take long to reattach them and make a video of what I'm
experiencing.

To recap, here is where I'm at, maybe you can see the error in my config:

"
here's my current setup:

7i76e input 4 -> X mechanical switch
7i76e input 30 -> X proximity sensor
7i76e input 5 -> Z mechanical switch
7i76e input 31 -> Z proximity sensor

INI file set up for home_use_index = yes

hal file additions:
loadrt encoder
addf encoder.capture-position servo-thread
addf encoder.update-counters servo-thread

net x-home-prox hm2_7i76e.0.7i76.0.0.input-30 encoder.0.phase-Z
net x-home-index-enables joint.0.index-enable encoder.0.index-enable

net z-home-prox hm2_7i76e.0.7i76.0.0.input-31 encoder.1.phase-Z
net z-home-index-enables joint.1.index-enable encoder.1.index-enable

I got it to work with this setup, but it seems like LCNC is catching the
first index pulse it sees, touching the mechanical switches, fine feeding
until it finds the prox pulse but then rapids back to the very first pulse
it found, which doesn't make any sense to me.

If I manually jog the machine close to where the home switches are, restart
LCNC then initialize a home sequence, it'll do what I expect it to do, but
if it's (as an example) 100mm from the home switch, it will search for the
switch, touch, back away, fine feed until it finds the closest proximity
pulse, then rapid back 100mm, so it's not very robust at this point. "


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Mon, Mar 1, 2021, 2:14 PM Jon Elson  wrote:

> On 03/01/2021 11:02 AM, Feral Engineer wrote:
> > Hi Jon
> >
> > No encoders. Besides the 7i76e and raspberry pi, the machine is using the
> > original steppers and electronics.
> OK, without encoders, then you are limited by the servo
> period.  So, figure some way to tie
> the sensor in with the mechanical switch, and make the home
> move slow enough so you are doing less than 1000
> steps/second.  Previous messages mentioned some schemes to
> tie the sensor in with the switch.  The idea is that
> LinuxCNC will make a fast approach until the and of the
> sensor and switch show true at HOME_SEARCH_VEL, then back
> off and approach slowly until they show true again at
> HOME_LATCH_VEL, and that is the home position.
>
> Jon
>
>
> ___
> 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] Tandem home switches on single axis

2021-03-01 Thread Jon Elson

On 03/01/2021 11:02 AM, Feral Engineer wrote:

Hi Jon

No encoders. Besides the 7i76e and raspberry pi, the machine is using the
original steppers and electronics.
OK, without encoders, then you are limited by the servo 
period.  So, figure some way to tie
the sensor in with the mechanical switch, and make the home 
move slow enough so you are doing less than 1000 
steps/second.  Previous messages mentioned some schemes to 
tie the sensor in with the switch.  The idea is that 
LinuxCNC will make a fast approach until the and of the 
sensor and switch show true at HOME_SEARCH_VEL, then back 
off and approach slowly until they show true again at 
HOME_LATCH_VEL, and that is the home position.


Jon


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


Re: [Emc-users] Tandem home switches on single axis

2021-03-01 Thread Feral Engineer
Hi Jon

No encoders. Besides the 7i76e and raspberry pi, the machine is using the
original steppers and electronics. Emco used a double switch home sequence
on this machine - mechanical "rough" home and proximity "fine" home. I got
this to work last night, but it's not working properly. It seems to
remember the first time it sees the index pulse, regardless of how far away
the machine is from the limit switch, whereas I thought the index wouldn't
take effect until after the mechanical switch was tripped. I may have
something set incorrectly, but I'm not sure. I sent my configuration in a
follow-up email last night.


Thank you

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Mon, Mar 1, 2021, 11:51 AM Jon Elson  wrote:

> On 02/28/2021 10:21 PM, Feral Engineer wrote:
> > Hello Hive mind,
> >
> > Question for the group. I have an emco pc turn 55. I've successfully
> gotten
> > everything working 100% on LCNC with the exception of one thing, the x
> and
> > z axis utilize a mechanical limit switch to latch home position, but then
> > each axis has a pnp proximity sensor that triggers the actual home
> position
> > on a 1 ppr encoder of sorts. I've just been using the mechanical
> switches,
> > but I'd like to try and get the proximity sensors working during the home
> > sequence.
> >
> > Any suggestions on where to start getting this to work?
> >
> What sort of encoders do you have (if any)?
> Assuming you have encoders for position feedback, do they
> have an index pulse?
> (I'm guessing not, as then the 1 PPR sensor would be redundant.)
> If your encoder input to the computer has a place for an
> index channel, connect your prox sensors to that input.
> then, enable search for index in the .ini file with :
>
> HOME_LATCH_VEL = ##
> HOME_USE_INDEX = YES
>
> Make ## a velocity where the encoder is counting less than
> 1000 counts/second, so the home position will be accurate to
> within one encoder count.  (Some harware encoder counters
> may be precise at much faster rates.)
>
> If your home switch is also a limit switch, then there is a
> bit more to this, you have to set
> HOME_IGNORE_LIMITS = YES and arrange a home offset so that
> the final home position does not
> have the shared switch still tripped.
>
> Jon
>
>
> ___
> 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] Tandem home switches on single axis

2021-03-01 Thread Jon Elson

On 02/28/2021 10:21 PM, Feral Engineer wrote:

Hello Hive mind,

Question for the group. I have an emco pc turn 55. I've successfully gotten
everything working 100% on LCNC with the exception of one thing, the x and
z axis utilize a mechanical limit switch to latch home position, but then
each axis has a pnp proximity sensor that triggers the actual home position
on a 1 ppr encoder of sorts. I've just been using the mechanical switches,
but I'd like to try and get the proximity sensors working during the home
sequence.

Any suggestions on where to start getting this to work?


What sort of encoders do you have (if any)?
Assuming you have encoders for position feedback, do they 
have an index pulse?

(I'm guessing not, as then the 1 PPR sensor would be redundant.)
If your encoder input to the computer has a place for an 
index channel, connect your prox sensors to that input.  
then, enable search for index in the .ini file with :


HOME_LATCH_VEL = ##
HOME_USE_INDEX = YES

Make ## a velocity where the encoder is counting less than 
1000 counts/second, so the home position will be accurate to 
within one encoder count.  (Some harware encoder counters 
may be precise at much faster rates.)


If your home switch is also a limit switch, then there is a 
bit more to this, you have to set
HOME_IGNORE_LIMITS = YES and arrange a home offset so that 
the final home position does not

have the shared switch still tripped.

Jon


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


[Emc-users] Tandem home switches on single axis

2021-03-01 Thread Roland Jollivet
Lucky the proxy is PNP

Wire the proxy in series with the switch

- the proxy will pull the line UP
- the proxy Only has power when the switch is closed
- so the home position is only valid if the switch is closed AND the proxy
is active AND the proxy is interrupted. Then the line will get pulled high

Obviously you need to arrange the switch and proxy so this is optimal, get
the switch to become active half-way during the dark phase of the proxy

Roland



On Mon, 1 Mar 2021 at 06:23, Feral Engineer 
wrote:

> Hello Hive mind,
>
> Question for the group. I have an emco pc turn 55. I've successfully gotten
> everything working 100% on LCNC with the exception of one thing, the x and
> z axis utilize a mechanical limit switch to latch home position, but then
> each axis has a pnp proximity sensor that triggers the actual home position
> on a 1 ppr encoder of sorts. I've just been using the mechanical switches,
> but I'd like to try and get the proximity sensors working during the home
> sequence.
>
> Any suggestions on where to start getting this to work?
>
> Thanks in advance
>
> Phil
> The Feral Engineer
>
> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer
>
> ___
> 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] Tandem home switches on single axis

2021-02-28 Thread Feral Engineer
Thanks for the reply.

here's my current setup:

7i76e input 4 -> X mechanical switch
7i76e input 30 -> X proximity sensor
7i76e input 5 -> Z mechanical switch
7i76e input 31 -> Z proximity sensor

INI file set up for home_use_index = yes

hal file additions:
loadrt encoder
addf encoder.capture-position servo-thread
addf encoder.update-counters servo-thread

net x-home-prox hm2_7i76e.0.7i76.0.0.input-30 encoder.0.phase-Z
net x-home-index-enables joint.0.index-enable encoder.0.index-enable

net z-home-prox hm2_7i76e.0.7i76.0.0.input-31 encoder.1.phase-Z
net z-home-index-enables joint.1.index-enable encoder.1.index-enable

I got it to work with this setup, but it seems like LCNC is catching the
first index pulse it sees, touching the mechanical switches, fine feeding
until it finds the prox pulse but then rapids back to the very first pulse
it found, which doesn't make any sense to me.

If I manually jog the machine close to where the home switches are, restart
LCNC then initialize a home sequence, it'll do what I expect it to do, but
if it's (as an example) 100mm from the home switch, it will search for the
switch, touch, back away, fine feed until it finds the closest proximity
pulse, then rapid back 100mm, so it's not very robust at this point.

I may just go back to using the mechanical switches and not worry about the
proximity. I'm running this machine on a raspberry pi and ever since I
connected the proximity sensors, LCNC has been crashing. Not sure if
there's a correlation, but that's been my experience. I'm going to
disconnect them and see if it's still crashing. I just wanted to try and
use the proximity sensors because they were installed on the machine
originally and I thought they would be beneficial.

Thanks again!

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer


On Mon, Mar 1, 2021 at 12:51 AM Gene Heskett  wrote:

> On Sunday 28 February 2021 23:21:12 Feral Engineer wrote:
>
> > Hello Hive mind,
> >
> > Question for the group. I have an emco pc turn 55. I've successfully
> > gotten everything working 100% on LCNC with the exception of one
> > thing, the x and z axis utilize a mechanical limit switch to latch
> > home position, but then each axis has a pnp proximity sensor that
> > triggers the actual home position on a 1 ppr encoder of sorts. I've
> > just been using the mechanical switches, but I'd like to try and get
> > the proximity sensors working during the home sequence.
> >
> > Any suggestions on where to start getting this to work?
>
> Depending on your preference I would wire separately if you've the inputs
> to spare. But combine them in a mux2 module such that the both have to
> be true (or go true in sequence) for your version of true so that when
> the switch closes, it backs up, slowly to find the proximity closure.
>
> You can search for the switch fairly fast, but if the proximity is a
> rotating shaft, you might go by it and miss it if you do not have a base
> thread. I'd have two signal wires from each axis, rigged so the
> normal "home" is that axis's switch, until it closes, and use the dir
> signal to switch a mux2, so it is then looking for the proximity switch
> on the "home" signal line back to motion.
>
> I have found normal far eastern micro switches are actually pretty
> consistent, fraction of a thou repeatable. In one case I used a micro
> sized pushbutton mounted of a leaf of hard alu about 3/4" long for the y
> home on my 6040, using the springiness of the alu as its lifted from
> solid contact with the frame as the edge of the gantry slams into it at
> around 60 ipm. Thinking I might trap debris under the "spring" but that
> has not occurred in 2 years. Checked with a .0001 dial, home is
> within .0002" every time. But without a base thread, the second search
> speed is set quite low since you only get a chance to sense it at
> millisecond intervals in the servo thread.
>
> If using such logic, be sure the addf's are in fall thru in the same
> invocation order.
>
> > Thanks in advance
> >
> > Phil
> > The Feral Engineer
> >
> > Check out my LinuxCNC tutorials, machine builds and other antics at
> > www.youtube.com/c/theferalengineer
> >
> > ___
> > 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)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page 
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-u

Re: [Emc-users] Tandem home switches on single axis

2021-02-28 Thread Gene Heskett
On Sunday 28 February 2021 23:21:12 Feral Engineer wrote:

> Hello Hive mind,
>
> Question for the group. I have an emco pc turn 55. I've successfully
> gotten everything working 100% on LCNC with the exception of one
> thing, the x and z axis utilize a mechanical limit switch to latch
> home position, but then each axis has a pnp proximity sensor that
> triggers the actual home position on a 1 ppr encoder of sorts. I've
> just been using the mechanical switches, but I'd like to try and get
> the proximity sensors working during the home sequence.
>
> Any suggestions on where to start getting this to work?

Depending on your preference I would wire separately if you've the inputs 
to spare. But combine them in a mux2 module such that the both have to 
be true (or go true in sequence) for your version of true so that when 
the switch closes, it backs up, slowly to find the proximity closure.

You can search for the switch fairly fast, but if the proximity is a 
rotating shaft, you might go by it and miss it if you do not have a base 
thread. I'd have two signal wires from each axis, rigged so the 
normal "home" is that axis's switch, until it closes, and use the dir 
signal to switch a mux2, so it is then looking for the proximity switch 
on the "home" signal line back to motion.

I have found normal far eastern micro switches are actually pretty 
consistent, fraction of a thou repeatable. In one case I used a micro 
sized pushbutton mounted of a leaf of hard alu about 3/4" long for the y 
home on my 6040, using the springiness of the alu as its lifted from 
solid contact with the frame as the edge of the gantry slams into it at 
around 60 ipm. Thinking I might trap debris under the "spring" but that 
has not occurred in 2 years. Checked with a .0001 dial, home is 
within .0002" every time. But without a base thread, the second search 
speed is set quite low since you only get a chance to sense it at  
millisecond intervals in the servo thread.

If using such logic, be sure the addf's are in fall thru in the same 
invocation order.

> Thanks in advance
>
> Phil
> The Feral Engineer
>
> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer
>
> ___
> 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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


[Emc-users] Tandem home switches on single axis

2021-02-28 Thread Feral Engineer
Hello Hive mind,

Question for the group. I have an emco pc turn 55. I've successfully gotten
everything working 100% on LCNC with the exception of one thing, the x and
z axis utilize a mechanical limit switch to latch home position, but then
each axis has a pnp proximity sensor that triggers the actual home position
on a 1 ppr encoder of sorts. I've just been using the mechanical switches,
but I'd like to try and get the proximity sensors working during the home
sequence.

Any suggestions on where to start getting this to work?

Thanks in advance

Phil
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

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