Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

2 Blocks of the Library

2.8 Explanation on FB IO_LINK_3RS1x (FB5130)

2.8 Explanation on FB IO_LINK_3RS1x (FB5130)


Functionality
The block is used for the application of electronic overload relay 3RS1x.

2.8.1 Interface and parameters

Interface
Figure 2-6
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 26
2 Blocks of the Library
2.8 Explanation on FB IO_LINK_3RS1x (FB5130)

Input parameters
Table 2-17 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-18 Input/Output parameters
Parameter Data type Description
Data UDT 3RS1x Data structure for IO-Link devices 3RS1x.

2.8.2 Mode of Operation

FB “IO_LINK_3RS1x” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3RS1x” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 27
2 Blocks of the Library
2.9 Explanation on FB IO_LINK_3UG481x (FB5140)

2.9 Explanation on FB IO_LINK_3UG481x (FB5140)


Functionality
The block is used for the application of electronic overload relay 3UG481x.

2.9.1 Interface and parameters

Interface
Figure 2-7
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 28
2 Blocks of the Library
2.9 Explanation on FB IO_LINK_3UG481x (FB5140)

Input parameters
Table 2-19 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-20 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link devices 3UG481x.
3UG481x

2.9.2 Mode of Operation

FB “IO_LINK_3UG481x” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG481x” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 29
2 Blocks of the Library
2.10 Explanation on FB IO_LINK_3UG4822 (FB5150)

2.10 Explanation on FB IO_LINK_3UG4822 (FB5150)


Functionality
The block is used for the application of electronic overload relay 3UG4822.

2.10.1 Interface and parameters

Interface
Figure 2-8
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 30
2 Blocks of the Library
2.10 Explanation on FB IO_LINK_3UG4822 (FB5150)

Input parameters
Table 2-21 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-22 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link device 3UG4822.
3UG4822

2.10.2 Mode of Operation

FB “IO_LINK_3UG4822” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG4822” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 31
2 Blocks of the Library
2.11 Explanation on FB IO_LINK_3UG4825 (FB5160)

2.11 Explanation on FB IO_LINK_3UG4825 (FB5160)


Functionality
The block is used for the application of electronic overload relay 3UG4825.

2.11.1 Interface and parameters

Interface
Figure 2-9
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 32
2 Blocks of the Library
2.11 Explanation on FB IO_LINK_3UG4825 (FB5160)

Input parameters
Table 2-23 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
SystemCommands BOOL Write system commands.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
SerialNumber BOOL Read access to serial number.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-24 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link device 3UG4825.
3UG4825

2.11.2 Mode of Operation

FB “IO_LINK_3UG4825” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG4825” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 33
2 Blocks of the Library
2.12 Explanation on FB IO_LINK_3UG4832 (FB5170)

2.12 Explanation on FB IO_LINK_3UG4832 (FB5170)


Functionality
The block is used for application with 3UG4832 voltage monitoring.

2.12.1 Interface and parameters

Interface
Figure 2-10
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 34
2 Blocks of the Library
2.12 Explanation on FB IO_LINK_3UG4832 (FB5170)

Input parameters
Table 2-25 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-26 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link device 3UG4832.
3UG4832

2.12.2 Mode of Operation

FB “IO_LINK_3UG4832” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG4832” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 35
2 Blocks of the Library
2.13 Explanation on FB IO_LINK_3UG4841 (FB5180)

2.13 Explanation on FB IO_LINK_3UG4841 (FB5180)


Functionality
The block is used for application with the cos-phi and active current monitoring
relay 3UG4841.

2.13.1 Interface and parameters

Interface
Figure 2-11
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 36
2 Blocks of the Library
2.13 Explanation on FB IO_LINK_3UG4841 (FB5180)

Input parameters
Table 2-27 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-28 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link device 3UG4841.
3UG4841

2.13.2 Mode of Operation

FB “IO_LINK_3UG4841” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG4841” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 37
2 Blocks of the Library
2.14 Explanation on FB IO_LINK_3UG4851 (FB5190)

2.14 Explanation on FB IO_LINK_3UG4851 (FB5190)


Functionality
The block is used for application with speed monitoring relay 3UG4851.

2.14.1 Interface and parameters

