Hi Bengt,
Well what is the range of motion you wish to limit things to?
Regards TK
Group: DynoMotion |
Message: 8046 |
From: Bengt Sjoelund |
Date: 7/31/2013 |
Subject: Re: Softlimits |
Hi Tom,
All numbers are valid for my softlimits on X/Y axis and Z is if I recall this correct 470mm, that is including +5mm past home switch when knee is all way down into + direction.
Cheers
Bengt
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> Well what is the range of motion you wish to limit things to?
>
> Regards
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, July 31, 2013 1:37 PM
> Subject: [DynoMotion] Softlimits
>
>
>
> Â
> Hi,
>
> I have just uploaded softlimits.png in my July2013 folder.
> As you can see my machine zero is up to left side of my soflimits area.
>
> How would code look alike for this?
>
> Cheers
> Bengt
>
|
|
Group: DynoMotion |
Message: 8060 |
From: Bengt Sjoelund |
Date: 8/3/2013 |
Subject: Re: Softlimits |
Group: DynoMotion |
Message: 8062 |
From: Tom Kerekes |
Date: 8/3/2013 |
Subject: Re: Softlimits |
Hi Bengt,
Sorry I thought I replied.
If machine zero is at the axis origin then it seems to me that the range of motion for your system would
be:
min X = -10mm max X = 424mm
min Y = -227mm max Y = 103
You would need to convert the numbers to steps or counts by multiplying by your resolution.
Regards TK
Group: DynoMotion |
Message: 8065 |
From: Bengt Sjoelund |
Date: 8/3/2013 |
Subject: Re: Softlimits |
Hi Tom,
No problems, I can do the math but how and where do I put this 'data'?
Cheers
Bengt
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> Sorry I thought I replied.
>
> If machine zero is at the axis origin then it seems to me that the range of motion for your system would be:
>
> min X = -10mm
> max X = 424mm
>
> min Y = -227mm
> max Y = 103
>
> You would need to convert the numbers to steps or counts by multiplying by your resolution.
>
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, August 3, 2013 12:27 AM
> Subject: [DynoMotion] Re: Softlimits
>
>
>
> Â
> Hi Tom,
>
> Any chance you can take a look at this?
> http://f1.grp.yahoofs.com/v1/iLD8UVSX5JRvIvgJi-8W0mCUh5TInLSywpb1n5C4YBuBmO6-M-mS5Q5nLD7wleRGiaXyPe_5KEd-DGAnkJVde0jgsFh0Rjv1/Bengt%27s%20CombiMill/July%202013/softlimits.png
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> >
> > Hi Tom,
> >
> > All numbers are valid for my softlimits on X/Y axis and Z is if I recall this correct 470mm, that is including +5mm past home switch when knee is all way down into + direction.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > Well what is the range of motion you wish to limit things to?
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, July 31, 2013 1:37 PM
> > > Subject: [DynoMotion] Softlimits
> > >
> > >
> > >
> > > ÃÂ
> > > Hi,
> > >
> > > I have just uploaded softlimits.png in my July2013 folder.
> > > As you can see my machine zero is up to left side of my soflimits area.
> > >
> > > How would code look alike for this?
> > >
> > > Cheers
> > > Bengt
> > >
> >
>
|
|
Group: DynoMotion |
Message: 8067 |
From: Tom Kerekes |
Date: 8/3/2013 |
Subject: Re: Softlimits |
Hi Bengt, You could add something like: ch0->SoftLimitPos=300000; ch0->SoftLimitNeg=-100; To the end of your Home code so that after your machine zero has been set the SoftLimits become active. BTW the SoftLimits trigger a Hardware FeedHold in KFLOP to stop and prevent all motion. To recover from a SoftLimit you will need release the FeedHold. The Mach3 Stop or RESET button should do this. Regards TK
Group: DynoMotion |
Message: 8069 |
From: ericncn |
Date: 8/5/2013 |
Subject: Re: Softlimits |
Does this mean a new method for softlimits has been implemented?
I was previously told to put something like this in a thread:
for (;;) // loop forever
{
if (InLimit()) // check for any limit
{
DisableAxis(0);
DisableAxis(1);
DisableAxis(2);
while (InLimit()) ; //wait until back within limits
}
}
int InLimit()
{
WaitNextTimeSlice();
return ch0->Dest < XMINUS || ch0->Dest > XPLUS ||
ch1->Dest < YMINUS || ch1->Dest > YPLUS ||
ch2->Dest < ZMINUS || ch2->Dest > ZPLUS;
}
Can I just delete the above C code from my init routine and just add something like:
ch0->SoftLimitPos= ....;
ch0->SoftLimitNeg= ....;
ch1->SoftLimitPos= ....;
ch1->SoftLimitNeg= ....;
ch2->SoftLimitPos= ....;
ch3->SoftLimitNeg= ....;
or, are they two different things and do I need them both?
Thanks
EC
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> You could add something like:
>
> Â Â Â ch0->SoftLimitPos=300000;
> Â Â Â ch0->SoftLimitNeg=-100;
>
> To the end of your Home code so that after your machine zero has been set the SoftLimits become active.
>
> BTW the SoftLimits trigger a Hardware FeedHold in KFLOP to stop and prevent all motion. To recover from a SoftLimit you will need release the FeedHold. The Mach3 Stop or RESET button should do this.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, August 3, 2013 12:59 PM
> Subject: [DynoMotion] Re: Softlimits
>
>
>
> Â
> Hi Tom,
>
> No problems, I can do the math but how and where do I put this 'data'?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > Sorry I thought I replied.
> >
> > If machine zero is at the axis origin then it seems to me that the range of motion for your system would be:
> >
> > min X = -10mm
> > max X = 424mm
> >
> > min Y = -227mm
> > max Y = 103
> >
> > You would need to convert the numbers to steps or counts by multiplying by your resolution.
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, August 3, 2013 12:27 AM
> > Subject: [DynoMotion] Re: Softlimits
> >
> >
> >
> > ÃÂ
> > Hi Tom,
> >
> > Any chance you can take a look at this?
> > http://f1.grp.yahoofs.com/v1/iLD8UVSX5JRvIvgJi-8W0mCUh5TInLSywpb1n5C4YBuBmO6-M-mS5Q5nLD7wleRGiaXyPe_5KEd-DGAnkJVde0jgsFh0Rjv1/Bengt%27s%20CombiMill/July%202013/softlimits.png
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> > >
> > > Hi Tom,
> > >
> > > All numbers are valid for my softlimits on X/Y axis and Z is if I recall this correct 470mm, that is including +5mm past home switch when knee is all way down into + direction.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >
> > > > Well what is the range of motion you wish to limit things to?
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, July 31, 2013 1:37 PM
> > > > Subject: [DynoMotion] Softlimits
> > > >
> > > >
> > > >
> > > > ÃâÃÂ
> > > > Hi,
> > > >
> > > > I have just uploaded softlimits.png in my July2013 folder.
> > > > As you can see my machine zero is up to left side of my soflimits area.
> > > >
> > > > How would code look alike for this?
> > > >
> > > > Cheers
> > > > Bengt
|
|
Group: DynoMotion |
Message: 8072 |
From: Tom Kerekes |
Date: 8/5/2013 |
Subject: Re: Softlimits |
Hi EC, Yes the latest Test Versions have new SoftLimit capability built in so you should need to add a forever loop of your own. Also the SoftLimits trigger a hardware Feed Hold so that the axes will come to a controlled stop and not be disabled. Feedhold now prevents any other motion commands until cleared. KMotionCNC will also read the SoftLimits from KFLOP and prevent any GCode motion that would exceed the limits before it occurs. A KMotionCNC simulation will also flag SoftLimit violations.
Regards TK
Group: DynoMotion |
Message: 8073 |
From: ericncn |
Date: 8/5/2013 |
Subject: Re: Softlimits |
Ah, wonderful!
I like it a lot and I've always wished it worked like this (G-code interpreter taking the soft limits into account).
Before I try, one more question:
once the soft limit is triggered, how do I clear it?
Do I have to add a user button calling a C routine?
Thank you
EC
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi EC,
>
> Yes the latest Test Versions have new SoftLimit capability built in so you should need to add a forever loop of your own. Also the SoftLimits trigger a hardware Feed Hold so that the axes will come to a controlled stop and not be disabled. Feedhold now prevents any other motion commands until cleared. KMotionCNC will also read the SoftLimits from KFLOP and prevent any GCode motion that would exceed the limits before it occurs. A KMotionCNC simulation will also flag SoftLimit violations.
>
>
> Regards
> TK
>
>
> ________________________________
> From: ericncn <ericnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, August 5, 2013 12:53 AM
> Subject: [DynoMotion] Re: Softlimits
>
>
>
> Â
> Does this mean a new method for softlimits has been implemented?
> I was previously told to put something like this in a thread:
>
> for (;;) // loop forever
> {
> if (InLimit()) // check for any limit
> {
> DisableAxis(0);
> DisableAxis(1);
> DisableAxis(2);
>
> while (InLimit()) ; //wait until back within limits
> }
> }
>
> int InLimit()
> {
> WaitNextTimeSlice();
> return ch0->Dest < XMINUS || ch0->Dest > XPLUS ||
> ch1->Dest < YMINUS || ch1->Dest > YPLUS ||
> ch2->Dest < ZMINUS || ch2->Dest > ZPLUS;
> }
>
> Can I just delete the above C code from my init routine and just add something like:
>
> ch0->SoftLimitPos= ....;
> ch0->SoftLimitNeg= ....;
> ch1->SoftLimitPos= ....;
> ch1->SoftLimitNeg= ....;
> ch2->SoftLimitPos= ....;
> ch3->SoftLimitNeg= ....;
>
> or, are they two different things and do I need them both?
>
> Thanks
> EC
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > You could add something like:
> >
> > ÃÂ ÃÂ ÃÂ ch0->SoftLimitPos=300000;
> > ÃÂ ÃÂ ÃÂ ch0->SoftLimitNeg=-100;
> >
> > To the end of your Home code so that after your machine zero has been set the SoftLimits become active.
> >
> > BTW the SoftLimits trigger a Hardware FeedHold in KFLOP to stop and prevent all motion.ÃÂ To recover from a SoftLimit you will need release the FeedHold.ÃÂ The Mach3 Stop or RESET button should do this.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, August 3, 2013 12:59 PM
> > Subject: [DynoMotion] Re: Softlimits
> >
> >
> >
> > ÃÂ
> > Hi Tom,
> >
> > No problems, I can do the math but how and where do I put this 'data'?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > Sorry I thought I replied.
> > >
> > > If machine zero is at the axis origin then it seems to me that the range of motion for your system would be:
> > >
> > > min X = -10mm
> > > max X = 424mm
> > >
> > > min Y = -227mm
> > > max Y = 103
> > >
> > > You would need to convert the numbers to steps or counts by multiplying by your resolution.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, August 3, 2013 12:27 AM
> > > Subject: [DynoMotion] Re: Softlimits
> > >
> > >
> > >
> > > ÃâÃÂ
> > > Hi Tom,
> > >
> > > Any chance you can take a look at this?
> > > http://f1.grp.yahoofs.com/v1/iLD8UVSX5JRvIvgJi-8W0mCUh5TInLSywpb1n5C4YBuBmO6-M-mS5Q5nLD7wleRGiaXyPe_5KEd-DGAnkJVde0jgsFh0Rjv1/Bengt%27s%20CombiMill/July%202013/softlimits.png
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> > > >
> > > > Hi Tom,
> > > >
> > > > All numbers are valid for my softlimits on X/Y axis and Z is if I recall this correct 470mm, that is including +5mm past home switch when knee is all way down into + direction.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > >
> > > > > Well what is the range of motion you wish to limit things to?
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, July 31, 2013 1:37 PM
> > > > > Subject: [DynoMotion] Softlimits
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Hi,
> > > > >
> > > > > I have just uploaded softlimits.png in my July2013 folder.
> > > > > As you can see my machine zero is up to left side of my soflimits area.
> > > > >
> > > > > How would code look alike for this?
> > > > >
> > > > > Cheers
> > > > > Bengt
|
|
Group: DynoMotion |
Message: 8074 |
From: Tom Kerekes |
Date: 8/5/2013 |
Subject: Re: Softlimits |
Hi EC,
You can use the Feed Hold button in KMotionCNC to clear Feed Hold set buy a soft limit.
Regards TK
Group: DynoMotion |
Message: 8075 |
From: ericncn |
Date: 8/7/2013 |
Subject: Re: Softlimits |
Tried it, it works perfectly!
This makes my life much easier!
Thank you
EC
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi EC,
>
> You can use the Feed Hold button in KMotionCNC to clear Feed Hold set buy a soft limit.
>
>
> Regards
> TK
>
>
>
> ________________________________
> From: ericncn <ericnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, August 5, 2013 5:46 PM
> Subject: [DynoMotion] Re: Softlimits
>
>
>
> Â
> Ah, wonderful!
> I like it a lot and I've always wished it worked like this (G-code interpreter taking the soft limits into account).
>
> Before I try, one more question:
> once the soft limit is triggered, how do I clear it?
> Do I have to add a user button calling a C routine?
>
> Thank you
> EC
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi EC,
> >
> > Yes the latest Test Versions have new SoftLimit capability built in so you should need to add a forever loop of your own.ÃÂ Also the SoftLimits trigger a hardware Feed Hold so that the axes will come to a controlled stop and not be disabled.ÃÂ Feedhold now prevents any other motion commands until cleared.ÃÂ KMotionCNC will also read the SoftLimits from KFLOP and prevent any GCode motion that would exceed the limits before it occurs.ÃÂ A KMotionCNC simulation will also flag SoftLimit violations.
> >
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: ericncn <ericnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, August 5, 2013 12:53 AM
> > Subject: [DynoMotion] Re: Softlimits
> >
> >
> >
> > ÃÂ
> > Does this mean a new method for softlimits has been implemented?
> > I was previously told to put something like this in a thread:
> >
> > for (;;) // loop forever
> > {
> > if (InLimit()) // check for any limit
> > {
> > DisableAxis(0);
> > DisableAxis(1);
> > DisableAxis(2);
> >
> > while (InLimit()) ; //wait until back within limits
> > }
> > }
> >
> > int InLimit()
> > {
> > WaitNextTimeSlice();
> > return ch0->Dest < XMINUS || ch0->Dest > XPLUS ||
> > ch1->Dest < YMINUS || ch1->Dest > YPLUS ||
> > ch2->Dest < ZMINUS || ch2->Dest > ZPLUS;
> > }
> >
> > Can I just delete the above C code from my init routine and just add something like:
> >
> > ch0->SoftLimitPos= ....;
> > ch0->SoftLimitNeg= ....;
> > ch1->SoftLimitPos= ....;
> > ch1->SoftLimitNeg= ....;
> > ch2->SoftLimitPos= ....;
> > ch3->SoftLimitNeg= ....;
> >
> > or, are they two different things and do I need them both?
> >
> > Thanks
> > EC
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > You could add something like:
> > >
> > > ÃâàÃâàÃâàch0->SoftLimitPos=300000;
> > > ÃâàÃâàÃâàch0->SoftLimitNeg=-100;
> > >
> > > To the end of your Home code so that after your machine zero has been set the SoftLimits become active.
> > >
> > > BTW the SoftLimits trigger a Hardware FeedHold in KFLOP to stop and prevent all motion.ÃâàTo recover from a SoftLimit you will need release the FeedHold.ÃâàThe Mach3 Stop or RESET button should do this.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, August 3, 2013 12:59 PM
> > > Subject: [DynoMotion] Re: Softlimits
> > >
> > >
> > >
> > > ÃâÃÂ
> > > Hi Tom,
> > >
> > > No problems, I can do the math but how and where do I put this 'data'?
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >
> > > > Sorry I thought I replied.
> > > >
> > > > If machine zero is at the axis origin then it seems to me that the range of motion for your system would be:
> > > >
> > > > min X = -10mm
> > > > max X = 424mm
> > > >
> > > > min Y = -227mm
> > > > max Y = 103
> > > >
> > > > You would need to convert the numbers to steps or counts by multiplying by your resolution.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Saturday, August 3, 2013 12:27 AM
> > > > Subject: [DynoMotion] Re: Softlimits
> > > >
> > > >
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Hi Tom,
> > > >
> > > > Any chance you can take a look at this?
> > > > http://f1.grp.yahoofs.com/v1/iLD8UVSX5JRvIvgJi-8W0mCUh5TInLSywpb1n5C4YBuBmO6-M-mS5Q5nLD7wleRGiaXyPe_5KEd-DGAnkJVde0jgsFh0Rjv1/Bengt%27s%20CombiMill/July%202013/softlimits.png
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > All numbers are valid for my softlimits on X/Y axis and Z is if I recall this correct 470mm, that is including +5mm past home switch when knee is all way down into + direction.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > >
> > > > > > Well what is the range of motion you wish to limit things to?
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Wednesday, July 31, 2013 1:37 PM
> > > > > > Subject: [DynoMotion] Softlimits
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Ã'âââ¬Ã
¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi,
> > > > > >
> > > > > > I have just uploaded softlimits.png in my July2013 folder.
> > > > > > As you can see my machine zero is up to left side of my soflimits area.
> > > > > >
> > > > > > How would code look alike for this?
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
>
|
|
| | | | | | | | | |