PLC Programming: Topic 3 - 1
PLC Programming: Topic 3 - 1
PLC Programming: Topic 3 - 1
PLC Programming
Ladder Program
PLC Programming Languages
7
Sequential Function Charts (SFC)
SFC have been developed to
accommodate the programming of more
advanced systems. These are similar to
flowcharts, but much more powerful.
Here steps and transitions are used to
achieve end results.
Steps act as a major function in program.
These steps house the actions that occur
when we program them to happen. This
decision can be based on timing, a certain
phase of the process, or a physical state of
an equipment.
PLC Programming Languages
8
Transitions are the instructions that you use
to move from one step to another step by
setting conditions of true or false.
Unlike traditional flowcharts, the Sequential
Function Charts can have multiple paths.
We can use branches to initiate multiple
steps at one time.
PLC Programming Languages
9
Advantages
Processes can be broken into major steps
that can make troubleshooting faster and
easier.
We have direct access in the logic to see
where a piece of equipment faulted.
It can be faster to design and write the logic
due to the ability to use repeated
executions of individual pieces of logic.
Disadvantages
It does not always fit every application.
PLC Programming Languages
10
Structured Text
PLC Programming Languages
18
Instruction List
The Instruction List language resembles
Assembly Language. We use mnemonic
codes such as LD (Load), AND, OR, etc.
Advantages
The Instruction List language is valuable for
applications that need code that is
compact and time critical.
PLC Programming Languages
19
Disadvantages
There are few structuring possibilities with the
“Goto” command being one of them.
There can also be many errors that are more
difficult to deal with in comparison to many
of the other languages.
PLC Programming Languages
20
Instruction List
Development of PLC Ladder Diagram
21
Ladder diagrams are specialized schematics
commonly used to document industrial
control logic systems.
They are called "ladder" diagrams because
they resemble a ladder
The two vertical rails are called as power
rails
Horizontal lines are called as Rungs
Development of PLC Ladder Diagram
22
Development of PLC Ladder Diagram
23
A rung of ladder diagram code can contain
both input and output instructions
Input instructions perform a comparison or
test and set the rung state based on the
outcome
Input Instructions are normally left justified on
the rung
Output instructions examine the rung state
and execute some operation or function
Output Instructions are normally right justified
on the rung Input Instruction Output Instruction
Development of PLC Ladder Diagram
24
B F
AND
C D
E
A
Branches
OR
A D E
Left Power Rail Right Power Rail
B G
Branch
F H
J
S
K
R
I P
References
https://realpars.com/plc-programming-
26
languages/
27
HAPPY LEARNING!
Dr.Mahesh S. Narkhede
Electrical Engineering Department
Government Polytechnic, Mumbai
msnarkhede@ymail.com
https://drmaheshsnarkhede.wordpress.com/