M19 and spindle-index-enable issues

More
3 years 5 months ago - 3 years 5 months ago #272198 by Aciera
Note that M19 will only accept values 0,1 and 2 for parameter P, everything else triggers an error message and the command is not executed. That is why I had to force the rehoming in the component. Also the index-enable signal must not be forced to 1 or 0 while the component in not enabled.
Last edit: 3 years 5 months ago by Aciera.

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

More
3 years 4 months ago #273265 by andypugh
Your code looks like it will always set index_enable true? Even if it is working, that probably isn't exactly what you want.

The point of IO pins is to only write any state to them when you want to set the state, and let other parts of the net be in charge at other times.

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

More
3 years 3 weeks ago #282461 by Alexandrion
Thank you Andy for the new orient component! Now I can orient the spindle in one turn and with higher accuracy.

In my case I think I had an issue with the high values of the encoder count on my mesa 7i77, the longer the spindle ran the longer the orient took because instead of 1 rotation orient, my spindle did 6-7 rotations ccw and then another 6-7 cw before the orient was completed, even if I ran in orient mode 1.  I even tried to use M5 and a dwell before orienting but no success.

The only issue I had with the new component was G33.1 not synching properly and wanting to go at maximum speed into the workpiece, quite a sphincter tightening experience, but it seems that this issue was resolved by deleting the index_enable = 0 from case 0.

Regards,
Alex

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

More
3 years 3 weeks ago #282477 by COFHAL
Try this

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

More
3 years 3 weeks ago #282484 by COFHAL
Is that version of the ORIENT component with homing already included in the official versions of LCN? Or is it necessary to compile it to use it with the official versions?

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

More
3 years 3 weeks ago #282491 by Aciera
No, it has not been included. Would be great if you could test Andy's version and report back if that works for you. I had to modify it as posted to get it working.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum