You are on page 1of 187

Government of Pakistan

National Vocational and Technical Training Commission


(NAVTTC)

Prime Minister Kamyab Jawan Program

"Skills for All"


“Skilling Pakistan”

NAVTTC - SSUET

Industrial Automation (IA)

Lab Manual

Electronic Engineering Department


Sir Syed University of Engineering and Technology
University Road Karachi - 75300
http://www.ssuet.edu.pk
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Industrial Automation
Page
Lab No Topics
no.
Installation and Simulation Technique for SIMATICS7 family of
1 Siemens S7-200 CPU

STEP 7 – MICRO/WIN TUTORIAL


2

DIGITAL I/O BASED EXPERIMENTS

3 BASIC GATES LOGIC USING STEP7 MICRO/WIN PLC

BINARY OPERATION BASED LOGICS


4 ACCESS TO CAR WASH

5 .PLC BASED CONTROLLING A CONVEYOR BELT

INTERLOCKING OPERATION
6 PLC BASED DETECTING THE DIRECTION OF A
CONVEYOR BELT

INTERLOCKING OPERATION
7 PLC BASED GARAGE DOOR EXERCISE

RS FLIP FLOP OPERATION


8 PLC BASED GARAGE DOOR EXERCISE

SET/RESET COIL OPERATIONS


9 PLC BASED GARAGE DOOR EXERCISE

MASTER/SLAVE PANELS OPERATION


10 PLC BASED GARAGE DOOR EXERCISE

FAST SWITCHING RESPONSE / FULL AUTOMATIC


11 PLC BASED GARAGE DOOR EXERCISE

USING INTERNAL MEMORY BIT


12 CAR WASH

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 2
Government of Pakistan
NAVTTC-Industrial Automation (IA)

RS FLIP FLOP OPERATION


13 CAR WASH

SET/RESET COIL OPERATION


14 CAR WASH

POSITIVE EDGE /NEGATIVE EDGE OPERATIONS


15 CAR WASH

PLC BASED GARAGE VENTILATION CONTROL


16

DRAIN SYSTEM
17 ON DELAY TIMER

DRAIN SYSTEM
18 OFF DELAY TIMER

TOGGLING CONDITION
19 ON DELAY TIMER

TOGGLING CONDITION
20 OFF DELAY TIMER

TOGGLING CONDITION
21 ON / OFF DELAY TIMER

TOGGLING CONDITION
22 ON DELAY TIMER

PLC BASED PROCESS-CONTROLLED SYSTEM


23 (ON DELAY TIMER)

PLC BASED PROCESS CONTROLLED SYSTEM


24 (OFF DELAY TIMER)

PLC BASED PROCESS CONTROLLED SYSTEM


25 ( ON/OFF DELAY TIMER)

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


26 ON DELAY OPERATION

27 PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


OFF DELAY OPERATION
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 3
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


28 ON/OFF DELAY OPERATION

TOGGLING CONDITION
29 ON DELAY TIMER WITH COMPARE INSTRUCTION

TOGGLING CONDITION
30 OFF DELAY TIMER WITH COMPARE INSTRUCTION

TOGGLING CONDITION
31 ON / OFF DELAY TIMER WITH COMPARE INSTRUCTION

PLC BASED PROCESS-CONTROLLED SYSTEM


32 ON DELAY TIMER WITH COMPARE INSTRUCTION

PLC BASED PROCESS CONTROLLED SYSTEM


33 (OFF DELAY TIMER WITH COMPARE INSTRUCTION)

PLC BASED PROCESS CONTROLLED SYSTEM


34 ( ON/OFF DELAY TIMER WITH COMPARE INSTRUCTION)

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


35 ON DELAY OPERATION WITH COMPARE INSTRUCTION

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


36 OFF DELAY OPERATION WITH COMPARE INSTRUCTION

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


37 ON/OFF DELAY OPERATION WITH COMPARE INSTRUCTION

PLC BASED PARKING LOT SYSTEM


38

PLC BASED REVERSING CONTACTOR EXERCISE FOR THREE-


39 PHASE AC MOTOR

WASTE WATER SYSTEM


40

PLC BASED CONTINUOUS BOTTLE FILLING CONTROL USING


41 TIMERS

LAB NO. 1
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 4
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Installation and Simulation Technique for SIMATICS7 family


of SiemensS7-200 CPU

S7-200 CPU:
The S7-200 CPU combines a microprocessor, an integrated power supply, input circuits,
and output circuits in a compact housing to create a powerful Micro PLC. See Figure 1-
1. After you have downloaded your program, the S7-200 contains the logic required to
monitor and control the input and output devices in your application.

Siemens provides different S7-200 CPU models with a diversity of features and
capabilities that help you create effective solutions for your varied applications. Table 1-
1 briefly compares some of the features of the CPU. For detailed information about a
specific CPU, see Appendix A.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 5
Government of Pakistan
NAVTTC-Industrial Automation (IA)

S7-200 EXPANSION MODULES:


To better solve your application requirements, the S7-200 family includes a wide variety
of expansion modules. You can use these expansion modules to add additional
functionality to the S7-200 CPU. Table 1-2 provides a list of the expansion modules that
are currently available. For detailed information about a specific module, see Appendix
A.

STEP 7--MICRO/WIN PROGRAMMING PACKAGE:

The STEP 7--Micro/WIN programming package provides a user-friendly environment to


develop, edit and monitor the logic needed to control your application. STEP 7--
Micro/WIN provides three program editors for convenience and efficiency in developing
the control program for your application. To help you find the information you need,
STEP 7--Micro/WIN provides an extensive online help system and a documentation CD
that contains an electronic version of this manual, application tips, and other useful
information.

COMPUTER REQUIREMENTS:

STEP 7--Micro/WIN runs on either a personal computer or a Siemens programming


device, such as a PG 760. Your computer or programming device should meet the
following minimum requirements:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 6
Government of Pakistan
NAVTTC-Industrial Automation (IA)

OPERATING SYSTEM:
Windows 95, Windows 98,
Windows 2000, Windows Me (Millennium
Edition), Windows NT 4.0 (or later
version), Windows XP Professional
At least 100M bytes of free hard disk Space
Mouse (recommended)

CONNECTING THE S7-200 CPU:

Connecting your S7-200 is easy. For this example, you only need to connect power to
your S7-200 CPU and then connect the communications cable between your
programming device and the S7-200 CPU.

CONNECTING POWER TO THE S7-200 CPU:

The first step is to connect the S7-200 to a power source. Figure 2-1 shows the wiring
connections for either a DC or an AC model of the S7-200 CPU.

Before you install or remove any electrical device, ensure that the power to that
equipment has been turned off. Always follow appropriate safety precautions and ensure
that power to the S7-200 is disabled before attempting to install or remove the S7-200.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 7
Government of Pakistan
NAVTTC-Industrial Automation (IA)

C
ONNECTING THE RS-232/PPI MULTI-MASTER CABLE:

Figure 2-2 shows an RS-232/PPI Multi-Master


cable connecting the S7-200 to the
Programming device. To connect the cable:

1. Connect the RS-232 connector (marked


“PC”) of the RS-232/PPI Multi-Master
cable to the communications port of the
Programming device. (For this example,
Connect to COM 1.)
2. Connect the RS-485 connector (marked
“PPI”) of the RS-232/PPI Multi-Master
cable to Port 0 or Port 1 of the S7-200.

3. Ensure that the DIP switches of the


RS-232/PPI Multi-Master cable are set as
shown in Figure 2-2.
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 8
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STARTING STEP 7--MICRO/WIN

Click on the STEP 7--Micro/WIN icon to open a


new project. Figure 2-3 shows a new project.
Notice the navigation bar. You can use the
icons on the navigation bar to open elements of
the STEP 7--Micro/WIN project.
Click on the Communications icon in the
navigation bar to display the Communications
dialog box. You use this dialog box to set up
the communications for STEP 7--Micro/WIN.

GUIDELINES FOR INSTALLING S7-200 DEVICES

You can install an S7-200 either on a panel or on a standard rail, and you can orient the
S7-200 either horizontally or vertically.

SEPARATE THE S7-200 DEVICES FROM HEAT, HIGH VOLTAGE, AND


ELECTRICAL NOISE

As a general rule for laying out the devices of your system, always separate the devices
that generate high voltage and high electrical noise from the low-voltage, logic-type
devices such as the S7-200.

When configuring the layout of the S7-200 inside your panel, consider the heat-
generating devices and locate the electronic-type devices in the cooler areas of your
cabinet. Operating any electronic device in a high-temperature environment will reduce
the time to failure.

Consider also the routing of the wiring for the devices in the panel. Avoid placing low
voltage signal wires and communications cables in the same tray with AC power wiring
and high-energy, rapidly-switched DC wiring. Provide Adequate Clearance for Cooling
and Wiring S7-200 devices are designed for natural convection cooling. For proper
cooling, you must provide a clearance of at least 25 mm above and below the devices.
Also, allow at least 75 mm of depth.

PROVIDE ADEQUATE CLEARANCE FOR COOLING AND WIRING

S7-200 devices are designed for natural convection cooling. For proper cooling, you
must provide a clearance of at least 25 mm above and below the devices. Also, allow at
least 75 mm of depth.
When planning your layout for the S7-200 system, allow enough clearance for the wiring
and communications cable connections. For additional flexibility in configuring the
layout of the S7-200 system, use the I/O expansion cable.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 9
Government of Pakistan
NAVTTC-Industrial Automation (IA)

