Documente Academic
Documente Profesional
Documente Cultură
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 modules 1st input and Q0.1 defines first modules first output.
Open Step 7
Micro/WIN
Write a Simple
Code in Ladder
Networks
Compile Your
Code
Download Your
Code to PLC
Run PLC to
Perform Code
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;
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.
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.
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.
Counters
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.
REFERENCES
[1] Siemens Simatic S7-200 Programable Controller System Manual, Edition 09, 2007.
I&O Configurations
RI0.0
GI0.1
BI0.2
V1Q0.0
V2Q0.1
V3Q0.2
V4Q0.3