90529409 iolink devices appl doc v2 0 en
DESCRIPTION
bTRANSCRIPT
-
https://support.industry.siemens.com/cs/ww/en/90529409
Application Description 05/2015
Application of Block LibrarySiemens IO-Link DevicesET 200SP CM 4 X IO-Link ST, SM1278 4 X IO-Link Master
https://support.industry.siemens.com/cs/ww/en/90529409 -
Warranty and Liability
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 2
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Warranty and LiabilityNote The Application Examples are not binding and do not claim to be complete with
regard to configuration, equipment or any contingencies. The ApplicationExamples do not represent customer-specific solutions. They are only intendedto provide support for typical applications. You are responsible for the correctoperation of the described products. These Application Examples do not relieveyou of the responsibility of safely and professionally using, installing, operatingand servicing equipment. When using these Application Examples, yourecognize that we cannot be made liable for any damage/claims beyond theliability clause described. We reserve the right to make changes to theseApplication Examples at any time and without prior notice. If there are anydeviations between the recommendations provided in this Application Exampleand other Siemens publications e.g. catalogs the contents of the otherdocuments have priority.
We do not accept any liability for the information contained in this document.Any claims against us based on whatever legal reason resulting from the use ofthe examples, information, programs, engineering and performance data etc.,described in this application example will be excluded. Such an exclusion will notapply in the case of mandatory liability, e.g. under the German Product Liability Act(Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life, bodyor health, guarantee for the quality of a product, fraudulent concealment of adeficiency or breach of a condition which goes to the root of the contract(wesentliche Vertragspflichten). The compensation for damages due to a breachof a fundamental contractual obligation is, however, limited to the foreseeabledamage, typical for the type of contract, except in the event of intent or grossnegligence or injury to life, body or health. The above provisions do not imply achange of the burden of proof to your detriment.Any form of duplication or distribution of these Application Examples or excerptshereof is prohibited without the expressed consent of Siemens Industry Sector.
Securityinforma-
tion
Siemens provides products and solutions with industrial security functions thatsupport the secure operation of plants, solutions, machines, equipment and/ornetworks. They are important components in a holistic industrial securityconcept. With this in mind, Siemens products and solutions undergo continuousdevelopment. Siemens recommends strongly that you regularly check forproduct updates.
For the secure operation of Siemens products and solutions, it is necessary totake suitable preventive action (e.g. cell protection concept) and integrate eachcomponent into a holistic, state-of-the-art industrial security concept. Third-partyproducts that may be in use should also be considered. For more informationabout industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-specific newsletter. For more information, visithttp://support.automation.siemens.com.
https://www.industry.siemens.com/topics/global/en/industrial-security/Seiten/default.aspxhttps://support.industry.siemens.com/cs/?lc=en-DE -
Table of Contents
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 3
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Table of ContentsWarranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 52.2 Visualization ......................................................................................... 72.3 Hardware and software components ................................................... 82.3.1 Validity .................................................................................................. 82.3.2 Components used ................................................................................ 8
3 Basics ............................................................................................................... 11
3.1 What is an IO-Link? ............................................................................ 113.2 Configuration of the IO-Link Master ................................................... 123.2.1 Opening the S7-PCT in STEP 7 V5.5 SP4 ........................................ 123.2.2 Opening the S7-PCT in STEP 7 V13 SP1 ......................................... 133.2.3 Overview and description of the configuration interface of the
S7-PCT tool ........................................................................................ 14
4 Mode of Operation ........................................................................................... 15
4.1 Overview............................................................................................. 154.2 Scenario 1: Reading and writing of data records ............................... 164.2.1 Overview............................................................................................. 164.2.2 User program in the S7-CPU ............................................................. 184.2.3 Visualization masks for scenario 1 ..................................................... 204.3 Scenario 2: Evaluation of the diagnostic data record ......................... 214.3.1 Overview............................................................................................. 214.3.2 User program in the S7-CPU ............................................................. 214.3.3 Visualization screen scenario 2 .......................................................... 234.4 Scenario 3: Restoring the configuration ............................................. 234.4.1 Overview............................................................................................. 234.4.2 User program in the S7-CPU ............................................................. 254.4.3 Visualization screens scenario 3 ........................................................ 274.5 Global_Data data block.................................................................... 28
5 Installation and Commissioning .................................................................... 29
5.1 Installing the hardware ....................................................................... 295.2 Installing the software ......................................................................... 315.3 Commissioning ................................................................................... 32
6 Tips and Tricks ................................................................................................ 34
7 Links & Literature ............................................................................................ 36
8 History............................................................................................................... 36
-
1 Task
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 4
Siem
ens
AG20
15Al
lrig
hts
rese
rved
1 TaskIntroduction
IO-Link is used for switching, protecting and monitoring of sensors and actuatorson field level. IO-Link does not use the classic bus wiring here but maintains theusual parallel wiring for sensors and actuators.As an open interface, IO-Link can be integrated in all common field bus andautomation systems. Consistent interoperability provides high investmentprotection. This also applies within the framework of existing machine concepts forthe further use of sensors that have no IO-Link interface.
Overview of the automation taskFigure 1-1
PROFINET IE
IO-Link
PROFINET IE
IO-Link
S7-300/S7-1200/S7-1500 CPU
ET 200SPHMI paneloperation
Contactors Monitoring Switching
S7-1200CPU + SM
OperationHMI panel
Contactors Monitoring Switching
The application example shall illustrate in three scenarios how switching, protectingand monitoring is handled in IO-Link devices: Scenario 1: Reading and writing Scenario 2: Diagnosing Scenario 3: Securing and restoring of the configuration
The Siemens Devices IO-Link Library block library provided in this entry is usedhere (for a description of the library see \2\).
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 5
Siem
ens
AG20
15Al
lrig
hts
rese
rved
2 Solution2.1 Overview
Schematic layoutThe figure below shows a schematic overview of the most important components ofthe solution:Figure 2-1
3RB2483-4AA1 3RA6400-2BB423RR2441-1AA40
PROFINET / IE
IO-LinkET 200SP &IO-Link Master
S7-300/S7-1500 CPU
SwitchingMonitoringContactors
S7-1200 CPU +IO-Link Master
HMI Paneloperation
AdvantagesThe solution presented here, offers you the following advantages: Practical use of the Siemens Devices IO-Link Library library provided. Copy and modify project for a quick start with the IO-Link components.
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 6
Siem
ens
AG20
15Al
lrig
hts
rese
rved
ScenariosEach of the individual scenarios is executed with a different IO-Link device. Theexample project is divided into the following three scenarios.Table 2-1
No. Scenario IO-Link deviceused
Description
1. Reading and writingof data records
Current monitoringfor IO-Link(3RR2441-2AA40)
Individual data records - such asmeasured values of IO-Link devices -are read by means of a visualizationuser interface (WinCC).
2. Evaluation of thediagnostic datarecord
Evaluation unit forIO-Link (3RB2483-4AC1)
When the IO-Link device goes toautomatic mode, a program alarm isgenerated as an example anddisplayed on the HMI.
3. Restoring theconfiguration
Compact starter(3RA6400-2AB42)
For the module exchange, theconfiguration parameters of IO-Linkdevices are read via the visualizationuser interface and restored onrequest.
The individual scenarios can be easily adjusted to other IO-Link devices using theSiemens Devices IO-Link Library.
Topics not covered in this applicationThis application does not include a description of: STEP 7 V13 SP1 of LAD/FBD Siemens Devices IO-Link Library (description see \2\).
Basic knowledge of these topics is assumed.
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 7
Siem
ens
AG20
15Al
lrig
hts
rese
rved
2.2 Visualization
Reading of data is visualized by means of SIMATIC Comfort Panel.The following figure shows a screenshot from a visualization user interface.
Figure 2-2
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 8
Siem
ens
AG20
15Al
lrig
hts
rese
rved
2.3 Hardware and software components
2.3.1 Validity
This application is valid for STEP 7 as of V13 SP1 CM 4 X IO-Link master module for ET 200SP SM1278, IO-Link master module for S7-1200 CPU
2.3.2 Components used
GeneralThe application example was created with similar functionality using the followingcomponents:Table 2-2
IO-Link master PNIO controller Platform
S7-1200, SM 4 X IO-Linkmaster module
CPU 1215C DC/DC/DC STEP 7 V13 SP1
ET 200SP, 4 X IO-Linkmaster module
CPU 1516-3 PN/DP STEP 7 V13 SP1CPU 315-2 PN/DP STEP 7 V13 SP1,
STEP 7 V5.5
Hardware components for CPU 315-2 PN/DPTable 2-3
Component No. Article number Note
PS 307 5A 1 6ES7 307-1EA00-0AA0 Alternatively, other 24 Vpower supplies can also beused.
CPU 315-2 PN/DP 1 6ES7 315-2EH14-0AB0 Other S7-300 CPUsPROFINET interface may beused alternatively.
Engineering station 1
Alternative hardware components for CPU 1516-3 PN/DPTable 2-4
Component No. Article number Note
PS 60W24/48/60VDC
1 6ES7 505-0RA00-0AB0 Alternatively, other 24 Vpower supplies can also beused.
CPU 1516-3 PN/DP 1 6ES7 516-3AN00-0AB0 Other S7-1500 CPUs may beused alternatively.
Engineering station 1
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 9
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Hardware components ET 200SP, CM 4 X IO-Link STTable 2-5
Component No. Article number Note
IM 155-6 PN ST 1 6ES7155-6AU00-0BN0 Head module of theET 200SP
ET 200SP, CM 4 XIO-LINK ST
1 6ES7278-4BD32-0XB0 Selection of the suitableBaseUnit see \6\.
Server module 1 6ES7193-6PA00-0AA0
Hardware components S7-1200, 4 X IO-LINK MASTER with CPU 1215C DC/DC/DCTable 2-6
Component No. Article number Note
CPU 1215CDC/DC/DC
1 6ES7215-1AG40-0XB0 As an alternative, anotherS7-1200 CPU compatible withthe IO-Link master can alsobe used.
SM1278 IO-Link4 X IO-LINKMASTER
1 6ES7278-4BD32-0XB0
Hardware components for IO-Link devicesThe following components are used in the individual scenarios. You adjust thescenarios and then use other IO-Link devices.Table 2-7
Component No. Article number Note
Evaluation unit forIO-Link
1 3RB2483-4AA1
IO-LINK compactstarter;DIRECTST;0.1-0.4A
1 3RA6400-1AB42
CURRENT MON. F.IO-LINK S00SCREW
1 3RR2441-1AA40
Hardware component for visualizationTable 2-8
Component No. Article number Note
Comfort Panel,9 inches
1 6AV2124-0JC01-0AX0 As an alternative, you canalso use the Runtimesimulation on yourprogramming device.
In the project, a Comfort Panel, 9 inches (6AV2124-0JC01-0AX0) is used. As analternative, you can also use the Runtime simulation directly on your programmingdevice or use other operator panels. When using other panels, you need to takeinto account reduced comfort when using the template or adjust the visualization toyour device.
-
2 Solution
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 10
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Software componentsTable 2-9
Component No. Article number Note
SIMATIC STEP 7V13
1 6ES7822-1AA03-0YA5
S7-PCT 1 see \4\ For configuring IO-Linkdevices.
Sample files and projectsThe following list includes all files and projects that are used in this example.Table 2-10
Component Note
90529409_IOLink_Devices_Appl_PROJ_V13.zip This zip file contains a STEP 7example project for STEP 7 V13SP1.
90529409_IOLink_Devices_Appl_DOC_V2_0_en.pdf This document.
-
3 Basics
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 11
Siem
ens
AG20
15Al
lrig
hts
rese
rved
3 BasicsIntroduction
The IO-Link point-to-point interface through which process and diagnostic data andparameters are transferred was especially designed for the connection of any typeof sensors or actuators to a control system. IO-Link does not use the classic buswiring here but maintains the usual parallel wiring for sensors and actuators.The IO-Link communication standard resides below field bus level. It enablescentral error diagnostics and error localization up to sensor/actuator level andfacilitates commissioning and maintenance by being able to dynamically changethe parameterization data directly from the application.As an open interface, IO-Link can be integrated in all common field bus andautomation systems. Consistent interoperability provides high investmentprotection. This also applies within the framework of existing machine concepts forthe further use of sensors that have no IO-Link interface.
3.1 What is an IO-Link?
OverviewIO-Link is the first standardized IO technology worldwide (IEC 61131-9) for thecommunication with sensors and actuators as well. The powerful point-to-pointcommunication is based on the familiar 3-line sensor and actuator connectionwithout any further additional demands on the cable material. Hence, IO-Link is nofieldbus but the evolutionary further development of the previously existing, triedand tested connection technology for sensors and actuators.1
ManufacturerIO-Link is promoted in a technology committee by many renowned manufacturersincluding Siemens.
ConnectionIO-Link communication can be connected in 3-line technology via already existinglines for digital inputs and outputs. This results in homogenous and clearly reducedwiring workload.
1 see \3\
-
3 Basics
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 12
Siem
ens
AG20
15Al
lrig
hts
rese
rved
3.2 Configuration of the IO-Link MasterThe configuration of the IO-Link master and the devices connected to it (up to four)is performed in an independent tool, the Port Configuration Tool, in short: S7-PCT(download see \4\).S7-PCT can either be operated stand-alone or be called from an existing S7project.
3.2.1 Opening the S7-PCT in STEP 7 V5.5 SP4
To open S7-PCT from STEP 7 V5.5 SP3, the hardware configuration of the centralCPU gives you the following two options:Table 3-1
No. Action
1. Right-click into the hardware configuration on the IO-Link master module and selectConfigure IO-Link.
2. In the device list you right-click onto the IO-Link master module and selectConfigure IO-Link.
-
3 Basics
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 13
Siem
ens
AG20
15Al
lrig
hts
rese
rved
3.2.2 Opening the S7-PCT in STEP 7 V13 SP1
To open S7-PCT from STEP 7 V13, the device view of the IO-Link master modulegives you the following two options:
Table 3-2
No. Action
1. In the editor section of the device view you right-click onto the IO-Link mastermodule and select Start device tool.
2. In the device list you right-click onto the IO-Link master module and select Startdevice tool.
-
3 Basics
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 14
Siem
ens
AG20
15Al
lrig
hts
rese
rved
3.2.3 Overview and description of the configuration interface of the S7-PCTtool
The S7-PCT fulfills the following functions: Assigning the respective sensors and actuators (e.g. IO-Link devices) to the
ports of the IO-Link master. Assigning the I/O addresses of the IO-Link devices to the S7-CPU. Determining the configuration of the devices.
The figure below shows an already configured IO-Link master module:Figure 3-1
Table 3-3
No. Remarks
1. Project tree2. Icons for upload and download of the current IO-Link configuration3. ON/OFF switch icon for product catalog4. Tabs5. Product catalog for IO-Link devices6. Workspace7. Port numbers with configured IO-Link devices
1
2
3
4
75
6
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 15
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4 Mode of Operation4.1 Overview
Scenarios of this exampleThis chapter describes the application example for the S7-300 CPU with IO-Linkmaster ET 200SP, CM 4 X IO-LINK ST. The behavior of the application examplewith S7-1500 (also ET 200SP, CM 4 X IO-LINK ST) and the S7-1200 with theS7-1200, 4 X IO-LINK MASTER (both also existing in the project) is identical.The application example is divided into three scenarios:Table 4-1
No.
Scenario IO-Link deviceused
Description
1. Reading andwriting of datarecords
Current monitoringfor IO-Link(3RR2441-2AA40)
Individual data records - such as measuredvalues of IO-Link devices - are read bymeans of a visualization user interface(WinCC).
2. Evaluation ofthe diagnosticdata record
Evaluation unit forIO-Link(3RB2483-4AC1)
When the IO-Link device goes to automaticmode, a program alarm is generated as anexample and displayed on the HMI.
3. Restoring theconfiguration
Compact starter(3RA6400-2AB42)
For the module exchange, the configurationparameters of IO-Link devices are read viathe visualization user interface and restoredon request.
The functions of the individual scenarios can be used independent of each another.
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 16
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Program overviewFigure 4-1
User program Data blocks
MAIN[OB 1]
Scen1_RW
Scen2_Diag
Scen3_Restore
Global_Data
Library blocks
IO_LINK_3RR24
IO_LINK_3RB24
IO_LINK_3RAxy
IO_LINK_DEVICE
HMI interface
4.2 Scenario 1: Reading and writing of data records
4.2.1 Overview
DescriptionScenario 1 Reading and writing of data records provides a clear description of theIO_LINK_3RR24 block from the Siemens IO-Link Devices library.Using the visualization enables you to conveniently perform the following actionsfrom the power monitoring for IO-Link (3RR2441-2AA40): Reading any parameters (maximum one per read request). Writing those parameters intended for writing into the IO-Link device.
In function block FB Scen1_RW, only FB IO_LINK_3RR24 is called internallyand interconnected directly. No further functions are realized.
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 17
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Program flowDie following figure shows the internal sequence of FB IO_LINK_3RR24 called byFB Scen1_RW that can be controlled via the visualization.Figure 4-2
Positive edgeat REQ detected?
Start
Yes
No
Writeselected datarecord via FB
IO_LINK_DEVICE
Reador writeaccess
Whichdata recordis selected?
Whichdata recordis selected?
Writeselected datarecord via FB
IO_LINK_DEVICE
End
read
write
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 18
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.2.2 User program in the S7-CPU
TaskIn FB Scen1_RW only FB IO_LINK_3RR24 is called and interconnected.Controlling for the visualized parameters is performed via the HMI.As an alternative, all of the parameters can also be controlled via the watch table.
Scen1_RW function blockFunction block Scen1_RW calls FB IO_LINK_3RR24 internally.It has the following interface:Figure 4-3
The data records marked blue can be read out via the HMI (see Figure 4-4).
Table 4-2
Parameter Input/outputData type
Description
REQ IN:Bool
Starting the FB on positive edge
ID IN:DWord (S7-300); Word(S7-1500)
Logic input address of the IO-Linkmaster (S7-300) or hardware ID(S7-1500)
PORT IN:Int
Port to which the device is connectedat the IO-Link master.
RD_WR IN:Bool
Read/write access:0=read; 1=write
ParameterPage0 IN:Bool
Read access to ParameterPage0
SystemCommands IN: Writing the system commands
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 19
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Parameter Input/outputData type
Description
BoolVendorName IN:
BoolRead access to manufacturer name
VendorText IN:Bool
Read access to manufacturer text
ProductName IN:Bool
Read access to product name
ProductID IN:Bool
Read access to product ID
SerialNumber IN:Bool
Read access to serial number
HWRevivsion IN:Bool
Read access to hardware version
ApplicationSpecificName
IN:Bool
Read/write access to application-specific name
Diagnostics IN:Bool
Read access to diagnostic data record
Measurements IN:Bool
Read access to measured value datarecord
Parameters IN:Bool
Read access to parameters
Data IN/OUT:3RR24
Data area, device-specific
Done OUT:Bool
Validity; 0 = data invalid; 1 = data valid
Busy OUT:Bool
0 = query completed, 1 = querycurrently edited
Error OUT:Bool
0 = no error1 = error, function cancelled
Status OUT:DWord
DP/PNIO status: for error = 1: errordetails
IOL_Status OUT:DWord
IO-Link status: for error = 1: errordetails
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 20
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.2.3 Visualization masks for scenario 1
Visualization of the scenario is divided into the following pages: General Measurement Diagnostic
(see Figure 4-4).The Diagnostic tab only provides a selection of the data record.The following figure shows the displayed, general parameters.Figure 4-4
The read/write value is selected at the switches as of (1). Switch (2) defineswhether the value is to be read or written. Clicking on (3) starts the read or writeprocess.You can only change the text fields for which write access is possible.
1
23
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 21
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.3 Scenario 2: Evaluation of the diagnostic data record
4.3.1 Overview
DescriptionThe second scenario Evaluation of the diagnostic data record uses the exampleof IO-Link device Evaluation unit for IO-Link (3RB2483-4AC1) and block FBIO_LINK_3RB24 to illustrate generating a user-defined alarm from a readdiagnostic parameter.This function can, for example, be used for generating user-specific alarms.In the form of an alarm, the visualization permanently shows you whether or not anautomatic mode exists.
Program flowFigure 4-5
IO_LINK_3RB24_300_400
Cyclicrequest atREQ
Diagnostics= TRUE
ALARM_SDiagnostic data
Scen2_Diag
1. Block IO_LINK_3RB24 is called cyclically in function block Scen2_Diag. Itcyclically reads the diagnostic data of the IO-Link Device.
2. From the diagnostic data, the AUT_1 tag is connected with the input of theblock generating the program alarm.
4.3.2 User program in the S7-CPU
TaskThe user program of the S7-CPU cyclically reads the diagnostic data record of IO-Link device 3RB24.If the module status changes from manual to automatic mode, a program alarm iscreated with time stamp and displayed on the HMI (see Figure 4-7).
Scen2_Diag function blockFunction block Scen2_RW calls FB IO_LINK_3RB24 internally.It has the following interface:
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 22
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Figure 4-6
Table 4-3
Parameter Input/outputData type
Description
ID IN:DWord (S7-300);Word (S7-1500)
Logic input address of the IO-Link master (S7-300) or hardware ID (S7-1500)
PORT IN:Int
Port to which the device is connected at the IO-Link master.
EV_ID IN:C_Alarm_s
ID of the alarm, automatically filled by thesystem when set up correctly.See also \7\.
Error OUT:Bool
0 = no error1 = error, function cancelled
Status OUT:DWord
DP/PNIO status: for error=1: error details
IOL_Status OUT:DWord
IO-Link status: for error=1: error details
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 23
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.3.3 Visualization screen scenario 2
The visualization shows whether the IO-Link device is in automatic mode.Figure 4-7
If you wish to create a different alarm, call other respective diagnostic data in orderto create a program alarm in the Scen2_Diag function block (see Chapter 6).
Note For S7-1200, this scenario is not realized.
4.4 Scenario 3: Restoring the configuration
4.4.1 Overview
DescriptionThe third scenario, Restoring the configuration, illustrates how to restoreparameters using the example of the IO-Link compact starter (3RA6400-2AB42).This function can be used when a device is exchanged.Using the visualization enables you to conveniently: read the current parameter from IO-Link Device. restore the read parameters in the IO-Link device.
Restoring the parameters transfers the configuration read in 1. or the modifiedconfiguration into the device.
Program flowThe figure below shows the sequence in FB Scen3_Restore.
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 24
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Figure 4-8
ButtonSave"
No
Completedsuccessfully?
Buttonturns green
for 4 seconds
End
Reading the data recordAcutalConfiguration with the
help of IO_LINK_3RAxy
Button remainsgray
Restorebutton
Completedsuccessfully?
Loading the AcutalConfigurationinto the IO-Link device using
IO_LINK_3RAxy
yes yes No
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 25
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.4.2 User program in the S7-CPU
TaskAfter pressing the Save button, the user program of the S7-CPU initiates runningthrough the following steps:Table 4-4
Step Description
1. Read request for data record ParameterPage1.2. Wait for DONE.3. Read request for data record ActualConfiguration.4. Wait for DONE.5. Copying data record ActualConfiguration to TargetConfiguration. Data record
TargetConfiguration is restored to the IO-Link device after a restore request.
After pressing the Restore button, the following steps are executed:Table 4-5
Step Description
1. Write request for data record ParameterPage1.2. Wait for DONE.3. Write request for data record TargetConfiguration.4. Wait for DONE.
Note When using an IO-Link device with the specification V1.1, you can perform adevice exchange using the FW functionalities.
Scen3_Restore function blockFunction block Scen3_Restore calls FB IO_LINK_3RB24 internally.It has the following interface:
Figure 4-9
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 26
Siem
ens
AG20
15Al
lrig
hts
rese
rved
Table 4-6
Parameter Input/outputData type
Description
Save IN:Bool
A positive edge triggers reading the currentparameter of the module.
Restore IN:Bool
A positive edge triggers writing the savedparameter of the module.
ID IN:DWord (S7-300); Word(S7-1500)
Logic input address of the IO-Link master (S7-300) or hardware ID (S7-1500)
PORT IN:Int
Port to which the device is connected at theIO-Link master.
Done OUT:Bool
Done = 1 indicates that a read or writeprocess is finished.
Busy OUT:Bool
Busy = 1 indicates that a read or write processis currently active.
Error OUT:Bool
0 = no error1 = error, function cancelled
Status OUT:DWord
DP/PNIO status: for error = 1: error details
IOL_Status OUT:DWord
IO-Link status: for error = 1: error details
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 27
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.4.3 Visualization screens scenario 3
The visualization of the scenario is divided between two pages: save and restore button. configuration parameter for a manual change before a restore (see Figure
4-10).Figure 4-10
-
4 Mode of Operation
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 28
Siem
ens
AG20
15Al
lrig
hts
rese
rved
4.5 Global_Data data block
OverviewData block Global_Data fulfills the following functions: Supply of function blocks
Scen1_RW Scen2_Diag Scen3_Restorewith parameters.
Interface for visualization. Storing of error messages.
StructureFigure 4-11
For the structures Scen1_RW, Scen2_Diag and Scen3_Restore you can read themeaning of the parameters in chapters 4.2 to 4.4.
In the event of an error, structure status_save contains the status display namedstatsave_x_y existing at the time of Error=TRUE. x = scenario, in which the error has occurred. y = 1: status of the scenario
y = 2: IOL_Status of the scenario
Figure 4-12
-
5 Installation and Commissioning
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 29
Siem
ens
AG20
15Al
lrig
hts
rese
rved
5 Installation and CommissioningThe commissioning process is described for CPU315-2 PN/DP. The installationapplies analog for other CPU types.
5.1 Installing the hardware
The figure below shows the hardware configuration of the application.
Figure 5-1
3RB2483-4AA1
3RA6400-2BB42
3RR2441-1AA40
PROFINET / IE
IO-Link
ET 200SP &IO-Link master
CPU 315-2 PN/DP
SwitchingMonitoringContactors
HMI Paneloperation
Note The setup guidelines for automation systems must generally be followed.
-
5 Installation and Commissioning
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 30
Siem
ens
AG20
15Al
lrig
hts
rese
rved
The figure below shows the wiring of IO-Link devices for the application example:Figure 5-2
3RA64
3RB24
3RR24
IO-LinkMaster
C1US1M1
C2US2M2
C3US3M3
C/QL+L-
C/QL+L-
C/QL+L-
C4US4M4
Table 5-1
No. Action Remarks
5. Mount all of the hardware components ontosuitable rails.
The rail with article number 6ES7590-1AE80-0AA0 is suitable for mounting.
6. Install distributed I/O station ET 200SPtogether with CM 4 X IO-LINK ST.
7. Connect the following IO-Link devices to theIO-Link master: Evaluation unit for IO-Link IO-LINK COMPACT STARTER;DIRECT
ST;0.1-0.4A CURRENT MON. F. IO-LINK
Connect each of the labeled connections(IO-Link master IO-Link device) Cx CQ USx L+ M L-
see Figure 5-2.8. Complete wiring the IO-Link devices according
to your functionality.You can also test the communication with theIO-Link devices without any further functions.
9. Connect the S7-CPU and die ET 200SP at thePNIO interface using an Ethernet cable.
10. Furthermore, connect the S7 CPU with theComfort Panel, also via PNIO interface.
11. Connect the Comfort Panel to yourengineering station via the second port.
As an alternative, you can also interconnectthe Ethernet nodes using a switch.
12. Supply all of the devices with the suitablepower supply.
-
5 Installation and Commissioning
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 31
Siem
ens
AG20
15Al
lrig
hts
rese
rved
5.2 Installing the softwareTable 5-2
No. Action
1. Install STEP 7 V13 SP1.2. Install S7-PCT (Primary Configuration Tool) V3.3, see \4\ and \8\.3. Load the 90529409_IOLink_Devices_Appl_PROJ_V13.zip from the HTML page onto your
engineering station and unzip the folder.4. In the unzipped program folder you double-click on the IOLink_Appl icon. The project opens in
STEP 7 V13 SP1.
-
5 Installation and Commissioning
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 32
Siem
ens
AG20
15Al
lrig
hts
rese
rved
5.3 Commissioning
Commissioning the S7-CPUTable 5-3
No. Action
1. Reset the S7-CPU and the ET 200SP to factory settings. Information is available in therespective manual.
2. Select the CPU315-2 PN/DP in the example project.3. Click on Online > Extended download to device.
4. Select your online interface (1) Activate the Show all compatible devices checkbox (2) andthen start the search by clicking Start search (3).
5. Select your S7-CPU and load the project into the S7-CPU.6. Go to the network view of the project.
7. Use the left mouse button to click on the distributed I/O and select Assign device name.8. Click on Update and select the detected ET 200SP. Click on Assign Name.
1
2
3
-
5 Installation and Commissioning
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 33
Siem
ens
AG20
15Al
lrig
hts
rese
rved
No. Action
9. After the successful transfer of the PROFINET names to the distributed I/O, no error LEDshould still light at CPU and ET 200SP after a few seconds.The project of the S7-CPU is then ready to use.
Commissioning the Comfort PanelTable 5-4
No. Action
1. First you start the Comfort Panel.2. Check the IP address in the Windows network and the Release Center of the panel.
Enter the following IP address:IP address: 172.16.46.23Subnet mask: 255.255.0.0
3. In the TIA V13 SP1 project you click on the HMI.4. Download the project into your Comfort Panel.
-
6 Tips and Tricks
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 34
Siem
ens
AG20
15Al
lrig
hts
rese
rved
6 Tips and TricksChanging the diagnostic alarm for the S7-300
The table below shows how to change the diagnostic alarm in S7-300. The changeapplies in the same way for S7-1500 using function block Program_Alarm.
Table 6-1
No. Instruction
1. Open FB Scen2_Diag in the S7-300 CPU.2. Interconnect the diagnostic tag you desire in network 6 at input SIG of the
ALARM_S block. The THM_DEACT tag (Thermistor protection deactivated) isinterconnected in the figure.
3. Now go to the PLC alarms folder in the S7-CPU and adjust the alarm text for thealarm.
4. Compile the CPU user program and load it into the CPU.Compile the HMI project and start Runtime.The error message has been adjusted.
Changing the configuration of IO-Link devices via the S7-PCTThe following table displays the process in STEP 7 V13 SP1 for changing theparameters of an IO-Link device via S7-PCT.Table 6-2
No. Instruction
1. Open the project with the already configured IO-Link master in STEP 7 V13 SP1.
-
6 Tips and Tricks
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 35
Siem
ens
AG20
15Al
lrig
hts
rese
rved
No. Instruction
2. Open the device configuration of the IO-Link master (device view of the S7-1200CPU, or ET 200S, or ET 200SP).
3. Right-click on the IO-Link master and start the S7-PCT.
4. Select the interface via which the IO-Link master can be accessed.
5. Configure your IO-Link devices according to your requirements. (See alsoChapter 3.2).
-
7 Links & Literature
Using the Siemens IO-Link Device LibraryEntry ID: 90529409, V2.0, 05/2015 36
Siem
ens
AG20
15Al
lrig
hts
rese
rved
7 Links & Literature
Table 7-1
Topic Title
\1\ Siemens IndustryOnline Support
Fehler! Hyperlink-Referenz ungltig.
\2\ Download page ofthe entry
https://support.industry.siemens.com/cs/ww/en/90529409
\3\ Homepage IO-Link
http://www.io-link.com/de
\4\ S7-PCT http://support.automation.siemens.com/WW/view/en/32469496
\5\ Acyclic readingand writing withFBIO_LINK_DEVICE"
http://support.automation.siemens.com/WW/view/en/82981502
\6\ SIMATIC ET200SP BaseUnits
http://support.automation.siemens.com/WW/view/en/59753521
\7\ ConfiguringMessages andAlarms in WinCC(TIA Portal)
http://support.automation.siemens.com/WW/view/en/62121503
\8\ Automating withIO-Link - GettingStarted
http://support.automation.siemens.com/WW/view/en/84214594
8 History
Table 8-1
Version Date Modifications
V1.0 07/2014 First versionV2.0 03/2015 Upgrade to TIA Portal V13 SP1
https://support.industry.siemens.com/cs/ww/en/90529409http://www.io-link.com/dehttp://support.automation.siemens.com/WW/view/en/32469496http://support.automation.siemens.com/WW/view/en/82981502http://support.automation.siemens.com/WW/view/en/59753521http://support.automation.siemens.com/WW/view/en/62121503http://support.automation.siemens.com/WW/view/en/84214594Application of Block Library Siemens IO-Link DevicesWarranty and Liability1 Task2 Solution2.1 Overview2.2 Visualization2.3 Hardware and software components2.3.1 Validity2.3.2 Components used3 Basics3.1 What is an IO-Link?3.2 Configuration of the IO-Link Master3.2.1 Opening the S7-PCT in STEP 7 V5.5 SP43.2.2 Opening the S7-PCT in STEP 7 V13 SP13.2.3 Overview and description of the configuration interface of the S7-PCT tool4 Mode of Operation4.1 Overview4.2 Scenario 1: Reading and writing of data records4.2.1 Overview4.2.2 User program in the S7-CPU4.2.3 Visualization masks for scenario 14.3 Scenario 2: Evaluation of the diagnostic data record4.3.1 Overview4.3.2 User program in the S7-CPU4.3.3 Visualization screen scenario 24.4 Scenario 3: Restoring the configuration4.4.1 Overview4.4.2 User program in the S7-CPU4.4.3 Visualization screens scenario 34.5 Global_Data data block5 Installation and Commissioning5.1 Installing the hardware5.2 Installing the software5.3 Commissioning6 Tips and Tricks7 Links & Literature8 History