Lathe with stepper motors - limit switch crash

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

frijoli
Posts: 595
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 1030090099
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Outside Winston-Salem, NC
Contact:

Re: Lathe with stepper motors - limit switch crash

Post by frijoli »

martyscncgarage wrote: Sat Dec 23, 2017 6:33 pm
ScotY wrote: Sat Dec 23, 2017 3:56 pm
However, I learned something...if you don't set travel limits, you WILL crash into your limit switches on rapid jog moves. :shock: For some reason, it does not "remember" where the limit switch is......
Yes, set your soft limits once motor direction and homing is setup....
Marty, is that correct, or have you seen that to be the case? That the "soft" travel limits will slow down the jog rate.
Clay
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/


martyscncgarage
Posts: 9932
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Lathe with stepper motors - limit switch crash

Post by martyscncgarage »

frijoli wrote: Sun Dec 24, 2017 12:40 am
martyscncgarage wrote: Sat Dec 23, 2017 6:33 pm
ScotY wrote: Sat Dec 23, 2017 3:56 pm
However, I learned something...if you don't set travel limits, you WILL crash into your limit switches on rapid jog moves. :shock: For some reason, it does not "remember" where the limit switch is......
Yes, set your soft limits once motor direction and homing is setup....
Marty, is that correct, or have you seen that to be the case? That the "soft" travel limits will slow down the jog rate.
From the All in One DC Installation manual, section 6.11:
"Setting software travel limit will automatically decelerate the axis right before it reaches the limit switch, preventing possible
damage to the machine as shown in Figure 6.10.2. Additionally, the CNC11 software will throw an error and stop the machine if a
G code requests the machine to move past the software travel limit."
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


frijoli
Posts: 595
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 1030090099
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Outside Winston-Salem, NC
Contact:

Re: Lathe with stepper motors - limit switch crash

Post by frijoli »

martyscncgarage wrote: Sun Dec 24, 2017 12:50 am
frijoli wrote: Sun Dec 24, 2017 12:40 am
martyscncgarage wrote: Sat Dec 23, 2017 6:33 pm

Yes, set your soft limits once motor direction and homing is setup....
Marty, is that correct, or have you seen that to be the case? That the "soft" travel limits will slow down the jog rate.
From the All in One DC Installation manual, section 6.11:
"Setting software travel limit will automatically decelerate the axis right before it reaches the limit switch, preventing possible
damage to the machine as shown in Figure 6.10.2. Additionally, the CNC11 software will throw an error and stop the machine if a
G code requests the machine to move past the software travel limit."
Thanks, I assumed this meant during programmed travel, not jogging.
Note to self, "set soft limits".

Clay
Clay
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/


ScotY
Posts: 654
Joined: Sat Sep 23, 2017 7:57 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Honolulu, HI

Re: Lathe with stepper motors - limit switch crash

Post by ScotY »

Well, if Clay didn’t know this, my haphazard lazy self doesn’t feel so bad. :lol:

The thing is, I would have thought it would know where the limit switch was because it just homed to it, thus there should be no way to crash on a rapid jog. Naturally, if you didn’t set a travel limit, it wouldn’t know where to stop on the other end. My mill was set up with travel limits and it would coast to a nice stop on the switch. It doesn’t make as much sense to set a travel limit on a lathe so I didn’t do it right away. While playing around, I just assumed it would decelerate to a stop when nearing the switch. I assumed incorrectly. :lol:


martyscncgarage
Posts: 9932
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Lathe with stepper motors - limit switch crash

Post by martyscncgarage »

ScotY wrote: Sun Dec 24, 2017 2:25 am Well, if Clay didn’t know this, my haphazard lazy self doesn’t feel so bad. :lol:

The thing is, I would have thought it would know where the limit switch was because it just homed to it, thus there should be no way to crash on a rapid jog. Naturally, if you didn’t set a travel limit, it wouldn’t know where to stop on the other end. My mill was set up with travel limits and it would coast to a nice stop on the switch. It doesn’t make as much sense to set a travel limit on a lathe so I didn’t do it right away. While playing around, I just assumed it would decelerate to a stop when nearing the switch. I assumed incorrectly. :lol:
That is incorrect.
If you have setup your machine correctly when you home the machine, It hits the home/limit switches and backs off of them, THEN sets machine zero. (press Alt-D) If all is setup properly, during normal operation, CNC12 will stop the axis AT machine zero and at the end of its travel(if software limits have been set correctly and yes, you need to setup soft limits in a lathe as well) before hitting the limit switch or hard stop.

What you are describing could be lost steps or misconfiguration. When that happens, the axis are no longer where CNC12 thinks they are. (Open loop system) lost steps can be caused by rapids that are too fast, acceleration to fast for the steppers/machine, taking too aggressive a cut and stalling the motor, binding in the drive system, not picking the correct stepper motors for the machine/control configuratoin, software misconfiguration, are a few examples.

