11-27-2007 06:22 AM
11-28-2007 04:52 AM
Hi Will
The Z Index cannot be enabled or disabled while a task is running. You would have to stop the task, disable (or enable) the Z index, then restart the task.
Regards
Beejal
04-10-2008 03:39 PM
04-11-2008 04:29 AM
04-11-2008 09:31 AM
04-11-2008 04:52 PM
04-15-2008 01:25 PM
Thanks for the feedback. All these solution could be viable. However instead of using an additional counter input I rather implement a hardware solution. That is, always have the Z-index enabled and through hardware enable and disable the Z-Signal using an AND gate and a digital out.
I am trying to enable and disable the z-index has part of a homing algorithm. Perhaps there is another way to do it.
Here is the problem. Because the encoder value is being used in a feedback system, I can not have it jump to zero when the index is crossed. Instead, I would like to latch the encoder value when crossing the index. Then, I can stop the controller and change the encoder value and the command in a controlled way. (but I have not found a way to do this)
If I can't latch the encoder value, then I could have another counter zero on an index and the other not zero (the later will be used for control). After the index is crossed, I could switch back to the other encoder for control (but I need to disable the index).
Let me know if you have a better solution that would not require any external hardware and that would require only one counter (or not more than 2).