Вы находитесь на странице: 1из 46

Preface, Contents

Information in the
"Operating Instructions
(compact)" of the CP 1616
SIMATIC NET or CP 1604
1

Diagnostics with SNMP


2
CP 1616/CP 1604

Diagnostics over the WEB


3
Operating Instructions
IO Router
4

Glossary, Index

12/2006
C79000-G8976-C218-01
Classification of Safety-Related Notices

This document contains notices which you should observe to ensure your own
personal safety, as well as to protect the product and connected equipment. These
notices are highlighted in the manual by a warning triangle and are marked as follows
according to the level of danger:

Danger
indicates that death or severe personal injury will result if proper precautions are not
taken.

Warning
indicates that death or severe personal injury can result if proper precautions are not
taken.

Caution
with warning triangle indicates that minor personal injury can result if proper
precautions are not taken.

Caution
without warning triangle indicates that damage to property can result if proper
precautions are not taken.

Notice
indicates that an undesirable result or status can occur if the relevant notice is
ignored.

Note
highlights important information on the product, using the product, or part of the
documentation that is of particular importance and that will be of benefit to the user.

Trademarks

SIMATIC, SIMATIC NET, SIMATIC NET Networking for Industry, SINEC,


SCALANCE and SINAUT are registered trademarks of Siemens AG.

Third parties using for their own purposes any other names in this document which
refer to trademarks might infringe upon the rights of the trademark owners.

Safety Instructions Regarding your Product

Before you use the product described here, read the safety instructions below
thoroughly.

Copyright Siemens AG, 2006


Disclaimer
We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot
guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for
improvement are welcomed.

Siemens AG
Automation and Drives
Sensors and Communication C79000-G8976-C218-01
Postfach 4848, D-90327 Nrnberg Subject to technical change.

Siemens Aktiengesellschaft Printed in the Federal Republic of Germany 2


Qualified Personnel

Only qualified personnel should be allowed to install and work on this equipment .
Qualified persons are defined as persons who are authorized to commission, to
ground, and to tag circuits, equipment, and systems in accordance with established
safety practices and standards.

Correct Usage of Hardware Products

Please note the following regarding the correct usage of hardware products:

Warning
This device may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other
manufacturers that have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up,
and installed correctly, and operated and maintained as recommended.
Before you use the supplied sample programs or programs you have written yourself,
make certain that no injury to persons nor damage to equipment can result in your
plant or process.
EU Directive: Commissioning must not be carried out until it has been established that
the machine in which this component is to be installed complies with the conditions of
"Directive 98/37/EEC of the European Parliament and of the Council of 22 June 1998
on the approximation of the laws of the Member States relating to machinery.

Correct Usage of Software Products

Please note the following regarding the correct usage of software products:

Warning
This software may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or software products from
other manufacturers which have been approved or recommended by Siemens.
Before you use the supplied sample programs or programs you have written yourself,
make certain that no injury to persons nor damage to equipment can result in your
plant or process.

Prior to Startup

Before putting the product into operation, note the following warning:

CP 1616/CP 1604
C79000-G8976-C218-01 3
Caution
Prior to startup read the relevant documentation. For ordering data of the
documentation please refer to the catalogs or contact your local SIEMENS
representative.

CP 1616/CP 1604
C79000-G8976-C218-01 4
Preface

CP 1616/CP 1604 Communications Processor

Thank you for choosing the CP 1616/CP 1604 communications processor, an


innovative product that supports PROFINET IO communication.

Purpose of the Operating Instructions (compact)

These installation instructions show you how to install the CP 1616/CP 1604
communications processor in your PG/PC. All the information you require for this
task is contained in this document.

Purpose of the Operating Instructions

You will find more information on operating the CP 1616/CP 1604 communications
processor not included in the "Operating Instructions (compact).

Validity of the Operating Instructions

This document is valid as of hardware version 1 of the CP 1616/CP 1604.

Product Documentation

You will find information on the use of this product in the following sources:

This hard-copy documentation

Text and PDF files on the supplied CD

Text and PDF files on the SIMATIC NET Manual Collection CD

The online help integrated in the software (F1 key)

CP 1616/CP 1604
C79000-G8976-C218-01 5
Preface

Structure of the Documentation

The table below provides an overview of the information available on the CDs
supplied.

Name of the Document Why you should read it


Getting Started These documents provide concrete examples
PROFINET IO Getting Started: to guide you through the individual
Collection commissioning steps to create a functional
application.
Manual This provides you with the basics of the topics
PROFINET System involved in PROFINET IO:
Description Network components, data exchange and
communication, PROFINET IO, Component
Based Automation, application example
PROFINET IO, and Component Based
Automation.
Manual Read this document if you already have a
From PROFIBUS DP to PROFIBUS system installed and want to
PROFINET IO convert to a PROFINET system.
Readme file This provides you with the latest information on
for "CP 1616/CP 1604 and DK- the SIMATIC NET CP 1616/CP 1604 products
16xx PN IO" and the Developer Kit.
Operating Instructions Provides a step-by-step guide to installing the
(compact) CP 1616 in your PC.
CP 1616
CP 1604
Operating Instructions Provides you with all the information you
CP 1616 require for operation.
CP 1604
Configuration Manual This provides you with the information you
Commissioning PC Stations require to commission and configure a PC as a
PROFINET IO controller or IO device.
Manuals This manual introduces you to industrial
SIMATIC NET Industrial communication and explains the available
Communication with PG/PC communication protocols. It also describes the
Part 1 Basics OPC interface as an alternative to the IO Base
SIMATIC NET Industrial user programming interface.
Communication with PG/PC
Part 2 Interfaces
Manual Configure and set up your Industrial Ethernet
SIMATIC NET Twisted Pair networks based on this document.
and Fiber-Optic Networks
Product information bulletin This explains where to find further support.
Technical Support, Contacts
and Training

CP 1616/CP 1604
C79000-G8976-C218-01 6
Preface

Aids to Finding Information

To help you find your way through the manual, we have provided not only the table
of contents, but also the following sections in the appendix:

Glossary

Index

Technical Support, Contacts and Training

You will find information on technical support, contact persons and training in the
separate document "DC_support_99.PDF on the SIMATIC NET CD.

Certification

The products and systems listed in this document are manufactured and marketed
using a quality management system complying with DIN ISO 9001 and certified by
DQS. The DQS certificate is recognized in all IQNet countries (certificate register
no. 2613).

CP 1616/CP 1604
C79000-G8976-C218-01 7
Preface

CP 1616/CP 1604
C79000-G8976-C218-01 8
Contents

1 Information in the "Operating Instructions (compact)" of the CP 1616 or


CP 1604.......................................................................................................................... 11
2 Diagnostics with SNMP................................................................................................ 13
2.1 SNMP and CP 1616/CP 1604 ........................................................................... 13
2.2 SIMATIC NET SNMP OPC Server .................................................................... 15
2.3 Variables of the MIB-II Standard ....................................................................... 17
2.4 Private MIB of a CP 1616/CP 1604 ................................................................... 20
3 Diagnostics over the WEB........................................................................................... 23
3.1 "Overview" Tab .................................................................................................. 24
3.2 "IP Configuration" Tab ....................................................................................... 26
3.3 "Port Status" Tab ............................................................................................... 28
3.4 "Port Statistics Tab ........................................................................................... 30
4 IO Router ....................................................................................................................... 31
4.1 What is IO routing and when is it used? ............................................................ 32
4.2 What types of IO routing exist? ......................................................................... 33
4.3 How does the IO router work?........................................................................... 34
4.4 Examples of Reading and Writing ..................................................................... 36
4.4.1 Example of Reading Input Data......................................................................... 37
4.4.2 Example of Reading Output Data...................................................................... 38
4.4.3 Example of the Main and Robot Controller Writing Output Data....................... 39
4.4.4 Summary of the Properties of IO Routing.......................................................... 41
4.5 Configuring IO Routing ...................................................................................... 42

Glossary ..................................................................................................................................... 43
Index ........................................................................................................................................... 45

For information on technical support, contacts and training,


refer to the PDF file "DC_support_99.PDF on the SIMATIC NET CD.

CP 1616/CP 1604
C79000-G8976-C218-01 9
Contents

CP 1616/CP 1604
C79000-G8976-C218-01 10
Information in the "Operating Instructions
(compact)" of the CP 1616 or CP 1604 1