Prove this to yourself, you did a video of your lathe homing to the switches. Once its homed, in slow mode, jog away from the switches a half inch or so and then deliberately come back to them. It should stop right where machine home position was set and not touch the switch.

Report back.
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


ScotY
Posts: 654
Joined: Sat Sep 23, 2017 7:57 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Honolulu, HI

Re: Lathe with stepper motors - limit switch crash

Post by ScotY »

martyscncgarage wrote: Sun Dec 24, 2017 9:26 am
ScotY wrote: Sun Dec 24, 2017 2:25 am Well, if Clay didn’t know this, my haphazard lazy self doesn’t feel so bad. :lol:

The thing is, I would have thought it would know where the limit switch was because it just homed to it, thus there should be no way to crash on a rapid jog. Naturally, if you didn’t set a travel limit, it wouldn’t know where to stop on the other end. My mill was set up with travel limits and it would coast to a nice stop on the switch. It doesn’t make as much sense to set a travel limit on a lathe so I didn’t do it right away. While playing around, I just assumed it would decelerate to a stop when nearing the switch. I assumed incorrectly. :lol:
That is incorrect.
If you have setup your machine correctly when you home the machine, It hits the home/limit switches and backs off of them, THEN sets machine zero. (press Alt-D) If all is setup properly, during normal operation, CNC12 will stop the axis AT machine zero and at the end of its travel(if software limits have been set correctly and yes, you need to setup soft limits in a lathe as well) before hitting the limit switch or hard stop.

What you are describing could be lost steps or misconfiguration. When that happens, the axis are no longer where CNC12 thinks they are. (Open loop system) lost steps can be caused by rapids that are too fast, acceleration to fast for the steppers/machine, taking too aggressive a cut and stalling the motor, binding in the drive system, not picking the correct stepper motors for the machine/control configuratoin, software misconfiguration, are a few examples.

Prove this to yourself, you did a video of your lathe homing to the switches. Once its homed, in slow mode, jog away from the switches a half inch or so and then deliberately come back to them. It should stop right where machine home position was set and not touch the switch.

Report back.
Marty
Here’s a video with no soft limits set. Maybe I don’t fully understand what’s going on but I’m confident I have no lost steps on Z. If I do a rapid jog, it will slam into the switch and damage it...that I’m sure of because I’ve done it. :lol: Once soft limits (or travel...whatever it’s called) ARE set, then it knows where the limit switch is and will decelerate in time to not crash and the Z DRO will show zero, not some positive value. Without soft limits set, it will stop once the limit switch OPENS, but on a fast move, it takes too long to stop. Not sure if this is a result of using steppers and not servos.
http://www.youtube.com/watch?v=MNRPkvwlCwE
Last edited by ScotY on Sun Dec 24, 2017 6:55 pm, edited 2 times in total.


martyscncgarage
Posts: 9932
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Lathe with stepper motors - limit switch crash

Post by martyscncgarage »

Yes, a properly configured system including soft limits works.
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


ScotY
Posts: 654
Joined: Sat Sep 23, 2017 7:57 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Honolulu, HI

Re: Lathe with stepper motors - limit switch crash

Post by ScotY »

I’m not disagreeing with that. My point was you NEED to set soft limits even if it doesn’t seem to make sense, like for a lathe setup or Z on a mill. Otherwise, you CAN fast jog into the switch and crash.


martyscncgarage
Posts: 9932
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Lathe with stepper motors - limit switch crash

Post by martyscncgarage »

ScotY wrote: Sun Dec 24, 2017 6:57 pm I’m not disagreeing with that. My point was you NEED to set soft limits even if it doesn’t seem to make sense, like for a lathe setup or Z on a mill. Otherwise, you CAN fast jog into the switch and crash.
I'm sorry, yes that is correct. It's part of the setup process. Control needs to know the travels of the machine.
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


frijoli
Posts: 595
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 1030090099
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Outside Winston-Salem, NC
Contact:

Re: Lathe with stepper motors - limit switch crash

Post by frijoli »

ScotY wrote: Sun Dec 24, 2017 6:57 pm I’m not disagreeing with that. My point was you NEED to set soft limits even if it doesn’t seem to make sense, like for a lathe setup or Z on a mill. Otherwise, you CAN fast jog into the switch and crash.
I think the confusion comes from the fact that people think of "home" as a maximum travel position. It isn't.

What it in fact is, is a reference point for the machine zero.

Clay
Clay
near Winston-Salem, NC
unofficial ACORN fb group https://www.facebook.com/groups/897054597120437/


Post Reply