Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-17 Thread Jeff Epler
On Fri, Aug 17, 2007 at 05:31:38PM +0100, [EMAIL PROTECTED] wrote: > N0300 do (first cut of pinion leaves) With "do" you need an O-number, and the matching O-number at the "while" Jeff - This SF.net email is spo

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-17 Thread Jeff Epler
On Fri, Aug 17, 2007 at 11:15:29AM +0100, [EMAIL PROTECTED] wrote: > Just a couple of points I'm not completely clear on - in the > above example, are line numbers needed on every line of the > subroutine or just at the ends? O-numbers are required on lines where the flow control words such as "

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Jeff Epler
I spotted several more errors in your program. > #10 = 1.4( o.d ) ... > #22 = 90(final arc angle) Parameters up to 30 are used for subroutine arguments. Use parameters above 30 for global variables: #40 = 1.4( o.d ) ... #52 = 90(final arc angle) > o20

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Andre' Blanchard
I do not have time to reformat or rewrite now but here are a few things that stand out. The sub definitions should come first you are setting the top level local variables first these should be at the begining of the main program. Way too many [] EMC needs more then most controls I have used but

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Alan Condit
ECTED] wrote: > Message: 7 > Date: Thu, 16 Aug 2007 23:24:07 +0100 > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: Re: [Emc-users] Proglem with EMC script - understanding error > message > To: emc-users@lists.sourceforge.net > Message-ID: <

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread [EMAIL PROTECTED]
Hi again, Thanks to everyone who responded to my earlier mailing. As a result and after a considerable rewrite and correction I have now managed to get the script to load - however, it does nothing!! When I hit 'R' or press the play button, the screen flashes briefly and returns to the stop st

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Stephen Wille Padnos
Gene Heskett wrote: >[big snip] > >Then, down in the call statements, the syntax I've found that works involves >passing the vars to the subroutine like this example: > >N0400 o100 call [#1][#2][#3][#4][#5][#6][#7][#8][#9][#10][#11][#12][#13] > >The brackets are required to protect the variable

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Gene Heskett
On Thursday 16 August 2007, [EMAIL PROTECTED] wrote: >Hi, > >While I have been playing around with EMC since its invention, I have >only recently started to use it seriously as I've only recently finished >(as though it will ever be 'finished') a little cnc milling machine for >making parts for the

Re: [Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread Jeff Epler
When emc shows an error message with a "line number", it refers to the physical line number in the file, not an O- or N-number. In emc 2.1, parameters are numbers, not letters. So, for instance, you can't write #D=1.4 you must write #7=1.4 and remember that later on, #7 refers to the o.d.

[Emc-users] Proglem with EMC script - understanding error message

2007-08-16 Thread [EMAIL PROTECTED]
Hi, While I have been playing around with EMC since its invention, I have only recently started to use it seriously as I've only recently finished (as though it will ever be 'finished') a little cnc milling machine for making parts for the antique watches I restore and other miniature parts. I