REMOVINGACPU OREXPANSIONMODULE

ToremoveanS7-200CPUorexpansionmodule,followthesesteps:

1. RemovepowerfromtheS7-200.
2.

Disconnectallthewiringandcablingthatisattachedtothemodule.M
ostS7-
200CPUandexpansionmoduleshaveremovableconnectorstomak
ethisjobeasier.
3. If youhaveexpansionmodulesconnectedtotheunitthat
youareremoving,opentheaccesscoverdooranddisconnecttheexpan
sionmoduleribboncablefromtheadjacentmodules.
4. UnscrewthemountingscrewsorsnapopentheDINclip.
5. Removethemodule.

REMOVINGANDREINSTALLINGTHETERMINALBLOCKCONNECTOR
MostS7-
200moduleshaveremovableconnectorstomakeinstallingandreplacin
gthemoduleeasy.Refer toAppendixAtodeterminewhetheryourS7-
200modulehasremovableconnectors.Youcanorderanoptionalfan-
out connectorfor
modulesthatdonothaveremovableconnectors.SeeAppendixEforord
ernumbers.

TOREMOVE THE CONNECTOR


1. Opentheconnectordoortogainaccesstotheconnector.
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 10
Government of Pakistan
NAVTTC-Industrial Automation (IA)

2. Insertasmallscrewdriverinthenotchinthemiddleoftheconnector.
3. Removetheterminal connectorbypryingthescrewdriverawayfromtheS7-
200housing.

SeeFigure.

Figure3-
2RemovingtheConnect
or

NAME: ______________________ ROLL # ________________

DATE: _______________________ SIGNATURE: __________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 11
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO: 2

STEP 7 – MICRO/WIN TUTORIAL


STEP 7 – MICRO/WIN TUTORIAL
Step7 – Micro/WIN makes programming of S7-200 easier. Programming of S7-200 by using
Step 7 – Micro/WIN will be introduced in a simple example. Inputs will be defined as IX.X,
outputs will be defined as QX.X and flags will be defined as MX.X for programming Siemens
PLCs. For example I0.1 defines the first module’s 1st input and Q0.1 defines first module’s
first output.

STEP-1: HOW TO OPEN STEP 7 – MICRO/WIN


You can open Step 7 – Micro/WIN from following path for Windows. After opening the
program you will see the window in Figure 1.1. In Figure 1.2 steps of writing and running a
program on PLC is demonstrated.

   
Start All Programs Simatic Step 7 Micro/WIN V4 XX Step 7 Micro/WIN

Figure :Step 7 Micro/WIN Start Window

Open Step 7 Write a Simple Compile Your Download Your Run PLC to
Micro/WIN Code in Ladder Code Code to PLC Perform Code

Figure : Steps of Running

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 12
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Your Code on PLC

STEP-2: HOW TO WRITE A SIMPLE PROGRAM AND USE A TIMER IN STEP 7 –


MICRO/WIN (NETWORK 1)

You can check the timer types and properties from Table 1.1 and Table 1.2. Procedure of
using timer is as follow;

 Click on Bit Logic icon to open bit logic commands.


 Choose normally close contact.
 Drag and drop the contact to network 1.
 Write the M0.0 instead of the question marks (???) over the contact. M0.0 is
flag contact.
 Press the enter button to finish contact definition.

Figure: Step 7 Micro/WIN Timer and M0.0 Contact

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 13
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Setting up the timer (see Figure 1.3):

 Click on timer icon (see red boxes in Figure 1.2) to see all timer commands

 Choose TON (On-delay timer).

 Drag and drop the TON to network 1 next to M0.0.

 Write the T33 (see green boxes in Figure 1.2) instead of the question marks (???)
over the timer box.

 Press enter the cursor will go to PT (see blue boxes in Figure 1.2) section
(Time Setting).

 Enter time setting as: 100.

 Press enter to finish setting up the time.

Table 1.1: Timer Numbers and Resolutions

Table:Operations of the Timer Instructions


National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 14
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STEP-3: TURNING THE OUTPUT ON (NETWORK 2)

When the timer value for T33 is greater than or equal to 40 (40 times 10 milliseconds, or 0.4
seconds), the contact provides power flow to turn on output Q0.0 of the S7-200. To enter the
Compare instruction (see Figure 1.4):

 Double-click the Compare icon to display the compare instructions. Select the >=I
instruction (Greater-Than-Or-Equal-To-Integer ).
 Hold down the left mouse button and drag the compare instruction onto the second
network.
 Click on the “???” above the contact and enter the address for the timer value: T33
 Press the Return key to enter the timer number and to move the focus to the other
value to be compared with the timer value.
 Enter the following value to be compared with the timer value: 40
 Press the Return key to enter the value.

To enter the instruction for turning on output Q0.0:

 Double-click the Bit Logic icon to display the bit logic instructions and select the
output coil.
 Hold down the left mouse button and drag the coil onto the second network.
 Click on the “???” above the coil and enter the following address: Q0.0
 Press the Return key to enter the address for the coil.

Figure 1.4: Step 7 Micro/WIN Turn on the Output Network 2


National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 15
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STEP-4: RESETTING THE TIMER (NETWORK 3)

When the timer reaches the preset value (100) and turns the timer bit on, the contact for T33
turns on. Power flow from this contact turns on the M0.0 memory location. Because the timer
is enabled by a Normally Closed contact for M0.0, changing the state of M0.0 from off (0) to
on (1) resets the timer (see Figure 1.5).

To enter the contact for the timer bit of T33:


 Select the Normally Open contact from the bit logic instructions.
 Hold down the left mouse button and drag the contact onto the third network.
 Click on the “???” above the contact and enter the address of the timer bit: T33
 Press the Return key to enter the address for the contact.

To enter the coil for turning on M0.0:


 Select the output coil from the bit logic instructions.
 Hold down the left mouse button and drag the output coil onto the third network.
 Double-click the “???” above the coil and enter the following address: M0.0
 Press the Return key to enter the address for the coil.

You can save your project from: File Save As

Figure :Step 7 Micro/WIN Resetting the Timer Network 3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 16
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Figure: Whole Example and Output Timing diagram

Counters

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 17
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Figure: Up-Down Counter Definitions

 The Count Up instruction (CTU) counts up from the current value each time the
count up (CU) input makes the transition from off to on. When the current value Cxx
is greater than or equal to the preset value PV, the counter bit Cxx turns on. The
counter is reset when the Reset (R) input turns on, or when the Reset instruction is
executed. The counter stops counting when it reaches the maximum value
(32,767).
 The Count Down instruction (CTD) counts down from the current value of that
counter each time the count down (CD) input makes the transition from off to on.
When the current value Cxx is equal to 0, the counter bit Cxx turns on. The counter
resets the counter bit Cxx and loads the current value with the preset value PV when
the load input LD turns on. The counter stops upon reaching zero, and the counter bit
Cxx turns on.
 R input for CTU and LD input for CTD are reset inputs of counters (see Figure
2.1). You can reset counters by using this inputs.

Table: Operations of the Counter Instructions

STEP-5: DOWNLOADING THE SAMPLE PROGRAM TO PLC


 Click the Download icon on the toolbar or select the File > Download menu command to
download the program (See Figure1.7).

 Click OK on opened window to download the elements of the program to the S7-200.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 18
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Figure :Upload and Download Buttons

Step-6: Running the PLC


For STEP 7--Micro/WIN to place the S7-200 CPU in RUN mode, the mode switch of the S7-
200 must be set to TERM or RUN. When you place the S7-200 in RUN mode, the S7-200
executes the program:

 Click the RUN icon on the toolbar or select the PLC > RUN menu command (See Figure1.8).

 Click OK to change the operating mode of the S7-200.

Figure 1.8: Run and Stop Buttons

REFERENCES

[1] Siemens Simatic S7-200 Programable Controller System Manual, Edition 09, 2007.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 19
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB No. 3

DIGITAL I/O BASED EXPERIMENTS


BASIC GATES LOGIC USING STEP7 MICRO/WIN PLC
THEORY:

 NORMALLY OPEN CONTACT:

The Normally Open (LD, A, O) contact is closed (on) when the bit is equal to 1. In FBD,
normally open instructions are represented by AND/OR boxes. These instructions can be used to
manipulate Boolean signals in the same manner as ladder contacts. In STL, the normally open
contact is represented by the Load, AND, and OR instructions. These instructions load, AND, or
OR the bit value of the address bit to the top of the stack.

 NORMALLY CLOSED CONTACT:

The Normally Closed (LDN, AN, ON) contact is closed (on) when the bit is equal to 0. Normally
closed instructions are also represented by boxes. A normally closed instruction is constructed by
placing the negation symbol on the stem of the input signal. In STL, the normally closed contact
isrepresented by the Load NOT, AND NOT, and OR NOT instructions. These instructions load,
AND, or OR the logical NOT of the bit value to the top of the stack.

 OUTPUT COIL:

The Output (=) instruction writes the new value for the output bit to the process image register.In
LAD and FBD, when the output instruction is executed, the S7-200 turns the output bit in the
process image register on or off. For LAD and FBD, the specified bit is set equal to power
flow.In STL, the value on the top of the stack is copied to the specified bit.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 20
Government of Pakistan
NAVTTC-Industrial Automation (IA)

