benaiahhenry
Lifetime Supporting Member
Hi All,
Here's a little back ground on what I've got and need to do. I've got a machine that has a vertical axis that raises a part of varying height. I've also got a prox switch digital input that tells me when the top of the part is found. So I'm writing a searching routine to raise the part until I find the top, and then move to an offset so the part can be inspected.
I'm looking for suggestions on the best way to stop the axis quickly once the input prox is seen. Is there some kind of interruptable move command that I'm missing, or do I need to detect the input and issue a stop command? If I need to issue a stop would be the recommended method for detecting the input as fast as possible? Should I have a separate high priority periodic, or event task checking the input that then issues the stop?
I'm using RSLogix5000 vs 20 with a Kinetix 350 ethenet drive (2097-V31PR2-LM) and a AB MPL-A1530U-VJ72AA motor. The prox will be a standared input on an IQ16 input card.
I've also thought about instead of trying to stop the drive as quickly, I could use a MAR to grab the position when the prox is seen and then move to my offset based off of that. But as with the stop command, how would you recommend triggering that position capture as quickly as possible?
This isn't a large application so my scan time in my continuous task shouldn't be to high, but I'd like to be able to see the input as soon as possible.
Thanks for any suggestions!
-Benaiah
Here's a little back ground on what I've got and need to do. I've got a machine that has a vertical axis that raises a part of varying height. I've also got a prox switch digital input that tells me when the top of the part is found. So I'm writing a searching routine to raise the part until I find the top, and then move to an offset so the part can be inspected.
I'm looking for suggestions on the best way to stop the axis quickly once the input prox is seen. Is there some kind of interruptable move command that I'm missing, or do I need to detect the input and issue a stop command? If I need to issue a stop would be the recommended method for detecting the input as fast as possible? Should I have a separate high priority periodic, or event task checking the input that then issues the stop?
I'm using RSLogix5000 vs 20 with a Kinetix 350 ethenet drive (2097-V31PR2-LM) and a AB MPL-A1530U-VJ72AA motor. The prox will be a standared input on an IQ16 input card.
I've also thought about instead of trying to stop the drive as quickly, I could use a MAR to grab the position when the prox is seen and then move to my offset based off of that. But as with the stop command, how would you recommend triggering that position capture as quickly as possible?
This isn't a large application so my scan time in my continuous task shouldn't be to high, but I'd like to be able to see the input as soon as possible.
Thanks for any suggestions!
-Benaiah