The programming device can only exchange data with a PLC station if it is addressed in the same subnet and has a node address which is different from that of the PLC station. The IP addresses of the programming device and PLC station must therefore be identical in the part whose bits are occupied by “1” in the subnet mask, and different in the remaining part. You can find information on the struc- ture of the IP address and the subnet mask in Section “IP address and subnet mask”
on page 73.
If the programming device already has an address different from that of the PLC station, STEP 7 Basic sets a “temporary” IP address on the programming device.
This temporary IP address is deleted again when Windows is shut down.
13.1.1 IP addresses of the programming device
Determining and setting network addresses using Windows tools
You can edit the network addresses of the programming device using the Network connections tool (Windows XP) or Network and enable center (Windows 7) in the Windows Control Panel. Open the Control Panel – for example from the Windows desktop via Start > Control Panel – and start the tool. Then double-click to select the LAN or WLAN connection that is used.
In the displayed status window Status of …, click on the Details button located in the General or Network support tab. The currently active IP address and the subnet mask are displayed, for example. SIMATIC S7 supports the Internet protocol Version 4 with the 4-byte long IPv4 address.
The connection status is displayed in the General tab. Click here on the Properties button. In the Properties of … window, select the Internet Protocol (TCP/IP) entry in the This connection uses the following items field, and then click on the Properties button (Fig. 13.1).
In the following dialog Internet Protocol (TCP/IP) Properties you can set the IP ad- dress and subnet mask by selecting the Use the following IP address: option.
If you want to enter an additional IP address, for example for the SIMATIC project, click on the Advanced button. In the advanced settings, enter an additional IP address and the subnet mask in the IP Settings tab after clicking on the Add button.
Setting of access point
When installing STEP 7 Basic, the Set PG/PC interface tool is created in the Windows Control Panel. This allows the user to check the access point to the Ethernet net- work and to reset it if necessary.
Open the Set PG/PC interface tool, for example from the Windows desktop using Start
> Control Panel. The Access path tab should show S7ONLINE (STEP 7) in the Access
point of application box. Select the LAN or WLAN interface module used under Inter- face Parameter Assignment Used and close the tool.
Determining IP addresses with STEP 7 Basic
If you wish to find out the IP address of the programming device (to be more pre- cise: the IP address of the interface module used) or, for example, wish to delete the temporary IP address, proceed as follows:
Connect the interface module of the programming device to Ethernet, for example to a CPU. Switch on the CPU to activate the interface. The CPU can be in any operating mode.
Start STEP 7 and change to the Project view. The virtual and physical online inter- faces of the programming device are listed in the project tree under Online access.
Select the interface used and then the Properties command from the shortcut menu. The MAC address, the fixed IP address, and the subnet mask are displayed in the properties dialog in the Configuration section under Industrial Ethernet. All project-specific IP addresses are listed under IE-PG access. You can delete all of these addresses using the Delete project-specific IP addresses button.
13.1.2 Connecting the programming device to the PLC station
Connect the LAN connection of the programming device to the PROFINET interface of the CPU module. You can use a standard or crossover cable since the CPU module is suitable for both types. Make sure that no memory card is inserted in the CPU module, and then switch on the power supply to the CPU module.
Fig. 13.1 Setting IP addresses with the Windows Control Panel
Following the restart, the CPU module – if it has been obtained directly from the fac- tory or has been reset to the factory settings – is at STOP, and the RUN/STOP LED lights up yellow.
Searching for accessible devices
Start STEP 7 Basic, select the Online & Diagnostics portal in the portal view, and then Accessible devices. If the programming device has several interfaces, select the in- terface (module) to which the CPU module is connected in the Accessible devices window.
A station which has been found is listed in the table with its IP address or – if it does not have an IP address – with its MAC address. At the same time, the graphic is pro- vided with an orange background (Fig. 13.2).
Select the line with the station. You can then click the Flash LED button in order to briefly flash the status LED on the front panel of the CPU. To process the selected station further in the project view, click on the Show button.
Fig. 13.2 Dialog window Accessible devices
Setting a temporary IP address on the programming device
If the network settings of the programming device do not agree with those of the CPU module, STEP 7 Basic allows you to set an appropriate, project-specific IP ad- dress on the programming device. This IP address is only present temporarily until you switch off the programming device or delete the address. Answer the corre- sponding dialogs with Yes or OK in order to assign an IP address. The assigned IP address is displayed in the response dialog.
STEP 7 Basic now shows the found CPU in the project view, and this is positioned with its IP or MAC address in the Online access group under the used interface mod- ule as a new group in the project tree.
13.1.3 Assigning an IP address to the CPU module
If a CPU module is displayed with its MAC address, you can assign an IP address to it: select the PLC station and then the Online & Diagnostics command from the shortcut menu. Select the Assign IP address entry in the diagnostics window in the Functions section. Enter the desired IP address and subnet mask, and click on the Assign IP address button. The result of the action is signaled in the Inspector window in the Info tab.
13.1.4 Switching on the online mode
If you select the PLC station present under Online access in the project tree and then Online & Diagnostics from the shortcut menu, the online tools are displayed with the CPU operator panel and the diagnostics window. Further details can be found in Section 13.3 “Hardware diagnostics” on page 436.
If the project matching the online PLC station is present, open it and select the PLC station in the project tree. Select Go online from the shortcut menu, or activate the Go online symbol in the main menu. The status of the PLC station is displayed in the Inspector window in the Diagnostics tab. Diagnostics symbols in the project tree signal agreement between the online and offline versions of the blocks and PLC tags (see Section 13.3.6 “Further diagnostics information via the programming device” on page 440).
Alternatively you can switch to online mode by selecting the Online & Diagnostics command in the shortcut menu with the PLC station selected. The diagnostics win- dow is then opened. Now click on the Go online button in the Online access section.
Further procedure
b How you can use the diagnostics and online tools, for example in order to start and stop the CPU or to reset to the default settings, can be found in Section 13.3
“Hardware diagnostics” on page 436.
b The following Chapter 13.2 “Transferring project data” describes how you can upload a user program to the PLC station and edit the user program online.
b Chapter 13.4 “Testing the user program” on page 441 describes how you can test a user program.
b Chapter 13.2.7 “Editing online project without offline project” on page 433 de- scribes how you can access the online project data of the CPU without the user program.