So something like this could work?:

# load a near component and attach it to a thread
loadrt near
addf near.0 servo-thread

# connect one input to the commanded spindle speed
net spindle-cmd => near.0.in1

# connect one input to the encoder-measured spindle speed
net stepgen.2.velocity-fb => near.0.in2

# connect the output to the spindle-at-speed input
net spindle-at-speed motion.spindle-at-speed <= near.0.out

# set the spindle speed inputs to agree if within 1%
setp near.0.scale 1.01




> >
>
> http://www.linuxcnc.org/docs/2.5/html/drivers/hostmot2.html#_pins_3
>
> stepgen has a pin velocity-fb
>
> compare velocity feedback to the commanded velocity, that gets you spindle at 
> speed.
>
> connect your spindle display to velocity-fb, that gets you a ramped display.
>
> While it is still open loop, it's reasonable to expect the spindle motor is 
> at the RPM the stepgen
> says it is.
>
> You may need to adjust the units on the commanded and stepgens velocity-fb.
> May be other little details but you get the idea.
>
> Chris M
>
> ------------------------------------------------------------------------------
> The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
> is your hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials, tech docs,
> whitepapers, evaluation guides, and opinion stories. Check out the most
> recent posts - join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
                                          
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to