Skip to content

Commit cc76f6c

Browse files
author
Luca Toniolo
committed
warn users about s-curve homing within the test ini files
1 parent 9813970 commit cc76f6c

2 files changed

Lines changed: 88 additions & 0 deletions

File tree

configs/sim/axis/axis_9axis_scurve.ini

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,28 @@ MAX_JERK = 1000.0
146146
#MIN_LIMIT = -200.0 #disabled to give more space for testing g-codes
147147
#MAX_LIMIT = 200.0 #disabled to give more space for testing g-codes
148148

149+
# ========================================================
150+
# HOMING CONFIGURATION FOR S-CURVE
151+
# ========================================================
152+
# WARNING: When using S-curve motion (PLANNER_TYPE=1), you MUST set
153+
# HOME_SEARCH_VEL and HOME_LATCH_VEL significantly SLOWER than you
154+
# would with trapezoidal motion planning.
155+
#
156+
# S-curve motion requires MORE DISTANCE to decelerate due to the
157+
# jerk-limited acceleration profile. If homing velocities are too
158+
# high, the axis may overshoot and hit hard limits or sensor limits.
159+
#
160+
# RECOMMENDED: Start with 50% or less of the velocities you would
161+
# use with trapezoidal planning, then increase cautiously.
162+
#
163+
# Example homing configuration (adjust for your machine):
164+
#HOME_SEARCH_VEL = 5.0 # Velocity for initial limit switch search
165+
#HOME_LATCH_VEL = 1.0 # Velocity for precise homing (slower)
166+
#HOME_OFFSET = 0.0 # Distance from switch to home position
167+
#HOME_USE_INDEX = NO # Use encoder index pulse for homing
168+
#HOME_IGNORE_LIMITS = NO # Ignore limit switches during homing move
169+
# ========================================================
170+
149171
[JOINT_1]
150172
TYPE = LINEAR
151173
HOME = 0.0
@@ -156,6 +178,11 @@ MAX_JERK = 1000.0
156178
#MAX_LIMIT = 200.0 #disabled to give more space for testing g-codes
157179
HOME_SEQUENCE = 0
158180

181+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
182+
# See JOINT_0 for detailed homing configuration examples.
183+
#HOME_SEARCH_VEL = 5.0
184+
#HOME_LATCH_VEL = 1.0
185+
159186
[JOINT_2]
160187
TYPE = LINEAR
161188
HOME = 0.0
@@ -166,6 +193,11 @@ MAX_JERK = 800.0
166193
#MAX_LIMIT = 100.0 #disabled to give more space for testing g-codes
167194
HOME_SEQUENCE = 0
168195

196+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
197+
# See JOINT_0 for detailed homing configuration examples.
198+
#HOME_SEARCH_VEL = 4.0
199+
#HOME_LATCH_VEL = 0.8
200+
169201
[JOINT_3]
170202
TYPE = ANGULAR
171203
HOME = 0.0
@@ -176,6 +208,10 @@ MAX_JERK = 600.0
176208
#MAX_LIMIT = 360.0
177209
HOME_SEQUENCE = 0
178210

211+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
212+
#HOME_SEARCH_VEL = 3.0
213+
#HOME_LATCH_VEL = 0.6
214+
179215
[JOINT_4]
180216
TYPE = ANGULAR
181217
HOME = 0.0
@@ -186,6 +222,10 @@ MAX_JERK = 600.0
186222
#MAX_LIMIT = 360.0
187223
HOME_SEQUENCE = 0
188224

225+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
226+
#HOME_SEARCH_VEL = 3.0
227+
#HOME_LATCH_VEL = 0.6
228+
189229
[JOINT_5]
190230
TYPE = ANGULAR
191231
HOME = 0.0
@@ -196,6 +236,10 @@ MAX_JERK = 600.0
196236
#MAX_LIMIT = 360.0
197237
HOME_SEQUENCE = 0
198238

