Sie sind auf Seite 1von 57

SITRAIN Training for CR-MAINT 29-07-2014

Automation and Industrial Solutions page 1 profibus-ethernet


SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 2 profibus-ethernet
Overview The units installed in the field for automating technical processes, such as sensors,
actuators, transducers and drives more and more make use of field bus systems for
exchanging information with the higher-level controller units.
PROFIBUS is an established fieldbus system which can be used by all automation
equipment, such as PLCs, PCs, Human-Machine Interfaces as well as actuators
and sensors, for exchanging data.

PROFIBUS-DP PROFIBUS-DP is a protocol optimized for speed which was specially designed for
communication between PLCs (DP masters) and distributed I/Os (DP slaves).
PROFIBUS-DP is a low-cost, flexible substitute for transmission of signals on
cumbersome parallel 24V and 20mA lines.
PROFIBUS-DP is based on DIN 19245 Part 1 and the user-specific extensions in
DIN 19245 Part 3. In the course of the European fieldbus standardization process,
PROFIBUS-DP was integrated into the European fieldbus standard
EN 50170.

Master Devices PROFIBUS makes a distinction between master and slave devices. The PROFIBUS
masters are in charge of data traffic on the bus. A master can send messages
without being requested to do so, provided it is in possession of the token that
entitles it to access the bus. Masters are also referred to as active nodes in the
PROFIBUS protocol.

Slave Devices PROFIBUS slaves are simple I/O devices, such as actuators, sensors, transducers,
etc. They do not receive the token, that is, they can only acknowledge the receipt of
messages or send messages (data) to a master on request. Slaves are also
referred to as passive nodes.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 3 profibus-ethernet
Distributed I/O All master systems consisting of a DP master and DP slaves that are connected
using a bus cable and that communicate via the PROFIBUS-DP protocol are
designated as distributed I/Os.

DP Master As DP master you can install:


• S7-CPU with integrated DP master interface (such as CPU 414-2, etc.)
• CP in connection with a CPU (such as CP 443-5, etc.)

Setting Up DP Master To configure a master system, proceed as follows:


1. Select the PROFIBUS interface X2 of your CPU and insert a master system
(Menu Insert Master System)
2. The dialog box "Properties - PROFIBUS interface DP" is opened. In this dialog
you can define the following properties:
• set up a new PROFIBUS subnet or open an existing one
• set the properties of the PROFIBUS subnet (baud rate, etc.).
• define the PROFIBUS address of the DP master.
3. Acknowledge the settings with "OK". The following symbol appears:
for the DP master system. This symbol is used as a
"hanger " for the DP slaves.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 4 profibus-ethernet
DP Slaves • Modules with integrated digital/analog inputs and outputs
(compact DP slaves, such as ET200B).
• Interface modules with assigned S5 or S7 modules
(modular DP slaves, such as ET200M, ET 200S).
• S7-200/300 stations with modules that support the "Intelligent Slave"
function (such as CPU 215-DP, CPU 315-2).

Selecting DP Slaves To configure a DP slave, proceed as follows:


1. From the "Hardware Catalog" select the desired compact DP slave (such as
ET200B) or the interface module (such as IM151-1 Standard for ET200S) for a
modular slave.
2. Drag the symbol (such as IM151-1 Standard for ET200S) onto the symbol for the
master system:
The dialog box "Properties – PROFIBUS interface DP" is opened. Here you can
set the following properties:
• properties of the PROFIBUS subnet (baud rate, etc.).
• the PROFIBUS address of the DP slave.
3. Acknowledge the settings with "OK". A configuration table is attached to
the symbol (icon) that represents the I/O configuration of the compact
slave or the rack of the modular slave.
4. For a modular DP slave, you now insert the desired modules from the "Hardware
Catalog" into the configuration table.
The addressing and parameter assignment of the modules is then handled
similar to the configuration of the centrally inserted modules.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 5 profibus-ethernet
Setting the Switch on the terminating resistor on the first and last nodes of a segment.
Terminating To do this, you open the cover of the bus connector and set the switch to the
Resistor ON position.

The PROFIBUS is only correctly terminated if the power supply of the node in which
the terminating resistor is inserted is actually switched on. If this is not always the
case, the PROFIBUS can also be terminated with an active RS485 terminating
resistor (6ES7972-0DA00-0AA0). The terminating resistor is then either permanently
supplied with power separately from the other modules or is supplied with voltage
from the peripheral modules.
Termination of the bus system enables the nodes (for example ET 200L) to be
connected and disconnected at will, without causing malfunctions.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 6 profibus-ethernet
Segment Length In the slide you can see the cable lengths of a segment without a repeater
depending on the transmission speed.

RS 485 Repeater An RS 485 repeater boosts the data signals on the bus cables and connects bus
segments. You will require an RS 485 repeater, if:
• more than 32 stations are connected to the bus,
• bus segments are to be operated ungrounded on the bus or
• the maximum cable length of a segment is exceeded.

If you set up the bus with RS 485 repeaters, only a maximum of 9 RS 485 repeaters
may be switched in series. The maximum cable length between two nodes is 10,000
meters at 9.6 to 187.5 kBaud.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 7 profibus-ethernet
PROFIBUS ConnectorIn the slide you can see two different versions of the PROFIBUS connectors. The
incoming cable is connected to the terminals A1 and B1.
If a connection to a further PROFIBUS partner is required, the connection is then
made to terminals A2 and B2.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 8 profibus-ethernet
General PROFIBUS cables can be produced quickly and error-free with Fast Connect. You
require a special stripping tool, cable and connector for Fast Connect.

What to Do 1. Measure the cable length by placing the cable on the template.
2. Place the measured cable ends in the stripping tool. Limit for the placement
depth is the pointer finger of the left hand. Fasten the cable in the stripping tool.
Turn the stripping tool clockwise four times to strip the cable.
3. Pull the closed stripping tool from the cable end. The residual cable parts
remain in the tool. After opening the tool you can remove the residual parts. If
the white filling did not come off during stripping, you can remove it by hand. To
make it easier to remove the protective foil cut it carefully between the wires using
a screwdriver. Remove the protective foil from the wires.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 9 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 10 profibus-ethernet
OB 82 Diagnostic Interrupt OB
OB 86 Rack Failure OB

SFC 13 Read diagnostic data of a DP slave

FB 125 Detailed diagnostic function

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 11 profibus-ethernet
Diagnostic Interrupt When a module with diagnostic capability recognizes an error (and you have
enabled the diagnostic interrupt), it makes a diagnostic interrupt call to the CPU
both for incoming and outgoing events. The operating system then calls OB82.
OB82 contains the logical base address in its local variables as well as
diagnostic information (4 bytes long) on the faulty module.
If you have not programmed OB82, the CPU goes into STOP mode.
You can disable or delay and then re-enable the diagnostic interrupt OB using
SFC39 to SFC42.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 12 profibus-ethernet
Rack Failure The CPU operating system (CPU 315-2DP or S7-400) activates the OB86, if it
recognizes the failure of a rack, a subnet or a distributed I/O station not only in
a coming but also a going event.
If you have not programmed the OB86 and such an error arises, the CPU goes
into the STOP mode..

You can disable or delay and re-enable OB86 using SFCs 39 to 42.

Meaning of the Variables in OB86

OB86_FLT_ID: B#16#C4 //DP-Station failled


OB86_FLT_ID: B#16#C5 //DP-Station faulted

OB86_MDL_ADDR: Logical base address of the DP-Master


(Diagnostics address, 102310 => 3FF16)

OB86_ RACKS_FLTD: ==> Contents:

Bit 0 to 7: Number of the DP-Station (PROFIBUS-Address)


Bit 8 to 15: DP-Subnet-ID
Bit 16 to 30: Logical base address of the DP-Slave
(Diagnostics address)
Bit 31: I/O identifier

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 13 profibus-ethernet
Slave Diagnostics With SFC13 "DPNRM_DG" (read diagnostic data of a DP slave), you read the current
diagnostic data of a DP slave in the format specified by EN 50 170
Volume 2, PROFIBUS. The data that has been read is entered in the destination area
indicated by RECORD following error-free data transfer.
You start the read job by assigning 1 to the input parameter REQ in the SFC13 call.
Slave Diagnostics You can refer to the following table for the configuration of slave diagnostics
Configuration data in principle. Refer to the manuals for the DP slaves for additional information