Where the Information is Located

You will find basic information on the CP and installing it in the "Operating
Instructions (compact) of the CP 1616 or CP 1604. This information covers the
following:

Description of the CP 1616/CP 1604

Installing and connecting up the CP 1616/CP 1604

Fault and system message displayed by LEDs on the front panel of the
module.

Technical specifications

You will find all other information in these operating instructions.

CP 1616/CP 1604
C79000-G8976-C218-01 11
Information in the "Operating Instructions (compact)" of the CP 1616 or CP 1604

CP 1616/CP 1604
C79000-G8976-C218-01 12
Diagnostics with SNMP
2
2.1 SNMP and CP 1616/CP 1604

Diagnostics with SNMP

Using SNMP (Simple Network Management Protocol), a network management


station can configure and monitor SNMP-compliant devices. To allow this, a
management agent is installed on the device with which the management station
exchanges data using Get and Set requests.

MIB

A MIB (Management Information Base) is a type of database containing the


description of the objects and functions of a device. SNMP clients access this
information.

A distinction is made between standardized and private MIBs:

Standardized MIBs are described in RFC documents.

Private MIBs contain product-specific expansions.

MIB II describes a set of SNMP variables that is normally supported by all


SNMP-compliant devices.

CP 1616/CP 1604
C79000-G8976-C218-01 13
Diagnostics with SNMP

SNMP V1 and SNMP V2 Protocols

With the SNMP V1 and SNMP V2 protocols, all the objects of MIB-II relevant for
the product and the objects of a private MIB can be queried.

SNMP-compliance of a CP 1616/CP 1604

A management agent is integrated in the CP 1616/CP 1604.

The CP 1616/CP 1604 supports the SNMP V1 and SNMP V2 protocols.

In the MIB-II, the CP 1616/CP 1604 contains all groups except "egp and
transmission" and "at".

Security Concept

Access with SNMP is controlled by the concept of communities.

Access Community
Read-only access public
Read and write access private

Meaning of the Abbreviations/Acronyms and Sources of Further Information

In the following table, you can see the meaning of the abbreviations/acronyms
used above and can also see where you can obtain further information.

Abbreviation/ Meaning Further


acronym information
SNMP Simple Network Management Protocol RFC 1157
SNMP V2 Simple Network Management Protocol RFC 1901 and
Version 2 (administration, protocol RFC 1905
operations and security)
SMIv1 Structure and Identification of RFC 1155
Management Information Describes
the structure of MIB objects.
MIB-II Management Information Base, Version 2 RFC 1213
Private MIB MIB with product-specific expansions Section 2.4

CP 1616/CP 1604
C79000-G8976-C218-01 14
Diagnostics with SNMP

2.2 SIMATIC NET SNMP OPC Server

Description

The SIMATIC NET SNMP OPC server makes available the SNMP information from
TCP/IP networks on the OPC interface with SNMP. Using the SIMATIC NET
SNMP OPC server, any OPC client systems can access diagnostic and parameter
data of SNMP-compliant components, for example the product WinCC.

Non SNMP-compliant components can also be included in the plant visualization


using their IP addresses. Apart from simple device diagnostics, this also allows
detailed information such as the network load distributions of entire TCP/IP
networks. With the additional monitoring of this data, device failures can be
detected and localized quickly. This improves operational reliability and increases
plant availability. You configure the devices to be monitored by the SIMATIC NET
SNMP OPC-Server with STEP 7 (alternatively with NCM PC).

You will find further information on the SIMATIC NET SNMP OPC server on the
Internet at the URL:
http://www.siemens.com/snmp-opc-server

Note
The SIMATIC NET SNMP OPC server is not part of this product.

CP 1616/CP 1604
C79000-G8976-C218-01 15
Diagnostics with SNMP

Profile Files and MIB Compilers

The range of information that can be monitored by the devices with the SIMATIC
NET SNMP OPC server depends on the particular device profile.

With the integrated MIB compiler of STEP 7/NCM PC, existing profiles can be
modified and new device profiles created for any SNMP-compliant device. It
requires MIB files according to the SMIv1 standard.

The SMIv1 MIB of the CP 1616/CP 1604 ("sncp1616.mib"/"sncp1604.mib") and a