AND LOGIC GATE


Task 1(a)
Object: To implement the “AND” gate of two inputs using contacts and coils in Micro/Win.

PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 21
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

INPUT/OUTPUT ASSIGNMENT LIST:

SYMBOLIC LOGICAL
EXPLANATION
ADDRESS ADDRESS

S1 I0.0 AND LOGIC INPUT

S2 I1.0 AND LOGIC INPUT

H1 Q1.1 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q1.1

0 0 0

0 1 0

1 0 0

1 1 1

Conclusion: Performed simulation of “And” gate using ladder logic in Micro/WIN step 7
software compared the results with the truth table of And gate all the results were found
satisfactory

Task 1(b)
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 22
Government of Pakistan
NAVTTC-Industrial Automation (IA)

OR LOGIC GATE
Object: To implement the “OR” gate of two inputs using contacts and coils in
Micro/Win.

PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 23
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

ASSIGNMENT LIST:

SYMBOLIC LOGICAL EXPLANATION


ADDRESS ADDRESS

S1 I0.0 OR LOGIC INPUT

S2 I1.0 OR LOGIC INPUT

H1 Q1.1 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q1.1

0 0 0

0 1 1

1 0 1

1 1 1

Conclusion: Performed simulation of “OR” gate using ladder logic in Micro/WIN step 7
software compared the results with the truth table of or gate all the results were found
satisfactory.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 24
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Task 1(c)
XOR LOGIC GATE
Object: To implement the “XOR” gate of two inputs using contacts and coils in
Micro/Win.

PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 25
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

ASSIGNMENT LIST:

SYMBOLIC LOGICAL
EXPLANATION
ADDRESS ADDRESS
S1 I0.0 MOMENTARY SWITCH
S2 I1.0 MOMENTARY SWITCH
S3 I0.0 MOMENTARY SWITCH
S4 I1.0 MOMENTARY SWITCH
LAMP Q0.0 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q1.0

0 0 0

0 1 1

1 0 1

1 1 0

Conclusion: Performed simulation of “XOR” gate using ladder logic in Micro/WIN step 7
software compared the results with the truth table of XOR gate in this ladder logic used the
concept of interlocking for the very first time all the results were found satisfactory

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 26
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Task 1(d)

XNOR LOGIC GATE


Object: To implement the “XNOR” gate of two inputs using contacts and coils in
Micro/Win.

PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 27
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

ASSIGNMENT LIST:

SYMBOLIC LOGICAL
EXPLANATION
ADDRESS ADDRESS
S1 I0.0 MOMENTARY SWITCH
S2 I1.0 MOMENTARY SWITCH
LAMP Q0.0 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q0.0

0 0 1

0 1 0

1 0 0

1 1 1

Conclusion: Performed simulation of or gate using ladder logic in Micro/WIN step 7 software
compared the results with the truth table of xnor gate all the results were found satisfactory

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 28
Government of Pakistan
NAVTTC-Industrial Automation (IA)

NAND LOGIC GATE


Task 1(e)
Object: To implement the “NAND” gate of two inputs using contacts and coils in Micro/Win
PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 29
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

ASSIGNMENT LIST:

SYMBOLIC LOGICAL
EXPLANATION
ADDRESS ADDRESS

S1 I0.0 NOR LOGIC INPUT

S2 I1.0 NOR LOGIC INPUT

H1 Q1.1 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q1.1

0 0 1

0 1 1

1 0 1

1 1 0

Conclusion: Performed simulation of “NAND” gate using ladder logic in Micro/WIN step 7
software compared the results with the truth table of Nand gate all the results were found
satisfactory

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 30
Government of Pakistan
NAVTTC-Industrial Automation (IA)

NOR LOGIC GATE


Task 1(f)
Object: To implement the “NOR” gate of two inputs using contacts and coils in Micro/Win
PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 31
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONTROL DIAGRAM:

ASSIGNMENT LIST:

SYMBOLIC LOGICAL
EXPLANATION
ADDRESS ADDRESS

S1 I0.0 NOR LOGIC INPUT

S2 I1.0 NOR LOGIC INPUT

H1 Q1.1 LAMP

TRUTH TABLE:

INPUT OUTPUT

I0.0 I1.0 Q1.1

0 0 1

0 1 0

1 0 0

1 1 0

Conclusion: Performed simulation of “NOR” gate using ladder logic in Micro/WIN step
7 software compared the results with the truth table of NOR gate all the results were
found satisfactory.

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 32
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO 04
BINARY OPERATION BASED LOGICS
ACCESS TO CAR WASH
TASK DESCRIPTION: Access to a car wash is prohibited by a Red Lamp when there is
still a vehicle sensed by S1 OR when supervisor presses a latch button S2. If none of these
conditions is met, in other words the access is free; a Green Lamp is to light up.

Red

CAR WASH

Green

ASSIGNMENT LIST:

INPUT OUTPUT

LOGIC
SYMBOL LOGIC ADDRESS SYMBOL
ADDRESS

S1 I0.0 RED Q0.0

S2 I0.1 GREEN Q0.1

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 33
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC PROGRAMMING (LAD/STL/FBD):

Ladder Logic: STL Logic:

Conclusion: In this lab. We performed binary operation based logics


access to car wash and control using latch button and sensor output status show by LED.s .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 34
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO: 05
PLC BASED CONTROLLING A CONVEYOR
BELT
TASK DESCRIPTION: A conveyor belt that can be activated electrically. There are two
push button switches at the beginning of the belt: S1 for START and S2 for STOP. There are
also two push button switches at the end of the belt: S3 for START and S4 for STOP. It is
possible to start or stop the belt from either end. Also, sensor S5 stops the belt when an item
on the belt reaches the end.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Push Button 1


S2 I0.1 Push Button 2
S3 I0.3 Push Button 3
S4 I0.4 Push Button 4
S5 I0.5 Sensor
CB Q0.0 Conveyor Belt

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 35
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Conclusion: In this lab. We performed plc based controlling a conveyor


belt and control using push buttons and sensor .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 36
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO.6
INTERLOCKING OPERATION
PLC BASED DETECTING THE DIRECTION OF
A CONVEYOR BELT

TASK DESCRIPTION:A conveyor belt that is equipped with two photoelectric barriers
(PEB1 and PEB2) that are designed to detect the direction in which a package is moving on
the belt. Each photoelectric light barrier functions like a normally open contact.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
S2 I0.1 Stop
PB1 I0.2 Photoelectric barrier 1
PB2 I0.3 Photoelectric barrier 2
F Q4.0 Forward
B Q4.1 Backward

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 37
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

Network 1
LD I0.0
O I0.2
O Q4.0
AN I0.3
A I0.1
= Q4.1

Network 2
LD I0.3
O Q4.0
AN I0.2
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 38
Government of Pakistan
NAVTTC-Industrial Automation (IA)

A I0.1
= Q4.0

FBD Logic:

Conclusion: In this lab. We performed plc based position detection on a conveyor belt and
control packet using push buttons and sensors .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 39
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 07
INTERLOCKING OPERATION
PLC BASED GARAGE DOOR EXERCISE
TASK DESCRIPTION:A garage door is controlled such that there are two operating panels,
one is outside the door and the other is inside. The conditions for open and close are
described in block diagrams shown below. Moreover two limit switches are also installed to
check the status of garage door at both ends.

Motor up
Upper limit switch
M

Motor down

Lower limit switch

Open Open

Key
Close
Close

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

K I0.0 Key
O_Out I0.1 Open Outside
O_In I0.2 Open Inside
C_Out I0.3 Close Outside
C_In I0.4 Close Inside
ULS I0.5 Upper Limit Switch
LLS I0.6 Lower limit Switch
M_UP Q0.0 Motor Up
M_DN Q0.1 Motor Down
L_Up Q0.2 Lamp Up
L_Dn Q0.3 Lamp Down
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 40
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:
Network 1 O I0.4
LD I0.0 O Q0.1
A I0.1
O I0.2 AN I0.6
O Q0.0 AN Q0.0
AN I0.5 = Q0.0
AN Q0.1 Network 3
= Q0.0 LD I0.5
= Q0.2
Network 2 Network 4
LD I0.0 LD I0.6
A I0.3 = Q0.3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 41
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based interlocking operation


garage door exercise using push buttons and sensors .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 42
Government of Pakistan
NAVTTC-Industrial Automation (IA)

DATE:_______________________ SIGNATURE:__________

LAB NO. 08
RS FLIP FLOP OPERATION
PLC BASED GARAGE DOOR EXERCISE
TASK DESCRIPTION: A garage door is controlled such that there are two operating
panels, one is outside the door and the other is inside. The conditions for open and close are
described in block diagrams shown below. Moreover two limit switches are also installed to
check the status of garage door at both ends.

PROCESS SCHEMATIC:

Motor up
Upper limit switch
M

Motor down

Lower limit switch

Open Open

Key
Close
Close

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

K I0.0 Key
O_Out I0.1 Open Outside
O_In I0.2 Open Inside
C_Out I0.3 Close Outside
C_In I0.4 Close Inside
ULS I0.5 Upper Limit Switch
LLS I0.6 Lower limit Switch
M_UP Q0.0 Motor Up
M_DN Q0.1 Motor Down
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 43
Government of Pakistan
NAVTTC-Industrial Automation (IA)

L_Up Q0.2 Lamp Up


L_Dn Q0.3 Lamp Down
F1 Flip Flop 1
F2 Flip Flop 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

Network 1 AN Q0.0
LD I0.0 LD I0.6
A I0.1 NOT
O I0.2 LPS
AN Q0.1 A Q0.1
LD I0.5 = Q0.1
NOT LPP
LPS ALD
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 44
Government of Pakistan
NAVTTC-Industrial Automation (IA)

A Q0.0 O Q0.1
= Q0.0 = Q0.1
LPP = Q0.1
ALD Network 3
O Q0.0 LD I0.5
= Q0.0 = Q0.2
= Q0.0 Network 4
Network 2 LD I0.6
LD I0.0
A I0.3 = Q0.3
O I0.

FBD Logic:

Conclusion: In this lab. We performed plc based interlocking operation


garage door exercise using Flip Flop Operation .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 45
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 09
SET/RESET COIL OPERATIONS
PLC BASED GARAGE DOOR EXERCISE
TASK DESCRIPTION:A garage door is controlled such that there are two operating panels,
one is outside the door and the other is inside. The conditions for open and close are
described in block diagrams shown below. Moreover two limit switches are also installed to
check the status of garage door at both ends.

PROCESS SCHEMATIC:

Motor up
Upper limit switch
M

Motor down

Lower limit switch

Open Open

Key
Close
Close

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

K I0.0 Key
O_Out I0.1 Open Outside
O_In I0.2 Open Inside
C_Out I0.3 Close Outside
C_In I0.4 Close Inside
ULS I0.5 Upper Limit Switch
LLS I0.6 Lower limit Switch
M_UP Q0.0 Motor Up
M_DN Q0.1 Motor Down
L_Up Q0.2 Lamp Up
L_Dn Q0.3 Lamp Down
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 46
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 47
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
A I0.1
O I0.2
AN I0.5
AN Q0.1
S Q0.0, 1
Network 2
LD I0.5
R Q0.0, 1
Network 3
LD I0.0
A I0.3
O I0.4
AN I0.6
AN Q0.0
S Q0.1, 1
Network 4
LD I0.6
= Q0.1
Network 5
LD I0.5
= Q0.2
Network 6
LD I0.6
= Q0.3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 48
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based interlocking operation


garage door exercise using Set/Reset Coil Operation .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 49
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 10
MASTER/SLAVE PANELS OPERATION
PLC BASED GARAGE DOOR EXERCISE
TASK DESCRIPTION: A garage door is controlled such that there are two operating
panels, one is outside the door and the other is inside. The conditions for open and close are
described in block diagrams shown below. Moreover, two limit switches are also installed to
check the status of garage door at both ends.

PROCESS SCHEMATIC:

Motor up
Upper limit switch
M

Motor down

Lower limit switch

Open Open

Key
Close
Close

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

K I0.0 Key
O_Out I0.1 Open Outside
O_In I0.2 Open Inside
C_Out I0.3 Close Outside
C_In I0.4 Close Inside
ULS I0.5 Upper Limit Switch
LLS I0.6 Lower limit Switch
M_UP Q0.0 Motor Up
M_DN Q0.1 Motor Down
L_Up Q0.2 Lamp Up
L_Dn Q0.3 Lamp Down
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 50
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 51
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1:
LD Key
A Up (Outside)
= M0.0

Network 2:
LD Key
A Down (Outside)
= M0.1

Network 3:
LD M0.0
LD Up (Inside)
AN Motor_Down
OLD
O Motor_Up
AN Upper_Limit_Switch
AN M0.1
= Motor_Up

Network 4:
LD M0.1
LD Down (Inside)
AN Motor_Up
OLD
O Motor_Down
AN Down_Limit_Switch
AN M0.0
= Motor_Down

Network 5:
LD Upper_Limit_Switch
= Door_Open_Indicator

Network 6:
LD Down_Limit_Switch
= Door_Close_Indica

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 52
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based interlocking operation garage door
exercise using master/slave panels operation
.
NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 53
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 11
FAST SWITCHING RESPONSE / FULL AUTOMATIC
PLC BASED GARAGE DOOR EXERCISE
TASK DESCRIPTION:A garage door is controlled such that there are two operating panels,
one is outside the door and the other is inside. The conditions for open and close are
described in block diagrams shown below. Moreover, two limit switches are also installed to
check the status of garage door at both ends.

PROCESS SCHEMATIC:

Motor up
Upper limit switch
M

Motor down

Lower limit switch

Open Open

Key
Close
Close

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

K I0.0 Key
O_Out I0.1 Open Outside
O_In I0.2 Open Inside
C_Out I0.3 Close Outside
C_In I0.4 Close Inside
ULS I0.5 Upper Limit Switch
LLS I0.6 Lower limit Switch
M_UP Q0.0 Motor Up
M_DN Q0.1 Motor Down
L_Up Q0.2 Lamp Up
L_Dn Q0.3 Lamp Down
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 54
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 55
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
A I0.1
O I0.2
= M0.0
Network 2
LD I0.0
A I0.3
O I0.4
= M0.2
Network 3
LD M0.0
O Q0.0
AN I0.5
AN M0.2
= Q0.0
Network 4
LD M0.2
O Q0.1
AN I0.6
AN M0.0
= Q0.1
Network 5
LD I0.5
= Q0.2
Network 6
LD I0.6
= Q0.3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 56
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based interlocking operation garage door
exercise using fast switching response / full automatic

.
NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 57
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 12
USING INTERNAL MEMORY BIT
CAR WASH

TASK DESCRIPTION: When a car is sensed by vehicle sensor S1 a red lamp H1 lights
up. Now as a operator presses the water nozzle W1 AND W2 both, the water pump P1 is
ON . At the same time water removal outlet A5opens.
When the opened W1 OR W2 & both close, pump P1 and outlet A5 close and dryer T1
goes ON. After the completion of whole process as a car leaves the place a green lamp H2
lights and red lamp and the dryer go OFF.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
W1 I0.1 Nozzle 1
W2 I0.2 Nozzle 2
H1 Q0.0 Red Lamp
H2 Q0.1 Green Lamp
P1 Q0.2 Pump
A5 Q0.3 Water removal outlet
T_1 Q0.4 Drayer
ME1 M0.0 M0.0 Memory Bit 1
ME2 M0.1 M0.0 Memory Bit 2

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 58
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 59
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
= Q0.0
Network 2
LDN I0.0
= Q0.1
Network 3
LD I0.1
A I0.2
= M0.0
Network 4
LD M0.0
A Q0.1
= Q0.2
= Q0.3
Network 5
LD Q0.2
O M0.1
= M0.1
Network 6
LD M0.1
AN Q0.2
A Q0.1
= Q0.4

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 60
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Car Wash System using Internal memory
Bit Operation.

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 61
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO.13
RS FLIP FLOP OPERATION
CAR WASH

TASK DESCRIPTION: When a car is sensed by vehicle sensor S1 a red lamp H1 lights
up. Now as a operator presses the water nozzle W1 AND W2 both, the water pump P1 is
ON . At the same time water removal outlet A5opens.
When the opened W1 OR W2 & both close, pump P1 and outlet A5 close and dryer T1
goes ON. After the completion of whole process as a car leaves the place a green lamp H2
lights and red lamp and the dryer go OFF.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
W1 I0.1 Nozzle 1
W2 I0.2 Nozzle 2
H1 Q0.0 Red Lamp
H2 Q0.1 Green Lamp
P1 Q0.2 Pump
A5 Q0.3 Water removal outlet
T_1 Q0.4 Drayer
ME1 M0.0 M0.0 Memory Bit 1
ME2 M0.1 M0.0 Memory Bit 2
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 62
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 63
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
Network 1 Network 3 Network 5
LD I0.0 LD I0.1 LD Q0.2
LD Q0.1 A I0.2 LD Q0.1
NOT LDN I0.1 NOT
LPS NOT LPS
A Q0.0 LPS A M0.0
= Q0.0 A M0.0 = M0.0
LPP = M0.0 LPP
ALD LPP ALD
O Q0.0 ALD O M0.0
= Q0.0 O M0.0 = M0.0
= Q0.0 = M0.0 = M0.0
Network 2 = M0.0 Network 6
LDN I0.0 Network 4 LD M0.0
LD Q0.1 LD M0.0 LD Q0.1
NOT = Q0.2 NOT
LPS = Q0.3 LPS
A Q0.1 A Q0.4
= Q0.1 = Q0.4
LPP LPP
ALD ALD
O Q0.1 O Q0.4
= Q0.1 = Q0.4
= Q0.1 AN Q0.2
= Q0.4

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 64
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based Car Wash System


using Flip Flop Operation.

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
LAB NO.14
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 65
Government of Pakistan
NAVTTC-Industrial Automation (IA)

SET/RESET COIL OPERATION


CAR WASH

TASK DESCRIPTION: When a car is sensed by vehicle sensor S1 a red lamp H1 lights
up. Now as a operator presses the water nozzle W1 AND W2 both, the water pump P1 is
ON . At the same time water removal outlet A5opens.
When the opened W1 OR W2 & both close, pump P1 and outlet A5 close and dryer T1
goes ON. After the completion of whole process as a car leaves the place a green lamp H2
lights and red lamp and the dryer go OFF.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
W1 I0.1 Nozzle 1
W2 I0.2 Nozzle 2
H1 Q0.0 Red Lamp
H2 Q0.1 Green Lamp
P1 Q0.2 Pump
A5 Q0.3 Water removal outlet
T_1 Q0.4 Drayer
ME1 M0.0 M0.0 Memory Bit 1
ME2 M0.1 M0.0 Memory Bit 2

