This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
|Try our online
PLC Simulator- FREE.
Click here now to try it.
New Here? Please read this important info!!!
|July 25th, 2010, 10:21 PM||#1|
Join Date: Jul 2010
convert flowchart to ladder diagram
im a litle bit confused how to convert flowchart to ladder diagram..lets say the flow chart like attach pic,
may anyone help me..
|July 26th, 2010, 08:20 AM||#4|
Flow charts are merely a series of steps to accomplish a task look at each step seperately. Work out how to program each step individually but keep in mind the assigned I/O points.
step 1) open outlet valve and close inlet valve
step 2) if start button pressed open inlet valve close outlet valve.
step 3) input level sensor
step 4) if tank is full or stop button pushed open outlet valve and close inlet valve
how to program each step will depend on which PLC make and model your using which you did not specify.
Also hopefully this is merely an assignment and not an actual machine if its an actual machine you will want margin levels on your tank full logic to keep the vavle outputs from stuttering (coming on and off too often)
Can I ground short a Sparky?
Last edited by mordred; July 26th, 2010 at 08:28 AM.
|July 26th, 2010, 02:08 PM||#5|
make it with SFC or with CFC in your head:
ladder rung 1 is step 1
if conditions are good step 2 is activated and step 1 is off.
and so on.
you can even step over with this ladder.
J. Wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
|July 26th, 2010, 02:48 PM||#6|
Lifetime Supporting Member
This appears to be a homework problem. While we don't provide the final solutions for homework problems, we do provide help in solving them. If its not a homework problem then this will hopefully still be helpful.
You have two states.
In state 0 the outlet valve is open, the inlet valve is closed.
In state 1 the outlet valve is closed, the inlet valve is open.
Pressing the start button transitions you from state 0 to state 1. Pressing the stop button or having the tank full transitions your from state 1 back to state 0.
Since its a tank filling, lets call the state Filling. When Filling = 0 we are not filling the tank, and when it is 1 we are filling the tank.
If we create a truth table for this we get
Looking at the table we see that
Outlet_valve = NOT Filling
Inlet_Valve = Filling.
Now all we need to define now is the logic for the state, or Filling, which can be 0 or 1. In plain language, when we push the start button we want FILLING to change to a 1 and we want it to remain a 1 until the stop button is pushed or the tank is full. If we write that statement as a boolean equation we get
FILLING = (Start_Button OR FILLING) AND NOT Stop_button and not Tank_Full.
From here you should be able to construct three rungs of ladder logic that implement the flow chart.
Extra Credit: Reduce this to two rungs and eliminate the need for a bit to define the state (Hint: Outlet_Valve = Not Inlet_Valve and Inlet_Valve = Filling)
True craftsmanship is only one more power tool away.
That's the beauty of processors, they don't have emotions they just run code - The PLC Kid.
Last edited by TConnolly; July 26th, 2010 at 03:00 PM.
|July 26th, 2010, 03:00 PM||#7|
Here is something that could be food for thought in pointing you to one method of going from a flow chart (SFC) to ladder:
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|a star delta ladder diagram||engr_shafi2002||LIVE PLC Questions And Answers||6||April 17th, 2013 07:29 PM|
|Flow diagram -> ladder diagram HELP||alehander||LIVE PLC Questions And Answers||44||April 18th, 2008 03:53 AM|
|Hi. Could you help me to convert a simple ladder diagram into Pascal, C,or Basic code||Boyko Boykoff||LIVE PLC Questions And Answers||3||May 6th, 2003 11:04 AM|
|need a ladder diagram....Help please....||dawghogston||LIVE PLC Questions And Answers||2||April 12th, 2003 06:38 AM|
|Communication between Ladder Diagram and PLC||sandhu||LIVE PLC Questions And Answers||5||December 15th, 2002 11:56 PM|