complete device profile ("Profil_CP1616_V20.txt"/"Profil_CP1604_V20.txt") are
available on the supplied product CD or can be downloaded from Support.

For CP... Download Address


CP 1616 http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csi
nfo&objid=22414405
CP 1604 http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csi
nfo&objid=22414406

CP 1616/CP 1604
C79000-G8976-C218-01 16
Diagnostics with SNMP

2.3 Variables of the MIB-II Standard

Variables in the "System" Directory

The following table shows several SNMP variables of the MIB II standard for
monitoring the device standard from the "System" directory:

Variable Access Description


Rights
sysDescr Read-only Contains a vendor-specific identification of the device,
for example "SIEMENS", "SIMATIC NET", "CP 1616"
or "CP 1604".
A string with up to 255 characters is used.
Data type: DisplayString
sysObjectID Read-only Address (OID Object Identifier) at which the
device-specific SNMP variables are accessible and.
On the CP 1616/CP 1604, the OID is:
1.3.6.1.4.1.4196.1.1.9.1 for CP 1616
1.3.6.1.4.1.4196.1.1.9.2 for CP 1604
sysUpTime Read-only Time since the last reset, for example since power-up
This information is in multiples of hundredths of
seconds.
sysContact Read and Here, you can enter the name of a contact person;
write factory default empty string.
The possible value is a string with a maximum of 255
characters.
sysName Read and Name for the device; factory default empty string
write The possible value is a string with a maximum of 255
characters.
sysLocation Read and Location of the device; factory default empty string.
write The possible value is a string with a maximum of 255
characters.
sysServices Read-only Indicates the functions (services) provided by the
component according to the ISO/OSI model. Each bit
stands for one of seven OSI layers.
For the CP 1616/CP 1604, the "OPC Scout" program
displays the value "74" dec. (01001010 binary or 4A
hex). Converted to a binary value, this means the
following decoded from the back:
Bit 2 set Layer 2, primary switching
Bit 4 set Layer 4, configuration with RFC 1006
Bit 7 set Layer 7, PROFINET IO

CP 1616/CP 1604
C79000-G8976-C218-01 17
Diagnostics with SNMP

Variables in the "Interfaces" Directory

The following table shows several SNMP variables of the MIB II standard for
monitoring the device standard from the "Interface" directory:

SNMP Access Description


Variable Rights
ifDescr Read- Description of and possibly other information on a port.
only The possible value is a string with a maximum of 255 characters;
fro example "SIEMENS", "SIMATIC NET", "CP1616", "<MLFB>",
"HW:<hardware version>", "FW:<firmware version>", "Fast
Ethernet Port <port number>".
Explanation: The current value is entered in the pointed
brackets.
Data type DisplayString
ifInErrors Read- Number of received packets not passed to higher protocol layers
only due to detected errors.
Data type: Counter
ifLastChange Read- Time the selected port has been in its current status; see
only "ifOperStatus".
The information is in multiples of hundredths of seconds.
Data type: TimeTicks
ifNumber Read- Number of different interfaces available in the component.
only For a CP 1616/CP 1604, the value 5 is displayed for this variable
(4 physical ports + 1 virtual port for the CP 1616/CP 1604 itself).
Data type: Integer
ifOperStatus Read- Current operating state of the Ethernet port
only The following values are possible:
1: up
2: down
Data type: Integer
ifOutErrors Read- Number of packets not sent due to an error.
only Data type: Counter
ifPhysAddress Read- MAC address of the CP 1616/CP 1604
only Data type: PhysAddress
ifSpeed Read- Data transfer rate of the Ethernet port in bits per second.
only For the CP 1616/CP 1604, either 10 Mbps or 100 Mbps is
displayed.
Data type: Gauge

Table continued on next page

CP 1616/CP 1604
C79000-G8976-C218-01 18
Diagnostics with SNMP

continued

SNMP Access Description


Variable Rights
ifType Read- For the CP 1616/CP 1604, the value 6 (ethernet-csmacd) is
only entered.
Data type: Integer
ifSpecific Read- Specific reference
only Here, a fixed value ".0.0" is used because there is no reference.
Data type OBJECT IDENTIFIER

Port Indexes

