Index pulses

More
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.
Last edit: 28 Feb 2023 03:13 by PCW.

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

More
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).
 

File Attachment:

File Name: index_offset.zip
File Size:729 KB
Attachments:
Last edit: 28 Feb 2023 11:16 by D.L.. Reason: typo

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

More
03 Mar 2023 00:12 #265749 by andypugh
Replied by andypugh on topic Index pulses

 it wants to unwind all the turns from after the spindle homing..

The "orient" HAL component is intended to deal with this. 

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

Time to create page: 0.064 seconds
Powered by Kunena Forum