611
Mach4 General Discussion / Re: Out-Of-Band Axes in Hobby vs Indusrial
« on: May 10, 2018, 10:58:04 PM »
M19 is usually used for spindle orientation. It is an interface script that should eventually call the "spindleorient.mcs" script. You only need to find the index pulse once (home the spindle, so to speak). Then you can mathematically calculate where it is by the number of counts per rev on the encoder, assuming the encoder is 1:1 with the spindle shaft (highly suggested). Rollover may be an issue. Use and encoder with the lowest resolution needed to get the job done to keep rollovers at bay. Just re-home if you detect a rollover. However, most M19s will spin at a certain speed and find the index pulse every time and then index from there.
We don't define the arguments to M19, as there are so many variations from the MTBs. So Brett has just done up and example M19 that can be used as a starting point. I might be in the newest builds. It uses R and P arguments to the M19 script. R is the angle to orient in degrees and P is the direction to orient (0 == shortest path, 1 == clockwise, 2 == counter clockwise).
Steve
We don't define the arguments to M19, as there are so many variations from the MTBs. So Brett has just done up and example M19 that can be used as a starting point. I might be in the newest builds. It uses R and P arguments to the M19 script. R is the angle to orient in degrees and P is the direction to orient (0 == shortest path, 1 == clockwise, 2 == counter clockwise).
Steve