PROGRAMMING (LAD/STL/FBD):
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 66
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 67
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
S Q0.0, 1
Network 2
LD Q0.1
R Q0.0, 1
Network 3
LDN I0.0
S Q0.1, 1
Network 4
LD Q0.0
R Q0.1, 1
Network 5
LD I0.1
A I0.2
S M0.0, 1
Network 6
LDN I0.1
AN I0.2
R M0.0, 1
Network 7
LD M0.0
= Q0.3
= Q0.2
Network 8
LD Q0.2
S M0.1, 1
Network 9
LD Q0.1
R M0.1, 1
Network 10
LD M0.1
AN Q0.2
S Q0.4, 1
Network 11
LD Q0.1
R Q0.4, 1

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 68
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Car Wash System


using Set/Reset Coil Operation.

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 69
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO.15
POSITIVE EDGE /NEGATIVE EDGE OPERATIONS
CAR WASH

TASK DESCRIPTION: When a car is sensed by vehicle sensor S1 a red lamp H1 lights
up. Now as a operator presses the water nozzle W1 AND W2 both, the water pump P1 is
ON . At the same time water removal outlet A5opens.
When the opened W1 OR W2 & both close, pump P1 and outlet A5 close and dryer T1
goes ON. After the completion of whole process as a car leaves the place a green lamp H2
lights and red lamp and the dryer go OFF.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
W1 I0.1 Nozzle 1
W2 I0.2 Nozzle 2
H1 Q0.0 Red Lamp
H2 Q0.1 Green Lamp
P1 Q0.2 Pump
A5 Q0.3 Water removal outlet
T_1 Q0.4 Drayer
ME1 M0.0 M0.0 Memory Bit 1
ME2 M0.1 M0.0 Memory Bit 2

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 70
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 71
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
EU
S Q0.0, 1
Network 2
LD Q0.1
ED
R Q0.0, 1
Network 3
LDN I0.0
EU
S Q0.1, 1
Network 4
LD Q0.0
ED
R Q0.1, 1
Network 5
LD I0.1
A I0.2
EU
S M0.0, 1
Network 6
LD I0.1
A I0.1
ED
R M0.0, 1
Network 7
LD M0.0
= Q0.3
= Q0.2
Network 8
LD Q0.2
EU
S M0.1, 1
Network 9
LD Q0.1
ED
R M0.1, 1
Network 10
LD M0.1
AN Q0.2
S Q0.4, 1
Network 11
LD Q0.1
ED
R Q0.4, 1

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 72
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Car Wash System using Positive Edge
/Negative Edge Operations
NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 73
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 16
PLC BASED GARAGE VENTILATION CONTROL

TASK DESCRIPTION:An underground garage is equipped with four fans. A light at the
entrance/exit Shows the state of the garage’s ventilation, thus regulates incoming/outgoing
Vehicles.
 Green
When three or four fans are operating, ventilation is good and the light is to show
Green.

 Yellow
When only two fans are operating, ventilation is adequate and the light is to show
Yellow.

 Red
When only one fan is operating, ventilation is no longer adequate and the light is
is to show red.

PROBLEM SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

F1 I0.0 Fan 1
F2 I0.1 Fan 2
F3 I0.2 Fan 3
F4 I0.3 Fan 4
Green Q0.0 Green Light
Yellow Q0.1 Yellow Light
Red Q0.2 Red Light

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 74
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 75
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
A I0.1
A I0.2
A I0.3
LD I0.0
A I0.1
A I0.2
OLD
LD I0.0
A I0.1
A I0.3
OLD
LD I0.0
A I0.2
A I0.3
OLD
LD I0.1
A I0.2
A I0.3
OLD
= Q0.0
Network 2
LD I0.0
A I0.1
LD I0.0
A I0.2
OLD
LD I0.0
A I0.3
OLD
LD I0.1
A I0.2
OLD
LD I0.1
A I0.3
OLD
LD I0.2
A I0.3
OLD
= Q0.1
Network 3
LD I0.0
O I0.1
O I0.2
O I0.3
= Q0.2

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 76
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Plc Based Garage Ventilation Control
System

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 77
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 17
DRAIN SYSTEM
ON DELAY TIMER
TASK DESCRIPTION:Drain System Figure shows the control diagram of an industrial
drain system. Your task is an automation engineer is to implement given logic on PLC
SIMATIC . Develop the complete program using LAD package of PLC programming
language. Also mention the address of respective I/O’s.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
S2 I0.1 Stop
S3 I0.3 Level Sensor
SV1 Q0.0 Selenoid Valve
H1 Q0.1 Lamp
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_37 On Delay TimerS

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 78
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

Network 1
LD I0.0
A I0.1
= M0.0
Network 2
LD M0.0
A I0.3
TON T37, 50
Network 3
LD T37
= M0.1
Network 4
LD M0.1
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 79
Government of Pakistan
NAVTTC-Industrial Automation (IA)

= Q0.0
= Q0.1

FBD Logic:

Conclusion: In this lab. We performed plc based drain system using


On delay timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 80
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 18
DRAIN SYSTEM
OFF DELAY TIMER
TASK DESCRIPTION:Drain System Figure shows the control diagram of an industrial
drain system. Your task is an automation engineer is to implement given logic on PLC
SIMATIC . Develop the complete program using LAD package of PLC programming
language. Also mention the address of respective I/O’s.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
S2 I0.1 Stop
S3 I0.3 Level Sensor
SV1 Q0.0 Selenoid Valve
H1 Q0.1 Lamp
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_37 On Delay TimerS

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 81
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:
Network 1
LD I0.0
A I0.1
= M0.0
Network 2
LD M0.0
A I0.3
EU
TOF T37, 50
Network 3
LDN T37
= M0.0
Network 4
LD M0.1
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 82
Government of Pakistan
NAVTTC-Industrial Automation (IA)

= Q0.0
= Q0.1

FBD Logic:

Conclusion: In this lab. We performed plc based drain system using


Off Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 83
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 19
TOGGLING CONDITION
ON DELAY TIMER
TASK DESCRIPTION: Generate a Frequency Generator at 0.10Hz without any external
input.
WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 84
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
Network
LD I0.0
AN T38
TON T37, 100
Network 2
LD T37
TON T38, 100
Network 3
LD T37
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition


On Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 85
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 20
TOGGLING CONDITION
OFF DELAY TIMER
TASK DESCRIPTION: Generate a Frequency Generator at 0.10Hz without any external
input.

WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):
Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 86
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
AN T38
TOF T37, 50
Network 2
LD T37
TOF T38, 50
Network 3
LD T37
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition


OFF Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 87
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 21
TOGGLING CONDITION
ON/OFF DELAY TIMER
TASK DESCRIPTION: Generate a Frequency Generator at 0.10Hz without any external
input.
WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:

Network 1
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 88
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LD I0.0
AN T38
TON T37, 100
Network 2
LD T37
TOF T38, 50
Network 3
LD T38
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition


On & Off Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

Lab No.22
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 89
Government of Pakistan
NAVTTC-Industrial Automation (IA)