239+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
240+
#HOME_SEARCH_VEL = 3.0
241+
#HOME_LATCH_VEL = 0.6
242+
199243
[JOINT_6]
200244
TYPE = LINEAR
201245
HOME = 0.0
@@ -206,6 +250,10 @@ MAX_JERK = 1000.0
206250
#MAX_LIMIT = 200.0
207251
HOME_SEQUENCE = 0
208252

253+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
254+
#HOME_SEARCH_VEL = 5.0
255+
#HOME_LATCH_VEL = 1.0
256+
209257
[JOINT_7]
210258
TYPE = LINEAR
211259
HOME = 0.0
@@ -216,6 +264,10 @@ MAX_JERK = 1000.0
216264
#MAX_LIMIT = 200.0
217265
HOME_SEQUENCE = 0
218266

267+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
268+
#HOME_SEARCH_VEL = 5.0
269+
#HOME_LATCH_VEL = 1.0
270+
219271
[JOINT_8]
220272
TYPE = LINEAR
221273
HOME = 0.0
@@ -226,6 +278,10 @@ MAX_JERK = 800.0
226278
#MAX_LIMIT = 100.0
227279
HOME_SEQUENCE = 0
228280

281+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
282+
#HOME_SEARCH_VEL = 4.0
283+
#HOME_LATCH_VEL = 0.8
284+
229285
# ========================================================
230286
# AXIS CONFIGURATION
231287
# ========================================================

configs/sim/axis/axis_mm_scurve.ini

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,28 @@ MAX_JERK = 1000.0
146146
#MIN_LIMIT = -200.0 #disabled to give more space for testing g-codes
147147
#MAX_LIMIT = 200.0 #disabled to give more space for testing g-codes
148148

149+
# ========================================================
150+
# HOMING CONFIGURATION FOR S-CURVE
151+
# ========================================================
152+
# WARNING: When using S-curve motion (PLANNER_TYPE=1), you MUST set
153+
# HOME_SEARCH_VEL and HOME_LATCH_VEL significantly SLOWER than you
154+
# would with trapezoidal motion planning.
155+
#
156+
# S-curve motion requires MORE DISTANCE to decelerate due to the
157+
# jerk-limited acceleration profile. If homing velocities are too
158+
# high, the axis may overshoot and hit hard limits or sensor limits.
159+
#
160+
# RECOMMENDED: Start with 50% or less of the velocities you would
161+
# use with trapezoidal planning, then increase cautiously.
162+
#
163+
# Example homing configuration (adjust for your machine):
164+
#HOME_SEARCH_VEL = 5.0 # Velocity for initial limit switch search
165+
#HOME_LATCH_VEL = 1.0 # Velocity for precise homing (slower)
166+
#HOME_OFFSET = 0.0 # Distance from switch to home position
167+
#HOME_USE_INDEX = NO # Use encoder index pulse for homing
168+
#HOME_IGNORE_LIMITS = NO # Ignore limit switches during homing move
169+
# ========================================================
170+
149171
[JOINT_1]
150172
TYPE = LINEAR
151173
HOME = 0.0
@@ -156,6 +178,11 @@ MAX_JERK = 1000.0
156178
#MAX_LIMIT = 200.0 #disabled to give more space for testing g-codes
157179
HOME_SEQUENCE = 0
158180

181+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
182+
# See JOINT_0 for detailed homing configuration examples.
183+
#HOME_SEARCH_VEL = 5.0
184+
#HOME_LATCH_VEL = 1.0
185+
159186
[JOINT_2]
160187
TYPE = LINEAR
161188
HOME = 0.0
@@ -166,6 +193,11 @@ MAX_JERK = 800.0
166193
#MAX_LIMIT = 100.0 #disabled to give more space for testing g-codes
167194
HOME_SEQUENCE = 0
168195

196+
# WARNING: S-curve homing requires SLOWER velocities than trapezoidal!
197+
# See JOINT_0 for detailed homing configuration examples.
198+
#HOME_SEARCH_VEL = 4.0
199+
#HOME_LATCH_VEL = 0.8
200+
169201
# ========================================================
170202
# AXIS CONFIGURATION
171203
# ========================================================

0 commit comments

Comments
 (0)