[SOLVED] Mesa/Hostmot2 - PWM direction pin?

More
12 Feb 2025 05:23 #321320 by spumco
Replied by spumco on topic Mesa/Hostmot2 - PWM direction pin?
It appears based on the orient man page that index should not be needed
since orient effectively does a mod(turns) operation on the rising edge of orient enable.
That does not seem to be working, so probably the first thing to investigate.


That's what I thought.  But not sure why it isn't doing the math.

Setting index-enable isn't automatic via hal or an m-code, I've just been manually doing it while troubleshooting to see if it makes a difference.  And I haven't done it after commanding M19 but before it stops.

The only thing setting index-enable does is reduce the number of turns orient makes before (mostly) stopping.

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

More
12 Feb 2025 14:58 - 12 Feb 2025 18:55 #321345 by PCW
Replied by PCW on topic Mesa/Hostmot2 - PWM direction pin?
Almost sounds like orients addf is missing (or some of its control pins are not in the correct state)

Played around with orient a bit and it seems to behave as expected:

Before orient enable:

 


After orient enable rising edge:

 

Note that the command has been rounded to the nearest whole number of turns
and the error shows the current difference of the angular position from the orient angle

The only odd thing I noticed is that the orient angle is latched on the rising edge of orient enable
so cannot be changed after orientation begins.
 
Attachments:
Last edit: 12 Feb 2025 18:55 by PCW.
The following user(s) said Thank You: spumco

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

More
12 Feb 2025 21:02 - 12 Feb 2025 22:27 #321381 by spumco
Replied by spumco on topic Mesa/Hostmot2 - PWM direction pin?
Thanks for digging a bit more.

I've been racking my brain and reading as many examples of functioning orient examples as possible and had a thought:

My INI file has ORIENT_OFFSET commented out.  Figured it would default to '0' if left out, since I haven't decided where I want the spindle zero position to be (based on chuck key position or taper features).

Now I'm wondering if that's causing orient to misbehave.  Soon as I get back to the lathe this evening I'll uncomment it and see what happens.

Fingers crossed.

EDIT
No joy, same behavior with ORIENT_OFFSET set to 0.

Now I wonder if orient isn't working right as I have two instances of it at the same time (main and sub-spindle).  Have to test that theory next, if it's not really plausible.
Last edit: 12 Feb 2025 22:27 by spumco. Reason: Didn't work
The following user(s) said Thank You: tommylight

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

More
13 Feb 2025 03:12 #321407 by spumco
Replied by spumco on topic [SOLVED] Mesa/Hostmot2 - PWM direction pin?
OMG.

It works better if you 'addf' the orient component.

I can't believe I've been fighting this for two weeks and missed it.

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

Moderators: PCWjmelson
Time to create page: 0.094 seconds
Powered by Kunena Forum