• No results found

Steps For Configuring a PROFInet IO System

In document PLC siemens S7 Configuration HW (Page 155-163)

2 Configuring Central Racks

STEP 7 V5.3 Service Pack 1

4 Configuring PROFINET IO Devices

4.2 Steps For Configuring a PROFInet IO System

4.2.1 Overview: From Configuration To Cyclical Data Exchange

The following sections describe the basic steps required to place a PROFINET IO system in operation. It tells you how to configure PROFINET components, assign addresses and how the system starts.

Configuring an IO system in HW Config

1. Assign parameters to an IO controller (i.e. CPU 317-2 PN/DP) in HW Config.

While assigning the interface parameters, assign an Ethernet subnet and an IP address.

2. Arrange all required IO devices in the IO system ("railroad track").

3. For each IO device: check the device name, and, if necessary, change it and set its parameters.

Assign addresses

1. Each IO device must have the configured device name assigned to it.

2. Download the hardware configuration while the CPU is in STOP mode.

The configured IP address is automatically assigned to the PN interface (e.g. a CPU) when the hardware configuration is downloaded.

Startup

At startup, the CPU transfers the downloaded configuration via the PN interface to the IO devices. As with PROFIBUS DP, the "'Finished' message by modules" and

"Transfer of parameters to modules" monitoring times that are assigned as parameters apply here as well.

At startup, the CPU can identify the IO devices by their device names and automatically transfer the associated IP addresses.

After the addresses and parameters have been successfully transferred within the monitoring times, the PROFINET devices start their cyclical data exchange.

Configuring PROFINET IO Devices

If the addresses and parameters were not successfully transferred, the CPU goes into STOP or RUN mode, depending on the setting of the "Startup when

expected/actual config. differ" parameter.

Configuring PROFINET IO Devices

4.2.2 Basic Procedure for Configuring a PROFINET IO System

If you know how to configure a PROFIBUS DP system, then you already know how to configure a PROFINET IO system – the procedure is largely the same.

Station window as an image of the real IO system

When have placed an IO controller (e.g. a CPU 317-2 PN/DP) in position, STEP automatically draws a line that represents the IO system. You then place the IO devices to be assigned to this IO controller in position by using drag-and-drop to move them there from the "Hardware Catalog" window in "PROFINET IO".

When an IO device is put in position, a name is automatically assigned to it (the default name is the name in the GSD file).

STEP 7 also automatically assigns an IP address. Starting with the IP address of the IO controller, STEP 7 searches for the next available IP address. However, this IP address is not relevant when handling the objects when configuring the system.

Nevertheless, it is necessary because all nodes on Ethernet with TCP/IP protocol must have an IP address.

In addition, STEP 7 assigns device number that you can use to work with the device in the user program (e.g. with SFC 71 "LOG_GEO"). This number is also displayed in the symbol for the IO device.

Configuring PROFINET IO Devices

The IO device does not appear in the "Hardware Catalog" window

If an IO device does not appear in the "Hardware Catalog" window, then you need to install the corresponding GSD file after STEP 7 has been started (menu

command: Options > Install GSD File). Follow the dialog prompts to install the new GSD file. The newly installed IO device then appears in the "Hardware

Catalog" window under "PROFIBUS IO", either under the name of the device family (for Siemens devices) or under "Additional Field Devices."

Configuring the IO device in the detailed view

When you select an IO device, then the configuration (slots with

modules/submodules) and I/O addresses are displayed in the detailed view of the station window.

Configuring PROFINET IO Devices

4.2.3 Creating a PROFINET IO System

Requirement

You have arranged a module rack in the station window, and it is now opened (slots in the rack are visible).

PROFINET IO Controller

You can use the following devices as an IO controller:

• A CPU with an integral or insertable PROFINET interface (integral, such as CPU 317-2 PN/DP)

• A CP along with a CPU (e.g. CP 443-1 Advanced connected to a suitable S7-400-CPU)

• A PC station (e.g. with CP 1612)

Procedure

1. In the "Hardware Catalog" window, select an IO controller (e.g. CPU 317-2 PN/DP).

2. Drag-and-drop the module to a permissible row in the module rack. The

"Properties – Ethernet Node" dialog box then opens.

Here you can do the following:

- Create a new Ethernet subnet or select and existing one - Set the properties for the Ethernet subnet (such as the name) - Set the IP address of the IO controller

3. Confirm the settings with "OK"

The following symbol appears for CPUs with an integral IO controller:

This symbol is the "peg board" for the IO devices in the IO system.

External IO Controllers

CPs that can be used as external IO controllers support numerous options for

Configuring PROFINET IO Devices

4.2.4 Selecting and Arranging IO Devices

The procedure for selecting and arranging IO devices is essentially the same as the one for PROFIBUS DP.

Requirement

An IO system must be available and visible in the station window.

Procedure

1. As with PROFIBUS DP, you will find the IO devices (correspond to the slaves used with PROFIBUS DP) in their own catalog section called "PROFINET IO".

Open the folder desired under "PROFINET IO".

2. Drag-and-drop the IO devices to position them or double-click an IO system.

3. If you are dealing with a modular IO device, then insert the required modules or submodules into the IO device.

The IO devices are represented with symbols in the station window, much like the slaves on PROFIBUS. A symbols contains the device number (possibly

abbreviated) and the device name.

Configuring IO devices

IO devices have property sheets in which you can change the address information (device number and device name) automatically assigned by STEP 7 when the device is inserted as well as the diagnostic address of the IO device.

In such a property sheet you can start the dialog for changing the interface and the subnet properties. To do this, click the "Ethernet" button in the property sheet. The dialog box that then appears contains the IP address, which you can then change.

Depending on the IO device, you can select a check box to disable the assignment of the IP address by the IO controller.

Parameters that apply to the entire IO device can be set in this dialog box.

The properties of an IO device are determined by its associated GSD file.

Navigation options

To locate IO devices quickly, you can select the Edit > Go To > Ethernet Node menu command. The dialog box that is then displayed lists all IO systems and the IO devices connected to them. For IO systems, the associated subnet is shown.

For IO devices, the designation (device name), device number and the IP address are shown.

Configuring PROFINET IO Devices

4.2.5 Where Are The IO Devices Located In The Hardware Catalog?

All IO devices are shown in the Hardware Catalog under "PROFINET IO".

The structure of the Hardware Catalog is determined only by the GSD files. If several GSD files for an IO device family are available in STEP 7 data

management (e.g. caused by importing different file versions), then the last (that is, the most recent) version is always used to display the device properties.

IO devices made by Siemens appear directly in "PROFINET IO" below the folder with the name for the respective device family (e.g. ET 200S).

If other GSD files are available for the device family, they are also displayed in the Hardware Catalog under their family name in a "GSD" subfolder. The non-GSD variants offer easy and convenient options for configuring (such as easier packing of addresses, etc.).

Other IO devices installed with a GSD are displayed under "Additional Field Devices".

In the case of modular IO devices, the insertable modules/submodules are located below the IO device interface modules.

Configuring PROFINET IO Devices

4.2.6 Handling PROFINET IO Systems

Designations for IO Systems

The designations of IO systems are structured similarly to those used for DP master systems:

The first part of the name designates the Ethernet subnet. This part is followed by a colon (":").

The second part of the name consists of the designation "IO system", followed by the number of the IO system in parentheses. While the numbering for DP master systems starts with "1",

STEP 7 starts numbering IO systems with "100".

Changing the settings of an IO system

In addition to the name and number, the changeable properties of an IO systems also include the update time.

To change the settings, proceed as follows:

1. Double-click the IO system ("railroad track") 2. Select the appropriate tab

(the "General" tab to change the name and the IO system number,

or the "Update Time" tab to read or change the update time for the IO system).

Disconnecting an IO system

As with a DP master system, you can also disconnect an IO system. To do so, select the Edit > PROFINET IO > PROFINET IO System > Disconnect menu command.

The IO system then remains as an "orphaned" IO system and is visible in the station.

If the IO system has no IO devices on it, the IO system is deleted.

Inserting an IO system

If you have configured one or more IO systems and then disconnected them from the PROFINET interface, you can insert one of the "orphaned" IO systems back into the selected PROFINET interface. To do so, select the Edit > PROFINET IO >

PROFINET IO System > Insert menu command.

Configuring PROFINET IO Devices

In document PLC siemens S7 Configuration HW (Page 155-163)