TOGGLING CONDITION
ON DELAY TIMER
TASK DESCRIPTION:Waveform of Frequency Generator and Toggle Output` Generate a
toggle Output LED at 40% OFF and 60% ON wave form.

WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 90
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
AN T38
TON T37, 25
Network 2
LD T37
TON T38, 16
Network 3
LD T37
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition Generate a toggle
Output LED at 40% OFF and 60% ON wave form. Using On Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

LAB NO. 23
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 91
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PROCESS-CONTROLLED SYSTEM


(ON DELAY TIMER)
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is
pressed, MV1 will be opened and dye starts to fill the tank. At the same time mixing-motor begins to
run. As the level of the dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor
will stop. Then MV2 will be opened and dye begins to run out of the container. After the level of the
dye reaches to the below of TBL2, MV2 will be closed. then the system will stop. We can observe the
stopping of the system with the lamp and the buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues
to light until the reset button is pressed. When the reset button is pressed, the system will be ready to
begin the same process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 92
Government of Pakistan
NAVTTC-Industrial Automation (IA)

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 93
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AN T37
= Q0.4
Network 6
LD M0.0
TON T37, 20

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 94
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using On Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
LAB NO. 24
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 95
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PROCESS-CONTROLLED SYSTEM


(OFF DELAY TIMER)
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is
pressed, MV1 will be opened and dye starts to fill the tank. At the same time mixing-motor begins to
run. As the level of the dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor
will stop. Then MV2 will be opened and dye begins to run out of the container. After the level of the
dye reaches to the below of TBL2, MV2 will be closed. then the system will stop. We can observe the
stopping of the system with the lamp and the buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues
to light until the reset button is pressed. When the reset button is pressed, the system will be ready to
begin the same process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer

PROGRAMMING (LAD/STL/FBD):
Ladder Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 96
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 97
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AN T37
= Q0.4
Network 6
LD M0.0
EU
TOF T37, 20

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 98
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using Off Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
LAB NO. 25
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 99
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PROCESS-CONTROLLED SYSTEM


(ON/OFF DELAY TIMER)
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is
pressed, MV1 will be opened and dye starts to fill the tank. At the same time mixing-motor begins to
run. As the level of the dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor
will stop. Then MV2 will be opened and dye begins to run out of the container. After the level of the
dye reaches to the below of TBL2, MV2 will be closed. then the system will stop. We can observe the
stopping of the system with the lamp and the buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues
to light until the reset button is pressed. When the reset button is pressed, the system will be ready to
begin the same process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 100
Government of Pakistan
NAVTTC-Industrial Automation (IA)

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 101
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AN T38
= Q0.4
Network 6
LD M0.0
EU
TOF T37, 20
Network 7
LD T37
TOF T38, 20
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 102
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using On/Off Delay Timer

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 103
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 26
PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE
ON DELAY OPERATION
TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1
T_2 T38 Timer 2
T_3 T39 Timer 3
T_4 T40 Timer 4

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 104
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):
Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 105
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
O M0.0
= M0.0
Network 2
LD M0.0
LPS
AN T37
= Q0.0
LPP
AN T40
TON T37, 160
Network 3
LD M0.0
AN T40
TON T38, 130
Network 4
LD M0.0
LD T38
AN T37
LD T39
AN T40
OLD
ALD
= Q0.2
Network 5
LD M0.0
A T37
LPS
AN T39
= Q0.1
LPP
TON T39, 100
Network 6
LD M0.0
AN T39
TON T40, 30
Network 7
LD M0.0
LPS
AN Q0.0
= Q1.0
LPP
AN Q0.1
LDN Q0.2
O Q0.0
ALD
= Q1.1
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 106
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using On delay operation

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:_________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 107
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 26
PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE
OFF DELAY OPERATION
TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1
T_2 T38 Timer 2
T_3 T39 Timer 3
T_4 T40 Timer 4

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 108
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):
Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 109
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
Network 1
LD I0.0
O M0.0
= M0.0
Network 2
LD M0.0
LPS
A T37
= Q0.0
LPP
AN T40
EU
TOF T37, 160
Network 3
LD M0.0
AN T40
EU
TOF T38, 130
Network 4
LD M0.0
LDN T38
A T37
LDN T39
A T40
OLD
ALD
= Q0.2
Network 5
LD M0.0
AN T37
LPS
A T39
= Q0.1
= M0.1
LPP
EU
TOF T39, 100
Network 6
LD M0.1
AN T39
EU
TOF T40, 30
Network 7
LD M0.0
LPS
AN Q0.0
= Q1.0
LPP
AN Q0.1
LDN Q0.2
O Q0.0
ALD
= Q1.1

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 110
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using Off delay operation

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 111
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 28
PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE
ON/OFF DELAY OPERATION
TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1
T_2 T38 Timer 2
T_3 T39 Timer 3
T_4 T40 Timer 4

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 112
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):
Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 113
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:
Network 1
LD I0.0
O M0.0
= M0.0
Network 2
LD M0.0
LPS
A T37
= Q0.0
LPP
AN T40
EU
TOF T37, 160
Network 3
LD M0.0
AN T40
TON T38, 130
Network 4
LD M0.0
LD T38
A T37
LDN T39
A T40
OLD
ALD
= Q0.2
Network 5
LD M0.0
AN T37
LPS
A T39
= Q0.1
= M0.1
LPP
EU
TOF T39, 100
Network 6
LD M0.1
AN T39
TON T40, 30
Network 7
LD M0.0
LPS
AN Q0.0
= Q1.0
LPP
AN Q0.1
LDN Q0.2
O Q0.0
ALD
= Q1.1

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 114
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using On/Off delay operation

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 115
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 29
TOGGLING CONDITION
ON DELAY TIMER WITH COMPARE INSTRUCTION

TASK DESCRIPTION:Waveform of Frequency Generator and Toggle Output`


Generate a toggle Output LED at 40% OFF and 60% ON wave form.

WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 116
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
AW<= T37, 10
TON T37, 10
Network 2
LDW> T37, 4
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition Generate a toggle
Output LED at 40% OFF and 60% ON wave form. Using On Delay Timer With Compare
instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 117
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 30
TOGGLING CONDITION
OFF DELAY TIMER WITH COMPARE INSTRUCTION

TASK DESCRIPTION:Waveform of Frequency Generator and Toggle Output`


Generate a toggle Output LED at 40% OFF and 60% ON wave form.

WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 118
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
AN T37
TOF T37, 10
Network 2
LDW> T37, 4
= Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition Generate a toggle
Output LED at 40% OFF and 60% ON wave form. Using On Delay Timer With Compare
instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 119
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 31
TOGGLING CONDITION
ON/OFF DELAY TIMER WITH COMPARE INSTRUCTION

TASK DESCRIPTION:Waveform of Frequency Generator and Toggle Output`


Generate a toggle Output LED at 40% OFF and 60% ON wave form .

WAVEFORM DIAGRAM:

ASSIGNMENT LIST:
INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS
S1 I0.0 Start
H1 Q0.0 Led
T_37 On Delay Timer 1
T_38 On Delay Timer 2

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 120
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
AN T37
TON T37, 10
Network 2
LD T37
TOF T38, 10
Network 3
LDW> T_2:T38, 4
= L:Q0.0

FBD Logic:

Conclusion: In this lab. We performed plc based Toggling Condition Generate a toggle
Output LED at 40% OFF and 60% ON wave form. Using On Delay Timer With Compare
instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 121
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 32
PLC BASED PROCESS-CONTROLLED SYSTEM
ON DELAY TIMER WITH COMPARE INSTRUCTION
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is
pressed, MV1 will be opened and dye starts to fill the tank. At the same time mixing-motor begins to
run. As the level of the dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor
will stop. Then MV2 will be opened and dye begins to run out of the container. After the level of the
dye reaches to the below of TBL2, MV2 will be closed. then the system will stop. We can observe the
stopping of the system with the lamp and the buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues
to light until the reset button is pressed. When the reset button is pressed, the system will be ready to
begin the same process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 122
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 123
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AW>= T37, 0
AW<= T37, 2
= Q0.4
Network 6
LD M0.0
TON T37, 20

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 124
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using On Delay Timer With Compare instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 125
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 33
PLC BASED PROCESS-CONTROLLED SYSTEM
OFF DELAY TIMER WITH COMPARE INSTRUCTION
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is pressed, MV1
will be opened and dye starts to fill the tank. At the same time mixing-motor begins to run. As the level of the
dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor will stop. Then MV2 will be
opened and dye begins to run out of the container. After the level of the dye reaches to the below of TBL2, MV2
will be closed. then the system will stop. We can observe the stopping of the system with the lamp and the
buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues to light
until the reset button is pressed. When the reset button is pressed, the system will be ready to begin the same
process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer
PROGRAMMING (LAD/STL/FBD):
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 126
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 127
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AW>= T37, 0
AW<= T37, 2
= Q0.4
Network 6
LD M0.0
TOF T37, 20

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 128
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using Off Delay Timer With Compare instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 129
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 34
PLC BASED PROCESS-CONTROLLED SYSTEM
ON DELAY TIMER WITH COMPARE INSTRUCTION
TASK DESCRIPTION:A PLC-controlled system operates as follows. If the Start button is
pressed, MV1 will be opened and dye starts to fill the tank. At the same time mixing-motor begins to
run. As the level of the dye passes TBL2 and reaches to TBL1, MV1 will be closed and mixing-motor
will stop. Then MV2 will be opened and dye begins to run out of the container. After the level of the
dye reaches to the below of TBL2, MV2 will be closed. then the system will stop. We can observe the
stopping of the system with the lamp and the buzzer.
After the system stops, buzzer will continue to run for 2sec and then it stops. But the lamp continues
to light until the reset button is pressed. When the reset button is pressed, the system will be ready to
begin the same process again.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

PB1 I0.0 Start


PB2 I0.1 Stop
PB3 I0.2 Reset
TBL1 I0.3 Level Sensor 1
TBL2 I0.4 Level Sensor 2
MV1 Q0.0 Liquid In
MV2 Q0.1 Liquid Out
MM Q0.2 Mixing Motor
PL Q0.3 Lamp
BZ Q0.4 Buzzer
ME1 M0.0 Memory Bit 1
T_37 On Delay Timer
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 130
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 131
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O Q0.0
A I0.1
A I0.2
AN I0.3
AN Q0.1
AN Q0.3
= Q0.0
Network 2
LD Q0.0
A I0.4
AN I0.3
AN Q0.1
= Q0.2
Network 3
LD I0.3
O Q0.1
A I0.4
= Q0.1
Network 4
LD I0.0
AN I0.2
= M0.0
Network 5
LD M0.0
AN Q0.0
AN Q0.2
AN Q0.1
= Q0.3
AW>= T38, 0
AW<= T38, 2
= Q0.4
Network 6
LD M0.0
EU
TOF T37, 20
Network 7
LD T37
TOF T38, 20

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 132
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based PLC BASED PROCESS-CONTROLLED


SYSTEM using On/Off Delay Timer With Compare instruction

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

LAB NO. 35
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 133
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


ON DELAY OPERATION WITH COMPARE INSTRUCTION
TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1

