You are on page 1of 7

Chapter - Flowchart Based Design

Start/Stop
Operation

Decision

I/O

Disk/Storage

Subroutine

Flow Charts
Step 1:
Draw a Flow Chart

START

Reset all values off

start button pushed?

no

yes
Open inlet valve
Close outlet valve

Is tank full?

yes

no

stop button pushed?


no

yes

Open outlet valve


Close inlet valve

START

Step 2: Label Boxes

F1
Reset all values off

F2
start button pushed?

F3

no

yes
Open inlet valve
Close outlet valve
F6

F4

Is tank full?

yes

no
F5
stop button pushed?
no

yes

Open outlet valve


Close inlet valve

Step 3: Convert the Diagram to Ladder Logic


first scan
L

This ladder logic initializes the ladder logic

F1

F2

F3
F4

F5

F6

The following ladder logic is for operation block F1


F1
MCR

MCR

outlet

inlet
F1

F2

The following ladder logic is for the decision block F2


F2
MCR
start
U

MCR

Write the ladder logic for the other parts of the flow chart

F2

F3

Convert the previous flowchart to ladder logic using sequence bits

You might also like