From Wen
I received this via PM:
i tried to fill the high bottle first and what i did is when the high bottle arrives to the filling place i let the main conveyor stop and then fill the bottle. i use a timer to count the time of this stop and a counter to force the fill tube fill once and stop until next bottle comes.
in my program i use the status output file "stop the main conveyor" to start the timer. and after the timer is done i need to reset it and let the "stop the main conveyor" false. so if i use the "time is done" to unlatch "stop the main conveyor", it will cause some problem.
i am not sure if you get my point or not. it's difficult to talk about it without seeing the program. maybe tonight i can send you my program for a check if you have free time to see it. anyway, thanks for your reply very much.
I'm happy to help, but keep several things in mind:
1) It's better if you post to the board, instead of via Private Message, for two reasons: I've been known to make a mistake or two - when that happens, lurkers come out to set us both straight; and some other student may in the future stumble across your post - it will save me (or anyone else from repeatedly repeating ourselves repeatedly.
2) I have NO idea what your task is - I had thought I had recognized it (the link I gave), but that link was to the Simulation v. Reality problem. Yours is different.
3) While I have several software packages for programming PLCs, I don't think I have yours, nor do I have any interest in acquiring/installing it, even "free from the internet". Posting your code will LIMIT the number of responses. Your goal on this forum should be to MAXIMIZE your responses. From what I've seen, The Learning Pit's software simulates RSLogix, and you can use it to generate .GIFs or .JPGs, which you can post here.
DON'T POST YOUR ENTIRE PROGRAM!!! Post only the portion that seems to not be working the way you expect. While not all of us can read an .RSS file, ALL of us speak ladder (and many have been known to dream in ladder).
4) Your problem seems to be conceptual, not logical. That is, I'm not convinced that YOU understand what you are trying to accomplish. We have found that once the problem is properly understood, and properly stated, the ladder code practically writes itself. So before posting any code, first describe the system.
What's supposed to happen when. Slow down your thinking, and try to look at the world from the prespective of each peice of equipment, one at a time. Pretend that you are the conveyor. What event(s) cause you to move? What event(s) cause you to stop moving? Don't worry about what the fill valve is doing, just focus on your job (moving and not moving bottles). Once you understand that job, THEN focus on the fill valve. One by one, examine every OUTPUT that the PLC controls, and understand the rules that govern their lives. ONLY THEN do you look at the bigger picture, watching for conflicts.
If you have a sequence, think in terms of
Actions and
Transitions. You are on step 1. What do you do?(action) When do you stop doing what you are doing and go on to step 2?(transition). Watch the words carefully you use to describe things. "While" and "Until" are do not belong in Actions - they indicate the Transition. It is perfectly OK to do many of the same things on multiple sequential steps.
This should be enough to get you started.