Interface
Figure 2-12
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 38
2 Blocks of the Library
2.14 Explanation on FB IO_LINK_3UG4851 (FB5190)

Input parameters
Table 2-29 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
HWRevision BOOL Read access to hardware version.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Measurements BOOL Read access for measured values
Parameters BOOL Read/write access for parameter
ParameterPage0 BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-30 Input/Output parameters
Parameter Data type Description
Data UDT Data structure for IO-Link device 3UG4851.
3UG4851

2.14.2 Mode of Operation

FB “IO_LINK_3UG4851” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_3UG4851” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 39
2 Blocks of the Library
2.15 Explanation on FB IO_LINK_RFID (FB5200)

2.15 Explanation on FB IO_LINK_RFID (FB5200)


Functionality
The block is used for application with the SIMATIC RF200 IO-Link RFID readers.

2.15.1 Interface and parameters

Interface
Figure 2-13
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 40
2 Blocks of the Library
2.15 Explanation on FB IO_LINK_RFID (FB5200)

Input parameters
Table 2-31 Input parameters
Parameter Data type Description
DirectParameterPage BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
ErrorCount BOOL Read access to error counter
EventHistory BOOL Read access to event history
ReaderStatus BOOL Read access to state of the reader
TagStatus BOOL Read access to tag status
UIDHistory BOOL Read access to UID history
DirectParameterPage BOOL Read access to ParameterPage 0.
VendorName BOOL Read access to manufacturer name.
 Siemens AG 2015 All rights reserved

Input/output parameters
Table 2-32 Input/Output parameters
Parameter Data type Description
Data UDT RFID Data structure for RFID

2.15.2 Mode of Operation

FB “IO_LINK_RFID” is an FB that operates asynchronously; that is, processing


extends over several FB calls. Start the transfer of FB “IO_LINK_RFID” with a
positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Note More information on the parameters that are processed with this function block
can be found in \6\.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 41
2 Blocks of the Library
2.16 Explanation on FB IO_LINK_3SU1_IDKey-Switch (FB5210)

2.16 Explanation on FB IO_LINK_3SU1_IDKey-Switch


(FB5210)
Functionality
The block is used for the application of ID key switch 3SU1400-1GD10-1AA0.

2.16.1 Interface and parameters

Interface
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 42
2 Blocks of the Library
2.16 Explanation on FB IO_LINK_3SU1_IDKey-Switch (FB5210)

Input parameters
Table 2-33 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
System Command BOOL Write access to the system commands.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Del_Key-ID BOOL Write access to the key ID to be deleted.
KeyList1-30 BOOL Write access to the individual encodable
key IDs (1-30)
KeyList31-50 BOOL Read access to the memory of the individual
encodable key IDs (31-50)
Diagnostics BOOL Read access to diagnostics data.
 Siemens AG 2015 All rights reserved

Input/output parameters

Table 2-34 Input/Output parameters


Parameter Data type Description
Data UDT Data structure for IO-Link devices 3SU1400-
3SU1_IDKey- 1GD10-1AA0.
Switch

2.16.2 Mode of Operation

FB “IO_LINK_3SU1_IDKey-Switch” is an FB that operates asynchronously; that is,


processing extends over several FB calls. Start the transfer of FB
“IO_LINK_3SU1_IDKey-Switch” with a positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 43
2 Blocks of the Library
2.17 Explanation on FB IO_LINK_3SU1_Electronic (FB5220)

2.17 Explanation on FB IO_LINK_3SU1_Electronic (FB5220)


Functionality
The block is used for application of the electronic module for IO-Link 3SU1400-
2HL10-6AA0.

2.17.1 Interface and parameters

Interface
 Siemens AG 2015 All rights reserved

Note The parameters valid for all blocks from Chapter 2.3 onward are described in
Chapter 2.2.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 44
2 Blocks of the Library
2.17 Explanation on FB IO_LINK_3SU1_Electronic (FB5220)

