E4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

MODUL E04 PROFINET with IO Controller CPU 315F-2 PN/DP and IO Device ET 200S

1. PREFACE
2. NOTES ON USING THE CPU 315F-2 PN/DP
3. NOTES ON USING THE ET200S WITH THE IM 151-3 PN HF
4. STARTING UP THE PROFINET (IO CONTROLLER CPU 315F-2 PN/DP/IO
DEVICE ET200S)
1. The central tool in STEP 7 is the ’SIMATIC Manager’. Here, it is called with a
double click. (→ SIMATIC Manager)
2. STEP7 programs are managed in projects. We are now setting up such a
project. (→ File → New)
3. Now, the project is assigned the ’Name’ ’ET200S_PN’ (→ ET200S_PN → OK)

4. Highlight your project and insert an ’Industrial Ethernet Subnet’. (→


ET200S_PN → Insert → Subnet → Industrial Ethernet)

5. Then a ’SIMATIC 300 Station’ is inserted. (→ Insert → Station → SIMATIC


300 Station)
6.With a double click, open the configuration tool ’Hardware’. (→ Hardware)

7. Open the hardware catalog by clicking on the symbol ' ’. (→ ) There, arranged
in the following directories: PROFIBUS DP, PROFIBUS PA, PROFINET IO,
SIMATIC 300, SIMATIC 400, SIMATIC PC Based Control, and SIMATIC PC
Station, all racks, modules and interface modules are provided for configuring
your hardware. Insert ’Rail’ with a double click. (→ SIMATIC 300 → RACK-
300 → Rail)
8. From the hardware catalog, you can now select all modules that are also in
your real rack, and insert them in the configuration table. To this end, click on
the name of the respective module, hold the mouse key and drag the module to a
line in the configuration table. We are starting with the power unit ’PS 307 2A’.
(→ SIMATIC 300 → PS-300 → PS 307 2A)

9. Next, we are dragging the ’CPU 315F-2 PN/DP’ to the second slot. The order
number and the version of the CPU can be read off the front of the CPU. (→
SIMATIC 300 → CPU-300 → CPU 315F-2 PN/DP → 6ES7 315-2FH10-0AB0 →
V2.3)

10. When entering the CPU, the following window appears. In it, assign an ’IP
Address’ to the CPU 315F-2 PN/DP, specify the ’Subnet screen form’ and select
the ’Ethernet’ network that has already been generated. Optional: for net-
overreaching communication, a ’Router Address’ can be selected. Confirm your
inputs with ’OK’ (→ IP Address: 192.168.1.10 → Subnet form screen:
255.255.255.0 → Ethernet(1) → Use Router → Address: 192.168.1.1 → OK)
11. After you have made the network settings, a bar appears on the right of the
CPU315-2 PN/DP, the ’PROFINET IO System’, where you can arrange
PROFINET IO devices. This is done by clicking on the desired module (here ’ET
200S’ with ’IM151-3PN HF’) in the hardware catalog in the path ’PROFINET
IO’ and dragging it to the ’PROFINET IO System’. (→ PROFINET IO → I/O
→ ET 200S → IM151-3PN HF)

12. By double clicking on ’IM151-3 PNHF’, its properties are opened. (→ IM151-3
PNHF)
13. Each IO device has to be assigned a ’Device name’ that is unique within the
PROFINET IO system and an IP address on the ’Ethernet’. (→ Device name:
IM151-3PNHF → Ethernet)

14. After the ’IP Address’ was assigned, it has to be accepted with ’OK’. (→ IP
Address: 192.168.1.11 → OK → OK)
15. From the hardware catalog, you can now select all additional modules that are
inserted in your real ET200S and add them to your configuration table. To this end,
click on the name of the respective module, hold the mouse key, and drag the
module to a line in the configuration table. We are starting with the power module
’PM-E DC24V...48V/AC24...230V’ by dragging it to Slot 1. (→ PROFINET IO →
I/O → ET 200S → IM151-3 PN HF → PM → PM-E DC24V...48V/AC24...230V)
16. Next, we are dragging the digital input module ’2DI DC24V ST’ to the second
slot. The order number and the version can be read from the module. (→
PROFINET IO → I/O → ET 200S → IM151-3 PN HF → DI → 2DI DC 24V ST)

17. Then, we drag the digital output module ’4 DO DC 24V/0.5A ST’ to the 3rd slot.
The order number and the version can be read from the module. (→ PROFINET IO
→ I/O → ET 200S → IM151-3 PN HF → DO → 4 DO DC 24V/0.5A ST)
18. Now, the addresses of the inputs and outputs in the ET 200S can be changed.
This is done by double clicking on the corresponding input or output submodules in
the ET 200S and setting them under the tab ’Addresses’. These addresses should be
noted down for each case. Addresses are assigned automatically in the sequence in
which the submodules are entered. (→ 4DO DC 24V/0.5A ST → Addresses → OK)

19. By clicking on ' ’, the configuration table is saved and compiled (→ )


20. Now, highlight the IO device and assign it a name ’Assign device name’. (→
IM151-3PNHF→ PLC → Ethernet → Assign device name)
21. We now select the ET200S to assign the name ’Assign name’. (→ ET200S →
Assign name)

22. The new device name is then displayed in the area ’Available devices’. ’Close’
the dialog. (→ Close)
23. Clicking on ' ’ loads the configuration table to the PLC. The operating mode
switch on the CPU should be on Stop! ( → )
24. The CPU 315F-2 PN/DP is confirmed a destination module of the loading
process. (→ OK)

25. In the dialog below, you can have the connected devices in the network
’Display’(ed). (→ Display)
26. Then, the CPU’s MAC address in the Ethernet is selected. If you are connected
to only one CPU, accept with ’OK’. (→ OK)

27. Now, the correct IP address has to be assigned to the IO controller if it has not
been set correctly yet. Confirm the following dialog with 'Yes’. (→ Yes)
28. After you loaded the hardware configuration, you can start creating the
program. From the ’SIMATIC Manager’, select the block ’OB1’ with a double
click. (→ OB1)

29. Select the ’Programming language FBD’ and accept with ’OK’. (→ FBD →OK)
30. With ‘LAD, STL, FBD – Program S7 blocks’, you now have an editor with
which you can generate your STEP7 program accordingly. To this end, OB1 has
already been opened with the first network. To generate your initial operations,
highlight the first network. Now you can write your first STEP7 program. In
STEP7, individual programs are usually arranged in networks. A new network is
opened by clicking on the network symbol ' ’. The STEP7 program that is to be
tested can now be loaded. In our case, this is only OB1. Save OB1 ' ’ and click on
Load ' ’. The CPU’s key switch should be on STOP! (→ ‚ ’ → )

31. By setting the operating mode switch to RUN, the program is started. By
clicking on the symbol ' ’ for monitoring, the program can be monitored in ’OB1’.
(→ )

You might also like