Byte Meaning
0 Station status 1
1 Station status 2
2 Station status 3
3 Master station number
4 Vendor ID (high byte)
5 Vendor ID (low byte)
6 ... Further slave-specific diagnostic information

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 14 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 15 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 16 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 17 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 18 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 19 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 20 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 21 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 22 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 23 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 24 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 25 profibus-ethernet
PG connection The PG/PC connection for the configuration, commissioning and service can be
performed via the interfaces on the SIMOTION.
The following interfaces are available:
• Two PROFIBUS interfaces: DP1 and DP2/MPI
• 3 Industrial ETHERNET interfaces

SIMOTION SCOUT uses the STEP 7 programs HW Config and NetPro for the
configuration of the interface.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 26 profibus-ethernet
DRIVE-CLiQ The D435-2 PN/DP features 6 DRIVE-CLiQ interfaces. The power modules, supply
and other modules are connected here.

Digital inputs/ The digital inputs/outputs are assigned to SINAMICS and can be used for
outputs drive control.

Electronic supply 24 V connection for the module's electronic supply.

Ethernet The D435-2 PN/DP has 3 Ethernet connections that can be used by SIMOTION, for
connections example, for connecting a PC or an HMI device. 1 is for profinet.

PROFIBUS Here you can connect additional drives or distributed I/O devices.
connections

CF slot Memory card slot (CompactFlash card)

Mode selector The operating mode is set with this rotary selector switch, e.g. the CPU to RUN. There
is a row of LEDs next to the mode selector which indicate the status of the CPU.

Option slot Optional modules such as additional I/Os can be inserted in this slot.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 27 profibus-ethernet
Design of the SIMOTION D uses the SIMOTION D4x5 module as its central hardware
SIMOTION D4x5 component, comprising the SIMOTION runtime system (SIMOTION RT) and the
SINAMICS S120 control unit.
The SIMOTION system is responsible for motion control and position control of the
axes. The SINAMICS control unit controls the speed and current of the connected
drives. The SINAMICS unit can also control the infeed unit (ALM = Active Line Infeed).
The number of drives that can be connected depends on the selected operating mode
(servo or vector control):

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 28 profibus-ethernet
PROFIBUS DP The D4x5 system provides two interfaces for connection to the PROFIBUS
interfaces DP. Baud rates of up to 12 Mbit/s. Both interfaces can be operated isochronously.
The interfaces can be operated in virtually any combination as master or slave
(isochronous / non-isochronous):

Special cases Hierarchical systems can be implemented via the hierarchical DP interface function. In
a hierarchical system an isochronous PROFIBUS is used to enable functions, such as
distributed synchronous operation. With distributed synchronous operation the
individual axes are distributed among several SIMOTION systems.
If both interfaces (X126, X136) are to be operated isochronously, both must be
configured with the same DP cycle clock.
Alternatively, the X136 interface can be used as an MPI interface with a baud rate of
up to 12 Mbit/s.

Addresses and As delivered, the following addresses and baud rate are configured for both
baud rate PROFIBUS interfaces :
• Protocol: PROFIBUS DP
• PROFIBUS address: 2
• Baud rate: 1.5 Mbit/s

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 29 profibus-ethernet
Ethernet This interface is for connection to Fast Industrial Ethernet. Fast Industrial
interface Ethernet is a communications network with a transmission rate of 10/100 Mbit/s.
The D4x5 system offers the following functions via the Ethernet interface connectors:
• Communication with STEP 7 and SIMOTION SCOUT. For this function, the
software "SIMATIC NET SOFTNET-PG (protocol TPC/IP RFC 1006)" must
be installed on the PG/PC.
• Communication between SIMOTION and SIMATIC NET OPC. For this
function, the software "SIMATIC NET SOFTNET-S7 (S7 OPC server)" must be
installed.
SOFTNET-S7 is a superset of SOFTNET-PG, meaning that SOFTNET-S7
contains SOFTNET-PG as well as the TPC/IP RFC 1006 protocol.
• User program communication via the communication protocols TCP/IP and
UDP (user datagram protocol) to any other system (SIMOTION, SIMATIC,
any PC,...) which also supports these communication protocols.
For X150 profinet can be used.

IP addresses As delivered, the following IP addresses are configured:


• X127 (PNxIE): 169.254.11.22
• X130 (PNxIE-NET): 192.168.2.1
• X150 (PNxIO): 192.168.1.1

