You are not registered yet. Please click here to register!

plc storereviewsdownloads
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.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old July 25th, 2010, 10:21 PM   #1

shapcrook is offline
Join Date: Jul 2010
Location: Selangor
Posts: 1
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..

Attached Images
File Type: jpg tank filter system.jpg (20.0 KB, 154 views)
  Reply With Quote
Old July 25th, 2010, 11:12 PM   #2

Honga is offline
Join Date: May 2010
Location: Aus
Posts: 316
Diamonds are if statements... or in ladder XIC/XIO, rectangles are bit sets, or assignments.
  Reply With Quote
Old July 25th, 2010, 11:14 PM   #3

Honga is offline
Join Date: May 2010
Location: Aus
Posts: 316
Give me a yell if you need more info, though I suggest trying it first.
  Reply With Quote
Old July 26th, 2010, 08:20 AM   #4

mordred is offline
mordred's Avatar
Join Date: Mar 2004
Location: Red Deer
Posts: 1,892
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.
  Reply With Quote
Old July 26th, 2010, 02:08 PM   #5

shooter is offline
shooter's Avatar
Join Date: Sep 2002
Location: duketown
Posts: 2,633
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.
skype shooter paul.deelen
Computer Shooter
Paul Deelen
J. Wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
  Reply With Quote
Old July 26th, 2010, 02:48 PM   #6
Lifetime Supporting Member
United States

TConnolly is offline
TConnolly's Avatar
Join Date: Apr 2005
Location: Salt Lake City
Posts: 6,147
Greetings Shapcrook.
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

Filling | Inlet_Valve | Outlet_Valve
0 | 0 | 1
1 | 1 | 0

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.
  Reply With Quote
Old July 26th, 2010, 03:00 PM   #7
United States

Archie is offline
Join Date: May 2002
Location: Orangeburg, SC
Posts: 1,750
Here is something that could be food for thought in pointing you to one method of going from a flow chart (SFC) to ladder:
Expectations lead to disappointment. Appreciation leads to satisfaction.

AdvancedHMI - HMI Software without the license key hassles
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
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

All times are GMT -5. The time now is 11:36 AM.