Sign in to follow this  
Followers 0
liquorfairy

Counter to control two objects?

6 posts in this topic

I created a program in which if i click a push button once, object one will move towards my desired position and i created a countered to tell it that if i push the pushbutton twice that the second object will move to that particular position but instead i'm getting both of my objects to move to my desired position rather than object two only. How can i fix this? RSLogix 5000 Report(s).pdf Edited by liquorfairy

Share this post


Link to post
Share on other sites
You will have to zip and post your program. If it is small then a VERY CLEAR picture of the rungs may be ok.

Share this post


Link to post
Share on other sites
You have a set of counters with a preset of one and a set of counters with a preset of two. The preset of 1 is carriage 1 and the preset of 2 is carriage 2? So you need to add a condition that if the button is pressed a second time within a certain time period, only carriage 2 starts, does that sound right?

Share this post


Link to post
Share on other sites
Well.... The way you have the code set up makes this difficult. You're one-shotting the pushbutton which drives the counter, and if the counter is done latching in your movement, all in one rung. Unfortunately, this doesn't allow you to add a timer and bypass the logic. I would separate the pushbutton conditions from the actual movement latching action. You have a lot going on, so let me give a simple example of how to approach the problem. You'll have to expand on it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0