Sie sind auf Seite 1von 2

Introduction to PLC Programming and Implementationfrom relay logic to PLC logic

L1

L2
PB14

CR1

LS7

PL3

CR1
SOL
PS7

CR1

SOL3 UP

CR2

LS8

PS7
Start

LS9

CR2

Reset

CR2

LS8 CR3

SOL4 FWD

SOL5 DWN

CR3
PL4

Figure 1. Electromechanical relay circuit diagram.

(hardware and software), and understand the PLC system. Once these
preliminary details are understood, the programmer can begin sketching the
control program solution. The work performed during this time forms an
important part of the system or project documentation. Documenting a system
once it is installed and working is difficult, especially if you do not
remember how you got it to work in the first place. Therefore, documenting
the system throughout its development will pay off in the end.

CREATING FLOWCHARTS AND OUTPUT SEQUENCES


Flowcharting is a technique often used when planning a program after a
written description has been developed. A flowchart is a pictorial representation that records, analyzes, and communicates information, as well as
describes the operational process in a sequential manner. Figure 2 illustrates
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

www.industrialtext.com

1-800-752-8398

Introduction to PLC Programming and Implementationfrom relay logic to PLC logic

through a flowchart. Even the flowchart symbols themselves have specific


meanings, which aid in the interpretation of the solution algorithm. Figure 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
A group of one or more
instructions that perform a processing function

START

Set Preset
Values

Is PB
Pressed?

Input/Output
Any function involving
an input /output device
Decision
A point in the program
where a branch to alternate paths is possible

NO

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

Read Analog
Input

Predefined Process
A group of operations
not detailed in the
flowchart (often a
library subroutine)

Store In
Temp. Reg.

Is Temp.
> 100C

Yes

Terminal
Beginning, end, or point
of interruption in a
program

Go To
Subroutine

Connector
Entry from, or exit to,
another part of the
flowchart

No

Flowline
Direction of processing
or data flow

Turn Heater
Coil ON

Annotation
Descriptive comments
or explanatory notes
provided for clarification

END

Figure 2. Simple flowchart.

Industrial Text & Video Company

Figure 3. Flowchart symbols.

www.industrialtext.com

1-800-752-8398

Das könnte Ihnen auch gefallen