Port-specific objects can be addressed with "SNMPvariable.portnumber.

For the CP 1616/CP 1604, the interface index corresponds to the port number.

The virtual port has the number 5.

Example
The "IfOperStatus.1" variable determines the operating state (up, down etc.) of port
1 of the CP 1616/CP 1604.

CP 1616/CP 1604
C79000-G8976-C218-01 19
Diagnostics with SNMP

2.4 Private MIB of a CP 1616/CP 1604

Only Variables for the LED Status

The private MIB contains the following variables for the LED status:

Variable Access Description of Meaning of the Values


Rights the Variable
snCp1616BFLedVal/ Read- Status of the bus Data type for all LED value
snCp1604BFLedVal only fault LED variables: Integer
snCp1616SFLedVal/ Read- Status of the Possible values are:
snCp1604SFLedVal only system error LED
Value Meaning
snCp1616RunLedVal/ Read- Status of the 1 LED off
snCp1604RunLedVal only RUN-LED 2 LED on
snCp1616StopLedVal/ Read- Status of the 3 LED flashing
snCp1604StopLedVal only STOP-LED 4 LED flashing fast

snCp1616BFLed/ Read- Status of the bus Data type for all LED variables:
snCp1604BFLed only fault LED DisplayString
snCp1616SFLed/ Read- Status of the Possible values are:
snCp1604SFLed only system error LED
String Meaning
snCp1616RunLed/ Read- Status of the off LED off
snCp1604RunLed only RUN-LED on LED on
snCp1616StopLed/ Read- Status of the blink LED flashing
snCp1604StopLed only STOP-LED fastBlink LED flashing fast

Note
For the meaning of the signals indicated by the LEDs, refer to the Operating
Instructions (compact), Section "Front elements in the section "LED Display.

CP 1616/CP 1604
C79000-G8976-C218-01 20
Diagnostics with SNMP

Virtual LEDs

Remember that apart from the LEDs visible on the front panel, there are also two
"virtual" LEDs in the firmware. These are the LEDs "RUN" and "STOP". They do
not exist physically but can nevertheless be queried over SNMP.

Object Identifier (OID)

On the CP 1616
The private MIB variables of the CP 1616 have the following object identifier (OID):
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).siemensAD(4196).
adProductMibs(1).simaticNet(1).iCP(9).iCP1616(1)

On the CP 1604
The private MIB variables of the CP 1604 have the following object identifier (OID):
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).siemensAD(4196).
adProductMibs(1).simaticNet(1).iCP(9).iCP1604(2)

CP 1616/CP 1604
C79000-G8976-C218-01 21
Diagnostics with SNMP

CP 1616/CP 1604
C79000-G8976-C218-01 22
Diagnostics over the WEB
3
Overview

The CP 1616/CP 1604 contains its own Web page on the module that calls up
current operating data.

You can display the Web page with a standard Web browser such as the Microsoft
Internet Explorer once the communications processor has been assigned an IP
address.

Opening the Web Page

You can call up the Web page of the CP 1616/CP 1604 by entering the IP address
in the address field of your Web browser.

The Web page of the CP 1616/CP 1604 opens. You can read out the operating
data using four tabs.

CP 1616/CP 1604
C79000-G8976-C218-01 23
Diagnostics over the WEB

3.1 "Overview" Tab

Description

The "Overview tab below, shows the characteristic data and the mode based on
the example of the CP 1616.

CP 1616/CP 1604
C79000-G8976-C218-01 24
Diagnostics over the WEB

Description of the Parameters

The following table contains a description of the parameters displayed in the


"Overview tab.

Field Name Description


Device Type Type of module in the SIMATIC environment
The CP 1616/CP 1604 is always the type "S7-PC".
Device Name Device name of the module Displayed as
configured in STEP 7.
Vendor Manufacturer of the module
Order Number Order number of the module
Firmware Version Firmware version of the module Important if
you have been using the module for a long time
and want to check whether or not there are
firmware updates.
Driver Version Version of the SIMATIC NET device driver of the
CP 1616/CP 1604
Bootloader Version Version of the bootloader
Hardware Version Hardware version of the module
Operation Mode Current status of the module During operation
the mode is RUN. In STOP mode, there is either a
problem or the CP has been stopped, for example
by a PG.
Status Indicates whether or not the CP is operating error-
free.

