SlideShare a Scribd company logo
1 of 57
EEC3420 Industrial Control 
Department of Electrical Engineering 
│ Lecture 3 │ 
Basic Programmable Logic Controller 
(PLC) Programming 
© Vocational Training Council, Hong Kong. Week 1
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
2 
Learning Objectives 
 Know different types of programming languages used in 
PLC 
 Understand the basic programming techniques of PLC
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
3 
IEC 61131 standards for PLC 
 the use of PLC has been standardized by the IEC 
 developed with the input of vendors, end-users and 
academics, IEC 61131 consists of five parts: 
 General information 
 Equipment and test requirements 
 PLC programming languages 
 User guidelines 
 Communications
EEE3420 Industrial Control 
The IEC 61131-3 programming language 
 the international standard for programmable controller 
© Vocational Training Council, Hong Kong. Week 
4 
programming languages 
 specifies the syntax, semantics and display for the 
following suite: 
 Ladder diagram (LD) 
 Sequential Function Charts (SFC) 
 Function Block Diagram (FBD) 
 Structured Text (ST) 
 Instruction List (IL)
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
5 
Ladder diagram (LD) 
 widely spread graphical programming language for 
PLCs 
 a programmatically replacement for relays and coils 
which can be combined using AND and OR operations 
 best suited to compute Boolean expressions 
 IEC 61131-3 defines a complete LD set of instructions, 
consisting of different types of contacts and coils
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
6 
Ladder diagram (LD) 
 contacts lead (according to their type) the power 
from the left to the right 
 coils store the incoming value 
 both, contacts and coils, are assigned to Boolean 
variables 
 an LD network can be supplemented by jumps, 
returns, labels and comments
EEE3420 Industrial Control 
Sequential Function Charts (SFC) 
 SFC is the IEC 61131 -3 method to program 
© Vocational Training Council, Hong Kong. Week 
7 
sequential controls 
 actions may contain Boolean variables or entire 
networks, networks are programmed in Ladder 
Diagram, true action associations from several 
steps, several concurrent SFC networks in one 
diagram
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
8 
Function Block Diagram (FBD) 
 FBD defined in IEC 61131-3 consists of different 
functions and function blocks that are either linked or 
connected to variables 
 in FBD networks, jumps, labels and returns can be used 
 similar to the creation of functional diagrams or block 
diagrams, with the control logic being created by simply 
connecting blocks and elements 
 frequently used in the process industry due to the flow-oriented 
properties of function blocks
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
9 
Structured Text language (ST) 
 similar to the high-level language PASCAL or BASIC 
 uses statements like IF...THEN or FOR…NEXT 
 concerned compiler is responsible for syntactically 
correct insertion of the language constructions 
 text editor simplifies the programming work through 
syntax highlighting 
 syntax and the set of instructions of ST are optimally 
suited for mathematical calculations and data 
manipulations
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
10 
Instruction List (IL) 
 an assembler type textual programming language 
 large (and mostly incompatible) sets of instructions 
have been created by many vendors 
 the IEC 61131 Instruction list reduced this set to a 
minimum and favours the usage of functions and 
function blocks for more complex tasks 
 code in IL consists of a sequence of instructions 
separated by lines, which consist of one operator 
("command"), one operand (variable, constant or 
instance name) and one optional modifier respectively
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
11 
Instruction List (IL) 
 jumps and labels can be used 
 concerned assembler is responsible for syntactically 
correct insertion of the language constructions 
 text editor simplifies the programming work through 
syntax highlighting (colour marking of language 
elements) 
 mainly used if the processing speed of the PLC 
program has high priority
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
12 
Instruction List (IL) 
Basic instructions used in Allen Bradley PLC 
Mnemonic Function Mnemonic Function 
LD Load ANDN And Not 
LDN Load Not ORN Or Not 
ST Store MPS Memory Push 
STN Store Not MPP Memory Pop 
AND And MRD Memory Read 
OR Or MCR Master Control Relay 
ANB And Block 
ORB Or Block 
Note: The instruction mnemonic may vary across different series of the Allen 
Bradley PLCs.
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
13 
Instruction List (IL) 
Basic instructions used in Omron PLC 
Mnemonic Function Mnemonic Function 
LOAD Load NOP No Operation 
LOAD NOT Load Not TR Temp. Register 
OUT Out IL InterLock (eq. to MC) 
AND And ILC InterLockClear(eq. to 
MCR) 
AND NOT And Inverted 
AND LD And Block 
OR Or 
OR NOT Or Not 
OR LD Or Block
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
14 
Instruction List (IL) 
Basic instructions used in Mitsubishi PLC FX series 
Mnemonic Function Mnemonic Function 
LD Load NOP No Operation 
LDI Load Inverted MPS Memory Push 
OUT Out MPP Memory Pop 
AND And MRD Memory Read 
ANI And Inverted MC Master Control 
ANB And Block MCR Master Control Reset 
OR Or 
ORI Or Inverted 
ORB Or Block
EEE3420 Industrial Control 
IL, LD and its associated logic equation 
operation labeled 
with circle 1 is 
performed first as it 
is the deepest 
nested term, and 
operations proceed 
with circle 2,circle 3 
and circle 4 
consecutively 
(Mitsubishi PLC 
codes) 
© Vocational Training Council, Hong Kong. Week 
15
EEE3420 Industrial Control 
Instruction List (IL) 
A list of commonly used IL operators defined in IEC 61131-3 
© Vocational Training Council, Hong Kong. Week 
16
EEE3420 Industrial Control 
Instruction List (IL) 
example of IL using the syntax defined in IEC 61131-3 
© Vocational Training Council, Hong Kong. Week 
17
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
18 
Instruction List (IL) 
example of IL using 
the syntax defined 
in IEC 61131-3
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
19 
Instruction List (IL) 
example of IL program using 
the instructions MPS, MPP & 
MRD to implement multiple 
outputs using the syntax 
defined in IEC 61131-3
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
20 
Instruction List (IL) 
example demonstrating 
the use of TR instruction 
(similar to MPS, MPP & 
MRD instructions defined 
in IEC 6113-3) in Omron 
PLC
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
21 
Instruction List (IL) 
example 
demonstrating 
the use of MCR 
instruction in 
Allen Bradley 
PLC
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
22 
Instruction List (IL) 
example 
demonstrating the 
use of MC & MCR 
instructions in 
Mitsubishi PLC 
(N0 is the nested 
number, maximum 
7,i.e. a total of 8 
nested levels; SP 
means “space”)
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
23 
Instruction List (IL) 
example 
demonstrating 
the use of IL & 
ILC instructions 
in Omron PLC
EEE3420 Industrial Control 
Conversion of more complex logic gates 
© Vocational Training Council, Hong Kong. Week 
24
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
25 
Multiplexer
EEE3420 Industrial Control 
Time Related Instruction – the Latch 
© Vocational Training Council, Hong Kong. Week 
26 
• a latch in ladder logic uses one 
instruction to latch, and a 
second instruction to unlatch 
• the output with an L inside will 
turn the output D on when the 
input A becomes true 
• D will stay on even if A turns off 
• D will turn off if input B 
becomes true
EEE3420 Industrial Control 
Time Related Instruction – the Latch 
© Vocational Training Council, Hong Kong. Week 
27
EEE3420 Industrial Control 
Time Related Instruction – the Latch 
a typical timing diagram, ignoring the brief pulse 
© Vocational Training Council, Hong Kong. Week 
28
EEE3420 Industrial Control 
The SR (Set-Reset) Flip Flop 
Latches are not used universally by all PLC vendors, 
others such as Siemens use flip-flops 
© Vocational Training Council, Hong Kong. Week 
29
EEE3420 Industrial Control 
The SR (Set-Reset) Flip Flop 
the SR Flip Flop may be implemented by using AND-OR 
functions 
© Vocational Training Council, Hong Kong. Week 
30
EEE3420 Industrial Control 
The SR (Set-Reset) Flip Flop 
the SR Flip Flop may also be implemented by using SET-RESET 
© Vocational Training Council, Hong Kong. Week 
31 
functions
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
32 
The SR (Set-Reset) Flip Flop 
implement the SR Flip Flop in Omron PLC
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
33 
The Timers 
• four fundamental types 
• on-delay timer will wait for a set time after a line of 
ladder logic has been true before turning on, but it 
will turn off immediately 
• off-delay timer will turn on immediately when a line 
of ladder logic is true, but it will delay before turning 
off 
• retentive timer will sum all of the on or off time for a 
timer, even if the timer never finished 
• non-retentive timer will start timing the delay from 
zero each time
EEE3420 Industrial Control 
Operation of a TON (non-retentive) Timer 
© Vocational Training Council, Hong Kong. Week 
34
EEE3420 Industrial Control 
Operation of a RTO (retentive time on) timer 
© Vocational Training Council, Hong Kong. Week 
35
EEE3420 Industrial Control 
Operation of a TOF (non-retentive t-off) 
timer 
© Vocational Training Council, Hong Kong. Week 
36
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
37 
Timers in Mitsubishi PLCs 
• in FX1N and FX2N series, there are four types of 
timers 
• T0 ~ T199 are non-retentive time on timer with 
timing interval of 100 ms 
• T200 ~ T245 are non-retentive time on timer with 
timing interval of 10 ms 
• T246 ~ T249 are retentive time on timer with timing 
interval of 1 ms 
• T250 ~ T255 are retentive time on timer with timing 
interval of 100 m
EEE3420 Industrial Control 
Using non-retentive time on timer in 
Mitsubishi FX series PLC 
© Vocational Training Council, Hong Kong. Week 
38
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
39 
Timers in Omron PLC 
• in CP series, there are 48 timers/counters with 
timing range running 
• from 0.1s to 999.9s if it is set as common timer 
• or 0.01s to 99.99s if it is set as high speed timer
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
40 
Timers in Omron PLC
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
41 
The Counters 
• two basic counter types: 
count-up and count-down. 
• when the input to a count-up counter goes true the accumulator 
value will increase by 1, if the accumulator value reaches the 
preset value the counter DN bit will be set 
• a count-down counter will decrease the accumulator value until the 
preset value is reached
EEE3420 Industrial Control 
An up-down counter in Allen Bradley PLC 
© Vocational Training Council, Hong Kong. Week 
42
EEE3420 Industrial Control 
Counter operation in Mitsubishi PLC 
© Vocational Training Council, Hong Kong. Week 
43
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
44 
Counter operation in Omron PLC
EEE3420 Industrial Control 
The Edge Triggering Instructions 
in Mitsubishi FX series PLC, there are two edge 
triggering instructions, namely, PLS (PuLSe) and PLF 
(PuLse Falling) 
© Vocational Training Council, Hong Kong. Week 
45
EEE3420 Industrial Control 
The Edge Triggering Instructions 
in Mitsubishi FX series PLC, there are two edge 
triggering instructions, namely, PLS (PuLSe) and PLF 
(PuLse Falling) 
© Vocational Training Council, Hong Kong. Week 
46
EEE3420 Industrial Control 
The Edge Triggering Instructions 
in Omron PLC, there are similar edge triggering 
instructions, namely, the DIFU (DIFferentiate Up) and the 
DIFD (DIFferentiate Down) 
© Vocational Training Council, Hong Kong. Week 
47
EEE3420 Industrial Control 
The Edge Triggering Instructions 
in Omron PLC, there are similar edge triggering 
instructions, namely, the DIFU (DIFferentiate Up) and the 
DIFD (DIFferentiate Down) 
© Vocational Training Council, Hong Kong. Week 
48
EEE3420 Industrial Control 
Applications of Time Related Instructions 
The timers and the counters find their 
applications in many industrial process controls 
© Vocational Training Council, Hong Kong. Week 
49
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Pulse generator circuit 
© Vocational Training Council, Hong Kong. Week 
50
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Fixed width pulse generator circuit 
© Vocational Training Council, Hong Kong. Week 
51
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Delay off timer - Many PLCs such as Mitsubishi do not 
provide delay off timer, but this function can easily be 
built by the delay on timer 
© Vocational Training Council, Hong Kong. Week 
52
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Light flasher 
© Vocational Training Council, Hong Kong. Week 
53
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Variable delay on/variable delay off circuit with Mitsubishi 
PLC 
© Vocational Training Council, Hong Kong. Week 
54
EEE3420 Industrial Control 
Applications of Time Related Instructions 
Variable delay on/variable delay off circuit with Omron 
PLC 
© Vocational Training Council, Hong Kong. Week 
55
EEE3420 Industrial Control 
Summary of Basic PLC Programming 
․ The Instruction List programming language uses stack 
operation to perform the operations specified. 
․ Logic can be represented with basic Boolean operations 
© Vocational Training Council, Hong Kong. Week 
56 
AND, OR, NOT. 
․ Boolean equations can be converted to and from ladder 
logic or instruction list. 
․ The MPS, MPP and MRD enable intermediate results to 
be pushed, pop and read to facilitate multiple outputs. 
․ Use of the MC/MCR instructions simplifies the 
organization of the ladder logic. 
․ The time related instructions realize the sequential 
functions.
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
57 
Basic PLC Programming 
End of Lecture 3 
 Revision 
Mitsubishi PLC FX series hardware handbook. 
Allen Bradley PLC handbook 
Omron PLC manual

More Related Content

What's hot

Pe 3231 week 15 18 plc
Pe 3231 week 15 18  plcPe 3231 week 15 18  plc
Pe 3231 week 15 18 plcCharlton Inao
 
process control instrumentation lab and labview report
process control  instrumentation lab and labview  reportprocess control  instrumentation lab and labview  report
process control instrumentation lab and labview reportHari Krishna
 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manualGautam sai teza
 
PLC Programming | Innovative Automation
PLC Programming | Innovative AutomationPLC Programming | Innovative Automation
PLC Programming | Innovative AutomationInnovative Automation
 
Training report of PLC
Training report of PLCTraining report of PLC
Training report of PLCSumit Patidar
 
Plc Paper Presentation By Durreshahwar
Plc Paper Presentation By DurreshahwarPlc Paper Presentation By Durreshahwar
Plc Paper Presentation By DurreshahwarIEEEP Karachi
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)hemadri sharma
 
FLSmidth Report final
FLSmidth Report finalFLSmidth Report final
FLSmidth Report finalShahid Faizee
 
Programmable logic controllers
Programmable logic controllersProgrammable logic controllers
Programmable logic controllersphotoshop
 
Ppt on plc
Ppt on plcPpt on plc
Ppt on plcgolu6896
 

What's hot (13)

Pe 3231 week 15 18 plc
Pe 3231 week 15 18  plcPe 3231 week 15 18  plc
Pe 3231 week 15 18 plc
 
process control instrumentation lab and labview report
process control  instrumentation lab and labview  reportprocess control  instrumentation lab and labview  report
process control instrumentation lab and labview report
 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manual
 
PLC Programming | Innovative Automation
PLC Programming | Innovative AutomationPLC Programming | Innovative Automation
PLC Programming | Innovative Automation
 
PLC Guide
PLC GuidePLC Guide
PLC Guide
 
Vt training plc_1
Vt training plc_1Vt training plc_1
Vt training plc_1
 
Training report of PLC
Training report of PLCTraining report of PLC
Training report of PLC
 
Plc Paper Presentation By Durreshahwar
Plc Paper Presentation By DurreshahwarPlc Paper Presentation By Durreshahwar
Plc Paper Presentation By Durreshahwar
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)
 
FLSmidth Report final
FLSmidth Report finalFLSmidth Report final
FLSmidth Report final
 
Programmable logic controllers
Programmable logic controllersProgrammable logic controllers
Programmable logic controllers
 
Ppt on plc
Ppt on plcPpt on plc
Ppt on plc
 
Basic plc
Basic plcBasic plc
Basic plc
 

Similar to Eee3420 lecture03 rev2011

Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011benson215
 
Eee3420 lecture02 rev2011
Eee3420 lecture02 rev2011Eee3420 lecture02 rev2011
Eee3420 lecture02 rev2011benson215
 
Eee3420 lecture04 rev2011
Eee3420 lecture04 rev2011Eee3420 lecture04 rev2011
Eee3420 lecture04 rev2011benson215
 
Eee3420 lecture06 rev2011
Eee3420 lecture06 rev2011Eee3420 lecture06 rev2011
Eee3420 lecture06 rev2011benson215
 
Eee3420 lecture05 rev2011
Eee3420 lecture05 rev2011Eee3420 lecture05 rev2011
Eee3420 lecture05 rev2011benson215
 
PLC: Principios básicos del controlador lógico programable mediante el softwa...
PLC: Principios básicos del controlador lógico programable mediante el softwa...PLC: Principios básicos del controlador lógico programable mediante el softwa...
PLC: Principios básicos del controlador lógico programable mediante el softwa...SANTIAGO PABLO ALBERTO
 
Teach-In : Ladder Logic for PIC Micro
Teach-In : Ladder Logic for PIC MicroTeach-In : Ladder Logic for PIC Micro
Teach-In : Ladder Logic for PIC Microhandson28
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programmingSergio Barrios
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programminghamza239523
 
subission report
subission reportsubission report
subission reportManoj Kumar
 

Similar to Eee3420 lecture03 rev2011 (20)

Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011
 
Eee3420 lecture02 rev2011
Eee3420 lecture02 rev2011Eee3420 lecture02 rev2011
Eee3420 lecture02 rev2011
 
Eee3420 lecture04 rev2011
Eee3420 lecture04 rev2011Eee3420 lecture04 rev2011
Eee3420 lecture04 rev2011
 
Eee3420 lecture06 rev2011
Eee3420 lecture06 rev2011Eee3420 lecture06 rev2011
Eee3420 lecture06 rev2011
 
Eee3420 lecture05 rev2011
Eee3420 lecture05 rev2011Eee3420 lecture05 rev2011
Eee3420 lecture05 rev2011
 
Modul PLC Programming.pdf
Modul PLC Programming.pdfModul PLC Programming.pdf
Modul PLC Programming.pdf
 
Plc 2
Plc 2Plc 2
Plc 2
 
Programmable logic leseprobe
Programmable logic leseprobeProgrammable logic leseprobe
Programmable logic leseprobe
 
Programmable logic leseprobe
Programmable logic leseprobeProgrammable logic leseprobe
Programmable logic leseprobe
 
PLC: Principios básicos del controlador lógico programable mediante el softwa...
PLC: Principios básicos del controlador lógico programable mediante el softwa...PLC: Principios básicos del controlador lógico programable mediante el softwa...
PLC: Principios básicos del controlador lógico programable mediante el softwa...
 
Teach-In : Ladder Logic for PIC Micro
Teach-In : Ladder Logic for PIC MicroTeach-In : Ladder Logic for PIC Micro
Teach-In : Ladder Logic for PIC Micro
 
1913523 vanshika
1913523 vanshika1913523 vanshika
1913523 vanshika
 
Shishupal plc
Shishupal plcShishupal plc
Shishupal plc
 
Electrician Training for USAF
Electrician Training for USAFElectrician Training for USAF
Electrician Training for USAF
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programming
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programming
 
subission report
subission reportsubission report
subission report
 
PLC in Automation
PLC in AutomationPLC in Automation
PLC in Automation
 
Plc
PlcPlc
Plc
 
presentation on plc.pptx
presentation on plc.pptxpresentation on plc.pptx
presentation on plc.pptx
 

More from benson215

Chapter 5 - DC-AC Conversion.pdf
Chapter 5 - DC-AC Conversion.pdfChapter 5 - DC-AC Conversion.pdf
Chapter 5 - DC-AC Conversion.pdfbenson215
 
Chapter 0 - Introduction.pdf
Chapter 0 - Introduction.pdfChapter 0 - Introduction.pdf
Chapter 0 - Introduction.pdfbenson215
 
Chapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdfChapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdfbenson215
 
Chapter 2 - Isolated DC-DC Converter.pdf
Chapter 2 - Isolated DC-DC Converter.pdfChapter 2 - Isolated DC-DC Converter.pdf
Chapter 2 - Isolated DC-DC Converter.pdfbenson215
 
Chapter 3 - Resonant-mode DC-DC Converter.pdf
Chapter 3 - Resonant-mode DC-DC Converter.pdfChapter 3 - Resonant-mode DC-DC Converter.pdf
Chapter 3 - Resonant-mode DC-DC Converter.pdfbenson215
 
Chapter 6 - Modelling and Control of Converters.pdf
Chapter 6 - Modelling and Control of Converters.pdfChapter 6 - Modelling and Control of Converters.pdf
Chapter 6 - Modelling and Control of Converters.pdfbenson215
 
Chapter 4 - AC-DC Conversion.pdf
Chapter 4 - AC-DC Conversion.pdfChapter 4 - AC-DC Conversion.pdf
Chapter 4 - AC-DC Conversion.pdfbenson215
 
Chapter 7 - EMI.pdf
Chapter 7 - EMI.pdfChapter 7 - EMI.pdf
Chapter 7 - EMI.pdfbenson215
 
3. ac drive (misc.)
3. ac drive (misc.)3. ac drive (misc.)
3. ac drive (misc.)benson215
 
2. ac drive (common inverter drive)
2. ac drive (common inverter drive)2. ac drive (common inverter drive)
2. ac drive (common inverter drive)benson215
 
1. revision on 3 phase conventional inverter
1. revision on 3 phase conventional inverter1. revision on 3 phase conventional inverter
1. revision on 3 phase conventional inverterbenson215
 
1. revision on 3 phase controlled rectifier
1. revision on 3 phase controlled rectifier1. revision on 3 phase controlled rectifier
1. revision on 3 phase controlled rectifierbenson215
 
2. motor drive dynamic
2. motor drive dynamic2. motor drive dynamic
2. motor drive dynamicbenson215
 
5. two phase servo motor
5. two phase servo motor5. two phase servo motor
5. two phase servo motorbenson215
 
4. linear motor basics
4. linear motor basics4. linear motor basics
4. linear motor basicsbenson215
 
2. brushless dc motors
2. brushless dc motors2. brushless dc motors
2. brushless dc motorsbenson215
 
1. servo basic
1. servo basic1. servo basic
1. servo basicbenson215
 
3. relutance and hysteresis motor
3. relutance and hysteresis motor3. relutance and hysteresis motor
3. relutance and hysteresis motorbenson215
 
Eee3420 lecture08 rev2011
Eee3420 lecture08 rev2011Eee3420 lecture08 rev2011
Eee3420 lecture08 rev2011benson215
 

More from benson215 (20)

Chapter 5 - DC-AC Conversion.pdf
Chapter 5 - DC-AC Conversion.pdfChapter 5 - DC-AC Conversion.pdf
Chapter 5 - DC-AC Conversion.pdf
 
Chapter 0 - Introduction.pdf
Chapter 0 - Introduction.pdfChapter 0 - Introduction.pdf
Chapter 0 - Introduction.pdf
 
Chapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdfChapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdf
 
Chapter 2 - Isolated DC-DC Converter.pdf
Chapter 2 - Isolated DC-DC Converter.pdfChapter 2 - Isolated DC-DC Converter.pdf
Chapter 2 - Isolated DC-DC Converter.pdf
 
Chapter 3 - Resonant-mode DC-DC Converter.pdf
Chapter 3 - Resonant-mode DC-DC Converter.pdfChapter 3 - Resonant-mode DC-DC Converter.pdf
Chapter 3 - Resonant-mode DC-DC Converter.pdf
 
Chapter 6 - Modelling and Control of Converters.pdf
Chapter 6 - Modelling and Control of Converters.pdfChapter 6 - Modelling and Control of Converters.pdf
Chapter 6 - Modelling and Control of Converters.pdf
 
Chapter 4 - AC-DC Conversion.pdf
Chapter 4 - AC-DC Conversion.pdfChapter 4 - AC-DC Conversion.pdf
Chapter 4 - AC-DC Conversion.pdf
 
Chapter 7 - EMI.pdf
Chapter 7 - EMI.pdfChapter 7 - EMI.pdf
Chapter 7 - EMI.pdf
 
3. ac drive (misc.)
3. ac drive (misc.)3. ac drive (misc.)
3. ac drive (misc.)
 
2. ac drive (common inverter drive)
2. ac drive (common inverter drive)2. ac drive (common inverter drive)
2. ac drive (common inverter drive)
 
1. revision on 3 phase conventional inverter
1. revision on 3 phase conventional inverter1. revision on 3 phase conventional inverter
1. revision on 3 phase conventional inverter
 
2. dc drive
2. dc drive2. dc drive
2. dc drive
 
1. revision on 3 phase controlled rectifier
1. revision on 3 phase controlled rectifier1. revision on 3 phase controlled rectifier
1. revision on 3 phase controlled rectifier
 
2. motor drive dynamic
2. motor drive dynamic2. motor drive dynamic
2. motor drive dynamic
 
5. two phase servo motor
5. two phase servo motor5. two phase servo motor
5. two phase servo motor
 
4. linear motor basics
4. linear motor basics4. linear motor basics
4. linear motor basics
 
2. brushless dc motors
2. brushless dc motors2. brushless dc motors
2. brushless dc motors
 
1. servo basic
1. servo basic1. servo basic
1. servo basic
 
3. relutance and hysteresis motor
3. relutance and hysteresis motor3. relutance and hysteresis motor
3. relutance and hysteresis motor
 
Eee3420 lecture08 rev2011
Eee3420 lecture08 rev2011Eee3420 lecture08 rev2011
Eee3420 lecture08 rev2011
 

Recently uploaded

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 

Recently uploaded (20)

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 

Eee3420 lecture03 rev2011

  • 1. EEC3420 Industrial Control Department of Electrical Engineering │ Lecture 3 │ Basic Programmable Logic Controller (PLC) Programming © Vocational Training Council, Hong Kong. Week 1
  • 2. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 2 Learning Objectives  Know different types of programming languages used in PLC  Understand the basic programming techniques of PLC
  • 3. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 3 IEC 61131 standards for PLC  the use of PLC has been standardized by the IEC  developed with the input of vendors, end-users and academics, IEC 61131 consists of five parts:  General information  Equipment and test requirements  PLC programming languages  User guidelines  Communications
  • 4. EEE3420 Industrial Control The IEC 61131-3 programming language  the international standard for programmable controller © Vocational Training Council, Hong Kong. Week 4 programming languages  specifies the syntax, semantics and display for the following suite:  Ladder diagram (LD)  Sequential Function Charts (SFC)  Function Block Diagram (FBD)  Structured Text (ST)  Instruction List (IL)
  • 5. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 5 Ladder diagram (LD)  widely spread graphical programming language for PLCs  a programmatically replacement for relays and coils which can be combined using AND and OR operations  best suited to compute Boolean expressions  IEC 61131-3 defines a complete LD set of instructions, consisting of different types of contacts and coils
  • 6. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 6 Ladder diagram (LD)  contacts lead (according to their type) the power from the left to the right  coils store the incoming value  both, contacts and coils, are assigned to Boolean variables  an LD network can be supplemented by jumps, returns, labels and comments
  • 7. EEE3420 Industrial Control Sequential Function Charts (SFC)  SFC is the IEC 61131 -3 method to program © Vocational Training Council, Hong Kong. Week 7 sequential controls  actions may contain Boolean variables or entire networks, networks are programmed in Ladder Diagram, true action associations from several steps, several concurrent SFC networks in one diagram
  • 8. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 8 Function Block Diagram (FBD)  FBD defined in IEC 61131-3 consists of different functions and function blocks that are either linked or connected to variables  in FBD networks, jumps, labels and returns can be used  similar to the creation of functional diagrams or block diagrams, with the control logic being created by simply connecting blocks and elements  frequently used in the process industry due to the flow-oriented properties of function blocks
  • 9. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 9 Structured Text language (ST)  similar to the high-level language PASCAL or BASIC  uses statements like IF...THEN or FOR…NEXT  concerned compiler is responsible for syntactically correct insertion of the language constructions  text editor simplifies the programming work through syntax highlighting  syntax and the set of instructions of ST are optimally suited for mathematical calculations and data manipulations
  • 10. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 10 Instruction List (IL)  an assembler type textual programming language  large (and mostly incompatible) sets of instructions have been created by many vendors  the IEC 61131 Instruction list reduced this set to a minimum and favours the usage of functions and function blocks for more complex tasks  code in IL consists of a sequence of instructions separated by lines, which consist of one operator ("command"), one operand (variable, constant or instance name) and one optional modifier respectively
  • 11. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 11 Instruction List (IL)  jumps and labels can be used  concerned assembler is responsible for syntactically correct insertion of the language constructions  text editor simplifies the programming work through syntax highlighting (colour marking of language elements)  mainly used if the processing speed of the PLC program has high priority
  • 12. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 12 Instruction List (IL) Basic instructions used in Allen Bradley PLC Mnemonic Function Mnemonic Function LD Load ANDN And Not LDN Load Not ORN Or Not ST Store MPS Memory Push STN Store Not MPP Memory Pop AND And MRD Memory Read OR Or MCR Master Control Relay ANB And Block ORB Or Block Note: The instruction mnemonic may vary across different series of the Allen Bradley PLCs.
  • 13. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 13 Instruction List (IL) Basic instructions used in Omron PLC Mnemonic Function Mnemonic Function LOAD Load NOP No Operation LOAD NOT Load Not TR Temp. Register OUT Out IL InterLock (eq. to MC) AND And ILC InterLockClear(eq. to MCR) AND NOT And Inverted AND LD And Block OR Or OR NOT Or Not OR LD Or Block
  • 14. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 14 Instruction List (IL) Basic instructions used in Mitsubishi PLC FX series Mnemonic Function Mnemonic Function LD Load NOP No Operation LDI Load Inverted MPS Memory Push OUT Out MPP Memory Pop AND And MRD Memory Read ANI And Inverted MC Master Control ANB And Block MCR Master Control Reset OR Or ORI Or Inverted ORB Or Block
  • 15. EEE3420 Industrial Control IL, LD and its associated logic equation operation labeled with circle 1 is performed first as it is the deepest nested term, and operations proceed with circle 2,circle 3 and circle 4 consecutively (Mitsubishi PLC codes) © Vocational Training Council, Hong Kong. Week 15
  • 16. EEE3420 Industrial Control Instruction List (IL) A list of commonly used IL operators defined in IEC 61131-3 © Vocational Training Council, Hong Kong. Week 16
  • 17. EEE3420 Industrial Control Instruction List (IL) example of IL using the syntax defined in IEC 61131-3 © Vocational Training Council, Hong Kong. Week 17
  • 18. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 18 Instruction List (IL) example of IL using the syntax defined in IEC 61131-3
  • 19. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 19 Instruction List (IL) example of IL program using the instructions MPS, MPP & MRD to implement multiple outputs using the syntax defined in IEC 61131-3
  • 20. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 20 Instruction List (IL) example demonstrating the use of TR instruction (similar to MPS, MPP & MRD instructions defined in IEC 6113-3) in Omron PLC
  • 21. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 21 Instruction List (IL) example demonstrating the use of MCR instruction in Allen Bradley PLC
  • 22. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 22 Instruction List (IL) example demonstrating the use of MC & MCR instructions in Mitsubishi PLC (N0 is the nested number, maximum 7,i.e. a total of 8 nested levels; SP means “space”)
  • 23. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 23 Instruction List (IL) example demonstrating the use of IL & ILC instructions in Omron PLC
  • 24. EEE3420 Industrial Control Conversion of more complex logic gates © Vocational Training Council, Hong Kong. Week 24
  • 25. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 25 Multiplexer
  • 26. EEE3420 Industrial Control Time Related Instruction – the Latch © Vocational Training Council, Hong Kong. Week 26 • a latch in ladder logic uses one instruction to latch, and a second instruction to unlatch • the output with an L inside will turn the output D on when the input A becomes true • D will stay on even if A turns off • D will turn off if input B becomes true
  • 27. EEE3420 Industrial Control Time Related Instruction – the Latch © Vocational Training Council, Hong Kong. Week 27
  • 28. EEE3420 Industrial Control Time Related Instruction – the Latch a typical timing diagram, ignoring the brief pulse © Vocational Training Council, Hong Kong. Week 28
  • 29. EEE3420 Industrial Control The SR (Set-Reset) Flip Flop Latches are not used universally by all PLC vendors, others such as Siemens use flip-flops © Vocational Training Council, Hong Kong. Week 29
  • 30. EEE3420 Industrial Control The SR (Set-Reset) Flip Flop the SR Flip Flop may be implemented by using AND-OR functions © Vocational Training Council, Hong Kong. Week 30
  • 31. EEE3420 Industrial Control The SR (Set-Reset) Flip Flop the SR Flip Flop may also be implemented by using SET-RESET © Vocational Training Council, Hong Kong. Week 31 functions
  • 32. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 32 The SR (Set-Reset) Flip Flop implement the SR Flip Flop in Omron PLC
  • 33. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 33 The Timers • four fundamental types • on-delay timer will wait for a set time after a line of ladder logic has been true before turning on, but it will turn off immediately • off-delay timer will turn on immediately when a line of ladder logic is true, but it will delay before turning off • retentive timer will sum all of the on or off time for a timer, even if the timer never finished • non-retentive timer will start timing the delay from zero each time
  • 34. EEE3420 Industrial Control Operation of a TON (non-retentive) Timer © Vocational Training Council, Hong Kong. Week 34
  • 35. EEE3420 Industrial Control Operation of a RTO (retentive time on) timer © Vocational Training Council, Hong Kong. Week 35
  • 36. EEE3420 Industrial Control Operation of a TOF (non-retentive t-off) timer © Vocational Training Council, Hong Kong. Week 36
  • 37. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 37 Timers in Mitsubishi PLCs • in FX1N and FX2N series, there are four types of timers • T0 ~ T199 are non-retentive time on timer with timing interval of 100 ms • T200 ~ T245 are non-retentive time on timer with timing interval of 10 ms • T246 ~ T249 are retentive time on timer with timing interval of 1 ms • T250 ~ T255 are retentive time on timer with timing interval of 100 m
  • 38. EEE3420 Industrial Control Using non-retentive time on timer in Mitsubishi FX series PLC © Vocational Training Council, Hong Kong. Week 38
  • 39. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 39 Timers in Omron PLC • in CP series, there are 48 timers/counters with timing range running • from 0.1s to 999.9s if it is set as common timer • or 0.01s to 99.99s if it is set as high speed timer
  • 40. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 40 Timers in Omron PLC
  • 41. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 41 The Counters • two basic counter types: count-up and count-down. • when the input to a count-up counter goes true the accumulator value will increase by 1, if the accumulator value reaches the preset value the counter DN bit will be set • a count-down counter will decrease the accumulator value until the preset value is reached
  • 42. EEE3420 Industrial Control An up-down counter in Allen Bradley PLC © Vocational Training Council, Hong Kong. Week 42
  • 43. EEE3420 Industrial Control Counter operation in Mitsubishi PLC © Vocational Training Council, Hong Kong. Week 43
  • 44. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 44 Counter operation in Omron PLC
  • 45. EEE3420 Industrial Control The Edge Triggering Instructions in Mitsubishi FX series PLC, there are two edge triggering instructions, namely, PLS (PuLSe) and PLF (PuLse Falling) © Vocational Training Council, Hong Kong. Week 45
  • 46. EEE3420 Industrial Control The Edge Triggering Instructions in Mitsubishi FX series PLC, there are two edge triggering instructions, namely, PLS (PuLSe) and PLF (PuLse Falling) © Vocational Training Council, Hong Kong. Week 46
  • 47. EEE3420 Industrial Control The Edge Triggering Instructions in Omron PLC, there are similar edge triggering instructions, namely, the DIFU (DIFferentiate Up) and the DIFD (DIFferentiate Down) © Vocational Training Council, Hong Kong. Week 47
  • 48. EEE3420 Industrial Control The Edge Triggering Instructions in Omron PLC, there are similar edge triggering instructions, namely, the DIFU (DIFferentiate Up) and the DIFD (DIFferentiate Down) © Vocational Training Council, Hong Kong. Week 48
  • 49. EEE3420 Industrial Control Applications of Time Related Instructions The timers and the counters find their applications in many industrial process controls © Vocational Training Council, Hong Kong. Week 49
  • 50. EEE3420 Industrial Control Applications of Time Related Instructions Pulse generator circuit © Vocational Training Council, Hong Kong. Week 50
  • 51. EEE3420 Industrial Control Applications of Time Related Instructions Fixed width pulse generator circuit © Vocational Training Council, Hong Kong. Week 51
  • 52. EEE3420 Industrial Control Applications of Time Related Instructions Delay off timer - Many PLCs such as Mitsubishi do not provide delay off timer, but this function can easily be built by the delay on timer © Vocational Training Council, Hong Kong. Week 52
  • 53. EEE3420 Industrial Control Applications of Time Related Instructions Light flasher © Vocational Training Council, Hong Kong. Week 53
  • 54. EEE3420 Industrial Control Applications of Time Related Instructions Variable delay on/variable delay off circuit with Mitsubishi PLC © Vocational Training Council, Hong Kong. Week 54
  • 55. EEE3420 Industrial Control Applications of Time Related Instructions Variable delay on/variable delay off circuit with Omron PLC © Vocational Training Council, Hong Kong. Week 55
  • 56. EEE3420 Industrial Control Summary of Basic PLC Programming ․ The Instruction List programming language uses stack operation to perform the operations specified. ․ Logic can be represented with basic Boolean operations © Vocational Training Council, Hong Kong. Week 56 AND, OR, NOT. ․ Boolean equations can be converted to and from ladder logic or instruction list. ․ The MPS, MPP and MRD enable intermediate results to be pushed, pop and read to facilitate multiple outputs. ․ Use of the MC/MCR instructions simplifies the organization of the ladder logic. ․ The time related instructions realize the sequential functions.
  • 57. EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 57 Basic PLC Programming End of Lecture 3  Revision Mitsubishi PLC FX series hardware handbook. Allen Bradley PLC handbook Omron PLC manual