C REAT I N G F LOWCH ART S AN D O U T PU T S EQU EN CES

C REAT I N G F LOWCH ART S AN D O U T PU T S EQU EN CES

Flowcharting is a technique often used when planning a program after a written description has been developed. A flowchart is a pictorial represen- tation that records, analyzes, and communicates information, as well as describes the operational process in a sequential manner. Figure 11-2 illus- trates a simple flowchart. Each step in the chart performs an operation, whether it is an input/output, decision, or data process.

In a flowchart, broad concepts and minor details, along with their relationship to each other, are readily apparent. Sequences and relationships that are hard to extract from general descriptions also become obvious when expressed

Industrial Text & Video Company 1-800-752-8398

www.industrialtext.com

S ECTION PLC System Programming C HAPTER 3 Programming

and Implementation 11

through a flowchart. Even the flowchart symbols themselves have specific meanings, which aid in the interpretation of the solution algorithm. Figure 11-

3 illustrates the most common flowchart symbols and their meanings. The main flowchart itself should not be long and complex; instead, it should

point out the major functions to be performed (e.g., compute engineering units from analog input counts). Several smaller flowcharts can be used to further describe the functions specified in the main flowchart.

Once the flowchart is completed, the user can employ either logic gates or contact symbology to implement the logic sequences. Logic gates implement

a logical output sequence given specific real and/or internal input conditions,

Process

START

A group of one or more instructions that per- form a processing function

Set Preset

Input/Output

Values

Any function involving an input /output device

Decision

A point in the program where a branch to alter-

Is PB

NO

nate paths is possible

Pressed?

Preparation

A group of one or more instructions that sets the stage for subsequent

Read Analog

processing

Input

Predefined Process

A group of operations not detailed in the

Store In

flowchart (often a

Temp. Reg.

library subroutine)

Terminal

Beginning, end, or point of interruption in a

Is Temp.

Entry from, or exit to, another part of the

No

flowchart

Turn Heater

Flowline

Coil ON

Direction of processing or data flow

Annotation

Descriptive comments or explanatory notes

END

provided for clarification

Figure 11-2. Simple flowchart.

Figure 11-3. Flowchart symbols.

Industrial Text & Video Company 1-800-752-8398

www.industrialtext.com

S ECTION PLC System Programming C HAPTER 3 Programming

and Implementation 11

while PLC contact symbology directly implements the logic necessary to program an output rung. Figure 11-4 illustrates both of these programming methods. Users should employ whichever method they feel most comfortable with or, perhaps, a combination of both (see Figure 11-5). Logic gate diagrams, however, may be more appropriate in controllers that use Boolean instruction sets.

Inputs and outputs marked with an X on a logic gate diagram, as in Figure 11- 4b, represent real I/O in the system. If no mark is present, an I/O point is an internal. The labels used for actual input signals can be either the actual device names (e.g., LS1, PB10, AUTO, etc.) or symbolic letters and numbers that are associated with each of the field elements. During this stage, the user should prepare a short description of the logic sequence.

Counter 2

Reset B

B Finished

330 gallons of B

(Reset SOL2)

(Start of pump back B)

(a)

B Finished

Counter 2 330 gallons of B

(b)

B Finished (Start of pump

Reset B

back B)

(Reset SOL2)

Figure 11-4. (a) PLC contact symbology and (b) logic gate representation of a logic

Count A Gallon

Up

500 Gal. of A

SOL1

PV = 500 Gal.

Clear C1 Reset A Finished

Figure 11-5.

A combination of logic gates and contact symbology.

Industrial Text & Video Company 1-800-752-8398

www.industrialtext.com

S ECTION PLC System Programming C HAPTER 3 Programming

and Implementation 11