NEE 3104 EXPT 5 Siemens S7 200 PLC
NEE 3104 EXPT 5 Siemens S7 200 PLC
NEE 3104 EXPT 5 Siemens S7 200 PLC
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))
Basic settings
4
Page
Performing the first function test
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 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
2. Convert the Ladder Logic Diagram to Function Block Diagram. Select the menu
View>FBD
Function Block Diagram
AND
NAND
10
Page
NOR
XOR
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
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.
1. Make a Ladder diagram, Function Block diagram and Statement list that will
implement the following logic expression.
Ladder Diagram:
14
Page
Function Block:
Statement List:
15
Page
Function Block:
Statement List: 16
Page