Re: [Emc-users] Subroutine error about duplicate O-word label

2021-09-06 Thread Andy Pugh


> On 6 Sep 2021, at 22:55, Viesturs Lācis  wrote:
> 
> Is there a way to reverse the direction? I tried playing with Z and R
> values, but got only error message that R has to be larger than Z.

It might be worth looking in the code for the error message to see if there is 
any condition around it. 
If not, perhaps there should be,  for this situation. 




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


Re: [Emc-users] 7c81 vhdl questions

2021-09-06 Thread Peter C. Wallace

On Tue, 7 Sep 2021, Ralph Stirling wrote:


Date: Tue, 7 Sep 2021 02:32:32 +
From: Ralph Stirling 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "emc-users@lists.sourceforge.net" 
Subject: [Emc-users] 7c81 vhdl questions

I'm having trouble figuring out which FPGA I/O pins
are connected to tx0, rx0, tx1, and rx1 for the two
RS422 connectors on the 7c81.  I don't see any of
those pins in the UCF file, so they must be tied to
gpio somewhere else.  Grepping for TX0 in the *_34.vhd
pin files seems to give a variety of I/O pins assigned
to sserial tx0 pins (IO 04, 05, 10, 15, 21, 27 according
to the comments).  I'm missing a link in the chain somewhere.

Thanks,
-- Ralph




The 7C81 is organsied as a 57 pin device

Take a look at PIN_5ABOBx2D_57.VHD


___
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


[Emc-users] 7c81 vhdl questions

2021-09-06 Thread Ralph Stirling
I'm having trouble figuring out which FPGA I/O pins
are connected to tx0, rx0, tx1, and rx1 for the two
RS422 connectors on the 7c81.  I don't see any of
those pins in the UCF file, so they must be tied to
gpio somewhere else.  Grepping for TX0 in the *_34.vhd
pin files seems to give a variety of I/O pins assigned
to sserial tx0 pins (IO 04, 05, 10, 15, 21, 27 according
to the comments).  I'm missing a link in the chain somewhere.

Thanks,
-- Ralph

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


Re: [Emc-users] Subroutine error about duplicate O-word label

2021-09-06 Thread Viesturs Lācis
Oh, thank you for pointing that out, I definitely had missed that! I
have absolutely no experience with canned cycles so far, always
managed simply with G1, G2 and G3
Is there a way to reverse the direction? I tried playing with Z and R
values, but got only error message that R has to be larger than Z.

The machine I am dealing with is Biesse and it has drill units exactly
like in the picture here:
https://forum.linuxcnc.org/20-g-code/29162-horizontal-drilling-using-g81
2 drill bits facing opposite directions. Each of them would be defined
as separate tool with different tool length offsets along X and Y. But
currently it seems to me that there is no way to create a canned cycle
to use each one of them. Or am I missing something?

Viesturs

pirmd., 2021. g. 6. sept., plkst. 22:58 — lietotājs Chris Radek
() rakstīja:

>
> Canned cycles work in all six planes, XY YZ ZX UV VW WU
>
> http://linuxcnc.org/docs/2.8/html/gcode/g-code.html#gcode:g80-g89
>
> On Mon, Sep 06, 2021 at 07:44:42AM +0100, Andy Pugh wrote:
> >
> > I think that both can work, actually. Probably worth experimenting in a sim.
>
>
> ___
> 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] Subroutine error about duplicate O-word label

2021-09-06 Thread Gene Heskett
On Monday 06 September 2021 15:38:12 Chris Radek wrote:

> Canned cycles work in all six planes, XY YZ ZX UV VW WU
>
> http://linuxcnc.org/docs/2.8/html/gcode/g-code.html#gcode:g80-g89

And I can verify that rigid tapping works with the head laid level and 
using X instead of Z, in fact it works better because then it is not 
subject to my g0704's crooked post!

