M19 and spindle-index-enable issues

More
4 years 11 months ago #225410 by andypugh
Code:
O100 IF [#5000 EQ 0] M2 S100 G4 P2 #5000 = 10 O100 ENDIIF

(Untested, I am on a train)
The following user(s) said Thank You: Michael

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

More
4 years 11 months ago #226079 by nkp
Can do something like homing the spindle when turning on the machine? (By running the spindle for a few seconds).
And to control whether the index mark is found after that - if it is not found - an error!

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

More
4 years 11 months ago #226113 by andypugh
I intend to add spindles to the homing sequence. In fact the whole multi-spindle change was mainly in preparation for that.

I just haven't done it yet.
The following user(s) said Thank You: nkp, 0x2102, Michael

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

More
4 years 11 months ago - 4 years 11 months ago #226116 by spumco

Code:
O100 IF [#5000 EQ 0] M2 S100 G4 P2 #5000 = 10 O100 ENDIIF (Untested, I am on a train)  

 
Code:
M3 might be better than M2 in this case;)
Last edit: 4 years 11 months ago by spumco. Reason: formatting

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

More
3 years 5 months ago - 3 years 5 months ago #270783 by 0x2102
Bringing back an older thread because there seems to be another issue that people run into with high(er) speed spindles and spindle index / M19. 

Everything seems to work until the spindle is at higher speeds and right after that you call an M19 to orient the spindle. 

Example:

S1000 M3 
M5 
M19 R0  -> Spindle is a 0 degree

S16000 M3
M5
M19 R0 -> Spindle is at 30 degree or another number due to EMI or another reason the spindle encoder count doesn't match a 100% anymore.

I was thinking of writing a component that would wait for spindle off and a low rpm range (1000 - 2000 etc) and then set the spindle-index high again. The spindle would then re-index before it stops and the next time an M19 is called the position should be accurate again?

Thoughts or other ideas?

 
Last edit: 3 years 5 months ago by 0x2102.

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

More
3 years 5 months ago #270862 by andypugh
Maybe add homing to the orient comp?

Try this version:
The following user(s) said Thank You: Alexandrion

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

Time to create page: 0.070 seconds
Powered by Kunena Forum