Dynomotion

Group: DynoMotion Message: 12689 From: cnc_machines Date: 1/7/2016
Subject: Fault - If in motion & light curtain enabled
Greetings,

I have a 3 axis CNC machine being run from the KStep. It is using the 4th KStep axis to run an external conveyor.

I want to be able to cause a fault if the light curtain is broken and the 3 CNC axise are in motion. I do not want the machine to fault if the conveyor is in motion and the curtain is broken. I am thinking of putting this into the INIT forever loop.

Is there a way to check motion an on individual axis? If it is in motion and the light curtain is enabled I would disable that particular axis?

Maybe there is a better way to do this.

Thanks,

Scott



Group: DynoMotion Message: 12690 From: Tom Kerekes Date: 1/8/2016
Subject: Re: Fault - If in motion & light curtain enabled
Hi Scott,

Axis parameter last_vel should indicate the velocity of an axis.  I would think if any of the 3 CNC Axes are in motion and the light curtain is broken then disable all the CNC Axis.  Something like:


if (ReadBit(LIGHT_CURTAIN)==1 && (ch0->last_vel != 0.0 || ch1->last_vel != 0.0 || ch2->last_vel != 0.0))
{
    DisableAxis(0);
    DisableAxis(1);
    DisableAxis(2);
}

Yes this would need to be in a forever loop.

Maybe include the Spindle being on as a condition?

Disclaimer: All safety issues are entirely your responsibility.

HTH
Regards
TK

On 1/7/2016 8:03 AM, cnc_machines@... [DynoMotion] wrote:
 

Greetings,

I have a 3 axis CNC machine being run from the KStep. It is using the 4th KStep axis to run an external conveyor.

I want to be able to cause a fault if the light curtain is broken and the 3 CNC axise are in motion. I do not want the machine to fault if the conveyor is in motion and the curtain is broken. I am thinking of putting this into the INIT forever loop.

Is there a way to check motion an on individual axis? If it is in motion and the light curtain is enabled I would disable that particular axis?

Maybe there is a better way to do this.

Thanks,

Scott




Group: DynoMotion Message: 12691 From: cnc_machines Date: 1/8/2016
Subject: Re: Fault - If in motion & light curtain enabled
Tom,

Thanks, this is very helpful. Fully understand on safety, our design is our own.

Scott