190k views
5 votes
At this stage, you are required to write a ladder logic code for this system considering the

following points:
1) We assume that the conveyor is always ON and we don’t consider it in our code.
2) For the sake of simplicity, we assume that the bottle is waiting before the first
cylinder and your code should start from this point.
3) Please note that, since there are no sensors to check whether the bottle passed the
first cylinder (or the second one), we will use timers to do this, that is, we open the
cylinder and wait for a couple of seconds to let the bottle passes and reaches to the
stop cylinder. Then we start filling. Make sure you choose proper timing to not to hit
the bottle in the middle of the process.
4) As you may notice, there is no input for this system, all you need to do is to configure
the outputs. How many outputs do we need? You will figure out .
Conclusion:

User Plicatibu
by
7.5k points

1 Answer

6 votes

Final answer:

In ladder logic, you can write a code to control the sequential process of adding parts to a car on a conveyor belt at different workstations. The code should include timers to check if the bottle has passed each cylinder and ensure proper timing for the filling process.

Step-by-step explanation:

In ladder logic, we can write a code to control the sequential process of adding parts to a car on a conveyor belt at different workstations. Based on the given points, we can write the ladder logic code as follows:

  1. Declare a timer T1 to wait for the bottle to pass the first cylinder.
  2. Open the first cylinder and start timer T1.
  3. If T1 reaches a certain time (e.g., 2 seconds), it means the bottle has passed the first cylinder, so close the first cylinder and open the second cylinder.
  4. Declare a timer T2 to wait for the bottle to pass the second cylinder. Start timer T2 when the second cylinder is open.
  5. If T2 reaches a certain time (e.g., 2 seconds), it means the bottle has passed the second cylinder, so close the second cylinder and start the filling process.
  6. During the filling process, use appropriate timers to ensure proper timing and avoid hitting the bottle. The timing depends on the filling speed and the size of the bottle.
  7. Once the filling process is complete, stop the filling and wait for the bottle to reach the stop cylinder.
  8. Declare a timer T3 to wait for the bottle to reach the stop cylinder. Start timer T3 when the filling process is complete.
  9. If T3 reaches a certain time (e.g., 2 seconds), it means the bottle has reached the stop cylinder, so stop any further actions.

In this code, we assume that the conveyor is always ON, and we don't consider it in our code. The code starts from the point when the bottle is waiting before the first cylinder. Timers are used to check whether the bottle has passed each cylinder and to ensure proper timing for the filling process. The code may require additional outputs depending on the specific requirements of the system.

User Richeym
by
8.4k points