Note Routing between Ethernet interfaces is not supported. Routing between the Ethernet
and the PROFIBUS interface is possible.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 30 profibus-ethernet
TB30 The Terminal Board 30 (TB30) is a terminal expansion module which can be
connected to the SINAMICS control unit or the SIMOTION D4xx. It has the following
terminals:
• 4 digital inputs (propagation delay: 50 s, 100 s)
• 4 digital outputs (load current 500 mA, resistant to sustained short-circuits)
• 2 analog inputs (-10 V to + 10 V, inner flow resistance 65 K ,
resolution: 13-bit + sign)
• 2 analog outputs (-10 V to +10 V, 3 mA, resolution: 11-bit + sign,
resistant to sustained short-circuits)

CBE30 The CBE30 communication board for SIMOTION D enables connection to a


PROFINET IO network

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 31 profibus-ethernet
Connection of a PG In order to exchange data between the SCOUT engineering system and the runtime
system, the PG must be connected to the module. This can be performed via the
PROFIBUS or the ETHERNET/PROFINET interfaces.
There are two processors on the module that are linked via the PROFIBUS network
"PROFIBUS_Integrated".
In order to be able to access both processors with a PG, the router must be configured
with NetPro and the information routed through the SIMOTION runtime system.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 32 profibus-ethernet
Overview Within the SIMOTION SCOUT or SIMATIC STEP 7 environment, there are two ways
to connect a PG with the engineering system to a subnet:
• Direct connection via Set PG/PC interface
• Through the integration of a PG in NetPro

Set PG/PC With this setting you specify the communication between the PG/PC and the
interface target device. The "Set PG/PC interface" tool can be called via the SCOUT command:
Options -> Set PG/PC interface or via the appropriate icon of the Control Panel.
This method offers quick access, e.g. for service purposes. You can access all the
accessible, programmable modules in the network. This method must be selected
when there is no project data for the target systems available on your PG. However,
nodes of other subnets cannot be accessed.
. There are also separate test and diagnostic functions available in the "Set PG/PC
interface" tool to test the interface or check the connection to the other nodes of the
subnet.

Integration via In this case the PG is considered to be part of the current project and
NetPro integrated in the project via the "NetPro" tool.
This integration enables access to other nodes that are not connected to the same
subnet, but that can be reached via a router.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 33 profibus-ethernet
Access path In this tab you can assign an interface parameter assignment to an access
point to define the access path for an application.
1.For the "SIMOTION SCOUT" application, set the access point to
"S7ONLINE".
2.In the entry "Used interface parameter assignment", select according to
the connection used between PG and target system the following
parameter assignment:
- For MPI connection: CP5611 (MPI)
- For PROFIBUS connection: CP5611 (PROFIBUS) <active>
- For Ethernet connection: TCP/IP VIA PCI 10/100 Mbit/s...

Properties Click this "Properties" button to change the properties, e.g. baud rate or address of the
interface parameter assignment. You cannot make changes to parameters if there are
any open connections. Therefore, first close any open connections.

PG/PC is the Deactivate this option. The PG is not the only master here. The
only master SIMOTION target device is also master.

Address This setting relates to the PG or PC on which you have called up the parameter
settings of the interface. Set the local node address of your PG/PC here (in our case:
0).
The local node address must be unique throughout the network. Your PG/PC is
addressed in the PROFIBUS/MPI network under this address.

Transmission Select the transmission rate which is to be used in the network


rate (in our case 1.5 Mbit/s).

Profile Select "DP" as profile for a connection via PROFIBUS.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 34 profibus-ethernet
Router Routers are used for connecting the subnets. If, for example, a PG wants to send a
data packet to another node in a different network, it must first be sent to the router.
To achieve this, the PG and router first need information about the subnet in which the
router is located and in which subnet the desired node is located.
This routing information makes it possible to have access from the PG/PC via the
PROFIBUS (1) to the SIMOTION device (router) and from there via the subnet
"PROFIBUS_Integrated" to the SINAMICS_Integrated.

