Re: [Emc-users] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-22 Thread andy pugh
On Wed, 21 Oct 2020 at 14:52, Alan Condit  wrote:

> I have a bunch of wizards that I have written under 2.7 and under 2.8 they 
> won’t work. The biggest change is that you used to be able to write the 
> subroutine declaration as O< CutBevel > SUB [1] [2] [3]  like a formal 
> declaration of parameters. Now I have to go through and make all of them just 
> comments like O SUB ([1] [2] [3]).

Subroutines get parameters strictly by position, they just appear as
#1, #2 etc. You can have a comment to document what they do, but I
don't think anything has changed there

The problem is actually line 76:

G00 X0.0 Z[#Zcut]

Should be

G00 X0.0 Z[#]

-- 
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] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-22 Thread Alan Condit
Andy,

I was looking more closely at the wizards. They date from around 2014. I have 
been using them up until about 2 years ago. I went through a bunch of them 
yesterday. The only change that I had to make to get them to work was get rid 
of the “formal declarations” and comments on the same line as the o. I 
don’t know strictly speaking if I had to change the comment. Then I took one of 
the working wizards and replaced the body of the subroutine with the code from 
my “bevel” wizard (plus a little editing to match variable names. I commented 
out the call to the subroutine and it would load. But when I uncommented the 
call to my subroutine it gave me the same error as before.

So the working wizard is LTurnEXT.ngc 
The one that still won’t work is LBevelEXT.ngc 
I am baffled as to what is wrong.

Alan

>> On Wed, 21 Oct 2020 at 14:52, Alan Condit  wrote:
>> 
>> I have a bunch of wizards that I have written under 2.7 and under 2.8 they 
>> won't work. The biggest change is that you used to be able to write the 
>> subroutine declaration as O SUB [1] [2] [3]
>> like a formal declaration of parameters. Now I have to go through and make 
>> all of them
>>  just comments like O SUB ([1] [2] [3]).
> 
> This doesn't sound right. As far as I know there has not been any
> change made in this regard.
> There hasn't been any change in the docs that describe how to call a sub.
> http://linuxcnc.org/docs/2.8/html/gcode/o-code.html#ocode:subroutines
> 
> atp


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


Re: [Emc-users] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 12:13:45 Todd Zuercher wrote:

> From: Gene Heskett 
>
> >You have a typu in line 97.  You have defined #<_close_z> but used
> > #<_close_x>
>
> #<_close_x> is defined on line 18.
>
So it is Todd, these eyes are getting on along with me. but a debug would 
show its duffyness if duff.

OTOH if that was a bad statement, it should have been squawked about at 
loading time.  I think...

> Todd Zuercher
> P. Graham Dunn Inc.
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>
> ___
> 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] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread Todd Zuercher
Section 2 of the O-codes manual specifically says that comments should NOT be 
used on the same line as an o-code.
http://linuxcnc.org/docs/2.8/html/gcode/o-code.html#ocode:comments

But that isn't necessarily the cause of your problem.  

I also can't comment on if what you had ever did or should have worked before.  
But I've not seen any examples set up that way, to suggest doing so was 
allowed.  (It does "look" wrong to me though.)

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: Alan Condit  
Sent: Wednesday, October 21, 2020 9:49 AM
To: Emc-users@lists.sourceforge.net
Subject: [Emc-users] Apparent changes in gcode in Linuxcnc 2.8.0

[EXTERNAL EMAIL] Be sure links are safe.

I tried to send this earlier but it doesn’t appear to have gone through. So, 
here goes again.

I have a bunch of wizards that I have written under 2.7 and under 2.8 they 
won’t work. The biggest change is that you used to be able to write the 
subroutine declaration as O< CutBevel > SUB [1] [2] [3]  like a formal 
declaration of parameters. Now I have to go through and make all of them just 
comments like O SUB ([1] [2] [3]).

The following is a wizard I just modified that won’t load. It reports an 
unknown word where a unary operation could be at about line 99. Can anyone tell 
me what I did wrong?
Here is a link to CutBevel.ngc <https://pastebin.com/xnTGreUX>.

Alan


___
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] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread Todd Zuercher
From: Gene Heskett  

>You have a typu in line 97.  You have defined #<_close_z> but used #<_close_x>

#<_close_x> is defined on line 18.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

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


Re: [Emc-users] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread andy pugh
On Wed, 21 Oct 2020 at 14:52, Alan Condit  wrote:

> I have a bunch of wizards that I have written under 2.7 and under 2.8 they 
> won’t work. The biggest change is that you used to be able to write the 
> subroutine declaration as O< CutBevel > SUB [1] [2] [3]  like a formal 
> declaration of parameters. Now I have to go through and make all of them just 
> comments like O SUB ([1] [2] [3]).

This doesn't sound right. As far as I know there has not been any
change made in this regard.
There hasn't been any change in the docs that describe how to call a sub.
http://linuxcnc.org/docs/2.8/html/gcode/o-code.html#ocode:subroutines

-- 
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] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 09:49:16 Alan Condit wrote:

> I tried to send this earlier but it doesn’t appear to have gone
> through. So, here goes again.
>
> I have a bunch of wizards that I have written under 2.7 and under 2.8
> they won’t work. The biggest change is that you used to be able to
> write the subroutine declaration as O< CutBevel > SUB [1] [2] [3] 
> like a formal declaration of parameters. Now I have to go through and
> make all of them just comments like O SUB ([1] [2] [3]).
>
> The following is a wizard I just modified that won’t load. It reports
> an unknown word where a unary operation could be at about line 99. Can
> anyone tell me what I did wrong? Here is a link to CutBevel.ngc
> .
>
> Alan
>
You have a typu in line 97.  You have defined #<_close_z> but used 
#<_close_x>

> ___
> 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] Apparent changes in gcode in Linuxcnc 2.8.0

2020-10-21 Thread Alan Condit
I tried to send this earlier but it doesn’t appear to have gone through. So, 
here goes again.

I have a bunch of wizards that I have written under 2.7 and under 2.8 they 
won’t work. The biggest change is that you used to be able to write the 
subroutine declaration as O< CutBevel > SUB [1] [2] [3]  like a formal 
declaration of parameters. Now I have to go through and make all of them just 
comments like O SUB ([1] [2] [3]).

The following is a wizard I just modified that won’t load. It reports an 
unknown word where a unary operation could be at about line 99. Can anyone tell 
me what I did wrong?
Here is a link to CutBevel.ngc .

Alan


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