You are on page 1of 21

PROGRAMMING OF PLC:

PROGRAMMING LANGUAGE
By Nurdiana binti Nordin

LEARNING OUTCOMES

Learning outcomes
At the end of lecture, students are able to:
i.

Name the IEC PLC programming languages

ii.

Brief the IEC PLC programming languages

iii.

Write an equivalent and simple IEC PLC programming


languages

LECTURE CONTENTS

Todays Lecture
IEC 61131-3 PLC Standard
Function block diagram (FBD)
Sequential function chart (SFC)
Instruction list (IL)
Structure text (ST)

What is IEC 61131-3 PLC


Standard?
IEC 61131-3 PLC Standard:

International Standard for PLC

Published in 1992 by International Electrotechnical


Commission - IEC

Standardized all aspects of PLC including programming


matters & inter-PLC communication

IEC 61131-3 PLC Standard

All these language must be able to interact with each other,


and must be able to use on the same PLC.

Ladder Diagram: Example

START S1

STOP S2

HIGH
LEVEL H1
PUMP P1

PUM P

P2

Function Block Diagram

Basic FBD may used to create complex FBD

Function Block

Function Block

Function Block

Sequential Function Chart

Sequential Function Chart:


Example

Instruction List

Instruction List: Example


Instruction

Operand

Optional Comment

LD

S1

// Load value of Start

OR

P1

// Or with value of Pump

AND

S2

// And with Stop

ANDN

H1

// And Not High level

ST

P2

// Put result back in Pump

Instruction list typically have an instruction, operand &

optional comment

Structured Text

Structured Text: Example


Function_Block Power_Test
Var_Input
Current, Volt_1, Volt_2;
End_Var
Var_Output
Overload
End_var
If (Volt_1*Current>100) then
Overload=True;
Return;
End_If;
If(Volt_2*(Current+10.0)>100) then
Overload=True;
End_If;
End_Function Block

Current
Volt_1
Volt_2

Power
Test

Equivalent FB
diagram

Overload

MY 2 CENTS

We are what we
repeatedly do. Excellence,
therefore,
is not an act but a habit.
Aristotle

You might also like