NetPro The required routing information is provided by the NetPro tool. In addition, you can
configure a PG/PC connection with SIMOTION SCOUT (engineering system for
access) in NetPro.
The currently valid connection for the access of the PG/PC to a subnet is highlighted in
yellow. This setting generates the routing information and stores it in the SIMOTION
device at download.
This routing information makes it possible to have access from the PG/PC via the
"PROFIBUS (1)" to the SIMOTION device (router) and from there via the other subnets
to the desired drives.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 35 profibus-ethernet
Procedure 1.In the SCOUT interface, select the menu command: Project ->
Open NetPro. The "NetPro" tool is opened and the network view
of the SIMOTION project is displayed.
2.If required select the following command to open the catalog: Insert -> Network
objects and use drag and drop to insert a PG/PC from the catalog into the project.
3.Double-click the PG to open the associated configuration
dialog box.
4.In the "Interfaces" tab, click the "New" button to create a "new" interface for your
PG. The dialog box "New Interface - Type Selection" is opened.
5.Select the PROFIBUS entry and click "OK" to confirm. The
"Properties - PROFIBUS Interface" dialog box is displayed.
6.Assign the PROFIBUS interface to the "PROFIBUS (1)" subnet.
This is the subnet that is connected to the PROFIBUS interface
DP2/MPI (X9) on the right-hand side of the SIMOTION device.
Also select the PROFIBUS address: 0 for your PG/PC and click the "OK" button to
confirm the dialog settings.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 36 profibus-ethernet
Continued 7.In the last step, a selection must be made as to which of the several possible
connections is to be the active connection. This setting is made in the "Assignment"
tab.
In this dialog box, all the interfaces created in steps 4 - 6 are listed under
"Configured interfaces". The list "Interface parameterizations in the PG/PC"
contains all the possible interface drivers that have been set up during the
installation of STEP 7.
In the "Configured interfaces" list box, select the entry "PROFIBUS interface".
Then select in the list box "Interface parameterizations in the PG/PC" the entry
"CP5611 (PROFIBUS)" and click Assign.
The assigned interface is displayed in the "Assigned" list box.
8.If required, activate the "S7 online access active" checkbox and confirm
the dialog by clicking "OK".
The "active" PG is displayed in "NetPro" via a yellow connection to the
configured PROFIBUS subnet.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 37 profibus-ethernet
Procedure 9.Before saving, you should check the network configuration for
consistency. The following information is signaled, for example:
- Nodes that are not connected to a subnet (exception:
MPI nodes that are not networked)
- Subnets with only one node
- Inconsistent connections

Select the menu command: Network -> Check consistency.


A window is displayed with the results of the consistency check and messages
relating to a consistent network/connection configuration.

10. Click the "Save and compile" button. The network configuration is saved in the
project. The system data blocks with the routing information is also created and saved.

11. In the last step, select the SIMOTION device and then load the
configuration data via the menu command Target system ->
Load to current project -> Selected stations with the routing information
to the SIMOTION device.
After this download, the relevant routing information is in the
SIMOTION target device and the desired access to the
SINAMICS_Integrated drive system can be performed.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 38 profibus-ethernet
Isochronous mode As data of different length is transmitted in the acyclic message frame parts, the length
of the message frames and therefore the DP cycle time are subject to fluctuation. In
order that control tasks can still be performed via this bus despite the fluctuations, the
constant bus cycle time function has been introduced so that the bus cycle time
remains constant and therefore dead times on the bus are known. In drive technology,
isochronous communication forms the basis of drive synchronization. The bus system
not only carries message frame traffic in an equidistant time frame, but the internal
control algorithms such as the speed and current controller in the drive or controller are
also implemented in the higher-level automation system.

Note The isochronous PROFIBUS permits control of the axes via a digital bus system. The
second PROFIBUS DP interface can be used for easy parameterization and
commissioning of the drives from a PC/PG.
Non-isochronous nodes should not be operated on the isochronous PROFIBUS. The
cycle time has to be recalculated when a non-isochronous node is connected, which
may result in a deterioration of the control behavior of the axes and drives.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 39 profibus-ethernet
Connection
to ETHERNET

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 40 profibus-ethernet
IP addresses Each access point for a device in a network is identified by its address. In TCP/IP
networks, this is the IP address. It comprises four bytes and is structured according to
certain rules, e.g.
192.168.42.1 (dot notation)
With dot notation, each IP address is expressed by four decimal numbers separated by
dots. The numbers can be between 0 and 255.
IP addresses consist of two parts, the network ID and the host ID. The network ID
specifies the subnet to which the host is connected and the host ID specifies the
address of the access point for the host.

IP classes The splitting of an IP address into subnet and host identifiers breaks down an IP
network into a large collection of interlinked subnets of different sizes. Five subnet
classes were originally defined, although only classes A, B and C are actually used.

