Professional Documents
Culture Documents
DR Nyan Phyo Aung (PLC Lab Manual)
DR Nyan Phyo Aung (PLC Lab Manual)
EcE-61003:
PLC and SCADA Control System
Lab Manual
by
Training ကiu Synopsis Company နှင့် Siemens Myanmar တiuပူးeပါင်းဖွင့်လှစ်ခဲ့ ပီး သင်တန်း
လည်းeကျးဇူးပါတယ်။
ပါeမာက္ခချuပ်(နည်းပညာတက္ကသiuလ်(မန္တeလး)§ဌာနမှူး (aီလက်ထeရာနစ်aင်/ယာဌာန)
SIEMENS ကထuတe
် သာ TIA Portal (Totally Integrated Automation) version 13
မiတဆ
် က်eလ့လာeစပါတယ်။Lab 2 မှာ PLC S7-1200 ae ကာင်းကiu စတင်eလ့လာနiuင်eစရန်
မiတဆ
် က်eရးသားထားပါတယ်။ HMI program eရးသားနည်းကiu Lab 6 စတင်eဖာ်ြပ ပီး Lab 7
စာauပ်ြဖင့်ဆက်လက်eလ့လာနiuင်eစလiuပါသည်။
ဉာဏ် ဖiuးeaာင်
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 1
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Example: 192.168.1.1
Subnet mask
MAC address
DR.NYAN PHYO AUNG 2
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 3
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Menu Bar
Main Tool Bar
Logical/ Physical
Workspace and
Navigation Bar
Common
Tools Bar
Workspace
Realtime/
Simuation Bar
Network Component
Box
DR.NYAN PHYO AUNG 4
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Step 5: Move the cursor into topology area. You will notice it turns into a plus “+” sign
Step 6: Single click in the topology area and it copies the device
DR.NYAN PHYO AUNG 5
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Add a Hub
Step 1: Select a hub by clicking once on Hubs and once on a Generic hub
Step 2: Add the hub by moving the plus sign “+” below PC0 and PC1 and click once
Host to host
Hub to switch
Switch to switch
Router direct to host
Step 4: Click once on the Copper Straight-through cable
Step 5: Repeat the steps above for PC1 connecting it to Port 1 on Hub0. (The actual hub
port you choose does not matter
DR.NYAN PHYO AUNG 7
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Adding a Switch
Step 1: Select a switch, by clicking once on Switches and once on a 2950-24 switch
Step 2: Add the switch by moving the plus sign “+” below PC2 and PC3 and click once
DR.NYAN PHYO AUNG 8
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Step 6: Repeat the steps above for PC3 connecting it to Port 3 on Switch0 on port
FastEtherent0/2. (The actual switch port you choose does not matter.)
Addressing Table
PC IP Address Subnetmask
Step 1: Create the network topology in Packet Trace – 2 PCs connected using cross cable
DR.NYAN PHYO AUNG 10
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
1.3.2. Communication Between Layer 2 And Layer 3 Between Two Devices (Arp And Icmp)
In Packet Tracer
Objective:
To become familiar with the Packet Tracer interface
To understand how the data communication in a network really works
Equipment:
PCs, Hub, Switch and Straight-Through cable
Position of ICMP, ARP in the network layer
ICMP IGMP
Network
Layer
IP
ARP RARP
IETF has designed a new version called TCP/IP version 6. In this version, the only protocols
that are changed ard the ones in the network layer. IPv4 (IP version 4) becomes IPv6 (IP version
6), ICMPv4 becomes ICMPv6, IGMP and ARP are merged into ICMPv6, and RARP is deleted.
Procedure in Realtime mode
Realtime mode performs the operation with all of the sequence of events happening at “real
time”
1. Create the network topology – 3 PCs connected with a hub using straight-through cables
2. Configure IP address manually
PC IP Address Subnetmask
DR.NYAN PHYO AUNG 12
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 13
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
The default is the OSI Model view with a brief description with what is occurring with
this packet. Click on the Outbound PDU Details tab to see the protocol details including the
layer 2 Ethernet frame, the layer 3 IP packets and ICMP message.
Looking at the Switch Algorithm and Switch MAC Address Tables
Procedure
1. Create the network topology – 3 PCs connected with a switch using straight-through
cables
2. Configure IP address manually
3. Use the Select tool to view IP address and MAC address information for the various
hosts
4. Use the Inspect tool to view the MAC Address Table of the switch. The MAC Address
Table is empty as it has not learned any Source Ethernet MAC Addresses.
5. Set the Event List Filters to include both ICMP and ARP. Set the Event List Filters
to include both ICMP and ARP.
ARP Request
Before PC0 can send the ICMP Echo Request, ping, it needs to send an ARP Request. ARP
(Address Resolution Protocol) Request is how a host that knows the Destination IP Address of
a device discovers the Ethernet Destination MAC Address for that same device.
So, the ICMP Echo Request, ping is put on hold, stored in memory and an ARP Request is
transmitted first.
To view the ARP Request, click on the Info box in the Event List. Notice the Destination MAC
Address is a broadcast, 48 1 bits or 12 Hexadecimal Fs.
ARP Reply
PC2 ignore the ARP Request because PC0 is only asking for the owner of the IP Address
192.168.1.11 to reply. PC1 now sends back an ARP Reply with its MAC Address. This time
the switch updates its MAC Address Table with the Ethernet Source MAC Address of PC0 and
the incoming port number.
Resetting the Network
Whenever you want to reset the network and begin the simulation again, perform the following
tasks:
Click Delete in the PDU area. Reset the network and confirm the action.
DR.NYAN PHYO AUNG 14
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Step 2 Open the server and go to the Desktop tab, click IP Configuration and enter the
IP address 192.168.1.1
DR.NYAN PHYO AUNG 15
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 16
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 17
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Step 5 Click on any PC that is attached to the server, go to IP configuration and select
DHCP. You will see that DHCP will successfully assign IP address to the PC
Step 6 Go back to server and assign DNS Server address and then go to any PC and
select DHCP. It will also assign DNS to the PC as well
DR.NYAN PHYO AUNG 18
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Step 7 open the website of the server through any PC by going to the Web Browser option
and entering the IP address of the server
Step 8 ping the server by going to the PC’s command prompt and entering server’s IP
address
DR.NYAN PHYO AUNG 19
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 20
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Objective:
To understand the structure of SIEMENS PLC S7-1200
To setup the communication between PLC and PC
To understand the programming software (TIA Portal V13) for SIEMENS PLC
S7-1200
To be able to the program for SIEMENS PLC S7-1200
Requirements
PCs, SIEMENS PLC S7-1200, Cable and (TIA Portal V13) Software
DR.NYAN PHYO AUNG 21
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
example, you could have up to three SIMATIC Basic panels connected to your CPU, or you
could have up to two SIMATIC Comfort panels with one additional Basic panel.
1 ① Power connector
5
Figure 2.1. The S7-1200 PLC Model
Communication module 3 3 3 3
Single phase 3 at 100 kHz 3 at 100 kHz 3 at 100 kHz 3 at 100 kHz
SB: 2 at 30 kHz 1 at 30 kHz 3 at 30 kHz 3 at 30 kHz
DR.NYAN PHYO AUNG 22
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 23
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Figure 2.5. The complete system of S7-1200 PLC with expansion boards
The figure 2.4 shows the maximum Capability of expansion board for of S7-1200
PLC. The complete system of S7-1200 PLC with expansion boards is shown in figure 2.5.
The difference model CPU of PLC has different article numbers as shown in figure 2.6.
DR.NYAN PHYO AUNG 24
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Figure 2.6. The article numbers of difference CPU Model of S7-1200 PLC System.
– Firmware update of CPUs, signal modules (SMs) and communication modules (CMs)
DR.NYAN PHYO AUNG 25
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
3 SIMATIC S7-1200 controller, e.g. CPU 1214C DC/DC/DC – Firmware V4.2.1 or higher
DR.NYAN PHYO AUNG 26
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
2 STEP 7 Basic
1 Engineering station (PC) (TIA Portal) V13 SP1
or higher
3 SIMATIC S7-1200
controller
It requires the TCP/IP connection in order to connect the CPU of a SIMATIC S7-
1200 controller and the PC, the programming device or a laptop. It is important that the IP
addresses of both devices match for the computer and SIMATIC S7-1200 to communicate
with each other via TCP/IP. First, three will show that how to set the IP address of a
computer with the Windows operating system.
1. Select the network icon in the taskbar at the bottom and click “Network settings". (Win 10)
or Select the network icon in the taskbar at the bottom and click “Open Network and Sharing
Center:”(win)
3. 2
DR.NYAN PHYO AUNG 27
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
4. .
2. You can now use the following IP address, for example - IP address: 192.168.0.99 and enter
the following - subnet mask 255.255.255.0. Accept the settings. (® "OK")
5.
DR.NYAN PHYO AUNG 28
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
STEP 7 provides a user-friendly environment to develop, edit, and monitor the logic
needed to control your application, including the tools for managing and configuring all of the
devices in your project, such as controllers and HMI devices. To help you find the information
you need, STEP 7 provides an extensive online help system. It provides standard programming
languages for convenience and efficiency in developing the control program for your
application.
SIMATIC S7-1200
Basic Panels
STEP 7 Basic V13 provides the following functions for plant automation:
DR.NYAN PHYO AUNG 29
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
elements within the project (Project view). Choose which view helps you work most efficiently.
With a single click, you can toggle between the Portal view and the Project view.
DR.NYAN PHYO AUNG 30
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
From figure 2.13, It shows that how insert the new device for programing of PLC, HMI or
other devices.
DR.NYAN PHYO AUNG 31
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 32
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 33
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 34
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 35
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Example 1
Problem Description
Implementation of various Logic Gates AND, OR, NOT, NOR, NAND, EX-OR and
EXNOR in PLC using Ladder Diagram programming language.
Problem Solution
Assuming that all the gates comprise two inputs and NOT Gate has only one input,
Logic Gates can be well implemented in PLC using Ladder Diagram programming
language as shown in “Program” section.
To implement Examine if closed, Normally Open contact is used and to implement
Examine if open, Normally Closed contact is used.
These contacts is said to work as relay contacts.
In Normally Open / XIC contact, when logic 1, or in other words, when logic high is
provided, the contact closes allowing current to pass through the circuit.
DR.NYAN PHYO AUNG 36
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
And in Normally Closed / XIO contact, when logic 1 is not present, or in other words,
when logic 0 is present, it allows current to pass through the circuit. But when logic 1
is present in case of XIO, the contact opens inhibiting current to pass through the
circuit.
By simply using these logics, all Logic Gates can be well implemented using Ladder
Diagram programming language.
Solution
DR.NYAN PHYO AUNG 37
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 38
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
LAB 3: PLC Program to Control Level of a Single Tank And Burglar Alarm Security
System
Objectives:
Problem 1 Description
One open tank is installed in the plant of which liquid level is to be controlled. When level
reaches the Level Low, Outlet flow is blocked and inlet flow is allowed until high level is
achieved. And when Level High is detected, outlet flow is allowed and inlet flow is blocked.
Problem 1 Diagram
Problem 1 Solution
DR.NYAN PHYO AUNG 39
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
To detect high and low level of liquid in the tank, two level switches are used which
gives output in digital terms, that is when corresponding levels are detected, it gives
output high otherwise remain low.
To control level of this system, Single Acting piston valve can be used which has two
states, either fully open or fully close.
Low Level Switch is mounted at the bottom of the tank and Level High switch
mounted at the side upper most position.
When this inputs are detected, output to Control Valve has to be latched in order to
continuously fill or empty the system.
Master start/stop is also provided to shut down or start the entire process.
Problem 2 Description
Consider the design of a Burglar Alarm for a house. This alarm will be activated if an
unauthorized person is detected by a Window Sensor or a Motion Detector. Implement this
Alarm System in PLC using Ladder Diagram programming language.
Problem 2 Solution
Basically two sensors are used, one is Motion Detector and other one Window Sensor.
Window sensor is nothing but a loop of wire that is a piece of thin metal foil which
encircles the window.
The motion detector is designed such that when a person is detected, the output of
sensor goes true.
Important thing to note here is that in Window Sensor, current is always passing until
there is a breakage in glass of a window. Hence output is always true. When alarm
system is active and someone tries to break the window, current does not flow through
the metal foil causing output to go false.
PLC 2 Program
Here is PLC program for Burglar Alarm Security System, along with program explanation
and run time test cases.
DR.NYAN PHYO AUNG 40
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 3 : Write the program form your text. Page 162 (Fig 9.6 (b) Motor Sequence)
Problem 4: Write the program form your text. Page 167 (Fig 9.16 Traffic Light Sequence)
DR.NYAN PHYO AUNG 41
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
LAB 4: Motor in Forward and Reverse Direction and Sort Parts for Quality Control on
Conveyor
Objectives:
Problem 1 Description
A motor is connected to PLC. Run this motor in the Forward and Reverse direction
using Ladder Diagram programming language.
Problem 1 Solution
For any three-phase AC motor, reversing can be accomplished by reversing any two
leads. For single-phase motor, reversing start lead with respect to the main leads. And for DC
motor, reversing the field leads with respect to the armature leads. There are certain ways to
reverse the motor. One is to use DPDT (Double Poles, Double Throw) switch and another one
is by using Reversing Contactors. DPDT switch is best suitable for reversing a small DC motors
while Reversing Contactor is used to reverse Three-Phase AC motors. Single-phase motors are
not widely used for reversing operation. In fact, these are not even available widely with
reversing capability. As here we have a three-phase AC motor, reversing any two leads will
drive the motor in reverse direction. Contactor is an electrical switch used for switching an
electrical power circuit. Two magnetic contactors are used, one for forward connections and
the other for reverse connections. Only Push Button switches are used to control the direction
of this three-phase AC motor.
We have the input commands to these Push Button switches which are then internally
processed by PLC and then there is the output terminal which activates the corresponding relay
to energize the relevant magnetic contactors.
Configure forward and reverse wiring of the motor with contactors such that forward
contactor is connected directly in the normal direct phasing of the motor terminal and reverse
contactor is connected with two of the motor terminals in the opposite phase. When it is
DR.NYAN PHYO AUNG 42
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
switched to reverse direction, forward rotation does not stop instantaneously hence we have to
determine what time it takes to completely stop one particular direction. Then provide time
delay of a second or two and activate the other contactor.
PLC Program
Here is PLC program to Drive Motor in Forward and Reverse Direction, along with program
explanation and run time test cases.
DR.NYAN PHYO AUNG 43
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 2 Description
Parts are moving on the conveyor from one process line to other with a constant speed.
Out of 1000 part, one part is taken out for quality check. Implement automation of this process
in PLC using Ladder Diagram programming language.
Problem Diagram
DR.NYAN PHYO AUNG 44
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 2 Solution
To detect the parts, detector such as proximity switch, optical sensors or any other
sensor is used. Connect output of this detector to Input Module of PLC which sets and resets
image memory according to parts’ detection. Give this detection, as an input to Up Counter
which is incremented with each part’s detection. Set counter preset value to 1000.
Operate Solenoid for a few seconds until the part is diverted for quality check.
PLC Program
Here is PLC program to Sort Parts for Quality Control on Conveyor, along with program
explanation and run time test cases.
DR.NYAN PHYO AUNG 45
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Objectives:
Problem 1 Description
Material A and Material B are collected in a tank. These materials are mixed for a while. Mixed
product is then drained out through Outlet valve. Implement this in PLC using Ladder Logic
programming language.
Problem 1 Diagram
DR.NYAN PHYO AUNG 46
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 1 Solution
To detect level of Material A and Material B, two separate level switches are used.
And to detect low level, one more level switch is used at the bottom of the tank.
These give output in digital terms that is when corresponding levels are detected.
To control level of this system, Single Acting Piston valve can be used which has two
states, either fully open or fully close.
To control mixing, agitator is used which is connected with Motor shaft.
Particular time delay is generate to mix the materials for a definite time.
Control inlet valves on the basis of Level Material switches A and B.
Outlet valve is then operated to drain the mixed product.
PLC Program 1
Here is PLC program to Control Mixing in a Tank, along with program explanation and run
time test cases.
DR.NYAN PHYO AUNG 47
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 48
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 2 Description
Two tanks are connected in parallel with a stream line. Heat and Cool the same material and
control level of both tanks. Implement this in PLC using Ladder Diagram programming
language.
Problem 2 Diagram
Problem 2 Solution
Heater is used to heat the material and cooling water supply is used to cool down
material temperature.
Inlet valve feeds Material to both tanks.
One tank stores material for heating purpose and the other stores material for cooling
purpose.
Level switches are used to detect Low level and High level in both the tanks.
DR.NYAN PHYO AUNG 49
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Outlet valves are installed in the bottom of both the tanks to drain products for further
process.
Mount temperature sensors to measure temperature of both the tanks.
Controlling of these tanks is independent of inlet flow assuming inlet flow to be
constant.
PLC Program 2
Here is PLC program to Control Level of Parallel Tanks, along with program explanation and
run time test cases.
DR.NYAN PHYO AUNG 50
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 51
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Objectives:
1. In the portal view, on the “Device and network” menu, select “Add new device”.
DR.NYAN PHYO AUNG 52
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 53
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
8. Define the screen navigation as shown in the slide. Name the screens as shown (i.e.: Drives,
PID and Communication).
DR.NYAN PHYO AUNG 54
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 55
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
10.
Arrange the system buttons as seen in the slide.
11. Close the wizard pressing “Finish”.
After doing these 11steps, it had added HMI into the project.
DR.NYAN PHYO AUNG 56
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 57
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 58
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 59
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 60
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 61
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 62
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
DR.NYAN PHYO AUNG 63
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Problem 1 Description
Material A and Material B are collected in a tank. These materials are mixed for a while. Mixed
product is then drained out through Outlet valve. Implement this in PLC using Ladder Logic
programming language.
Problem 1 Diagram
Problem 1 Solution
To detect level of Material A and Material B, two separate level switches are used.
And to detect low level, one more level switch is used at the bottom of the tank.
These give output in digital terms that is when corresponding levels are detected.
To control level of this system, Single Acting Piston valve can be used which has two
states, either fully open or fully close.
To control mixing, agitator is used which is connected with Motor shaft.
Particular time delay is generate to mix the materials for a definite time.
DR.NYAN PHYO AUNG 64
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
PLC Program 1
Here is PLC program to Control Mixing in a Tank, along with program explanation and run
time test cases.
DR.NYAN PHYO AUNG 65
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
HMI programming
DR.NYAN PHYO AUNG 66
TECHNOLOGICAL UNIVERSITY (MANDALAY)
DEPARTMENT OF ELECTRONIC ENGINEERING
Objectives:
HMI programming
Problem 1.
Problem 2.
DR.NYAN PHYO AUNG 67