Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
Not entirely true. Inside of a main program file, I can do something like this: G0 G90 G54 X0 Y0 G43 Z1. #1=0 o1 while[#1LE10.] (debug, #1) #1=[#1+1] o1 endwhile m30 This all works fine and as expected as long as i preface the logic with an o-code. This isn't a subprogram, just a main program I

Re: [Emc-developers] Question for the devs

2021-07-27 Thread andy pugh
On Tue, 27 Jul 2021 at 18:32, Feral Engineer wrote: I don't think this would require a different interpreter, It would, because LinuxCNC sees "While" as "move the W axis to hile" and "hile" is not a valid number... -- atp "A motorcycle is a bicycle with a pandemonium attachment and is

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
Andy, Siemens high level is much like fanuc macro logic and LinuxCNC o code. It works within a g code environment while offering more a more in depth scripting language than fanuc macro b can offer. A comparison would be: fanuc: G0 G90 G54 X#100 Siemens G0 G90 G54 X=R0 Fanuc: #100=0 While

Re: [Emc-developers] Question for the devs

2021-07-27 Thread andy pugh
On Tue, 27 Jul 2021 at 16:03, Feral Engineer wrote: > In fact, anyone that prefers programming languages over G code would love > Siemens high level because it's fairly close to a programming language in > functionality. No other control I've been on let's you define string, > integer and real

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
achine builds and other antics at > >>> www.youtube.com/c/theferalengineer > >>> > >>> Help support my channel efforts and coffee addiction: > >>> www.patreon.com/theferalengineer > >>> > >>>> On Tue, Jul 27, 2021, 9:07 AM wrote:

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Rene Hopf via Emc-developers
wrote: An interesting set of features! However, "...and four different methods of GOTO." doesn't sound like a feature to laud. -Original Message- From: Feral Engineer Sent: July 27, 2021 8:20 AM To: EMC developers Subject: Re: [Emc-developers] Question for the devs Simply p

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
e: > >> > >> An interesting set of features! However, "...and four different methods > of > >> GOTO." doesn't sound like a feature to laud. > >> > >> -Original Message- > >> From: Feral Engineer > >> Sent: July 27, 2021

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Rene Hopf via Emc-developers
ture to laud. >> >> -----Original Message----- >> From: Feral Engineer >> Sent: July 27, 2021 8:20 AM >> To: EMC developers >> Subject: Re: [Emc-developers] Question for the devs >> >> Simply put, I don't want workarounds, I want a solution as simp

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
8:20 AM > To: EMC developers > Subject: Re: [Emc-developers] Question for the devs > > Simply put, I don't want workarounds, I want a solution as simple as #5021 > to give me the ability to track where my machine is from my home positions > without having to stand on one foot, rub my bell

Re: [Emc-developers] Question for the devs

2021-07-27 Thread ken.strauss
An interesting set of features! However, "...and four different methods of GOTO." doesn't sound like a feature to laud. -Original Message- From: Feral Engineer Sent: July 27, 2021 8:20 AM To: EMC developers Subject: Re: [Emc-developers] Question for the devs Simply put, I

Re: [Emc-developers] Question for the devs

2021-07-27 Thread Feral Engineer
Simply put, I don't want workarounds, I want a solution as simple as #5021 to give me the ability to track where my machine is from my home positions without having to stand on one foot, rub my belly and hope I'm not using coordinate rotation. I write logic in Fanuc, Mitsubishi and Siemens

Re: [Emc-developers] Question for the devs

2021-07-27 Thread andy pugh
On Mon, 26 Jul 2021 at 19:58, Chris Radek wrote: > (Note I'm not saying it would be bad to add this feature) The Fanuc numbers are in unclaimed space in the LinuxCNC parameter range, so I think I would go further and suggest that it would be good to add this feature. I recall this being one of

Re: [Emc-developers] Question for the devs

2021-07-26 Thread Chris Radek
On Mon, Jul 26, 2021 at 01:31:11PM -0400, Feral Engineer wrote: > An example would be setting a work offset: > > G10 L2 P1 X#5021 Y#5022 Sam's answer (use G28.1 or G30.1) is one way to get the number you want. Also, you can access the current position WITH offsets applied, and then subtract

Re: [Emc-developers] Question for the devs

2021-07-26 Thread Stefan Freisei Muehlbacher
I do same thing with an workaround: Set G59.2 with offset 0/0/0. Then you can access the G59.2 values which are in fact machine coordinates. Of course you loose one coodinate-system. My usage is to calculate the maximum way to drive for G38.2/4 moves where a fixed value is a bad idea if you

Re: [Emc-developers] Question for the devs

2021-07-26 Thread Rob C
couple of options... switch to another offset (g59) and that may provide you with the machine coordinates, given they are not likely to be offset from m53 except if G91 temp offset has been applied, in which case you could subtract g92 from g59 and it "should" (never tried it and not near a

Re: [Emc-developers] Question for the devs

2021-07-26 Thread Feral Engineer
That's not what I'm looking for. I can position with G53, but I want to read that G53 position into a variable. On fanuc and mits controls, machine position for X is #5021 and absolute position for X from current offset is #5041, much like how skip position is #5061. When you're writing macro

Re: [Emc-developers] Question for the devs

2021-07-26 Thread Nicklas SB Karlsson
> 5420 gives me current position from my work offset zero. I want current > position from my machine home (g53) position Then you use "G53 Move in Machine Coordinates"? Or? > Phil T. > The Feral Engineer > > Check out my LinuxCNC tutorials, machine builds and other antics at >

Re: [Emc-developers] Question for the devs

2021-07-25 Thread Feral Engineer
t; -Original Message- > From: fr...@franksworkshop.com.au > Sent: July 25, 2021 4:54 PM > To: 'EMC developers' > Subject: Re: [Emc-developers] Question for the devs > > Isn't that #5420? > > -Original Message- > From: Feral Engineer > Sent: Sunday,

Re: [Emc-developers] Question for the devs

2021-07-25 Thread ken.strauss
: [Emc-developers] Question for the devs Isn't that #5420? -Original Message- From: Feral Engineer Sent: Sunday, 25 July 2021 7:39 AM To: EMC developers Subject: [Emc-developers] Question for the devs Hello devs, I have a question. In Fanuc land, #5021 is the X axis system variable

Re: [Emc-developers] Question for the devs

2021-07-25 Thread Feral Engineer
5420 gives me current position from my work offset zero. I want current position from my machine home (g53) position Phil T. The Feral Engineer Check out my LinuxCNC tutorials, machine builds and other antics at www.youtube.com/c/theferalengineer Help support my channel efforts and coffee

Re: [Emc-developers] Question for the devs

2021-07-25 Thread Feral Engineer
I'll take a look. Thanks. Phil T. The Feral Engineer Check out my LinuxCNC tutorials, machine builds and other antics at www.youtube.com/c/theferalengineer Help support my channel efforts and coffee addiction: www.patreon.com/theferalengineer On Sun, Jul 25, 2021, 5:02 PM wrote: > Isn't that

Re: [Emc-developers] Question for the devs

2021-07-25 Thread frank
Isn't that #5420? -Original Message- From: Feral Engineer Sent: Sunday, 25 July 2021 7:39 AM To: EMC developers Subject: [Emc-developers] Question for the devs Hello devs, I have a question. In Fanuc land, #5021 is the X axis system variable for machine home position (axis 1,