0% found this document useful (0 votes)
182 views

Introduction To PLC: Experiment No

This document provides an introduction to programmable logic controllers (PLCs), including their components, programming, and addressing digital input/output ports. It describes the basic components of a PLC, including the CPU, memory, power supply, and input/output areas. Ladder logic programming is introduced as a common method to program PLCs using rungs containing contacts and coils. The document also provides examples of addressing digital input/output ports and creating a basic PLC program using contacts and coils with different port and bit addresses.

Uploaded by

Akram Azhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views

Introduction To PLC: Experiment No

This document provides an introduction to programmable logic controllers (PLCs), including their components, programming, and addressing digital input/output ports. It describes the basic components of a PLC, including the CPU, memory, power supply, and input/output areas. Ladder logic programming is introduced as a common method to program PLCs using rungs containing contacts and coils. The document also provides examples of addressing digital input/output ports and creating a basic PLC program using contacts and coils with different port and bit addresses.

Uploaded by

Akram Azhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

University of Technology – Computer Engineering Department

PLC Laboratory – 4th Year


 

Experiment No (1)
Introduction to PLC

Objective:
To become familiar with the PLC, its components, programming language and how to
addresses the digital input output port.
Theory:
A programmable logic controller, also called a PLC or programmable controller, is a
computer-type device used to control equipment in an industrial facility (industrial plants,
milking machines, elevators, household applications, traffic control systems, chemical plants
and others). A programmable logic controller (PLC) is a special form of microprocessor-based
controller that uses a programmable memory to store instructions and data in order to control
machines and processes as shown in Figure (1).

Figure (1) The block diagram of PLC


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

The CPU is used to code, decode, and compute data. The memory system can store both the
control program and data from the equipment connected to the PLC. The power supply is the
section of the CPU that provides the PLC with the voltage and current it needs to operate. The
input and output area are where the processor receives information from external devices and
communicates information to external devices. The inputs might be from switches or other
sensors. The outputs might be to motor or valves, etc. As shown in Figure (2).
Example:

Usually, a PLC is equipped with an operating system that allows to load and run programs and
perform self-checks. Programs for PLC are developed and compiled on external devices. PLC
programs are executed in a permanent loop. In each iteration of the loop (scan cycle) the input
is read, then the program computes a new internal state and finally the output is updated. Figure
(3) describes the scan cycle operations.


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

PLC ladder programming:


A very commonly used method of programming PLCs is based on the use of ladder
diagrams. The ladder diagram consists of two vertical lines representing the power rails. In
drawing a ladder diagram, certain conventions are adopted:
1- The vertical lines of the diagram represent the power rails between which circuits are
connected. The power flow is taken to be from the left-hand vertical across a rung.
2- Each rung on the ladder defines one operation in the control process.
3-A ladder diagram is read from left to right and from top to bottom. Figure (4) shows the
scanning motion employed by the PLC. The top rung is read from left to right. Then the
second rung down is read from left to right and so on.


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

4- Each rung must start with an input or inputs and must end with at least one output. The term
input is used for a control action, such as closing the contacts of a switch, used as an input
to the PLC. The term output is used for a device connected to the output of a PLC, e.g. a
motor.
5- The inputs and outputs are all identified by their addresses. This is the address of the input
or output in the memory of the PLC. All PLCs use two basic types of instructions:
• Contacts
• Coils
Contacts: are instructions that refer to the input conditions of a certain field device
Coils: are instructions that refer to the outputs of the control program—that is, to what each
particular output device is supposed to do in the system.

I/O addresses
Bit data displays On/Off with 1 bit like contact or coil. The PLC has to be able to identify
each particular input and output. For digital I/O ports we used P addresses.


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

Examples
% p00000 the 1st bit of the port p0000
% p00113 the 3rd bit of the port p0011
How to make project
1- The software programming of the PLC type XGT is XG5000. The first step is open the
program.

2- To make new project, select [new project] to start wizard, and enter the program filename.


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

3- Then the new program is as shown below:


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

Contact:
'Contact' transmits a value to the right horizontal connection line, Standard contact
symbols are as follows:


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year
Coil:
Coil stores the state of the left connection line or the processing result of state transition
in the associated BOOL variable. Coils are placed in the rightmost side of LD. The standard
coil symbols are as follows:


 
University of Technology – Computer Engineering Department
PLC Laboratory – 4th Year

Procedure:
1- Open a new program that include only contact and coil and connect between them.
2- Make the address of the input instruction p0000 and the output address p0001.
3- Identify the contact in the 1st bit, coil at the 2nd bit of their ports then simulate the program.
4- Change the addresses of input and output instructions to be at the 5th bit in their ports then
simulate the program.
5- Implement your program by PLC kit, let the input to PLC is a switch and the output from
PLC to led.
6- Write the program to PLC and run the program; record the state of the LED if the switch is
ON and OFF.

Discussion and Homework:


1- For the step 5 of procedure, if your program addresses are unchanged, what happened if the
input to PLC is changed to bit three of the input port.
2- Can you define the address of input and output on the same slot? Why? Discuss


 

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy