Page 3 of 5

Re: Auggie+PoKeys works unstable

Posted: Fri Aug 05, 2016 7:30 pm
by satco
Hi Art,

I made two Buttons:

-Pin_1, with script:
global  Pin_1 = function( state )
{
GlobalSet("Pin_9", state);
FreeFeedTo(1, null, null, null);
};


-Pin_2 with script:
global  Pin_2 = function( state )
{
GlobalSet("Pin_11", state);
FreeFeedTo(null, 1, null, null);
};

free axis set 0,0,0,0
when push Pin_1 first free axis go to 1, other do not change.
When first free axis stop, push Pin_2,  first free axis stay 1, second  free axis go to 1, other do not change.

free axis set 0,0,0,0
when push Pin_1 and immediately push Pin_2,
-first free axis go to 1, other do not change,
-when it stop at 1, second  free axis go to 1, first free axis go to 0

Is it possible:
free axis set 0,0,0,0
when push Pin_1 and immediately push Pin_2,
-first free axis start to go to 1, and leave 1, when reached it
-second  free axis go to 1 immediately after push Pin_2, untill reached 1.

This need to control free axis in different script  independently.

Best regards,
Anatolii

Re: Auggie+PoKeys works unstable

Posted: Sat Aug 06, 2016 2:50 am
by ArtF
Anatolii:

>>This need to control free axis in different script  independe ntly.

  Thats not possible. Its due to the way planners work. Auggie has two planners,
the main 4 axis planner and a second 4 axis planner. Each planner can only run serially.
Each call to FreeFeedTo is queueing up a move to be executed when the first is complete.

A FreeFeedTo is the same as a G1 to the first planner. Adding more is just adding later motions.
That behaviour will not change, I hardcoded it that way by virtue of its design, as a double 4 axis
planner you can never have more than 2 (4 axis) moves running at the same time. Of course not
many controllers have a second planner so its a bit hard to get used to..  Its usefull for a cartesian
system rolling on a conveyor belt for example..but not so much for when you need true 5 axis
synced motion.

    The only way to get the motion close to synced, is to command both planners at the same time..
this will make them very close.. for example if you issue a

G1X1Y2Z3A4
M45

  The G1 will complete before the M45 macro moves your freeaxis.. BUT, if you do a

M45

  without the G1, and in the macro have

Engine.FeedTo( 1,2,3,4);
Engine.FreeFeedTo( 5,4,3,2);

  Now both moves will occur as if it was a 8 axis planner. They will not be truly synced, but
if your feedrate is right, and your accelerations are close, they will be very closely run as both
planners will start their moves at the same time.


  So while you can drive a total of 8 axis, you have to think of them as 2 four axis systems, useful
in many areas, but it doesn't replace a true 5th axis planner.. allowing that would make me busier
than I wish to be.  :-)

  Art




Re: Auggie+PoKeys works unstable

Posted: Sat Aug 06, 2016 9:32 pm
by satco
Hi Art,

thank you for complete explanation of the system architecture.

Forgot please about 5-8 axis planner :) On your system with 2 (4 axis) planners  bevelling plasma cutting make very easy.

Let me ask some more questions, please:
1.Engine.FeedTo(1,2,3,4);// analog G01 for main planner
  FreeFeedTo(1,2,3,4); // analog G01 for free axis planner (Engine.FreeFeedTo(1,2,3,4); - give error),
  What is analog for G02/G03, is it works in both planners?
2. Has Auggie third 4 axis planner?

Best regards,
Anatolii

Re: Auggie+PoKeys works unstable

Posted: Sun Aug 07, 2016 12:21 am
by ArtF
Anatolii:

>>Forgot please about 5-8 axis planner Smiley On your system with 2 (4 axis) planners  bevelling plasma cutting make very easy.

>>  Thanks, its nice to know a plasma system is running on Auggie.

Let me ask some more questions, please:
1.Engine. FeedTo(1,2,3,4);// analog G01 for main planner
  FreeFeedT o(1,2,3,4); // analog G01 for free axis planner (Engine.Fr eeFeedTo(1,2,3,4); - give error),

>>  Sorry, my bad, its not "FreeFeedTo(..)" ,  its  "FreeFeed(...)"  .. that should work. In any command, the syntax editor should
make the text bold if the spelling is correct on a  function. Make sure you use a NULL if any axis is disabled.

  What is analog for G02/G03, is it works in both planners?

>> I have not added an Arc command, but only because I didn't need one. It is something I can see someone needing though,
so I will add a call for CW and CCW arcs for the free Axis.

 

2. Has Auggie third 4 axis planner?

  Sorry , it doesnt. The two planners eat up all 4 axis , so no further planners are
planned..  :), strange sentence...

Thx
Art


Re: Auggie+PoKeys works unstable

Posted: Sun Aug 07, 2016 1:51 am
by ArtF
Anatolii:

As of next version the following script tests OK..

Engine.FreeSetFeed(1000);
Engine.FreeFeed(0,0,0,NULL);
Engine.FreeFeed(100,0,0,NULL);
Engine.FreeArcCW(0,0,NULL,NULL,50,0,0);
Engine.FreeArcCCW(100,0,NULL,NULL,50,0,0);

Art

Re: Auggie+PoKeys works unstable

Posted: Sun Aug 07, 2016 7:37 am
by satco
Hi Art,

Thank you for free G02/G03!  Ok, I will test it.

Explain please Engine.FreeArcCW(
-0,  what is it?
-0, what is it?
-NULL, what is it?
-NULL, what is it?
-50, what is it?
-0, what is it?
-0 what is it?
);
Is the same in Engine.FreeArcCCW(100,0,NULL,NULL,50,0,0);?

Best regards,
Anatolii.

Re: Auggie+PoKeys works unstable

Posted: Sun Aug 07, 2016 8:45 am
by ArtF
A:

>>Explain please Engine.Fr eeArcCW(
-0,  what is it?

Engine.FreeArcCW( x,y,z,a, centerx (I), centery (J), centerz(K) );

  I have not added a plane selection for FreeAxis so the centerZ really should be NULL ..

Art