Input parameters
Table 2-35 Input parameters
Parameter Data type Description
ParameterPage0 BOOL Read access to ParameterPage 0.
System Command BOOL Write access to the system commands.
VendorName BOOL Read access to manufacturer name.
VendorText BOOL Read access to the specific text of the
manufacturer.
ProductName BOOL Read access to product name.
ProductID BOOL Read access to product ID.
FWRevision BOOL Read access to firmware version.
ApplicationSpecificName BOOL Read/write access to application-specific name.
Diagnostics BOOL Read access to diagnostics data.
Statistics BOOL Read access to the statistic input/output data.
Parameters BOOL Read/write access to the parameters.

Input/output parameters
 Siemens AG 2015 All rights reserved

Table 2-36 Input/Output parameters


Parameter Data type Description
Data UDT Data structure for the IO-Link devices 3SU1
3SU1_Electronic Electronic.

2.17.2 Mode of Operation

FB “IO_LINK_3SU1_Electronic” is an FB that operates asynchronously; that is,


processing extends over several FB calls. Start the transfer of FB
“IO_LINK_3SU1_Electronic” with a positive edge on the REQ.
Internally, the function block calls FB “IO_LINK_DEVICE”.
The function block reads the data record logically connected at the block input with
TRUE.
For more detailed information on the mode of operation, please refer to the
parameter description.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 45
3 Working with the Library in STEP 7 V5.5
3.1 Integrating the library

3 Working with the Library in STEP 7 V5.5


What will you learn here?
This chapter includes instructions for integrating the “Siemens IO-Link Devices”
library into your STEP 7 V5.5 project as well as for using the library blocks.

3.1 Integrating the library


In order to be able to use the previously described library functions, they must first
be integrated into the configuration software. The necessary steps are listed in the
following table.

Table 3-1
Step Instruction
1. The library is available on the HTML page from which you downloaded this
document. Save the “90529409_IOLink_Devices_LIB_V55.zip” library to your hard
drive.
2. Open the SIMATIC MANAGER and retrieve STEP 7 library
“90529409_IOLink_Devices_LIB_V55.zip”.
“File > Retrieve...”
The library is now available in “Libraries”.
 Siemens AG 2015 All rights reserved

3.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 46
3 Working with the Library in STEP 7 V5.5
3.2 Using library blocks

3.2 Using library blocks


In order to use the library blocks in your user program, proceed as follows:

Table 3-2
Step Instruction
1. Open an already existing STEP 7 V5.5 project.
2. Open the “SIEMENS_Devices_IO_Link” library.

3. Copy the required blocks into your project.

General:
Move FB5001, the FB that corresponds to your device, as well as the
respective UDTs and UDT5000 into your user program. Then add the required
system functions.

Example:
 Siemens AG 2015 All rights reserved

Use the IO-Link device 3RA6400-2AB42.


Use drag & drop to move the following blocks into your S7-300 user program:
 FB5001 “IO_LINK_DEVICE” (called internally by FB 5100)
 FB5100 “IO_LINK_3RAxy”
 UDTs
– 5100 3RAxy (data structure for the “Data” input of FB 5100)
– 5000 ParameterPage0 (among others part of UDT 5100)
– 5101 ParameterPage1_3RAxy (subordinate to UDT 5100)
– 5102 DIAG_3RAxy (subordinate to UDT 5100)
– 5103 PARA_3RAxy (subordinate to UDT 5100)
 SFBs 4, 52, 53 (TON, RDREC, WRREC)

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 47
3 Working with the Library in STEP 7 V5.5
3.2 Using library blocks

Step Instruction
4. Check the consistency of your user program via right mouse click on the block
folder and select “Check Block Consistency”.

If no enumerations appear after clicking “Dependency tree: Only conflicts”


, the block calls are consistent and you have added all required blocks.
 Siemens AG 2015 All rights reserved

5. Create organization block 1 (OB1) and open it. Use drag & drop to move the
function block into any network for your IO-Link device.
Note
You can also use the blocks in other, cyclic organization blocks.

6. Enter the data block with the number of the instance data block that you would
like to use. Generate the instance data block if it does not exist.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 48
3 Working with the Library in STEP 7 V5.5
3.2 Using library blocks

Step Instruction
7. Assign values of your choice to all formal parameters. The values can be, for
example, stored in any data block.

Save organization block 1 (OB1) and load the STEP 7 project.


 Siemens AG 2015 All rights reserved

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 49
4 Working with the Library as of STEP 7 V13SP1
4.1 Integrating the library

