S7 Solution Provider Test S7Pr - Px7

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

Solution Provider Test

PRACTICAL TEST
Scope PRÜFUNG

H2 Ni Ti °C
SO4 N3

In a galvanizing shop, the temperatures and the acidic content of the individual containers is controlled,
monitored and archived with analog measured values.

System Description, Machine Program

The measured value of an analog channel is to be archived every hour during a shift (8 hours). During
archiving, the date, time, the measured value and status information are to be filed.

This analog value is to be monitored for its lower and upper limit (20% and 80% of the maximum measured
value).
If the limit is exceeded, either too high or too low, it is also to be archived with date, time, measured value
and status.

Version VN: 1.1


SITRAIN Training for SIMATIC S7 Practical
Automation and Drives Page 1 Test 3 | 5
Solution Provider Test

The Station

PS CPU31x DI 32 DO 32 DI8/DO8 AI 2
Slot-No. --> 1 2 4 5 6 7
I/O adress --> 0..3 4..7 8 304..307

Design In the picture you can see the design of an S7-300 as specified by the customer. This design
is needed for implementing the test program and is termed the test model.

Configuration Rack0 is configured with the following modules:

Slot Module Function


1 Power supply 24V/5A
2 CPU 314 or CPU 314-2 DP
4 Digital input 32x24V Inputs from the simulator
(switch/pushbutton and thumbwheel)
5 Digital output 32x24V 0.5A Outputs from the simulator
(LEDs and digital display)
6 Digital module input/output Not used in this task
8x24V and 8x24V 0.5A
7 Analog input 2xAI 12Bit Analog section from the simulator

SITRAIN Training for SIMATIC S7 Practical


Automation and Drives Page 2 Test 3 | 5
Solution Provider Test

The Simulator

DI DO

.0 ......... ......... .0
.1 .
......... 1) .
......... .1
.2 . .
......... ......... .2
.3 . .
......... ......... .3 V
.4 . .
......... ......... .4
. .
.5 ......... ......... .5 3)
. .
.6 ......... ......... .6 AI2 AO1 -
15V...+15AI1 AO2
15V...+15
.7 . .
......... ......... .7 V
. . 2)
.0 ......... .........
. . .0
.1 ......... .........
. . .1 AI1 AI2
.2 ......... ......... V
. . .2
.3 ......... .........
. . .3
.4 ......... .........

.5
.
.........
.
.
.........
.
.4
.5
0815 AI1 AI2 AO1 AO2

.6 ......... .........
. . .6
.7 ......... .........
. . .7

Design For testing the system, the system’s operator uses the simulator depicted above. It is
connected to the modules in slots 4, 5 and 7 of the S7-300 test model by means of a
connector cable.

The simulator is divided into three sections:


1) Binary section with 16 switches/pushbuttons and 16 LEDs
2) Digital section with 4 thumbwheel buttons and a 4-position digital display.
The control logic uses BCD values !!!
3) Analog section with two separate potentiometers for selecting an input voltage at analog
input channels 0 or 1 (Channel 0 is used in this task)
and with a voltmeter for displaying the applied voltage.

Addressing For the S7-300 (CPU 312-314), physical addressing is used (fixed slot addressing according
to design topology).
You can see the automatically assigned default module addresses in the picture.

SITRAIN Training for SIMATIC S7 Practical


Automation and Drives Page 3 Test 3 | 5
Solution Provider Test

Station Design

See the test model and simulator design on Pages 2 and 3.

Tasks:

1. Create a project with the appropriate station.

2. Create the hardware configuration

3. Assign parameters to the analog module:


- Measuring range +/-10V
- Hardware interrupt when the limit is exceeded, either too high or too low (20% and 80% of the maximum
measured value)

4. Create a data block (DB1) that cyclically stores the measured values (channel 0) during a shift.
- The production cycle is 8 hours.
For testing the block, the measuring cycle is to be reduced from hourly (60min) to 6 seconds.
Use the S7-300 CPU’s time interrupt system for triggering the measured value storage.
- Use an array that is created in a data block to store the data.
- During data storage, the date, time, measured value and a status are to be filed.
Status = 0 cyclic data storage in the tolerance range (20 to 80% of the measuring range)
= 1 overflow (>80% of the measuring range)
= 2 underflow (<20% of the measuring range)
- As basis for the data storage, a user-defined data type is to be used.
- The measured value of the analog module’s channel 0 is to be scaled to a process value of 0-200 in the
S7. The scaled value is to be stored in the archive (DB1).

5. Save the measured values when the limits are exceeded (either too high or too low) in a separate
data block (DB2).
- Design the data area for the exceeding of limits for a capacity of 100 entries.
- During data storage, the date, time, measured value and a status are to be filed.
Status = 1 overflow (>80% of the measuring range)
= 2 underflow (<20% of the measuring range)
- As basis for the data storage, a user-defined data type is to be used.
- Write a program for the trigger points for storing the data using an interrupt block rather than a
comparison (because of the module parameter assignments).
- The measured value of the analog module’s channel 0 is to be scaled to a process value of 0-200 in the
S7. The scaled value is to be stored in the archive (DB2).

6. During a system restart, both data areas are to be reset.

7. To identify the project, a DB100 with a


data type string is to be created that
contains the company name and your
own name as a constant.

8. An assignment list is to be completed for the project that contains all the operands used.

9. The blocks are to be documented with at least their block name and a block title.

SITRAIN Training for SIMATIC S7 Practical


Automation and Drives Page 4 Test 3 | 5

You might also like