SIMATIC TIA Portal: Distributed I/O
SIMATIC TIA Portal: Distributed I/O
Contents 14
AR
14. Distributed I/O....................................................................................................... 14-2
14.1. Task Description: Operating the Conveyor Model via the ET 200SP Distributed I/O......... 14-3
14.2. Distributed I/O Systems ...................................................................................................... 14-4
14.2.1. ET 200SP ............................................................................................................................ 14-5
14.2.2. ET 200MP ........................................................................................................................... 14-7
14.2.3. Overview: Distributed Signal Modules ................................................................................ 14-9
14.3. Fieldbus Systems for SIMATIC S7 ................................................................................... 14-10
14.3.1. Identification of Distributed I/O Devices ............................................................................ 14-11
14.3.2. Components of the PROFINET Standard ......................................................................... 14-12
14.4. Inserting and Networking Distributed I/O .......................................................................... 14-16
14.4.1.
14.4.2.
14.5.
PROFINET IO Device ET 200SP:
14.6.6. Exercise 6: Setting the Channel Parameters of the Analog Modules ............................... 14-26
14.6.7. Exercise 7: ET 200SP: Assigning the IP Address / PROFINET Name OFFLINE ............ 14-27
14.6.8. Exercise 8: ET 200SP: Assigning the PROFINET Name ONLINE................................... 14-28
14.6.9. Exercise 9: Creating a New Device Group and Grouping Devices .................................. 14-29
14.6.10. Exercise 10: Compiling the Changes and Downloading them into the Device ................. 14-30
14.6.11. Exercise 11: Adjusting the S7 Program via "Rewiring" ..................................................... 14-31
14.6.12. Exercise 12: Function Test with Conveyor Model via Distributed I/O ............................... 14-32
14.7. Additional Information ....................................................................................................... 14-33
14.7.1. Installing Distributed Peripheral Components Later On via GSD ..................................... 14-34
SI
AR
… be familiar with the PROFINET and PROFIBUS bus
systems
N
AI
TR
SI
Operation
"P_operation" %Q0.1
AR
DI DI DO AI AO
Initialization left
"P_initLeft" %Q0.5
DI DO AI
Initialization right
"P_initRight" %Q0.6
Task Description
N
Industrial Ethernet
AI
• The conveyor model is no longer to be controlled via the DI/DO modules of the S7-1500
central device, but is to be controlled via the DI and DO modules of the distributed ET 200SP
station.
• For this, the ET 200SP must be networked with the central S7-1500 station via PROFINET
and the S7 program has to be adjusted.
TR
SI
AR
SIMATIC ET 200pro SIMATIC ET 200iSP
- Modular and multi-functional: Motor - Intrinsically safe (Ex i)
starters, RFID modules, CPU, Frequency - modular fail-safe modules
inverters, Power and Fail-safe modules - PROFIBUS
14.2.1. ET 200SP
AR
DI DO AI AO
Color coding of the module class
AR
Measuring point
Bus termination
Load group 1
module (server
module)
14.2.2. ET 200MP
AR
e.g. 32 DI or 32 DO per module
N
The ET 200MP enables the distributed connection of S7-1500 series central I/O modules.
Connection is made using an interface module.
AI
TR
SI
● Maximum of 32 modules
→ 1st. module = system power supply (PS)
→ 2nd. module = interface modules
→ 3rd.-32nd. module = max. of any 30 I/O modules of the S7-1500
R
(similar to centralized configuration of S7-1500)
A
(optional)
I N
A
T R
S I
TIA-PRO1 - Distributed I/O
14-8 Training Document, V16.00.00
SIMATIC TIA Portal Programming 1
DI/DO
AR
AI/AO
F-DI/F-DO
F-AI
N
The ET 200SP and ET 200MP product range will be expanded in the next years such that these
two product lines completely cover the applications of the ET 200S and ET 200M.
AI
The ET 200pro (interface modules for connection to PROFINET or PROFIBUS) in the degree of
protection IP65/67 for use directly at the machine will continue to be offered.
TR
SI
PROFINET
... ...
AR
PROFIBUS Most important selection criteria:
PROFINET PROFIBUS
Topology (wiring) Line, Star, Ring Line
Max. transmission speed 100Mbit/s 12Mbit/s
Max. cable length 100m ÷
Max. segment length ÷ 1000m
Max. number of segments ÷ 10
Max. number of devices/slaves
per segment 512 125
...
• PROFIBUS
It is the bus system for local area networks (LANs) with only a few participants. Through its
fulfillment of requirements according to EN 50170, PROFIBUS ensures openness for the
connection of standard-conforming components of all manufacturers.
Due to the physical and communication-related differences of the two bus systems, there are
various criteria which are used for the selection of the most suitable bus system.
PROFIBUS - Slave
PROFINET PROFIBUS
I/O Controller Master
PROFIBUS
AR
PROFIBUS Address: e.g. 19
→ Setting using DIP switch on the slave
N
Distributed I/O Devices
During start-up, the CPU searches the configured PNIO devices or DP slaves and parameterizes
these according to the loaded device configuration.
AI
Both fieldbus systems use different methods for identifying I/O modules:
• PROFIBUS
The set PROFIBUS address is used to search for the configured DP slave.
The setting is typically made through the DIP switch on the slave.
• PROFINET
TR
The assigned device name is used to search for the configured PNIO device.
The assignment of the device name (device initialization) is done from the STEP7 engineering
through an online function.
The parameterized IP address is then assigned to the PNIO device by the PNIO controller
(CPU).
SI
AR
PROFIenergy Coordinated and centrally controlled switch-off of power
consuming devices during break times
Process
Safety Real-Time
Communi-
PROFI- cation
energy
Distributed
PROFINET Field devices
IT-Standards
& Security
Motion
Network Control
Installation Distributed
Intelligence
PROFINET
N
It completely covers the requirements of automation. PROFINET brings together the expertise of
PROFIBUS and Industrial Ethernet. The utilization of the open standard, the easy handling and
AI
the integration of existing parts of a system (e.g. a plant) determined the definition of PROFINET
right from the beginning.
PROFINET IO
With PROFINET IO, the integration of distributed field devices takes place directly on the
Ethernet. For that, the Master-Slave procedure from PROFIBUS DP is carried over into a
TR
Provider-Consumer model. From the communication point of view, all devices on the Ethernet
have equal rights. Through the configuration, however, the field devices are assigned to a central
controller. The distributed I/O device reads-in the I/O signals and transfers them to the controller.
The controller processes them and transfers the outputs back to the distributed I/O device.
PROFIdrive
With PROFIdrive, very fast, clock-synchronous drive controls for high performance Motion Control
applications are implemented.
PROFIsafe
SI
With PROFIsafe, the network infrastructure already existing for standard communication can also
be used at the same time for fail-safe communication. The existing bus protocols, such as,
PROFIBUS and PROFINET (so-called "black channel") are used to transport fail-safe data as
additional data (so-called PROFIsafe layer).
PROFIenergy
PROFIenergy permits a coordinated and centrally controlled switch off of power consuming
devices during break times. In this way, the process uses only the absolute necessary energy.
The process itself saves the majority of the energy, the PROFINET device itself only has a
savings potential of several watts. For PROFIenergy, this operating state is called "Pause".
PG
AR
PROFINET IO-Devices
S7-300 ET 200eco PN
ET 200S
PROFINET IO-Controller
N
The IO-Controller (typically the PLC) establishes a logical connection to the connected IO-
Devices after Power-On and subsequently parameterizes these (module parameters, address,
AI
etc.). (This corresponds to the function of a Class 1 Master in PROFIBUS).
PROFINET IO-Device
An IO-Device is a distributed IO device that is connected via PROFINET IO (this corresponds to
the function of a slave in PROFIBUS).
Differentiation is made for the following IO-Device types:
TR
IO-Supervisor
This can be a programming device (PG), personal computer (PC) or Human Machine Interface
(HMI) for commissioning or diagnostic purposes. (This corresponds to a Class 2 Master in
SI
PROFIBUS).
Ethernet Switch
PROFINET is based on Ethernet. For that reason, switches are always used as "network
distributors". Every node is connected to a switch via a so-called "point-to-point" connection. This
is also referred to as a "Switched Ethernet". In most PROFINET devices, a 2 or multi-port
switch is already integrated so that it is very easy to establish a line structure (comparable to
PROFIBUS).
AR
PN/IE_1
Internet Protocol
N
The Internet Protocol (IP) is the basis for all TCP/IP networks. It creates the so-called datagrams
(data packets specially tailored to the Internet protocol) and handles their transport within the
AI
local subnet or their "routing" (forwarding) to other subnets.
IP Addresses
IP addresses consist of 4 bytes. With the dot notation, each byte of the IP address is expressed
by a decimal number between 0 and 255. The four decimal numbers are separated by dots
(see picture).
TR
MAC Address
Every Ethernet interface is assigned a fixed address by the manufacturer that is unique
worldwide. This address is referred to as the hardware or MAC address (Media Access Control).
It is stored on the network card and uniquely identifies the Ethernet interface in a local network.
SI
Cooperation among the manufacturers ensures that the address is unique worldwide.
Subnet Mask
The subnet mask specifies which IP addresses can be accessed in the local network. It separates
the IP address into the network and device part.
Only IP addresses whose network part is the same can be accessed.
e.g.: Subnet mask = 255.255.255.0 and IP address = 192.168.111.10
accessible IP addresses: 192.168.111.1 to 192.168.111.254
Real time
TCP/UDP
AR
Internet Protocol (IP)
2 RT / IRT
Ethernet Protocol
PROFINET based on
Industrial Ethernet!
Real-time Channel
N
To be able to fulfill real-time requirements in automation, an optimized real-time communication
channel, the Real time Channel (RT Channel), was specified in PROFINET. It uses Ethernet
AI
(Layer 2) as a base.
The addressing of the data packets does not take place in this case via an IP address, rather by
means of the MAC addresses of the participating devices. Such a solution minimizes the
throughput times in the communications stack considerably and leads to an increase in
performance with regards to the updating rate of automation data.
TR
IRT Channel
Isochronous Real-time (IRT) as a further development with the following features:
• Clock-synchronous data transmission
• Cycle times <1ms with jitter accuracy <1µs
• Typical field of application is Motion Control
IT Standards
The design of PROFINET WEB Integration focuses on commissioning and diagnostics. Access to
SI
a PROFINET device from the Internet or Intranet is done with standard protocols (for example,
http). The data is transmitted in standard formats such as HTML or XML and can be presented
with standard browsers such as Opera or Internet Explorer.
This worldwide accessibility makes it easy for the application manufacturer to support the user
with commissioning, device diagnostics etc. Access to the data is done via Web servers which
are integrated in the modules.
AR
Inserting Distributed I/O
N
PROFINET IO-Devices are added in the Network view. Here, you can insert the relevant devices
AI
into the project by dragging & dropping them from the Hardware catalog. The correct Firmware
must also be selected here before the device is inserted.
The new device (ET 200SP) is stored in the "Ungrouped devices" folder.
Furthermore, there is a link to the ET 200SP in the "Unassigned devices" folder since it is not yet
assigned to a controller.
After the ET 200SP IO-Device is added, it must be assigned to an IO-Controller or networked with
a CPU. In case there are several CPUs in the network, a co-ordination or monitoring of the I/O
addresses by the IO-Controller and IO-Device can only be done through this unique assignment.
If the ET 200SP is assigned to a Controller, the link is stored in the "Distributed I/O" subfolder of
the Controller.
The actual device is still stored in the "Unassigned devices" folder.
SI
I/O Modules
Just as for a CPU, the individual input and output modules can be configured and assigned
parameters in the Device view. For this, the device is selected and the Device view opened or in
the Device view, the relevant device is selected via the selection menu.
AR
IP Address, Subnet Mask and PROFINET Device Name
N
AI
For communication with the IO-Controller, a PROFINET device name must be assigned to the IO-
Device (ET 200SP) OFFLINE. The IO-Controller then assigns the IO-Device a valid IP address. If
the IO-Device is assigned an IP address OFFLINE, this IP address is adopted. These parameters
are downloaded to the IO-Controller (CPU) with the programming device. The IO-Controller
(CPU) then transfers these and other parameters (such as, the I/O addresses) to the IO-Device
(ET 200SP).
Attention:
TR
Only the PROFINET device name is relevant for the transmission of the offline configuration into
the online device (Controller), not the IP address. The offline configured PROFINET device name
and the online existing PROFINET device name must match. If the IO-Device has a different
PROFINET device name or doesn’t have a name at all, the IO-Controller cannot transfer the
hardware configuration or the hardware parameter assignments to the IO-Device thus preventing
a PROFINET system startup.
Note:
The IP addresses can also be entered directly in the Network view in the graphic area. For this,
SI
Offline
configured name
AR
1xR
Online
accessible device(s)
AR
N
The individual devices (distributed I/O as well) can all be stored directly in the project. For better
readability of the project, it is recommended to group the individual devices. For this, device
AI
groups can be created in which the individual devices can be stored using drag & drop.
TR
SI
AR
Task Description
N
The ET 200SP distributed I/O station is to be commissioned since the conveyor model is later to
AI
be controlled via its input and output modules.
For this, the ET 200SP station must be configured, assigned parameters and networked with the
S7-1500 station in the offline project.
After compiling the new hardware configuration, it must be downloaded into the CPU. In the
function of an I/O Controller, the CPU then automatically undertakes the parameterization of the
ET 200SP I/O-device.
TR
SI
AR
Task
N
All settings so far (IP address, subnet mask and PROFINET name) of the Interface module and
the memory card of the ET 200SP station are to be deleted through a "Reset to factory settings".
AI
In the following exercises, you will then transfer your own settings onto the ET 200SP station.
What to Do:
1. In the highest level, open the Project tree and here the "Online access". Select the interface
that is connected to your training case.
2. Update the list with the function "Update accessible devices" and wait until the list is
TR
after updating the accessible devices, you will find the ET 200SP in the list without an IP
address and without a device name.
8. Leave all windows open for the next exercise.
MAC address of
the ET200SP
AR
Temporary
IP address
Task
N
In the following exercises, in order to be able to configure an ET 200SP in the offline project
which corresponds exactly to that of the training device, you now have to read out the Firmware
AI
version of the ET 200SP online.
Problem
Due to the previous "Reset to factory settings", the ET 200SP now no longer has a PROFINET
device name nor an IP address, only a MAC address (see top picture). The Firmware version,
however, cannot be read out via the MAC address, since an IP address is required for this
TR
diagnostic service.
What to Do
1. Open the ET 200SP, activate the "Online & diagnostics" function and check whether the
Firmware version is displayed in the menu "Diagnostics -> General".
2. Since the ET 200SP doesn’t have an IP address, no firmware version can be displayed.
1 3. To assign a temporary IP address, switch to the "Functions -> Assign IP address" menu.
4. Enter the temporary IP address as well as the subnet mask shown in the picture.
SI
AR
Task
N
An ET 200SP is to be inserted into the project as a distributed I/O station.
AI
PROFINET IO-Devices are added in the Network view. Here, you can insert the relevant devices
into the project by dragging & dropping them from the Hardware catalog.
The newly added ET 200SP is stored in the Project tree in the "Ungrouped devices" folder and
since it initially is not assigned to any controller, a reference is entered in the "Unassigned
devices" folder.
What to Do
TR
1. In the Project tree, open the editor "Devices & networks" by double-clicking on it.
2. Open the Hardware catalog Task Card and there
Distributed I/O -> ET 200SP -> Interface modules -> PROFINET -> IM155-6PN ST.
3. Select the IM module used in your training device, open the "Information" window and there
select the previously read out Firmware version of your IM module.
4. Using drag & drop, drag the IM module into your project (see picture).
SI
Leave all windows open because they are still needed for the next exercises!
AR
Open / Close
tabular area
Task
N
After the ET 200SP IO-Device is added, it must now be assigned to an IO-Controller or
networked with a CPU. In case there are several CPUs in the network, a co-ordination or
AI
monitoring of the I/O addresses by the IO-Controller and IO-Device can only be done through this
unique assignment.
What to Do
1. In the "Hardware and Network editor", select the Network view and their "Network".
2. Network the ET 200SP with the CPU by connecting the Ethernet interface of the ET 200SP
TR
with the Ethernet interface of the CPU using drag & drop.
3. Select the newly created PROFINET IO system and, in the Inspector window under "I/O
communication", check the generated communication partners.
SI
AR
Task
N
The configuration of the ET 200SP in the offline project must match exactly with the configuration
of your training device.
AI
Attention should be given in particular to the order numbers and versions of the modules.
The ET 200SP has digital and analog input and output modules to which the conveyor model is to
be connected in the following. The address assignment can be made in the Properties of the
individual module, or, as can be seen in the picture, in the "tabular area" of the "Device view".
What to Do
R
1. In the "Hardware and Network editor", select the "Device view" of the ET 200SP.
2. In the Task Cards, open the "Hardware catalog".
3. Configure the ET 200SP station according to your training device.
T
4. Make sure that a new potential group is opened with the AI module on Slot four and set this in
the Properties:
SI
5. Open the tabular area of the "Device view" (see picture) and, in the table, enter the I/O
addresses shown in the picture.
6. Save your project.
AR
Unused
channels
AR
Task
N
AI
The ET 200SP station is later to work with the IP address, subnet mask and PROFINET device
name shown in the picture above.
What to Do
1. In the "Hardware and Network" editor, select the "Device view" of the ET 200SP.
2. Select the IM module on Slot zero and open the "Properties" tab in the Inspector window.
TR
3. There, in the "General" tab, select the "General" menu and under "Name" enter the
PROFINET device name.
4. Then select the "Ethernet addresses" menu and under "IP protocol" enter the IP address and
subnet mask shown (see picture). In the same menu you will also find the PROFINET device
name that you previously edited in the "General" menu. If the property "Generate PROFINET
device name automatically" is activated, it cannot be changed here.
5. Save your project.
SI
Offline
configured name
AR
1xR
Online
accessible device(s)
Task
N
The PROFINET device name previously assigned offline must now be assigned to the ET 200SP
online, so that the IO-Controller or the CPU can assign the offline-configured IP address during
AI
system startup of the ET 200SP.
What to Do
1. In the "Hardware and Network editor", select the "Device view" of the ET 200SP.
2. Right-click on the Interface module or the module on Slot zero and in the menu that appears,
activate the item "Assign device name".
R
3. In the dialog that appears, check the (offline) PROFINET device name.
4. Under "Type of the PG/PC interface", select the interface through which you are connected to
the PROFINET.
5. Under "Device filter", activate the item "Only show devices of the same type".
T
Note:
If the function "Flash LED" is selected in the dialog, then all LEDs flash on the device selected in
the table. For a Panel, the screen would flash.
AR
Task:
N
The devices (Controller, HMI and IO-Device) are to be stored in a common group.
AI
What to Do:
1. Select the Project name and, through the context menu, insert a new device group.
2. Rename it "Area_1"
3. Move the Controller "S7-1500", the HMI "Touchpanel" and the IO-Device
"ET 200SP" into the folder "Area_1".
TR
14.6.10. Exercise 10: Compiling the Changes and Downloading them into the Device
2. Save
AR
Task
N
Now that the PROFINET I/O system is completely configured and parameterized, the project is to
be compiled, saved and downloaded into the CPU.
AI
What to Do
1. Compile the changes by selecting the S7-1500 station in the Project tree and then clicking on
the "Compile" button (see picture). In the Inspector window under "Info", check whether the
compilation was successful. Should errors have occurred, correct them.
2. Save your project.
TR
3. Download the entire station into the CPU by clicking on the "Download" button (see picture).
In the Inspector window under "Info", check whether the loading was successful.
4. Check the module LEDs of your training device: Only green LEDs should be lit and not
flashing!!!
5. Save your project.
Result:
SI
Only green LEDs should be lit on the CPU as well as on all modules of the ET 200SP!
AR
Adjusting the S7 Program via "Rewiring"
N
So that the conveyor model can be operated via the ET 200SP, the PLC tags (input and output
addresses 3) used in the S7 program must be "rewired" to the I/O addresses of the ET 200SP
AI
modules (input and output addresses 4).
The "rewiring" can be carried out directly on the tag in the Blocks editor or, as shown in the
picture, via the PLC tag table.
All "rewiring" done here has immediate effect in the entire program.
What to Do:
TR
6. With the mouse pointer pressed down, drag the small cross onto the address fields below it
so that the change of the byte address is also adopted there.
7. Do the same for rewiring the outputs.
8. Save your project.
9. Compile, save and download the adjusted S7 program.
14.6.12. Exercise 12: Function Test with Conveyor Model via Distributed I/O
DI DO
Operation
"P_operation" %Q0.1
DI DI DO AI AO
AR
Initialization left
"P_initLeft" %Q0.5
DI DO AI
Initialization right
"P_initRight" %Q0.6
Industrial Ethernet
Task:
N
The conveyor model is now to be operated via the ET 200SP station. For this, the conveyor
model connector cable must be connected to the SUB-D connector of the ET 200SP station on
AI
the back of the training case.
With successful commissioning of the ET 200SP IO-Device and rewiring of the S7 program, the
control of the conveyor model should function unchanged.
What to Do
1. Remove the conveyor model connector cable from the connector "S7-1500 DI/DO" on the
TR
back of the training case and insert it in the connector "ET 200 DI/DO".
2. Check whether your system functions unchanged.
SI
AR
N
AI
T R
SI
AR
Find file