Index pulses
28 Feb 2023 03:11 - 28 Feb 2023 03:13 #265529
by PCW
Replied by PCW on topic Index pulses
I don't think this has anything to do with m19
(that's just a GCODE hook to start and wait for orientation)
Looking at the orient component, it basically rounds the current encoder
position-offset to an integral number of turns and then adds the orientation offset
so should never unwind/wind more than 1 turn (or 1/2 turn in mode 0)
You probably need to take a look at the orient "command" vs the encoder position
to debug this, they should never differ by more than 1 turn.
Note that they could differ by more than a turn if you started an orient operation
when the spindle was still spinning.
(that's just a GCODE hook to start and wait for orientation)
Looking at the orient component, it basically rounds the current encoder
position-offset to an integral number of turns and then adds the orientation offset
so should never unwind/wind more than 1 turn (or 1/2 turn in mode 0)
You probably need to take a look at the orient "command" vs the encoder position
to debug this, they should never differ by more than 1 turn.
Note that they could differ by more than a turn if you started an orient operation
when the spindle was still spinning.
Last edit: 28 Feb 2023 03:13 by PCW.
Please Log in or Create an account to join the conversation.
28 Feb 2023 08:36 - 28 Feb 2023 11:16 #265537
by D.L.
Replied by D.L. on topic Index pulses
PCW, you may be interested, I made a modified encoder counter (with an additional register to offset the index position) for hostmot2.
This can be used for multi-start threading without offsetting the Z axis.
Modified driver only for 2.7.15, vhdl source code taken from hostmot2.zip(dated 150220).
This can be used for multi-start threading without offsetting the Z axis.
Modified driver only for 2.7.15, vhdl source code taken from hostmot2.zip(dated 150220).
Attachments:
Last edit: 28 Feb 2023 11:16 by D.L.. Reason: typo
Please Log in or Create an account to join the conversation.
03 Mar 2023 00:12 #265749
by andypugh
Replied by andypugh on topic Index pulses
The "orient" HAL component is intended to deal with this.it wants to unwind all the turns from after the spindle homing..
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds