PLC Help for small Project

Hi I am a final year student, and have took a simple task on that I am really struggling with.

I have 4 small conveyors that work one at a time and one big conveyor that continually runs.

I need help using a RTO function for each small conveyor as I want them to run individually for two mins each then stop and move onto the next small conveyor on loop. For this project there will be a waste machine, therefore I need to use RTO for the small conveyors so I don't lose the sequence for when the conveyors stop.

Any help would be greatly appreciated
 
I do not understand why you need RTO, your explanation is vague normally, a bank of conveyors work in a way where the first one starts, when the product is about to enter the next conveyor that also starts, then when the product leaves the first conveyor it stops.
to do this ideally, sensors are used on the output of each conveyor so if the conveyor after it is clear it runs both conveyor 1 & 2 conveyor 1 stops when the sensor is clear, if the conveyor after is full then the preceeding one stops when the sensor is covered.
So perhaps this is just a test & relying on timers instead of sensors or maybe I have it wrong, perhsps post a diagram of the conveyors & the original description
of the task, what controls are on it i.e. pushbuttons, sensors, motors, etc.
also what PLC make are you using that helps with relevant code.
 
I am not sure why you need an RTO, but let's say you do.

1) can you set up a pair of contacts on a rung that feeds an RTO timer?
1.1) one of the contacts evaluates to True when the system is "ON," whatever that means
1.2) one of the contacts evaluates -
1.2.1) to True when the "waste machine" is not active and the RTO timer should run when the system is ON (the other contact), and
1.2.2) to False when the waste machine is active
1.3) the timer preset should be at least eight minutes, i.e. two minutes cumulative per small conveyor, time four small conveyors
1.4) have the timer, or at least its accumulator, reset to 0 when the timer reaches 8 minutes

2) Can you set up an output to run the small conveyors when the timer is timing (see (1) above), and
2.1) the first conveyor runs when the RTO timer accumulator value is between 0 and 2 minutes
2.1.1) or the accumulator value is less than 2 minutes
2.2) the second conveyor when the RTO timer accumulator value is between 2 and 4 minutes
2.3) the third conveyor when the RTO timer accumulator value is between 4 and 6 minutes
2.4) the fourth conveyor when the RTO timer accumulator value is between 6 and 8 minutes
2.4.1) or the accumulator value is less greater than 6 minutes.

So that is five rungs:
  • One rung of sequence logic with the RTO to control the sequence
  • Four rungs of business logic to decide what to do at each time of the sequence
  • there might be another rung to control the main conveyor
  • and perhaps a Start/Stop Circuit pattern rung (see here); I don't know all the inputs and controls.
It could actually be one rung with five output branches, but the key concept to make this as simple as possible is that the sequence logic (what step/state is the system in, and how does it transition between steps?) is separate from the business logic (what actions does the system perform when it is in each step/state?)
 
Retentive Timers may work slightly different depending on the PLC, however, most work in the following manner
When the Enable is true it starts to count up, if the Enable goes false it retains the count then when the enable becomes true again carries on.
The timer will only reset either on a reset or when the accumulated value has reached the set value & the enable goes false.
But without some form of feedback from yourself answering some of the questions we have requested you are not going to get any real answers.
 
When running the main conveyors always run, unless the baler is in action.



Side A

When side A runs it will run for 2 minutes, once it has ran it’s time, Side A will then turn off.

Side B will only run for two minutes once it has received a signal from RF Sensor 6 that there is no cardboard, and that Side A is off.

Side C will only run for two minutes once it has received a signal from RF Sensor 7 that there is no cardboard, and that Side A and B are off.

Side D will only run for two minutes once it has received a signal from RF Sensor 8 that there is no cardboard, and that Side A, B and D are off.



All sides and main conveyor will stop if the baler is running or is in fault. Once the baler has finished running it will carry on the same process from it left on. Once Side D has ran it will then loop back to Side A to repeat the process again.


Sorry for the late reply, this is the reason I was looking at using RTO function due to it memorizing the data function instead of resetting I think? Correct me if I am wrong
 
...

Sorry for the late reply, this is the reason I was looking at using RTO function due to it memorizing the data function instead of resetting I think? Correct me if I am wrong

Update

Whoops, I just read the process description again: the reason for the RTO is in the last section, where the process may be halted due to a fault, in which case you do not want the timer, that was timing at the time of the fault, to reset.

If each small conveyor will run for two minutes once its start conditions become True, then you do not need an RTO.

An RTO is used when

  • the "run timer" condition changes state while time is accumulating,
  • and you want to accumulate time only when that "run timer" condition is True,
  • and you do not want to reset the accumulated time when the "run timer" condition is False.
In the process as described, the first condition is not met. You could still use an RTO, but then you would need additional logic to reset the RTO state, while a TON (or even a TOF) is able to be reset via the logic that directs it to be timing or not.
 
Update

Whoops, I just read the process description again: the reason for the RTO is in the last section, where the process may be halted due to a fault, in which case you do not want the timer, that was timing at the time of the fault, to reset.

So go back and do what was suggested in Post #3, then post the result and we will work from there.

A lot will depend on which vendor/model of PLC is in play here.
 
Thank you mate, I will look into that now and at the moment I am using a Allen Bradley 850 using CCW software. Appreciate all the feedback
 
Drbitboy will get his teeth extactor out on this one I'm sure, I don't have CCW but can show equivelent code easy portable to AB.
A little bit more detail will help like a quick sketch of the conveyors layout & where the sensors are for example the statement no cardboard is this sensed by the sensors, direction of conveyors this detail is important to give you some direction. Even a quick sketch would do.
Using RTO's will work a little different i.e. the conveyor will need to run while the timer output is false & reset the logic that runs the conveyor when it's true.
 
I'm going to take a wild guess at your assignment, and assume you have a system like this:
→ → → → → Main Conveyor
═══╦════╦════╦════╦═╡
↓║ ↓║ ↓║ ↓║
↓║A ↓║B ↓║C ↓║D
↓║ ↓║ ↓║ ↓║
╨ ╨ ╨ ╨

and that it takes 2 minutes for a "package" to go from where it's "pushed off" of the main conveyor until it gets to the end where <it falls off the end> As you say, you want to use four RTOs in case, for reasons unknown, its conveyor stops.

RTOs require some sort of Reset function (the RES command in Rockwell) to allow them to start from zero, and run (tick time) while their input condition is true.

In broad strokes, you would use each conveyors "Running" signal (aux feedback or command output, whatever you have available) to enable the RTO.

The harder question is: when do you want to "Reset" -- not the timer, per se, but the whole system. It may be that, while there's a package on the conveyor, the pusher isn't allowed to add another package to it. Or not; your process description doesn't even hint that you know the answer to that question. Presumably you stop each side conveyor when it's run out (timer done) any package on it.

Some options for when to reset:
• When the package reaches the end (sensor) or when the timer is done.
• When the "pusher" first puts something on the conveyor. This allows more than one package to be on the conveyor, and ensures that the last one mode the whole 2 minutes.
• When the "something" that stopped the conveyor indicates that the "package" was removed from that short conveyor. This could be used in conjunction with one or more of the above.

Tip going forward: don't worry about how to code the PLC. First figure out what's supposed to happen first.
Programming the PLC is driving from L.A. to Boston. Before you start driving, you need to know what route you're going to take and where you'll stay; what alternate paths and inns you will take if things go wrong, etc.

You can't reach success until you first know what success looks like. Everything else is just mechanics.
 
When running the main conveyors always run, unless the baler is in action.



Side A

When side A runs it will run for 2 minutes, once it has ran it’s time, Side A will then turn off.

Side B will only run for two minutes once it has received a signal from RF Sensor 6 that there is no cardboard, and that Side A is off.

Side C will only run for two minutes once it has received a signal from RF Sensor 7 that there is no cardboard, and that Side A and B are off.

Side D will only run for two minutes once it has received a signal from RF Sensor 8 that there is no cardboard, and that Side A, B and D are off.
Drbitboy will get his teeth extactor out on this one I'm sure,
Oh @parky (homa ;) )
  • When all small conveyors (Sides A, B, C, D) are off, what causes Side A to start running?
  • When Side D completes its two minutes of running, what causes Side A to start running again?
I suppose the answers to those questions could be the same, but the real issue, to me, is that there is no RF Sensor (5?) that triggers Side A to start.
 
Tip going forward: don't worry about how to code the PLC. First figure out what's supposed to happen first.
this ↑↑↑↑↑↑!

Can you state the logic for running Side A as an IF-THEN-ELSE statement?

E.g. on each scan cycle
  • IF systemIsRunning AND (sideBisRunning OR cardBoardDetectedAtRFSensor6) AND (NOT balerIsRunning) AND (NOT systemFaulted) THEN
    • Set value of sideBisRunning to 1
    • Accumulate time in RTO since the previous scan cycle on this scan cycle
  • ELSE
    • Reset value of sideBisRunning to 0
    • Do not accumulate time in RTO since the previous scan cycle on this scan cycle
N.B.
  1. the value of the sideBisRunning Boolean (bit) is written on EVERY scan cycle, whether the IF-THEN expression is True or False.
  2. The value of the sideBisRunning in bold-red above that is read when evaluating the IF-THEN expression is the value that was written from the previous scan cycle.
  3. This means that, while the sideBisRunning and sideBisRunning are references to the same bit in memory, the value of those two references are different in time.
    1. PLC programming is primarily about time, and the scan cycle is the clock.
See also: Start/Stop Circuit | Contact and Coil
 

Similar Topics

Hello all, I need help in a small plc program in Allen Bradley plc. Need to generate a 1 second pulse on every ON and OFF of a bit. Suppose for...
4
Replies
2,977
Views
Hello, I am not sure if this forum has anyone who can create a simple Ladder Logic PLC program for me or not. If not, do you have any advice...
22
Replies
10,725
Views
Hello everyone, I'm interested in understanding how PLC-based monitoring systems can help identify early warning signs of mechanical seal failure...
2
Replies
248
Views
Hi everyone, I have an old Modicon PLC program saved as an .FMD file, which was created using FasTrak PLC WorkShop for Modicon. I can open the...
1
Replies
185
Views
This is my first time seeing this kind of plc and I'm having trouble figuring out what software is used to program it. If anyone has experience...
2
Replies
318
Views
Top