You are on page 1of 12

EXPERIMENT NO.

6
COUNTER OPERATION OF SIEMENS
LOGOSOFT AND S7-200 PROGRAMMABLE LOGIC CONTROLLERS

OBJECTIVE:
1. To be able to study the basic counter operation of Siemens Programmable Logic
Controllers (PLC).

INTRODUCTION:

1
Page
Operations of the Counter Instructions

2
Page
Page 3
APPLICATIONS:
The use of timers and counters of the Programmable Logic Controllers will
depend upon the user’s need. The user can control the operation and the right timing by
just putting the desired programs to the PLC by using the Programming Console.
The response normally involves turning ON an output signal to some sort of
output device. The input devices could be photoelectric sensors, pushbutton on control
panels, limit switches, or any other device that can produce a signal that can be input into
the PC. The output devices could be solenoids, switches activating indicator lamps, relays
turning motors, or any other devices that can be activated by signal from the PC. The
whole timing and counting operation will be dependent to user’s desire.

EQUIPMENT & MATERIALS:


1- Experimental circuit consists of:
1- PLC (SP16)
1- Programming Console
1- Bank of six switches
1- 50-watt lamp, (green)
1- 50-watt lamp, (white)

ASSUMPTIONS:
It is assumed that the students perform experiment 6 and read the whole
INTRODUCTION part of this experiment. The INTRODUCTION will guide the student
in performing the experiment. The students should know the basic key sequence for
different commands that can be found only in experiment no. 6. Just just following the
step-by-step procedure written in the PROCEDURE part can easily do this experiment.
Don’t make any substitutions to the program written.
4
Page
Case Studies:
Siemens S7-200

1. Monitoring systems (S7-200)

Monitoring of Parking Lots

Requirements
In a car park there are a certain number of parking lots available. The traffic lights at the
entrance are to change automatically from green to red when all the parking spaces are
taken. As soon as parking spaces become free, the lights change to green again to allow
admittance to the car park.

PLC Solution
Vehicles driving in and out of the car park are counted via light barriers (at I1 and I2) with
the counter integrated in S7-200 PLC. When a vehicle enters the car park (I1) the counter
adds 1 to the total and when a vehicle leaves the car park (I2) the counter subtracts 1 from
the total.

The counting direction (forwards/backwards) on the counter is defined via I2 and the
current impulse function.
When the set parameter has been reached the traffic lights are switched over at Q1.
Via the button at I3 the count value and output Q1 can be reset.

Components used
S7 200 PLC
I1 Light barrier "entrance" (NO contact)
I2 Light barrier "exit" (NO contact)
I3 Reset button (NO contact)
Q1 Traffic light relay (changeover contact)

Advantages and Specialties


The current count value can be easily indicated on the display.
The maximum count value can be changed as desired.
The system can easily be expanded; for example, to close off the entrance when all the
parking places are taken or to switch over between two count values (parking lots reserved
for company employees).

Instructor’s Initial:
5
Page
Ladder Diagram:

Statement List:

6
Page
Page 7
Siemens Logosoft
2. Make your own Application (Counters)
Problem Statement:

Ladder Diagram:

8
Page
Function Block Diagram:

9
Page
Siemens S7-200 (Convert your problem no. 2 to S7-200 code)
3. Make your own Application (Counters)
Problem Statement:

Ladder Diagram:

10
Page
Function Block Diagram:

11
Page
Statement List:

12
Page

You might also like