CP 1616/CP 1604
C79000-G8976-C218-01 25
Diagnostics over the WEB

3.2 "IP Configuration" Tab

Description

The "IP Configuration tab below, shows the network configuration based on the
example of the CP 1616.

CP 1616/CP 1604
C79000-G8976-C218-01 26
Diagnostics over the WEB

Description of the Fields

The following table contains a description of the parameters displayed in the "IP
Configuration tab.

Field Name Description


MAC Address (Layer 2) MAC address of the module for layer 2 operation
MAC Address (PROFINET) MAC address of the module for PROFINET IO
operation
IP Address Displays the IP address used for PROFINET.
IP Subnet Mask Subnet mask for the TCP/IP protocol with which
PROFINET IO operates.
Default Gateway Gateway address for the TCP/IP protocol with
which PROFINET IO operates.

CP 1616/CP 1604
C79000-G8976-C218-01 27
Diagnostics over the WEB

3.3 "Port Status" Tab

Description

The "Port Status tab below shows the status data of the network ports based on
the example of the CP 1616.

CP 1616/CP 1604
C79000-G8976-C218-01 28
Diagnostics over the WEB

Description of the Fields in the "Port Status" Tab

The table of the "Port Status" tab is described below.

Table Column Description


Port Number of the Ethernet port of the module
Port 1 is identified on the module to allow an
assignment.
Speed Indicates the data transmission speed of the
corresponding port in bits per second
Possible displays are as follows:
10 Mbps
100 Mbps
No Link
Duplex mode Half or full duplex Possible displays are:
Half Duplex
Full Duplex
No Link

CP 1616/CP 1604
C79000-G8976-C218-01 29
Diagnostics over the WEB

3.4 "Port Statistics Tab

Description

The "Port Statistics tab below shows the statistical data of the integrated switch
based on the example of the CP 1616.

Tables in the "Port Statistics" Tab

The following tables describe the contents of the tables in the "Port Statistics" tab.

Table Description
Statistics Here you can see how many bytes or how many frames were
Throughput sent and received for each port.
per port
Note
The statistical information is reset to 0 once the maximum count
is reached.
Statistics The number of sent and received packets is displayed for each
Packet Size port; 1 column per packet size.
per port
Note
The statistical information is reset to 0 once the maximum count
is reached.

CP 1616/CP 1604
C79000-G8976-C218-01 30
IO Router
4
This section answers the following questions:

What is IO routing?

When is IO routing used?

What types of IO routing exist?

How does the IO router work?

Configuring an IO router is described in the configuration manual "Commissioning


PC Stations. This is on the SIMATIC NET CD supplied with the CP 1616/CP 1604
product.

CP 1616/CP 1604
C79000-G8976-C218-01 31
IO Router

4.1 What is IO routing and when is it used?

Definition

Using IO routing, process data is exchanged between two PROFINET IO systems.

Example
A process controller user program controls a robot.
IO routing makes input/output data of the robot controller accessible to a main
controller that can both read and write the data.

IO routing is a function that is configured for the IO Base interface.

PROFINET IO controller

Main controller PC station

IO device Process controller user


user program program

IO router

CP 1616/CP 1604
Process image Process image

PN IO Industrial Ethernet

SIMATIC S7
ET 200S

PROFINET IO devices

When does it make sense to use IO routing?

The advantages of IO routing are in situations when a complex plant or machine is


planned with networked PROFINET IO systems.

Note
IO routing functionality is available only with PROFINET IO RT.

CP 1616/CP 1604
C79000-G8976-C218-01 32
IO Router

4.2 What types of IO routing exist?

Read and write

From the perspective of the main controller, there are three IO routing tasks:

Reading process inputs

Writing process outputs

Reading process outputs

Reading Process Inputs

Inputs are always read module-oriented.


This means that the main controller (and the process controller) can only ever read
all bits of a module.

Writing Process Outputs

When writing process outputs, on the other hand, there are two possible ways of
writing:

Writing module-oriented
All process outputs of a module are written by the main controller (module-
oriented).

Writing bit-oriented
Individual configured process output bits or bit areas are written by the main
controller.

Reading Process Outputs

