NEE 3104 EXPT 5 Siemens S7 200 PLC

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

EXPERIMENT NO.

5
FAMILIARIZATION TO S7-200 PLC USING STEP 7 Micro/WIN software

OBJECTIVES:
1. To be familiar on Siemens S7-200 PLC.
2. To be familiar on Step 7 Micro/WIN Environment.
3. To create circuit diagram using Ladder Logic, Function Block and Statement List
through Step 7 Micro/WIN.
4. To be familiar on the latching switches and/or circuits
5. To be able to create a circuit that uses latching switches.
6. To be able to apply the function of latching switches to an automatic project.

BASIC CONCEPT:
The S7-200 series of micro-programmable logic controllers (Micro PLCs) can
control a wide variety of devices to support your automation needs.
The S7-200 monitors inputs and changes outputs as controlled by the user
program, which can include Boolean logic, counting, timing, complex math operations,
and communications with other intelligent devices. The compact design, flexible
configuration, and powerful instruction set combine to make the S7-200 a perfect solution
for controlling a wide variety of applications.

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. 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.

1
Page
Wiring diagram of the S7-200 (CPU 222 AC/DC/RLY))

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.

Basic settings

1. Connecting the communication cable


• The PC/PPI Programming Cable (USB/RS 485) connects a PC to the S7-200
PLC.
• On your PC, use a standard Universal Serial Bus (USB) peripheral connector.
• Connect the USB/PPI cable to the PC and to the PLC.
2

2. Supply the PLC with the operating voltage.


Page

3. The STOP or RUN LED should be illuminated.


Page 3
Configuring the S7-200 communication
1. Click the communications icon in the navigation bar.
2. Review the communications settings.
3. Double-click the corresponding field to refresh. The connected CPU should now
be recognized and registered automatically.
4. If the CPU is not recognized, or if a pop-up window tells you that communication
is not possible, double-click the field PC/PPI cable.
5. Select PC/PPI cable in the Set PG/PC Interface dialog and select Properties.
6. In the PPI tab, set the station address to 0 and set the transmission rate to 9.6 kbps.
In the Local Connection tab, select the USB port. Click OK to confirm all settings
and close the Properties dialog. Click OK to close the Set PG/PC Interface dialog.
Note that the station address cannot be the same number as the CPU address.
7. Double-click the corresponding field in the communications field to refresh. The
CPU will now be recognized and registered automatically. The process could take
a few seconds. Now click OK to close the Communications dialog.

4
Page
Performing the first function test

To perform the first function test, follow the steps below:


1. Set the mode selector of the PLC to the TERM or RUN position.
• The mode selector is located behind the small cover at the front side of the
CPU.
Note that remote control of the operating mode (RUN or STOP) is possible
only in the TERM or RUN position.
2. From the PC, switch the S7-200 to STOP mode and back to RUN.
• The green RUN LED on the PLC lights up in RUN mode.
• The yellow STOP LED on the PLC lights up in STOP mode.
• If you can switch the PLC operating modes from the PC, the connection
between the PC and PLC is configured correctly.
• If the mode does not change, check the connecting cable between the PC and
PLC and the communication settings within STEP 7-Micro/WIN.

5
Page
Creating a new project

• If you want to write a new program of your own, you need a sort of container to
put your program file in.
• In STEP 7-Micro/WIN, this container is the project.
• An S7-200 project contains all additional information for your project, for
example, the symbol table and comments etc.

6
Page
Page 7
Runtime edits are available on the CPU 224, CPU 224XP and CPU 226. Runtime edits
allow program edits while in RUN mode.

You can download the program by following these steps:


• With the mode selector in TERM or RUN position, click the Download icon. The
project is automatically compiled. If there are no errors in the project, a window
appears to prompt you to put the PLC in STOP mode.
• Click the OK button in this window to put the PLC in STOP mode. The project
is then downloaded to the PLC.
• Once the project has been successfully downloaded to the PLC, a window
appears to prompt you to put the PLC back in RUN mode. Click the YES button
to put the PLC back in RUN mode.

You can also load a program from the PLC onto your programming device/PC.
• Click the Upload icon to upload the program from the PLC to the programming
device/PC. It overwrites the program currently displayed on the PC display.
Therefore, you should ensure that you always have a current version of your
program saved on your PC.

8
Page
EQUIPMENT AND MATERIALS NEEDED:
1. Siemens S7-200 PLC
2. Industrial Electronics Trainer
3. PC with Step 7 Micro/WIN software

PROCEDURE:
Part IA. LOGIC GATES
1. Create a PLC Ladder logic diagram that will have the output of an OR function.
Inputs (Switches) OR Function
Input 1 (I0.0) Input 2 (I0.1) Output(Q0.0)
0 0 0
0 1 1
1 0 1
1 1 1

Ladder Logic Diagram

2. Convert the Ladder Logic Diagram to Function Block Diagram. Select the menu
View>FBD
Function Block Diagram

3. Then convert to Statement List. Select the menu View>STL