PROGRAMMING (LAD/STL/FBD):
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 134
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 135
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O M0.0
= M0.0
Network 2
LD M0.0
AN M0.1
TON T37, 290
Network 3
LD M0.0
AW>= T37, 0
AW<= T37, 160
= Q0.0
Network 4
LD M0.0
LDW>= T37, 130
AW<= T37, 160
LDW>= T37, 261
AW<= T37, 290
OLD
ALD
= Q0.2
Network 5
LD M0.0
AW>= T37, 161
AW<= T37, 260
= Q0.1
Network 6
LD M0.0
AW>= T37, 131
AW<= T37, 290
= Q1.0
Network 7
LD M0.0
AW>= T37, 0
AW<= T37, 130
= Q1.1
Network 8
LD T37
= M0.1

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 136
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using On delay operation With Compare Instruction

NAME: Rafi Ullah Khan Lodhi. ROLL # IA-A16

DATE:_______________________ SIGNATURE:_________

LAB NO. 36
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 137
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE


OFF DELAY OPERATION WITH COMPARE INSTRUCTION
TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1

PROGRAMMING (LAD/STL/FBD):

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 138
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic:

STL Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 139
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
O M0.0
= M0.0
Network 2
LD M0.0
AN M0.1
EU
TOF T37, 290
Network 3
LD M0.0
AW>= T37, 0
AW<= T37, 160
= Q0.0
Network 4
LD M0.0
LDW>= T37, 130
AW<= T37, 160
LDW>= T37, 261
AW<= T37, 290
OLD
ALD
= Q0.2
Network 5
LD M0.0
AW>= T37, 161
AW<= T37, 260
= Q0.1
Network 6
LD M0.0
AW>= T37, 131
AW<= T37, 290
= Q1.0
Network 7
LD M0.0
AW>= T37, 0
AW<= T37, 130
= Q1.1
Network 8
LD T37
= M0.1

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 140
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using On delay operation With Compare Instruction

NAME: Rafi Ullah Khan Lodhi. ROLL # IA-A16

DATE:_______________________ SIGNATURE:_________
LAB NO. 37
PLC BASED PEDESTRIAN CROSSING LIGHT EXERCISE
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 141
Government of Pakistan
NAVTTC-Industrial Automation (IA)

ON/OFF DELAY OPERATION WITH COMPARE INSTRUCTION


TASK DESCRIPTION:A zebra crossing is equipped with a pedestrian crossing light. When
momentary-contact pushbutton S1 is actuated the light is to switch to “RED” for vehicle and
“GREEN” for pedestrians, and vice versa.
Select the times for this example so that the light is YELLOW (amber) for three seconds and
red for sixteen seconds for vehicles, but the green light for pedestrians only lights up for ten
seconds.

PROCESS SCHEMATIC:

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
RV Q0.0 Red Light For Veichle
GV Q0.1 Green Light For Veichle
YV Q0.2 Yellow Light For Veichle
RP Q1.0 Red Light For Pedestrian
GP Q1.1 Green Light For Pedestrian
ME1 M0.0 Memory Bit 1
ME2 M0.1 Memory Bit 2
T_1 T37 Timer 1

PROGRAMMING (LAD/STL/FBD):

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 142
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic:

STL Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 143
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Network 1
LD I0.0
AN T38
TOF T38, 1
Network 2
LD M0.0
AN M0.1
TON T37, 290
Network 3
LD M0.0
AW>= T37, 0
AW<= T37, 160
= Q0.0
Network 4
LD M0.0
LDW>= T37, 130
AW<= T37, 160
LDW>= T37, 261
AW<= T37, 290
OLD
ALD
= Q0.2
Network 5
LD M0.0
AW>= T37, 161
AW<= T37, 260
= Q0.1
Network 6
LD M0.0
AW>= T37, 131
AW<= T37, 290
= Q1.0
Network 7
LD M0.0
AW>= T37, 0
AW<= T37, 130
= Q1.1
Network 8
LD T37
= M0.1

FBD Logic:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 144
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based plc based pedestrian crossing light exercise
Using On/Off delay operation With Compare Instruction

NAME: Rafi Ullah Khan Lodhi. ROLL # IA-A16

DATE:_______________________ SIGNATURE:_________
LAB NO.38
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 145
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PLC BASED PARKING LOT SYSTEM

TASK DESCRIPTION:The parking lot which has a capacity of 100 cars is to be controlled
by a PLC system. The sensor S1 and S2 are used to count the car at the entrance and exit. If
the number of the cars reaches to 100, red light is lit and the gate arm is closed. The arm stays
closed until one or more parking space is available in the lot. The gate arm is controlled by
activating/deactivating the gate solenoid (GS).

PROCESS SCHEMATIC:

ASSIGNMENT LIST:
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 146
Government of Pakistan
NAVTTC-Industrial Automation (IA)

INPUT/OUTPUT SYMBOLS LODIC ADDRESS COMMENTS

S1 I0.0 Start
S2 I0.1 Stop
PS_Ent I0.2 Position Sensor For Entrance
PS_Ext I0.3 Position Sensor For Exit
Green Q0.0 Green Light
Red Q0.1 Red Light
B_Up_Ent Q0.2 Barrier Up For Entrance
B_Dn_Ent Q0.3 Barrier Down For Entrance
B_Up_Ext Q0.4 Barrier Up For Exit
B_Dn_Ext Q0.5 Barrier Down For Exit
Re I0.4 Reset
ME1 M0.0 Memory Bit 1
C_1 C1 Up & Down Counter

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 147
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1
LD I0.0
O M0.0
AN I0.1
= M0.0
Network 2
LD M0.0
A C1
= Q0.0
Network 3
LD M0.0

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 148
Government of Pakistan
NAVTTC-Industrial Automation (IA)

A I0.2
AN Q0.1
LD M0.0
A I0.3
LD I0.4
CTUD C1, 10
Network 4
LD M0.0
A I0.2
AN Q0.1
= Q0.2
Network 5
LD M0.0
AN I0.2
= Q0.3
Network 6
LD M0.0
A C1
= Q0.1
Network 7
LD M0.0
A I0.3
= Q0.4
Network 8
LD M0.0
AN I0.3
= Q0.5

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 149
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Conclusion: In this lab. We performed plc based position detection on a conveyor belt and
control packet using push buttons and sensors .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 150
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO.39
PLC BASED REVERSING CONTACTOR EXERCISE FOR THREE-
PHASE AC MOTOR

TASK DESCRIPTION: A three-phase AC motor is started for continuous clockwise rotation via
momentary-contact pushbutton S1, for continuous counter clockwise rotation via momentary-contact
pushbutton S2, and switched off via momentary-contact pushbutton S0.the direction of rotation can be
changed without switching off the motor.

Indicator lamps H1, H2 and H3 show the operating states.

The motor is protected by thermal overcurrent release.

CONTROL CIRCUIT:

ASSIGNMENT LIST:
SYMBOLIC ADDRESS LOGICAL ADDRESS
S0 I0.0
S1 I0.1
S2 I0.2
F2 I0.3
K1 M0.0
K2 M0.1
H1 Q0.1
H2 Q0.2
H3 Q0.3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 151
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 152
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic :
Network 1:
LD F2
A S0
LD S1
O K1
ALD
AN S2
AN K2
= K1

Network 2:
LD F2
A S0
LD S2
O K2
ALD
AN S1
AN K1
= K2

Network 3:
LDN K1
AN K2
= H1

Network 4:
LD K1
= H2

Network 5:
LD K2
= H3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 153
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Reversing Contactor Exercise For Three-
Phase Ac Motor.

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 154
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO.40
WASTE WATER SYSTEM
TASK DESCRIPTION:
A collecting basin for waste- water is emptied using a 3- pump with the following start and stop
conditions:
Start: The pump is started either manually by pressing momentary contact push-button S1 or
automatically by float switch B1 when the water level is exceeded. If the water level is so high that
float switch B0 is activated, the pump is started in continuous mode; otherwise, jogging is possible.
Stop: If the water level falls below float switch B0, the pump switches off automatically. The pump
can be switched off at any time by pressing pushbutton S0 or by thermal over-current release F1.
Indicator lamps H1 and H2 show the operating states of the pump. Hooter H3 must sound when the
water level reaches float switch B2 or when pump fails because the thermal over-current release F1
has tripped.
The process schematic for this task is shown in Fig: 1. Generate the assignment list for this task and
develop the complete program using LAD and STL package of S7-200 PLC programming language

PROCESS SCHEMATIC:

ASSIGNMENT LIST:
SYMBOLIC ADDRESS LOGICAL ADDRESS
F1 I0.0
S0 I0.1
S1 I0.2
B0 I0.3
B1 I0.4
B2 I0.5
Pump Q0.0
H1 Q0.1
H2 Q0.2
H3 Q0.3
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 155
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 156
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic:

Network 1:
LD F1
A S0
LD S1
O B1
LD B0
A Pump
OLD
ALD
= Pump

Network 2:
LDN Pump
A F1
= H2

Network 3:
LD Pump
= H1

Network 4:
LDN F1
O B2
= H3

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 157
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic:

Conclusion: In this lab. We performed plc based Waste Water System

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 158
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 41
BOTTLE FILLING CONTROL USING TIMERS
OBJECT: To perform PLC based exercise continuous bottle filling control
using timer operation

TASK DESCRIPTION: We will implement a control program that detects the position
of a bottle via a position sensor, waits 0.5 seconds, and then fills the bottle until a photo sensor
detects a filled condition. After the bottle is filled, the control program will wait 0.7 seconds
before moving to the next bottle. The program will include start and stop circuits for the out feed
motor and the start of the process.

