The connection between a programming device and a PLC station is not configured with the hardware configuration. If you connect the programming device directly to the MPI of the CPU, the default properties of the interface are sufficient for online mode. When connecting via the PN interface, the programming device must be ad- dressed in the same subnet. Adaptation to the network configuration is carried out by STEP 7 by assigning a temporary IP address.
You parameterize the interfaces of the CPU using the hardware configuration (Chapter 3.3.1 “Parameterization of CPU properties” on page 67).
15.1.1 Settings on the programming device
Setting network addresses for Industrial Ethernet in the operating system If your programming device is already working in a network, it has an IP address and a subnet mask which are matched to operation in the network. In most cases, integration into the network is made automatically through assignment of the network configuration by a DHCP server.
You can check the settings in the properties of the LAN connection, for example with Start > Settings > Control Panel and double-click on Network connections.
Double-click on the used connection and click in the dialog window on the Properties button. Select Internet Protocol (TCP/IP) in the selection box in the prop- erties and click on the Properties button. The dialog window offers the options Ob- tain IP address automatically (via a DHCP server) and Use following IP address (man- ual settings). The Advanced… button leads to the advanced IP settings in which you can, for example, set additional temporary IP addresses and subnets masks.
Set access point
When installing STEP 7, the Set PG/PC interface tool is created in the Windows Control Panel. This can be used to check and set the interface to the network.
Open the Set PG/PC interface tool, for example from the Windows desktop using Start > Settings > Control Panel. The Access Path tab should show S7ONLINE (STEP 7) in the Access Point of the Application box. In order to change the interface module, select the LAN interface module used under Interface Parameter Assignment Used click on OK.
Interface (adapter) in the programming device
STEP 7 lists all active interface adapters of the programming device in the project tree under Online access. In order to check and set the interface properties, click with the right mouse button on the interface used and select the Properties com- mand from the shortcut menu. In the properties window, select the subnet with which the programming device is to be connected under Assignment.
15.1.2 Connecting the programming device to the PLC station
Connect the programming device to the CPU using a cable appropriate to the interface.
Switch on CPU
Set the standby switch on the power supply module to OFF and the mode switch on the CPU to STOP, switch on the supply voltage, and set the standby switch to ON. The green LEDs for 5 V DC and 24 V DC on the power supply module light up. All LEDs light up when the CPU operating system ramps up. If the CPU does not detect any errors, the STOP LED lights up following ramping up. A red error LED lights up in the event of an error, and all LEDs flash if the CPU is faulty.
If you set the mode switch to RUN, the CPU ramps up and the RUN LED flashes. If the CPU does not detect any errors during ramping-up, it changes to RUN mode – even without user program.
The CPU is ready for communication in both the RUN and STOP modes.
Search for accessible devices
Start STEP 7, select the Online & diagnostics portal in the Portal view, and then select Accessible devices. If necessary, set the type of PG/PC interface in the Accessible devices window and the adapter used under PG/PC interface.
A station which has been found is listed in the table with its address. At the same time, the graphic is provided with an orange background (Fig. 15.1).
Fig. 15.1 Dialog window Accessible devices
Select the line with the station. You can then click the Flash LED button in order to briefly flash the FRCE LED on the front panel of the CPU. To process the selected sta- tion further in the project view, click on the Show button.
Access over Industrial Ethernet, temporary IP address
An online connection over Ethernet can only be established if both devices are in the same subnet. If the network settings of the programming device do not agree with those of the CPU, STEP 7 suggests the setting of a matching project-specific IP address on the programming device. This IP address is present temporarily until the programming device is switched off or until you delete the address.
STEP 7 then shows the found CPU in the project view. The CPU is located with its IP or MAC address in the Online access group under the used interface module as a new group in the project tree.
15.1.3 Switching on online mode
Under Online access, select the PLC station and then Online & diagnostics from the shortcut menu. If the CPU does not yet have an IP address, enter the IP address and subnet mask in the diagnostics window under Functions > Assign IP address and click on Assign IP address. Then repeat the command Online & diagnostics.
The diagnostics window displays the diagnostic data read from the PLC station and the Online tools task card with the CPU control panel. Further details can be found in Chapter 15.4 “Hardware diagnostics” on page 608.
If a project matching the online PLC station is present, open the project and select the PLC station in the project tree. Select Go online from the shortcut menu or acti- vate the Go online icon in the main menu. If necessary, add the access data in the Go online window and click on Go online.
Further procedure
b Chapter 15.4 “Hardware diagnostics” on page 608 describes how you can use the diagnostics and online tools, for example to start and stop the CPU or to reset to the default settings.
b The following Chapter 15.2 “Transferring project data” describes how you can upload a user program to the PLC station and edit the user program online.
b Chapter 15.5 “Testing the user program” on page 613 describes how you can test a user program.
b Chapter 15.2.4 “Editing of online project without offline project” on page 600 describes how you can access the online project data of the CPU without the user program.