Statement List
9
Page
4. In the PLC module, connect I0.0 to a toggle switch (you may use any toggle
switch in the application module) and connect another toggle switch to I0.1.
5. In the PLC module, connect Q0.0 to the RED BULB.
6. Connect the communication (USB/PPI) cable. In the PLC module, use the RS232
connector and on your PC, use a USB peripheral connector.
7. Supply the PLC with the operating voltage.
8. The STOP or RUN LED should be illuminated.
9. Ask your instructor to check your connection first before turning the power switch
ON.
10. If it is already checked. Download the program to the PLC.
11. Check if the RED BULB turns on given the ffg. conditions on procedure 1.

Part IB. OTHER LOGIC GATES


1. Create a LADDER LOGIC, FUNCTION BLOCK DIAGRAM and
STATEMENT LIST on the following logic gates.
SWITCHES OUTPUT/RED BULD
INPUT 1 INPUT 2 AND NAND NOR XOR
(I0.0) (I0.1) (Q0.0) (Q0.0) (Q0.0) (Q0.0)
0 0 0 1 1 0
0 1 0 1 0 1
1 0 0 1 0 1
1 1 1 0 0 0

LOGIC LADDER LOGIC FUNCTION STATEMENT


GATES BLOCK LIST

AND

NAND
10
Page
NOR

XOR

PART II: LOGIC EXPRESSION

1. Make a circuit out of the given logic expression below.

O = A’BC + AB’C + ABC’

2. In the PLC, connect I0.0 (A) to toggle switch 1, I0.1 (B) to toggle switch 2, I0.2
(C) to toggle switch 3 and Q0.0 (O) to the RED BULB.
3. Connect the communication (USB/PPI) cable. In the PLC module, use the RS232
connector and on your PC, use a USB peripheral connector.
4. Supply the PLC with the operating voltage.
5. The STOP or RUN LED should be illuminated.
6. Ask your instructor to check your connection first before turning the power switch
ON.
7. If it is already checked. Download the program to the PLC.
11

8. Turn the system ON.


9. Create a TRUTH TABLE based on given logic expression on procedure 1.
Page
Inputs (Switches) Function
A (I0.0) B(I0.1) C (I0.2) Output(Q0.0)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
PART III: LATCHING SWITCHES
1. Create the Ladder logic Diagram as shown in the figure below.

2. In the PLC, connect I0.0 to toggle switch 1, I0.1 to toggle switch 2 and Q0.0 to
the GREEN BULB.
3. Connect the communication (USB/PPI) cable. In the PLC module, use the RS232
connector and on your PC, use a USB peripheral connector.
4. Supply the PLC with the operating voltage.
5. The STOP or RUN LED should be illuminated.
6. Ask your instructor to check your connection first before turning the power switch
ON.
7. If it is already checked. Download the program to the PLC.
8. Turn the system ON.
9. Turn I0.0 (toggle switch 1) ON. What have you observed in Q0.0 (GREEN
BULB)?
Observation:______________________________________________________
__________________________________________________________
10. Turn I0.0 (toggle switch 1) OFF. What have you observed in Q0.0 (GREEN
BULB)?
Observation:______________________________________________________
__________________________________________________________
11. Now Turn I0.1 (toggle switch 2). What have you observed in Q0.0 (GREEN
12

BULB)?
Observation:______________________________________________________
Page

__________________________________________________________
12. Replace toggle switch 1 by pushbutton switch 1.
13. Repeat steps 3 to 7.
14. Press the pushbutton switch 1 (I0.0) and then release. What have you observed in
Q0.0 (GREEN BULB)?
Observation:______________________________________________________
__________________________________________________________
15. Connect a make contact (Q0.0) across I0.0 as shown in figure below.

16. Repeat step 3 to 7.


17. Press the pushbutton switch 1 (I0.0) and then release. What have you observed
in Q0.0 (GREEN BULB)?
Observation:______________________________________________________
__________________________________________________________
18. Convert the Ladder Logic Diagram to Function Block Diagram. Select the menu
View>FBD

19. Then convert to Statement List. Select the menu View>STL


13

Name:_______________________________________________ Instructor’s initial:__________________


Page

Student Number:__________________________________Date performed:_____________________


Exercises:
Part I: S7-200 PLC

1. Make a Ladder diagram, Function Block diagram and Statement list that will
implement the following logic expression.

OUT = INDUS + IN’DUS’+I’N’DUS+I’N’D’U’S’

Ladder Diagram:

14
Page
Function Block:

Statement List:

15
Page

Instructor’s Initial: ___________________________


2. Create a ladder diagram, Function Block diagram and Statement list that will turn
on the process and will not stop unless the operator will press the emergency stop.
Note that even if you press again the start buttons (I0.0 and I0.1), the process will
not stop.
a. You need three inputs for the system.
i. START SWITCHES I0.0 for left hand, I0.1 for the right hand.
Note that this is the usually the case in the manufacturing
industry. This is for safety purposes, so that the operator needs
to start the system using two hands. Thus, his two hands are in
the safe area.
ii. STOP SWITCH I0.2 for the emergency stop.
b. For the process, let us try the motor. Connect the Q0.0 to the clockwise
motion of the motor.
Ladder Diagram:

Function Block:

Statement List: 16
Page

Instructor’s Initial: ___________________________

You might also like