Hi All;
I am trying to setup spindle coordination on a lathe system and
failing miserably.
I am using EMC 2.4.2 with a spindle encoder of
100 pulses per rev (phase-A only) plus Index.
The interface is Motenc-Lite.
My VFD has no Spindle at Speed output and my current failure is an
attempt to create one. I have tried several combinations with varying
degrees
of failure with the following:
loadrt encoder num_chan=1
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread
# Spindle Feedback ---(Chapter 30 of the 2.4.2 Integrators Manual)---
setp encoder.0.position-scale 100
net spindle-position encoder.0.position => motion.spindle-revs
net spindle-velocity encoder.0.velocity => motion.spindle-speed-in
net spindle-index-enable encoder.0.index-enable <=>
motion.spindle-index-enable
net spindle-phase-a encoder.0.phase-A
#net spindle-phase-b encoder.0.phase-B
net spindle-index encoder.0.phase-Z
net spindle-phase-a <= motenc.0.in-06-not
net spindle-index <= motenc.0.in-07-not
----The above only gave a rare blink of the Spindle.at.speed in HAL WATCH.
Mostly nothing.
#Another try
loadrt encoder num_chan=1
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread
setp encoder.0.position-scale 100
net spindle-position motenc.0.enc-02-position => motion.spindle-revs
#net spindle-index-enable motenc.0.enc-02-index-enable <=>
motion.spindle-index-enable
net spindle-phase-a encoder.0.phase-A <= motenc.0.in-06-not
net spindle-index encoder.0.phase-Z <= motenc.0.in-07-not
net spindle-rpsec encoder.0.velocity => motion.spindle-speed-in
net encoder-index-enable encoder.0.index-enable <=>
motion.spindle-index-enable
----This combination produces a Spindle.at.speed output for a few seconds
and quits
for a few seconds depending on the spindle speed, regardless of which
source
for motion.spindle-index-enable. HAL Watch is showing Spindle-rpm as a
negative
value when the spindle-at-speed goes away.
Apparently I am missing something to sync the functions causing roll
through.
Can anyone see the problem; or have a solution?
I'll try coordinated moves next, if anyone has a sample for that also.
Thanks
Don
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users