Outputs are always read module-oriented.


This means that the main controller can only ever read all bits of a module.

CP 1616/CP 1604
C79000-G8976-C218-01 33
IO Router

4.3 How does the IO router work?

Requirements

A CP 1616 or CP 1604 communications processor is required in a PC station. Only


these CPs can be both IO controller and IO device at the same time.

Configuration

The CP is first configured as an IO controller. Its process controller user program


serves the IO devices assigned to it on the Ethernet bus.

The same CP is also configured as an IO device of a main controller. This


IO device is assigned transfer modules in the configuration that represent the
routed data.

Note 1
The program for this IO device on the PC station can be any IO device user
program. It must simply run through the full initialization phase according to the
IO Base user program.

Note 2
You do not need to worry about the transfer modules in your C user program
because they are managed by the system itself.
A sample C program for an IO device user program ("dev_easy) is available on
the SIMATIC NET software product CD.

Data Exchange

The data exchange between the input/output data of the process controller and
input/output data of the main controller is established automatically by the IO
router.

Input data is transferred only module-oriented.

If you also use the function for writing outputs bit-oriented, the data from the
process controller user program is "mixed" with the data of the main controller
according to the configuration; see Section 4.4.

CP 1616/CP 1604
C79000-G8976-C218-01 34
IO Router

Note on the IO-Base User Programming Interface

To support IO router functions, there are also two diagnostics services available
(PNIO_CTRL_DIAG_CONFIG_IOROUTER_PRESENT,
PNIO_CTRL_DIAG_CONFIG_OUTPUT_SLICE_LIST). Using these services, all
output areas that can be written by the process controller user program can be
identified.

CP 1616/CP 1604
C79000-G8976-C218-01 35
IO Router

4.4 Examples of Reading and Writing

Introduction

The examples provided here describe the IO router functions.

Description

A PC station contains an IO controller user program known as the process


controller that serves its IO devices over a CP 1616/CP 1604.

Outside the PC station, there is an external IO controller known as the main


controller that can write and read input/output bits of the process controller over
the IO router.

Process data is exchanged using the IO router functions.

PROFINET IO controller

PC station
Main controller
with CP 1616/CP 1604

IO device Process controller user


user program program

IO router

CP 1616/CP 1604

Process image Process image

PN IO Industrial Ethernet

SIMATIC S7
ET 200S

PROFINET IO devices

CP 1616/CP 1604
C79000-G8976-C218-01 36
IO Router

4.4.1 Example of Reading Input Data

Description

The input modules with addresses 100.0 to 100.7 and a length of 1 byte are read
by the process controller user program.

The table and the schematic illustrate that all bits of module 100 can be read by the
main controller over transfer module 1.

I/O bits of the Transfer relation (from the I/O bits of the process
main controller perspective of the main controller
controller)
1.0 Read 100.0
to to
1.7 Read 100.7

Main controller PC station


with CP 1616/CP 1604

IO device Process controller user


user program program

Process image Process image


Transfer relation

1.0 to 1.7 100.0 to 100.7

CP 1616/CP 1604
C79000-G8976-C218-01 37
IO Router

4.4.2 Example of Reading Output Data

Description

The output modules with addresses 100.0 to 100.7 and a length of 1 byte are
written by the process controller user program. The main controller reads this data.

The table and schematic show which bits are read by the main controller via
transfer module 1.

I/O bits of the Transfer relation (from the I/O bits of the process
main controller perspective of the main controllers
controller)
1.0 Read 100.0
to to
1.7 Read 100.7

PC station
Main controller with CP 1616/CP 1604

IO device Process controller user


user program program

Process image Process image


Transfer relation

1.0 to 1.7 100.0 to 100.7

CP 1616/CP 1604
C79000-G8976-C218-01 38
IO Router

4.4.3 Example of the Main and Robot Controller Writing Output Data

Description

Both the process controller and the main controller will write input/output bits in
output module 100. A transfer relation is therefore configured for address 1 in the
transfer module.

The table and schematic show which bits are written by the main controller and
which by the process controller.

I/O bits of the Transfer relation I/O bits of the IO router


main controller (from the perspective process configuration
of the main controller assigns to
controller)
1.5 Write 100.0 Main controller
1.6 Write 100.1
100.2 Process controller
to
100.7

CP 1616/CP 1604
C79000-G8976-C218-01 39
IO Router

Main controller PC station


with CP 1616/CP 1604

IO device Process controller user


user program program

Process image Process image


Transfer relation

1.0 1.5 1.6 1.7 100.0 100.1 100.2 to 100.7

Note
The process controller user program always writes byte-oriented on the IO Base
user programming interface.
Bits 100.0 and 100.1 are, however, replaced by the bits of the main controller by
the IO router.

CP 1616/CP 1604
C79000-G8976-C218-01 40
IO Router

4.4.4 Summary of the Properties of IO Routing

Read

Both IO controllers can read input modules of the process device at the same time.

Write

An output bit can only be written by one of the two IO controllers.

Two IO controllers can nevertheless write different bits of the same output byte.

Write/read access by the process controller to the input/output data of the process
image is module- and byte-oriented over the IO Base interface.

Notice
The process controller may not write to output modules in the process image that
are configured fully for write access by the main controller.

Data Status

Note the following about the data status if two IO controllers write to the same
module:

Note
The local data status of a module written by two IO controllers is only GOOD if the
local status of both writes is GOOD.

CP 1616/CP 1604
C79000-G8976-C218-01 41
4.5 Configuring IO Routing

Description

You configure the IO router in the STEP 7/NCM PC program.

In principle, the IO router is configured as follows.

Step Description
1 Configure the CP 1616 in two networks:
In the network of the main controller as IO device
In the network of the process controller as IO controller
2 Configure the IO router:
Reading input modules is illustrated by example 1.
Writing outputs bit-oriented is illustrated by example 2.

Note
For a more detailed description of the configuration of IO routing, refer to the
configuration manual "Commissioning PC Stations.

CP 1616/CP 1604
C79000-G8976-C218-01 42
Glossary

Communications Communications processors are modules for point-to-point and bus


processor links.

CP Communications Processor

IO controller see PROFINET IO controller.

IRT Isochronous real time Isochronous real-time on Ethernet basis in


which data packets are transferred at constant intervals.

Local status Status of data in the local device Status of the IO data (GOOD or
BAD) that the local IO Base user program writes to this IO data in the
local device. Both the output data to be written and the input data to be
read are assigned a local status.

PROFINET device Device on Ethernet. A PROFINET device can also have a PROFIBUS
port and act as master and proxy PROFINET device for PROFIBUS
devices.

PROFINET IO Heterogeneous communication and engineering model for real-time


communication between PROFINET components. PROFINET IO, for
example, provides protocol elements for the cyclic transfer of
productive data.

PROFINET IO A PROFINET IO controller exchanges IO signals with assigned field


controller devices and makes them available to the user program.

PROFINET IO device A PROFINET IO device is a distributed IO device that is logically


assigned to a PROFINET IO controller.

PROFINET IO system A PROFINET IO system consists of an IO controller and its assigned IO


devices.

CP 1616/CP 1604
C79000-G8976-C218-01 43
IO Router

Remote status Status of data on the communication partner Status of the IO data
(GOOD or BAD) transferred from the communication partner. Both the
output data to be written and the input data to be read are assigned a
remote status.

SIMATIC NET Product name for networks and network components from Siemens.
Formerly SINEC.

Transfer modules Transfer modules do not exist physically and are used as endpoints of
the transfer relations in the address space of the main controller.

Transfer relation A transfer relation defines the mapping of the input/output bits of the
lower-level address space to the address space of the main controller.

CP 1616/CP 1604
C79000-G8976-C218-01 44
Index

D P
Diagnostics with SNMP ........................... 13 Product documentation..............................5
I S
IO routing Structure of the documentation..................6
Configuring IO routing.......................... 42
W
Definition of IO routing ......................... 32
Web page
Example of reading input data ............. 37
IP Configuration....................................25
Example of reading output data........... 38
Overview ..............................................23
Example of writing output data ............ 39
Port Statistics .......................................29
Properties of IO routing........................ 41
Port Status............................................27
Types of IO routing .............................. 33

CP 1616/CP 1604
C79000-G8976-C218-01 45
IO Router

CP 1616/CP 1604
C79000-G8976-C218-01 46