4 Working with the Library as of STEP 7


V13SP1
What will you learn here?
This chapter includes instructions for integrating the “Siemens IO-Link Devices”
library into your STEP 7 project as well as for using the library blocks.

4.1 Integrating the library


In order to be able to use the previously described library functions, they must first
be integrated into the configuration software. The necessary steps are listed in the
following table.

Table 4-1
Step Instruction
1. The library is available on the HTML page from which you downloaded this
document. Store the “90529409_IOLink_Devices_LIB_V13_SP1.zip” library on
your hard disk and extract it.
2. Open the TIA Portal and retrieve the STEP 7 library “Siemens_IO-
Link_Devices_Library_V13_SP1.zal13”.
 Siemens AG 2015 All rights reserved

Open the project view and go to the “Libraries” tab.


Right click “Retrieve library” in “Global libraries".

3. The library is then available in “Global libraries”.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 50
4 Working with the Library as of STEP 7 V13SP1
4.2 Using library blocks

4.2 Using library blocks


The procedure for using the library blocks is described in the following two
chapters.

4.2.1 Use with S7-300/400, S7-1200/1500

The following table describes the procedure for adding the “IO_LINK_3RAxy”
function block.
Table 4-2
Step Instruction
1. Open an already existing STEP 7 V13 SP1 project.
2. Open the library “Siemens_IO-LINK_Devices_Library_V13_SP1”.
 Siemens AG 2015 All rights reserved

3. Copy the required blocks into your project.


Example:
Use the IO-Link device 3RA6400-2AB42.
Use drag&drop to move function block IO_LINK_3RAxy into your user program
from folder “Types” and subfolder <CPU type>.
The respective PLC data types as well as the internally called
IO_LINK_DEVICE block are automatically copied into the project.

4. Compile the IO_LINK_3xx block. (Shortcut: Strg+B).


The block is compiled with message “Block was successfully compiled”.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 51
4 Working with the Library as of STEP 7 V13SP1
4.2 Using library blocks

Step Instruction
5. Open the OB “Main”. Use drag & drop to move the function block into any
network for your IO-Link device.
Note
You can also use the blocks in other, cyclic organization blocks.

6. Enter the data block with the number of the instance data block that you would
like to use.
 Siemens AG 2015 All rights reserved

7. Assign values of your choice to all formal parameters. The values can be, for
example, stored in any data block.
Save the OB1 organization block and load the STEP 7 project into your
S7-CPU.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 52
4 Working with the Library as of STEP 7 V13SP1
4.3 Calling a user-defined documentation

4.3 Calling a user-defined documentation


Use the key combination <Shift-F1> to directly call this document from the user-
defined documentation of the global library in TIA Portal.
Select the name of the IO library and press <Shift-F1>. Subsequently, this
document is displayed after a security query.

Shift-F1
 Siemens AG 2015 All rights reserved

Note The direct call of the documentation only works after the library name has been
selected. When using <Shift-F1> to call a different item in this library, you will be
forwarded to the HTML page in the Siemens Industry Online Support from which
you downloaded this entry.

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 53
5 Links & Literature

5 Links & Literature


Table 5-1
Topic Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of https://support.industry.siemens.com/cs/ww/en/90529409
the entry
\3\ S7-PCT http://support.automation.siemens.com/WW/view/en/32469496
\4\ Acyclic Reading http://support.automation.siemens.com/WW/view/en/82981502
and Writing with
the “IO-Link
Library"
\5\ Restrictions of http://support.automation.siemens.com/WW/view/en/15364459
WRREC and
RDREC
\6\ SIMATIC Ident http://support.automation.siemens.com/WW/view/en/60641859
RFID systems
SIMATIC RF200
IO-Link
\7\ System Manual http://support.automation.siemens.com/WW/view/en/107542462
SIRIUS ACT
 Siemens AG 2015 All rights reserved

command and
Signaling devices
3SU1

6 History
Table 6-1
Version Date Modifications
V1.0 07/2014 First version
V2.0 05/2015 Upgrade to TIA Portal V13 SP1
V2.1 09/2015 Expanded by SIRIUS ACT devices

Siemens IO-Link Device Library


Entry ID: 90529409, V2.1, 10/2015 54

You might also like