[SOLVED] Mesa/Hostmot2 - PWM direction pin?

More
1 year 8 months ago #321320 by spumco
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 to join the conversation.

More
1 year 8 months ago #321345 by PCW
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:

 

Attachment not found




After orient enable rising edge:

 

Attachment not found



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.
 

Please Log in to join the conversation.

More
1 year 8 months ago #321381 by spumco
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.

Please Log in to join the conversation.

More
1 year 8 months ago #321407 by spumco
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 to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum