Chapter 3 - Basics of PLC Programming
Chapter 3 - Basics of PLC Programming
0 Modes Of Operation
3.6
3.1. Program scan
▪ During each program scan cycle, the processor reads all the inputs, takes
these values, and energizes or de-energizes the outputs according to the
user program
3.1. Program scan
▪ The time it takes to complete a scan cycle is a measure of how fast the
controller can react to changes in inputs
▪ The controller evaluates logic rung base on the rung conditions preceding
the output instruction (rung-condition-in)
3.1. Program scan
0 Modes Of Operation
3.6
3.2. PLC programming languages
▪ Ladder diagram language is the most used PLC language and is designed
to mimic hardwired relay logic
Ladder diagram
Equivalent instruction
Hardwired relay control circuit
list program
3.2. PLC programming languages
Ladder diagram
0 Modes Of Operation
3.6
3.3. Bit-level logic instructions
▪ Addressing format
3.3. Bit-level logic instructions
0 Modes Of Operation
3.6
3.4. Branch instructions
Reprogrammed circuit
Lecture 3’s sequence
3.1 Program Scan
0 Modes Of Operation
3.6
3.5. Internal relay instructions
▪ Internal relay used for a program that requires more series contacts than
the rung allows
This PLC allows for only 7
series contacts when 12
are required for the
programmed logic
3.5. Internal relay instructions
▪ Indication:
❑ If pump is running then the Pump Running
status lamp will be ON.
❑ If Low Level Switch activated then Low Level
Status lamp will be ON.
❑ If High Level Switch activated then High Level
Status lamp will be ON.
3.5. Internal relay instructions
0 Modes Of Operation
3.6
3.6. Modes of operation
Problem 1:
▪ When the water level goes below low level
(TLB 2) then feeding valve (MV1) will turned
ON automatically