E5
E5
1. PREFACE
2. NOTES ON USING THE CP343-1 ADVANCED
3. NOTES ON USING THE ET200S WITH THE IM 151-3 PN HF
4. STARTING UP PROFINET
1. The central tool in STEP 7 is the ’SIMATIC Manager’. It is called here with a double
click. (→ SIMATIC Manager)
2. STEP 7 programs are managed in projects. We are now setting up such a project (→ File
→ New)
5.Then, insert a ’SIMATIC 300 Station’. (→ Insert → Station → SIMATIC 300 Station)
6. With a double click, open the configuration tool for the ’Hardware’ (→ Hardware)
7. Open the hardware catalog by clicking on ' ’. (→ ) 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
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 drag the ’CPU314C-2 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 314C-2
DP → 6ES7 314-6CF00-0AB0)
10. When entering the CPU, the following window appears. In this window, you can assign a
’PROFIBUS DP Address’ to the CPU 314C-2 DP. Since we are not using the PROFIBUS, we
leave the settings unchanged and accept with ’OK’ (→ OK)
11. Next, we drag the ’CP343-1 Advanced IT’ to the 4th slot. Here also, the order number and
the version of the CP can be read off the front. (→ SIMATIC 300 → CP-300 → CP 343-1
AdvancedIT → 6GK7 343-1GX21-0XE0 → V1.0)
12. When entering the CP, the window below appears. In this window, do the following:
Assign an ’IP Address’ to the CP343-1 Advanced-IT, specify the ’Subnet Screen Form’, and
select the ’Ethernet’ network that has already been generated. Optional: a ’Router
Address’ can also be selected for network-overreaching communication. Confirm your
input with ’OK’ (→ IP Address: 192.168.1.10 → Subnet Mask: 255.255.255.0 → Ethernet(1)
→ Use Router → Address: 192.168.1.1 → OK)
13. By double clicking with the mouse on the ’CP343-1 Advanced IT’, you get to its
properties. In this example, under ’PROFINET’, set the CP’s ’Operating Mode’ to
’PROFINET IO Controller’. The other settings are retained. Close the window with ’OK’.
(→ CP 343-1 Advanced IT → PROFINET → Operating Mode → PROFINET IO
Controller → OK)
16. By double clicking on the ’IM151-3 PN HF’, you open its properties. (→ IM151-3 PN
HF)
17. To each IO device, a ’Device Name’ that is unique within the PROFINET IO system has
to be assigned, and an IP address on the ’Ethernet’. (→ Device name: IM151-3PNHF →
Ethernet)
18. After you assigned the ’IP Address’, accept with ’OK’. (→ IP-Address: 192.168.1.11 →
OK → OK)
19. From the hardware catalog, you can now select all modules that are also in your real
ET200S, 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 ’PM-E DC 24V … 48V/AC 24…230V. (→
PROFINET IO → I/O → ET 200S → IM151-3 PN HF → PM → PM-E DC 24V...48V/AC
24...230V)
20. Next, we drag the digital input module ’2DI DC 24V ST’ to the 2nd slot. The order
number and the version can be read off the module. (→ PROFINET IO → I/O → ET 200S
→ IM151-3 PN HF → DI → 2DI DC 24V ST)
21. 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 off the module. (→ PROFINET IO → I/O → ET
200S → IM151-3 PN HF → DO → 4 DO DC 24V/0.5A ST)
22. Now, the addresses of the inputs and outputs of the ET200S can be changed. To this end,
we double click on the corresponding input and output modules in the ET200S, and set
them under the tab ’Addresses’. These addresses should be noted down in any case.
Addresses are assigned automatically in the sequence in which the modules are entered. (→
2DI DC 24V ST → Addresses → OK)
25. Now, the ET200S has to be selected in order to assign a name ’Assign name’. (→
ET200S → Assign name)
26. The new device name is then displayed in the area ’Existing Devices’. Then, ’Close’ the
dialog. (→ Close)
27. By clicking on ' ’, you can now load the configuration table to the PLC. The CPU’s
operating mode switch should be on Stop! (
28. CPU 314C-2 DP is confirmed as the destination module for loading the configuration
table. (→ OK)
29. In the dialog below, you can have the devices that are connected to the network
’Display’ed. (→ Display)
30. Then, select the MAC address of the CP on the Ethernet. If you are connected to only
one CPU, just accept with ’OK’. (→ OK)
31. Now, the correct IP address has to be assigned to the controller if the address has not
been set correctly yet. Confirm this in the dialog below with 'Yes’. (→ Yes)
32. After you loaded the hardware configuration, you can start setting the program. From
the ’SIMATIC Manager’, open the block ’OB1’ with a double click. (→ OB1)
33. Select the ’Programming language STL’ and accept with ’OK’. (→ STL →OK
34. 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 ' ’.
Here, in Network 1, the inputs of the IO devices are entered with the block ‘PNIO_RECV’.
In the catalog, from the ‘Library’ ‘SIMATIC_NET_CP’, you can drag this block to your
network. (→ Libraries → SIMATIC_NET_CP → CP 300 → FC12 PNIO_RECV) In
Network 3, the outputs of the IO devices are written to with the block ‘PNIO_SEND’. In the
catalog, from the ‘Library’ ‘SIMATIC_NET_CP’, you can drag this block to your network.
(→ Libraries → SIMATIC_NET_CP → CP 300 → FC11 PNIO_SEND) Now save OB1 ' ’.
(→)
35. Now, the STEP7 program has to be loaded to the PLC. In our case, this is done from the
’SIMATIC Manager’. There, highlight ’OB1’ and the FCs ’FC11’ and ’FC12’ in the folder
'Blocks’, and then click on Load ' ’. The CPU’s key switch should be on STOP! (→
SIMATIC Manager → Blocks → OB1 → FC11 → FC12 →