BS2 help for the newbie guy
Daniel Brockman
Posts: 6
I guess I should start by telling what I'm trying to accomplish and maybe someone can give me some directions.
As I stated above I have the BS2 and my project that has been handed to me is,
We have a belt system that is moving small rocks from hoppers. When the hopper becomes empty, we want to have it automatically open another hopper and refill the empty. Pretty simple so far, right.
The issue I'm running into is I need to have the BS2 count to 60 seconds before it opens the other hopper, to make sure the current hopper is empty.
Do I need a external time base from let's say a 555 timer circuit or can the BS2 run the program and keep a timer running at the same time. I have tried some senarios but believe this controller being a single threaded device will not do this. If this is the case what controller should I use or is it simpler just to add a external time base. Does Parallyx make a time base module.
As I stated above I have the BS2 and my project that has been handed to me is,
We have a belt system that is moving small rocks from hoppers. When the hopper becomes empty, we want to have it automatically open another hopper and refill the empty. Pretty simple so far, right.
The issue I'm running into is I need to have the BS2 count to 60 seconds before it opens the other hopper, to make sure the current hopper is empty.
Do I need a external time base from let's say a 555 timer circuit or can the BS2 run the program and keep a timer running at the same time. I have tried some senarios but believe this controller being a single threaded device will not do this. If this is the case what controller should I use or is it simpler just to add a external time base. Does Parallyx make a time base module.
Comments
If you need to do something from time to time while this pause is taking place or if this pause needs to be interrupted under some conditions, you typically use a PAUSE 1000 to produce a one second clock. The PAUSE 1000 is placed in a loop and other (brief) things can be done once a second. If these things take much time to execute, you can adjust the length of the one second pause to compensate.
I really appreciate the help.