> On Mon, Sep 06, 2021 at 07:44:42AM +0100, Andy Pugh wrote:
> > I think that both can work, actually. Probably worth experimenting
> > in a sim.
>
> ___
> 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] Subroutine error about duplicate O-word label

2021-09-06 Thread Chris Radek
Canned cycles work in all six planes, XY YZ ZX UV VW WU

http://linuxcnc.org/docs/2.8/html/gcode/g-code.html#gcode:g80-g89

On Mon, Sep 06, 2021 at 07:44:42AM +0100, Andy Pugh wrote:
> 
> I think that both can work, actually. Probably worth experimenting in a sim. 


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


Re: [Emc-users] Rigid tapping with geared encoder

2021-09-06 Thread Chris Radek
Your intuition is right.  If you don't care about starting in the
same orientation each time, it doesn't matter.  

My VMC has the encoder on the motor, and it doesn't have an index at
all.  I wired the A to the Z input on the mesa card so it gets lots
of indexes and the tapping starts wherever it happens to be.

My lathes of course have real index.

On Fri, Sep 03, 2021 at 04:29:55PM +0100, andy pugh wrote:
> I have just advised someone on the forum that he needs a 1ppr index to
> rigid tap, as his encoder is mounted to the motor, not to the spindle.
> 
> But then I started wondering if this is technically correct. I have a
> feeling that single=pass rigid tapping will be fine, but mutli-pass
> won't work?
> 
> Has anyone tried this?


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


Re: [Emc-users] Subroutine error about duplicate O-word label

2021-09-06 Thread Viesturs Lācis
Before writing to mail list, I had posted this same question in forum.
According to Dewey Garrett, there was some bug about expanding the
subroutines and a fix has been committed to 2.8 branch for the next
release. I managed to get it to work without expanding it, so all is
good now.

Viesturs

pirmd., 2021. g. 6. sept., plkst. 08:15 — lietotājs Chris Kelley
() rakstīja:
>
> I'm not good enough with python to be sure, but it might have something to
> do with how the loops and conditionals are named in the original subroutine.
>
> I would try changing o and o to o100 and o1100, respectively.
> Maybe pyngcgui.py is getting confused by the named o-labels.
>
> On Sun, Sep 5, 2021 at 8:32 AM Viesturs Lācis 
> wrote:
>
> > Hello!
> >
> > I would like to create a subroutine for horizontal drilling. I do not
> > know, if canned cycles, like G81 work in XZ and YZ plane, but I feel
> > pretty sure that they would not work both directions - the drill tool
> > head holds two drill bits, facing opposite directions, as shown in the
> > picture in this thread:
> > https://forum.linuxcnc.org/20-g-code/29162-horizontal-drilling-using-g81
> > So I am playing with G0 and G1 moves.
> >
> > Error message during loading g-code file:
> > Near line 57 of
> > /home/cnc/linuxcnc/nc_files/0.auto.ngc:
> > 57:duplicate O-word label: 'o<001y1100>
> > while [#]' - defined in line 52
> >
> > Subroutine is here:
> > https://pastebin.com/VMGbyhKP
> >
> > I did find this thread:
> >
> > https://forum.linuxcnc.org/20-g-code/27728-duplicate-o-word-label-error-in-version-2-6?start=0
> >
> > Since I have 2.8.2 version, I would like to think that this is not
> > relevant. And there is a difference that I get the error even after
> > 5th or whatever attempt of trying. Restarting LinuxCNC does not change
> > anything - I still get the same error.
> >
> > Subroutine from this thread also does not work:
> >
> > https://forum.linuxcnc.org/subroutine-library/27029-rectangle3-for-mill-router
> >
> > This is expanded subroutine that is loaded from ngcgui:
> > https://pastebin.com/xvPPeSAM
> >
> > I am not sure that those "while" statements are correct in the expanded
> > file.
> > I would appreciate any hints or ideas, what am I doing wrong?
> >
> > Viesturs
> >
> >
> > ___
> > 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