Subnet mask A subnet mask is nothing more than a filter which allows the identification of all
systems connected to the same physical subnet.
The rules governing subnet masks are very simple:
• Ones in the subnet mask identify the subnet address.
• Zeros identify the part of the IP address that is available for the host ID.
Even if subnet masks are not used, the hardware automatically specifies the standard
subnet mask for class A, B or C.

Note If the send and receive stations are connected to the same network, or connected
directly by a crossed Ethernet cable, then the network ID of the two IP addresses must
be the same.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 41 profibus-ethernet
Access path The network connection via ETHERNET or PROFINET can be set via the settings in
the PG/PC interface. The setting of the IP address is performed via the system
properties of the programming device. The system properties can be called directly
from the PG/PC Interface dialog box.
The Windows Control Panel is reached via the "Network properties..." button, "Network
Connections" dialog box (Start bar Start -> Control Panel -> Network Connections).
Here you can access the settings of the network components of your PC
The connection can now be selected in the network connections for which the
properties are to be checked or changed.

The following example describes how you can set the IP address.
Requirements: You are in the "Network Connections" dialog box of the Control Panel and have
selected a network connection.
Proceed as follows to change the IP address:
1. Right-click to select the "Properties" context menu.
Reaction: The "Properties of ..." dialog box opens.
2.Select the "General" tab.
3.In the "This connection uses the following elements" list box, select the entry
"Internet protocol (TCP/IP)" and confirm with the "Properties" button.
Reaction: The "Properties of the Internet Protocol (TCP/IP)" dialog
box appears.
4.Select the option "Use the following IP address".
5. Enter the required address in the "IP address" field and confirm with "OK".

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 42 profibus-ethernet
Set IP address The IP address on the PG is set in the Control Panel screen of the Windows
on PG operating system.
1.Select the following commands from the Windows 'Start' menu:
Start -> Control Panel -> Network Connections
The "Network Connections" dialog box opens.
2.Double-click the "Local Area Connection" dialog box to open its
properties dialog box.
3.In the "Properties of Local Area Connection" dialog box, select the item
"Internet Protocol (TCP/IP)" and click the "Properties" button.
The properties dialog box for Internet Protocol (TCP/IP) opens.
4.Select the option "Use the following IP address".
5.Enter the correct IP address and the associated subnet mask. In
our case:
IP address: 192.168.0.10
Subnet mask: 255.255.255.0
6.Acknowledge all open dialogs with "OK".
7.Restart the PG if prompted by the operating system.
The set IP address is now active.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 43 profibus-ethernet
Initial state The screenshot above shows the existing state in "NetPro", i.e. the state created when
the project was set up. A PG/PC has already been inserted in "NetPro"; this is actively
coupled to the PROFIBUS subnet "HMI PROFIBUS" via PROFIBUS interface X9 on
C230-2 and X136 on D435.
As a result, the appropriate routing information to allow access to the
611U/SINAMICS_Integrated via PROFIBUS routing has already been generated and
downloaded to the SIMOTION device.

Ethernet integration In order to extend the access functionality to Ethernet, an Ethernet interface must first
be "integrated" in the PG.
1.First double-click the "Properties – PG/PC" dialog box in "NetPro" on the PG.
2.Select the "Interfaces" tab in this dialog box.
3.Open the dialog box "New Interface – Type Selection".
4.Select the option "Industrial Ethernet".
5.Confirm your selection by clicking the "OK" button.
The dialog box "Properties - Ethernet Interface" opens.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 44 profibus-ethernet
Continued 6.First deactivate the option "Set MAC address" in the "Properties - Ethernet
Interface" dialog box.
7.In the input fields "IP address" and "Subnet mask", enter the same IP
address and subnet mask as you specified in the Windows Control Panel.
8.Select the "New..." button to set up a new Ethernet subnet and "network" the
Ethernet interface with the Ethernet subnet you have created.
Confirm your selection with the "OK" button. The "Interfaces" tab will now list the new
Ethernet interface as well as the original PROFIBUS interface.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 45 profibus-ethernet
Continued 9.You now need to assign the new Ethernet interface to an interface driver on the PG.
To do this, select the "Assignment" tab in the "Properties – PG/PC" screen.
All configured links are displayed in the "Configured interfaces" list. You will find all
the interface drivers installed on the PG listed in the "Interface parameter assignments
in the PG/PC" box.
10. In the "Configured interfaces" box, select item "Ethernet interface". Then select
item " TCP/IP -> VIA PCI 10/100 ... " in box "Interface parameter assignments in the
PG/PC" and click the "Assign" button.
The assigned interface will then appear in the "Assigned" box.
11. Activate the "S7 online access" checkbox for the new assignment and exit the
dialog box by selecting "OK".
The "active" PG will be displayed in "NetPro" in the form of a yellow link to the
configured Ethernet subnet.

