Commit 8e9ccd6
authored
ds402: Remove set_new_home functionality from BaseNode402.homing(). (#250)
The homing() method will try to manipulate the Home Offset (0x607C)
parameter by default. That's not the way the parameter is intended to
work. After a successful homing procedure, the drive should set the
Actual Position (0x6063) to the Home Offset (0x607C) by itself. By
default that is zero, so the selected reference switch flank will mark
the new zero position.
The library's default behavior here is backwards, and can only work
with absolute position encoders. The whole point of homing is to find
a physical reference and align the logical coordinate system to it.
Trying to determine the desired offset from the value which an
unreferenced encoder had at the physical reference point actually
destroys that logical alignment.
The functionality of set_new_home=True is trivial to do from the
application, so remove it completely from homing().1 parent 4b95870 commit 8e9ccd6
1 file changed
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | 302 | | |
306 | 303 | | |
307 | 304 | | |
| |||
326 | 323 | | |
327 | 324 | | |
328 | 325 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 326 | | |
334 | 327 | | |
335 | 328 | | |
| |||
0 commit comments