Home Limit Switch

More
26 Apr 2021 18:51 #207150 by Clive S
Replied by Clive S on topic Home Limit Switch
Have you tried changing

MIN_LIMIT = -0.001
MAX_LIMIT = 838

to

MIN_LIMIT = 838
MAX_LIMIT = -0.001

in the 3 places

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 19:04 #207155 by Jeff_in_Wa
Replied by Jeff_in_Wa on topic Home Limit Switch
I will try that
Clive, will you set my thinking right...

If my home switches are on the back right, should my machine coordinates be positive or negative as I move the spindle over the work area?

I think that's what is messing with my brain...

Your suggestion makes the work area negative, which is what I'm used to.

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 19:42 - 26 Apr 2021 19:58 #207161 by Michael
Replied by Michael on topic Home Limit Switch
You can have your values all he negative or all positive. Or some where in between. You could have the center of the table be 0,0

To clean it up for you if you want the home position to be in the right rear then all your values will be negative. The axis movement is all the direction the spindle travels relative to the table. Positive in x is right. Positive in Y is away or to the rear. Does the dro count the correct direction as I just stated?

What movent profile do you have? X axis spindle moves or table? Same question for Y and Z
Last edit: 26 Apr 2021 19:58 by Michael.

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 20:04 #207164 by Jeff_in_Wa
Replied by Jeff_in_Wa on topic Home Limit Switch
So, I am going to follow your lead. I will move all the numbers to put the table into the negative. So far I haven't crashed the machine.

The gantry moves, not the table. Spindle min/max on X
Two motors on the Y's

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 20:22 #207165 by Jeff_in_Wa
Replied by Jeff_in_Wa on topic Home Limit Switch
Ok! I changed my min / max limits as you suggested. The machine seems to be homing perfectly, but I am now getting these errors:

"Exceeded negative soft limit (1117.00) on Joint 0
joint must be unhomed, jogged into limits, rehomed"

Same for joint 1 & 2 (Y's)

Here is the Joint 0 Code:

[AXIS_X]
MAX_VELOCITY = 150.0
MAX_ACCELERATION = 200
MIN_LIMIT = 1117
MAX_LIMIT = -0.001

[JOINT_0]
TYPE = LINEAR
HOME = -12.0
MIN_LIMIT = 1117
MAX_LIMIT = -0.001
MAX_VELOCITY = 200
MAX_ACCELERATION = 200
STEPGEN_MAXACCEL = 220
SCALE = 80.0
FERROR = 1
MIN_FERROR = 0.25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 30
HOME_LATCH_VEL = -5
HOME_SEQUENCE = 1

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 20:55 #207167 by Jeff_in_Wa
Replied by Jeff_in_Wa on topic Home Limit Switch
I've got the machine homing without errors, but can't jog away from the switches. I think I must have to zero out the coordinates. Not sure...

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 21:24 #207169 by Jeff_in_Wa
Replied by Jeff_in_Wa on topic Home Limit Switch
After homing my machine, this is what the DRO is showing. Shouldn't it be at 0,0,0 or at my home offset of 12mm's?

X: -576-61 DTG: 0.000
Y: -324.12 DTG: 0.000
Z: 74.95 DTG: 0.000

G54: X: 21.157 G92: X: 555.10
G54 Y: 21.092 G92: Y: 303.139
G54 Z: -7.532 G92: Z: -79.444
G54 R: 0.000

TLO X: 0.000
TLO Y: 0.000
TLO Z: 0.000
Vel: 0.000

The machine homes, but I can't move the spindle away from the switches

Please Log in or Create an account to join the conversation.

More
26 Apr 2021 22:27 - 26 Apr 2021 22:30 #207176 by Michael
Replied by Michael on topic Home Limit Switch
Your still a bit backwards. If on the x axis the spindle moves left to right and the homing switch is on the right then you would need the right hand value (max) to be positive or larger than the left hand value (min).

[AXIS_X]
MAX_VELOCITY = 150.0
MAX_ACCELERATION = 200
MIN_LIMIT = -1116
MAX_LIMIT = -1


[JOINT_0]
TYPE = LINEAR
HOME = -12.0
MIN_LIMIT = -1116
MAX_LIMIT = -1

MAX_VELOCITY = 200
MAX_ACCELERATION = 200
STEPGEN_MAXACCEL = 220
SCALE = 80.0
FERROR = 1
MIN_FERROR = 0.25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 30
HOME_LATCH_VEL = -5
HOME_SEQUENCE = 1

Make the changes in red. This is assuming the axis moves the correct direction. Also use the mdi and enter G53 or switch the dro to display actual position. Your last DRO reading was in relative, most likely the G54. When in G53 the units displayed will be the same as what is listed in your ini file as far as the machines position.

The above setup while homing should move the x axis in a positive direction (right) to reach the home switch at 0.

Then move off the switch to -12

Then you should be able to jog in the range of -1116 to -1 and never get closer than 1mm to your switch, which would now be a limit switch. Just make sure you are looking at this in G53 or actual position.
Last edit: 26 Apr 2021 22:30 by Michael.
The following user(s) said Thank You: Jeff_in_Wa

Please Log in or Create an account to join the conversation.

Time to create page: 0.719 seconds
Powered by Kunena Forum