Note If the "TCP/IP -> VIA PCI 10/100.." driver cannot be found in the list, the driver has to
be installed.
1.Start the "System" dialog box in the Control Panel.
2.In the "Hardware" tab open the device manager to obtain a list of all
devices
3.Open the "Network adapter" entry with the "+" symbol. The list of network
boards is displayed.
4.Select "VIA PCI 10/100 MB Fast Ethernet adapter" and choose "Uninstall" in the
context menu
5.Confirm the prompt "Uninstall the device" with "OK"
6.Restart the operating system. While booting the uninstalled devices are
automatically reinstalled.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 46 profibus-ethernet
Edit Ethernet In the NetPro or HW Config tool, the menu command: Target system ->
node Ethernet -> Edit Ethernet node can be used to open the associated tool.
This tool can be used to assign an IP address and subnet mask to a module (e.g.
SIMOTION controller). The module can then be accessed via the IP address set here,
e.g. to load configuration data or to call up diagnostic information.
If a device is to be operated as a PROFINET IO device (e.g. ET200S), the PROFINET
device name must be assigned here.

Assign IP address 1.Click the "Browse" button to determine the MAC addresses,
and name IP addresses and device names of the accessible devices.
2.In the dialog box that appears following the network search, select the
module required.
3.Set the required IP configuration. The DHCP server option
is not currently supported by SIMOTION.
4.Click the "Assign IP Configuration" button.
5.Enter the required device name and click the "Assign Name" button.
6.Finally, check that your action was successful using the
"Browse" button.

Settings Device IP address Subnet mask Device name


SIMOTION D: 192.168.0.1 255.255.255.0 "CBE30-PN"
ET200S192.168.0.2 255.255.255.0 "IM151-3PN"
SIMATIC HMI 192.168.0.12 255.255.255.0 "TP177B"

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 47 profibus-ethernet
Accessible The "Accessible nodes" function is used for quick access (e.g. for service
nodes purposes) to the target devices even if there is no project data on the PG.
In particular, the following properties and diagnostics information can be read from the
target systems via the available online functions:
• Device type, PROFIBUS and Ethernet IP addresses and firmware version.
• Device diagnostics (diagnostic buffer, memory allocation, utilization, etc.).
• Control the operating mode (RUN, STOP, etc.).
• Overview of licenses.
• Copy RAM to ROM. To save existing data in the main memory to
the memory card.
• Load project file from card.

Selection The "Accessible nodes" window can be accessed via its icon in the toolbar or via the
SCOUT menu command: Project -> Display accessible nodes.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 48 profibus-ethernet
Device diagnostics As of SIMOTION SCOUT Version 4.1.2, the "Accessible nodes" function can be used
to directly call the device diagnostics.
In this way, the status, diagnostic buffer, etc. can also be read from a project that is not
open. The operating mode of the SIMOTION CPU can also be changed via this
function.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 49 profibus-ethernet
Device diagnostics In online mode, the device diagnostics function provides a comprehensive display of
diagnostics results of the individual SIMOTION devices.
Proceed as follows:
1.Select the required SIMOTION device in the project navigator.
2.Select the menu command: Target system -> Device diagnostics... or select
the command from the context menu: Target device -> Device diagnostics.
The device diagnostics opens in the working area of SIMOTION SCOUT.
It consists of the following tabs:
- General
- Diagnostics buffer
- Slaves
- Task runtimes and
- System utilization
- Userlog
- Syslog
The information in the device diagnostics can be printed (menu command:
File -> Print) and/or saved as text file (button: "Save"). The information is either
updated via the "Refresh" button or via the function key <F5>.
In addition, the operating mode can be monitored and changed via the "Control
operating mode" button.
The device diagnostics can be open for several SIMOTION devices at the same time.
This allows you to compare different devices.
You can also access the device diagnostics via the "Accessible nodes" function.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 50 profibus-ethernet
Overview After the download of the routing information, you can access the data of the
SINAMICS_Integrated via the Ethernet connection.
In this way, online activities, such as modification of parameters, optimizations, etc.
can be performed in the usual manner.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 51 profibus-ethernet
Connections via An online connection must be established between the programming device
SCOUT project and the target systems of a SCOUT project for the following activities:
• Downloading project data to the individual target systems.
• Making online changes to configuration data, e.g. optimizing the
servo gain factor.
• Uploading configuration data from the SIMOTION target devices to
the programming device.