PROCESS SCHEMATIC:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 159
Government of Pakistan
NAVTTC-Industrial Automation (IA)

AS
SIGNMENT LIST:

INPUT/OUTPUT SYMBOL LOGIC ADDRESS COMMENTS

S0 I0.0 Start_For_Motor_1

S1 I0.1 Stop_For_Motor_1

S2 I0.2 Start_For_Motor_2

S3 I0.3 Stop_For_Motor_2

PS I0.4 Position Sensor

PD I0.5 Photo eye Detector

M1 Q0.1 Motor 1

M2 Q0.2 Motor 2

SV Q0.3 Solenoid Valve

Ti_1 T37 Timer 1

Ti_2 T38 Timer 2

ME M0.0 Memory Bit 1

ME1 M0.1 Memory Bit 2

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 160
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 161
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 162
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 163
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONCLUSION: In this exercise, we perform PLC based continuous bottle filling system
using different sensors and timer operation.

NAME: Rafi Ullah Khan Lodhi ROLL # IA -A16

DATE:_______________________ SIGNATURE:__________

LAB NO. 42
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 164
Government of Pakistan
NAVTTC-Industrial Automation (IA)

COUNTER AND COMPARATOR


PACKAGING OF CUBES USING COUNTER
OBJECT: To perform PLC based exercise for packaging of cubes using counter
operation

TASK DESCRIPTION: Green and blue cubes are being packaged. Green cubes
come from the upper conveyor belt while blue cubes come from the lower conveyor belt.
The motors have to be switched on and off as appropriate.
Three green and five blue cubes can be placed in each box. Excess cubes fall out of the
box. A sensor shows if the box is in the correct position and does not contain the correct
number of cubes.
The task has to be solved in such a way that the exact number of cubes is placed in each
box and that not a single excess cubes falls from the conveyor.
2 sensors to detect the number of green and blue cubes in the box.
1 sensor detects if the box is not completely filled
2 actuators start the motors of the conveyor belts.
1 actuator changes the box.
PROCESS SCHEMATIC:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 165
Government of Pakistan
NAVTTC-Industrial Automation (IA)

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOL LOGIC ADDRESS COMMENTS

I0.0 Start Of Program


Start
Stoop I0.1 Stop Of Program

S1 I0.0 Sensor1

S2 I0.1 Sensor2

S3 I0.2 Sensor3

K1 Q0.1 Actuator for conveyor1

K2 Q0.2 Actuator for conveyor2

K3 Q0.3 Actuator for changing box

C1 Counter 1
Count_1
Count_2 C2 Counter 2

M0.0 Memory Bit 1


ME
ME1 M0.1 Memory Bit 2

Timer_1 T37 Timer

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 166
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 167
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 168
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic :

CONCLUSION: In this Lab, we performed PLC based exercise for packaging and counting of
cubes using up and down counter operation .

NAME: Rafi Ullah Khan Lodhi ROLL # IA -A16

DATE:_______________________ SIGNATURE:__________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 169
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 43
PLC BASED STORAGE AREA WITH COUNTER AND
COMPARATOR
OBJECT: To perform HMI and PLC based Storage area with counter and comparator.
TASK DESCRIPTION: Figure shows a system with two conveyor belts and a
temporary storage area in between them. Conveyor belt 1 delivers packages to the
temporary storage area. A photoelectric barrier at the end of conveyor belt 1 near the
storage area determines how many packages are delivered to the storage area. Conveyor
belt 2 transports packages from the temporary storage area to a loading dock where
trucks take the packages away for delivery to customers. A photoelectric barrier at the
end of conveyor belt 2 near the storage area determines how many packages leave the
storage area to go to the loading dock. A display panel with five lamps indicates the fill
level of the temporary storage area.
PROCESS SCHEMATIC:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 170
Government of Pakistan
NAVTTC-Industrial Automation (IA)

ASSIGNMENT LIST:

INPUT/OUTPUT SYMBOL LOGIC ADDRESS COMMENTS

Start I0.0 Start Of Program

PB1 I0.1 Photoelectric barrier 1

PB2 I0.2 Photoelectric barrier 2

Reset I0.3 Reset button counter

Empty Q0.0 Storage area empty

Not_Empty Q0.1 Storage area not empty

Fifty_Percent Q0.2 Storage area 50% full

Ninety_Percent Q0.3 Storage area 90% full

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 171
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Complete Q0.4 Storage area fill

ME M0.0 Memory Bit

Counter C1 Up & Down Counter

PROGRAMMING (LAD/STL/FBD):

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 172
Government of Pakistan
NAVTTC-Industrial Automation (IA)

Ladder Logic :

STL Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 173
Government of Pakistan
NAVTTC-Industrial Automation (IA)

TITLE=PROGRAM COMMENTS

Network 1 // Network Title


// Network Comment
LD I0.0
= M0.0

Network 2
LD M0.0
A I0.1
LD M0.0
A I0.2
LD I0.3
CTUD C1, 10

Network 3
LDW= C1, 0
= Q0.0

Network 4
LDW>= C1, 1
AW<= C1, 4
= Q0.1

Network 5
LDW>= C1, 5
AW<= C1, 8
= Q0.2

Network 6
LDW>= C1, 9
AW<= C1, 10
= Q0.3

Network 7
LDW= C1, 10
= Q0.4

FBD Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 174
Government of Pakistan
NAVTTC-Industrial Automation (IA)

CONCLUSION: In this task . We perform PLC based Storage area with counter and
comparator and show the status of srorage by different outputs .

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

LAB NO. 44
National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 175
Government of Pakistan
NAVTTC-Industrial Automation (IA)

SOFTWARE EASY BUILDER 8000

STEP # 1:
SELECT TYPE: MT8000 I Series/MT6000 I Series
CONNECTION: USB CABLE
AND SELECT EASY BUILDER 8000

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 176
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STEP # 2: Select new and press ok.

STEP # 3: Select resolution of the HMI screen.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 177
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STEP # 4: Select NEW option.

STEP # 5: Go to PLC type MODBUS RTU option and select Siemens S7-200.

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 178
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STEP # 6: PLC I/F option select RS-485 press ok.

Conclusion: In this lab we learn how to run easy builder software for HMI

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 179
Government of Pakistan
NAVTTC-Industrial Automation (IA)

LAB NO. 45

HMI BASED STORAGE AREA WITH COUNTER AND


COMPARATOR
OBJECT: To perform HMI and PLC based Storage area with counter and comparator.
TASK DESCRIPTION:Figure shows a system with two conveyor belts and a
temporary storage area in between them. Conveyor belt 1 delivers packages to the
temporary storage area. A photoelectric barrier at the end of conveyor belt 1 near the
storage area determines how many packages are delivered to the storage area. Conveyor
belt 2 transports packages from the temporary storage area to a loading dock where
trucks take the packages away for delivery to customers. A photoelectric barrier at the
end of conveyor belt 2 near the storage area determines how many packages leave the
storage area to go to the loading dock. A display panel with five lamps indicates the fill
level of the temporary storage area.

PROCESS SCHEMATIC:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 180
Government of Pakistan
NAVTTC-Industrial Automation (IA)

HMI:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 181
Government of Pakistan
NAVTTC-Industrial Automation (IA)

PROGRAMMING (LAD/STL/FBD):

Ladder Logic:

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 182
Government of Pakistan
NAVTTC-Industrial Automation (IA)

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 183
Government of Pakistan
NAVTTC-Industrial Automation (IA)

STL Logic :
Network 1:
LD Start
O M0.0
S Motor, 1

Network 2:
LD Reset
O M0.1
R Motor, 1

Network 3:
LD Motor
A PB1
AN 100%
LD Motor
A PB2
LD Reset
O M0.1
CTUD C1, 100

Network 4:
LD Motor
AW= C1, 0
= Empty

Network 5:
LD Motor
AW> C1, 0
AW< C1, 50
= Not_Empty

Network 6:
LD Motor
AW>= C1, 50
AW< C1, 90
= 50%

Network 7:
LD Motor
AW>= C1, 90
AW< C1, 100
= 90%

Network 8:
LD Motor
AW= C1, 100
= 100%

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 184
Government of Pakistan
NAVTTC-Industrial Automation (IA)

FBD Logic :

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 185
Government of Pakistan
NAVTTC-Industrial Automation (IA)

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 186
Government of Pakistan
NAVTTC-Industrial Automation (IA)

ASSIGNMENT LIST:

I/O SYMBOL LOGIC ADDRESS COMMENTS


Start I1.0 Start
PB1 I1.1 Photoelectric barrier 1
PB2 I1.2 Photoelectric barrier 2
Reset I1.3 Reset button counter
Motor Q1.0 Conveyor
Empty Q1.1 Storage area empty
Not Empty Q1.2 Storage area not empty
50% Q1.3 Storage area 50% full
90% Q1.4 Storage area 90% full
100% Q1.5 Storage area 100% full
C1 C1 Counter

Conclusion: In this lab we Performed HMI Based Storage Area With Counter And
Comparator

NAME: Rafi Ullah Khan Lodhi ROLL # IA-A16

DATE:_______________________ SIGNATURE:________

National Vocational and Technical Training Commission - Sir Syed University of Engineering and Technology Page | 187

You might also like