Michael Haberler
2011-03-17 11:38:30 UTC
spindle orientation looks useful for toolchanging and maybe other stuff, and some people even have done it with VFD's; some infrastructure already exists in NML although it isnt fully implemented.
I'm looking at adding an M19 command similar to the Fanuc spindle-orient like:
M19 [R<orientation in degrees; defaults to 0>] [L<orientation cw/ccw>]
this is how I'd do it:
- turn off the spindle
- set a HAL pin spindle-orientation line to convey the degrees value
- set a HAL pin spindle-direction line to convey the cw/ccw direction
- assert a HAL pin orient-spindle line
- wait for a spindle-oriented HAL pin line to become true
Further HAL logic would take care of actually driving the spindle motor, taking feedback from the spindle encoder into a PID loop and assert the spindle-oriented pin when done (still making sense?)
my question:
all spindle commands go through motion which is realtime; the above sequence doesnt look to me like it has strict realtime requirements so I would rather go through iocontrol-v2 to do this.
Is this sound or am I overlooking something?
-m
I'm looking at adding an M19 command similar to the Fanuc spindle-orient like:
M19 [R<orientation in degrees; defaults to 0>] [L<orientation cw/ccw>]
this is how I'd do it:
- turn off the spindle
- set a HAL pin spindle-orientation line to convey the degrees value
- set a HAL pin spindle-direction line to convey the cw/ccw direction
- assert a HAL pin orient-spindle line
- wait for a spindle-oriented HAL pin line to become true
Further HAL logic would take care of actually driving the spindle motor, taking feedback from the spindle encoder into a PID loop and assert the spindle-oriented pin when done (still making sense?)
my question:
all spindle commands go through motion which is realtime; the above sequence doesnt look to me like it has strict realtime requirements so I would rather go through iocontrol-v2 to do this.
Is this sound or am I overlooking something?
-m