Requirements An online connection to the individual target devices via the SCOUT project is only
established if the following conditions are fulfilled for the target devices:
• The type of devices (C230-2, SIMOTION D4x5, etc.) must be identical
online and offline, i.e. in the SCOUT project.
• The firmware version of the devices must be identical online and offline.
The offline firmware version can be checked in the Properties dialog box of
the SCOUT project. The online firmware version can be determined via
"Accessible nodes".
• The addresses for the communication connection of the target devices must
be identical online and offline.
With a PROFIBUS/MPI connection, the online PROFIBUS address can be
determined via "Accessible nodes". The offline PROFIBUS address can be
determined from "NetPro", for example.
With an Ethernet connection, there is no way of determining the IP address
stored in the target system directly via Ethernet.
The IP address can be read out via PROFIBUS using the "Accessible
nodes" function.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 52 profibus-ethernet
IT DIAG As of SIMOTION Version 4.1.2, the diagnostics can be performed via a Web server,
using the IT DIAG function. The Web pages provided by IT DIAG supply information on
a SIMOTION device. The information is accessed via the Web browser and the
Ethernet.
The SIMOTION device is connected to the local Ethernet for this purpose. Diagnostic
pages can then be accessed from any computer in the network using the IP number of
the device.
HTTPS connections are also supported, which enables use of IT DIAG via open
networks (Internet).
The use of IT DIAG standard pages does not require a special installation. The device
is already appropriately set up.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 53 profibus-ethernet
Service overview The service overview of the IT DIAG function contains the following functions:

Diagnostics The following states of the SIMOTION device are displayed on the "Diagnostics" page:
• System time Current time of day of the SIMOTION
• Time zone Current difference between the system time and GMT
in minutes
• CPU load by cyclic tasks
Computation time of servo and IPO levels as a percentage of the
total computation time
• Memory load Size and allocation of the memory, RAM disk, the memory
card and non-volatile memory in bytes and in percent
• State Current SIMOTION operating mode

DiagBuffer On the "Diag Buffer" page (opened via Diagnostics -> Diag Buffer), you can view
information about events in the diagnostic buffer.
• Time Time of the event
• Date Date of the event
• Event Displays the event as text

Alarms On the "Alarms" page (opened via Diagnostics -> Alarms), you can view the following
information:
• Level Category of the alarm
• Time Time of the alarm
• TO Technology object that triggered the alarm
• No. Alarm number
• Text Displays the alarm message as text

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 54 profibus-ethernet
Watch table This page combines a variable browser and a watch table. The variables are entered in
the watch table with the aid of the browser.
For monitoring variables, the MiniWeb is expanded to include a watch table and a
symbol browser. The symbol browser provides the option of browsing the entire
variable management of a SIMOTION controller. The browser results are displayed in
a tree structure.
By clicking a leaf of the tree, the variable connected to the leaf is inserted in the watch
table and then refreshed cyclically. In addition, the table contains an input field and a
"Write" button for each writable variable that can be used to change the value of the
variable. Variables can be removed from the table again using a "Remove" button.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 55 profibus-ethernet
Web trace SIMOTION provides the user the option of setting up a variable trace via a Web
service. With the aid of the JavaScript library, the SIMOTION diagnostic pages are
expanded to include a page for setting up the variable trace. This page enables:
• Parameterization of the trace
• Start of the trace
• Download of the trace results

The current trace settings can be saved in a named XML file on the storage medium of
the controller. The trace files stored on the RAM disk are compiled in a ZIP file prior to
downloading the trace results and then downloaded as a whole.
For displaying the trace data, the WebTraceViewer program is required as an example
viewer. This program is able to graphically display the data saved in the ZIP file.

SITRAIN Training for CR-MAINT 29-07-2014


Automation and Industrial Solutions page 56 profibus-ethernet
SITRAIN Training for CR-MAINT 29-07-2014
Automation and Industrial Solutions page 57 profibus-ethernet

Das könnte Ihnen auch gefallen