You are on page 1of 44

Application Note

TIA Portal

Electronic fuse 787-166x/0000-


0080 with I/O-Link Interface
a2019004

1.0.0
2 TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

© 2019 WAGO Kontakttechnik GmbH & Co. KG


All rights reserved.

WAGO Kontakttechnik GmbH & Co. KG

Hansastraße 27
D-32423 Minden

Phone: +49 (0) 571/8 87 – 0


Fax: +49 (0) 571/8 87 – 1 69

E-Mail: info@wago.com

Web: www.wago.com

Technical Support

Phone: +49 (0) 571/8 87 – 4 45 55


Fax: +49 (0) 571/8 87 – 84 45 55

E-Mail: support@wago.com

Every conceivable measure has been taken to ensure the accuracy and
completeness of this documentation. However, as errors can never be fully
excluded, we always appreciate any information or suggestions for improving the
documentation.

E-Mail: documentation@wago.com

We wish to point out that the software and hardware terms as well as the
trademarks of companies used and/or mentioned in the present manual are
generally protected by trademark or patent.

WAGO is a registered trademark of WAGO Verwaltungsgesellschaft mbH.

Application Note
1.0.0
TIA Portal Table of Contents 3
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Table of Contents
1 Notes about this Documentation ............................................................. 4
1.1 Copyright ................................................................................................ 4
1.1 Symbols ................................................................................................. 4
1.2 Number Notation .................................................................................... 6
1.3 Font Conventions ................................................................................... 6
1.4 Legal Bases............................................................................................ 7
1.4.1 Subject to Changes ............................................................................ 7
1.4.2 Personal Qualifications ...................................................................... 7
1.4.3 Limitation of Liability ........................................................................... 7
1.5 Revision History...................................................................................... 8
2 Material Used............................................................................................. 9
2.1 Devices .................................................................................................. 9
2.2 Tools ...................................................................................................... 9
3 System configuration ............................................................................. 10
3.1 PROFINET ........................................................................................... 10
3.2 PROFIBUS ........................................................................................... 13
4 Function Blocks ...................................................................................... 16
4.1 FB1 FB IOL_CALL................................................................................ 16
4.2 FB50001 IO_LINK_DEVICE ................................................................. 18
4.3 Fuse_IOL ............................................................................................. 20
4.4 Wago_Fuse_IO_Link ............................................................................ 23
5 Examples ................................................................................................. 25
5.1 Siemens I/O-Link Master: Example ...................................................... 25
5.1.1 Configuring the I/O-Link Masters ...................................................... 25
5.1.2 “Fuse_IOL” Function Block .............................................................. 26
5.1.3 Visualization ..................................................................................... 29
5.1.4 The Example Project ........................................................................ 31
5.2 WAGO I/O-Link Master: Example ......................................................... 34
5.2.1 “Fuse_IOL” Function Block .............................................................. 34
5.2.2 “Wago_Fuse_IO_Link” Function Block ............................................. 35
5.2.3 Visualization ..................................................................................... 36
5.2.4 The Example Project ........................................................................ 38
List of Figures .................................................................................................. 41
List of Tables .................................................................................................... 42

Application Note
1.0.0
4 Notes about this Documentation TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

1 Notes about this Documentation


1.1 Copyright
This Manual, including all figures and illustrations, is copyright-protected. Any
further use of this Manual by third parties that violate pertinent copyright
provisions is prohibited. Reproduction, translation, electronic and phototechnical
filing/archiving (e.g., photocopying) as well as any amendments require the
written consent of WAGO Kontakttechnik GmbH & Co. KG, Minden, Germany.
Non-observance will involve the right to assert damage claims.

1.1 Symbols

Personal Injury!
Indicates a high-risk, imminently hazardous situation which, if not avoided, will
result in death or serious injury.

Personal Injury Caused by Electric Current!


Indicates a high-risk, imminently hazardous situation which, if not avoided, will
result in death or serious injury.

Personal Injury!
Indicates a moderate-risk, potentially hazardous situation which, if not avoided,
could result in death or serious injury.

Personal Injury!
Indicates a low-risk, potentially hazardous situation which, if not avoided, may
result in minor or moderate injury.

Damage to Property!
Indicates a potentially hazardous situation which, if not avoided, may result in
damage to property.

Application Note
1.0.0
TIA Portal Notes about this Documentation 5
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Damage to Property Caused by Electrostatic Discharge (ESD)!


Indicates a potentially hazardous situation which, if not avoided, may result in
damage to property.

Important Note!
Indicates a potential malfunction which, if not avoided, however, will not result in
damage to property.

Additional Information:
Refers to additional information which is not an integral part of this
documentation (e.g., the Internet).

Application Note
1.0.0
6 Notes about this Documentation TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

1.2 Number Notation


Table 1: Number Notation
Number Code Example Note
Decimal 100 Normal notation
Hexadecimal 0x64 C notation
Binary '100' In quotation marks, nibble separated
'0110.0100' with dots (.)

1.3 Font Conventions


Table 2: Font Conventions
Font Type Indicates
italic Names of paths and data files are marked in italic-type.
e.g.: C:\Program Files\WAGO Software
Menu Menu items are marked in bold letters.
e.g.: Save
> A greater-than sign between two names means the selection of a
menu item from a menu.
e.g.: File > New
Input Designation of input or optional fields are marked in bold letters,
e.g.: Start of measurement range
“Value” Input or selective values are marked in inverted commas.
e.g.: Enter the value “4 mA” under Start of measurement range.
[Button] Pushbuttons in dialog boxes are marked with bold letters in square
brackets.
e.g.: [Input]
[Key] Keys are marked with bold letters in square brackets.
e.g.: [F5]

Application Note
1.0.0
TIA Portal Notes about this Documentation 7
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

1.4 Legal Bases


1.4.1 Subject to Changes
WAGO Kontakttechnik GmbH & Co. KG reserves the right to provide for any
alterations or modifications. WAGO Kontakttechnik GmbH & Co. KG owns all
rights arising from the granting of patents or from the legal protection of utility
patents. Third-party products are always mentioned without any reference to
patent rights. Thus, the existence of such rights cannot be excluded.

1.4.2 Personal Qualifications


The use of the product described in this document is exclusively geared to
specialists having qualifications in PLC programming, electrical specialists or
persons instructed by electrical specialists who are also familiar with the
appropriate current standards.

Moreover, the persons cited here must also be familiar with all of the products
cited in this document, along with the operating instructions. They must also be
capable of correctly predicting any hazards which may not arise until the products
are combined.

WAGO Kontakttechnik GmbH & Co. KG assumes no liability resulting from


improper action and damage to WAGO products and third-party products due to
non-observance of the information contained in this document.

1.4.3 Limitation of Liability


This documentation describes the use of various hardware and software
components in specific example applications. The components may represent
products or parts of products from different manufacturers. The respective
operating instructions from the manufacturers apply exclusively with regard to
intended and safe use of the products. The manufacturers of the respective
products are solely responsible for the contents of these instructions.

The sample applications described in this documentation represent concepts,


that is, technically feasible application. Whether these concepts can actually be
implemented depends on various boundary conditions. For example, different
versions of the hardware or software components can require different handling
than that described here. Therefore, the descriptions contained in this
documentation do not form the basis for assertion of a certain product
characteristic.

Responsibility for safe use of a specific software or hardware configuration lies


with the party that produces or operates the configuration. This also applies when
one of the concepts described in this document was used for implementation of
the configuration.

Application Note
1.0.0
8 Notes about this Documentation TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

WAGO Kontakttechnik GmbH & Co. KG is not liable for any actual
implementation of the concepts.

1.5 Revision History


Table 3: Revision History
Version Author Description of Change
1.0.0 u010663 First issue

Application Note
1.0.0
TIA Portal Material Used 9
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

2 Material Used
2.1 Devices
Table 4: Devices
Supplier Quantity Designation Item No. Version*
WAGO 1 PROFINET IO 750-375 FW05
advanced fieldbus HW01
coupler
WAGO 1 PROFIBUS DP/V1 750-333 FW17
fieldbus coupler
WAGO 1 I/O-Link Master 750-657
SIEMENS 1 I/O-Link Master, CM 4x 6ES7137-
I/O Link 6BD00-0CA0
SIEMENS 1 CPU 1511-1 PN 6ETIA 511- V1.1
1AK00-0AB0
WAGO 1 Electronic fuse 787- >=2.39
1668/0000-
0080
* This version was used when the Application Notes were created.

2.2 Tools
Table 5: Tools
Designation Item No. Version*
TIA Portal V15 SP1
* This version was used when the Application Notes were created.

Application Note
1.0.0
10 System configuration TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

3 System configuration
3.1 PROFINET

Figure 1: Devices & networks

The PROFINET fieldbus coupler used can be added via Catalog > Other FIELD
DEVICES > PROFINET IO > I/O > WAGO-I/O-SYSTEM 750/753.

Figure 2: Select PROFINET fieldbus coupler

The PROFINET fieldbus coupler interface is assigned to the corresponding CPU.

Application Note
1.0.0
TIA Portal System configuration 11
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 3: Assign PROFINET coupler

Figure 4: Process image I/O addresses

The I/O-Link Master is added in the device view of the fieldbus coupler. The
process image input and output addresses can be set in the I/O module properties.

Application Note
1.0.0
12 System configuration TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 5: Select ports in I/O module assembly parameters

In the I/O module assembly parameters, the ports are selected, ->I/O-Link, the
size of the input and output process images determined Output PA ->3 and Input
PA ->5 and the fragmentation ->deactivated.

Application Note
1.0.0
TIA Portal System configuration 13
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

3.2 PROFIBUS

Figure 6: Networks & devices

The PROFINET fieldbus coupler used can be added via Catalog > Other FIELD
DEVICES > PROFIBUS DP > I/O > WAGO-I/O-SYSTEM 750/753.

Set the PROFIBUS address to correspond to the connected device.

Figure 7: Select PROFIBUS fieldbus coupler

Application Note
1.0.0
14 System configuration TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

The PROFIBUS fieldbus coupler interface is assigned to the corresponding CPU.

Figure 8: Assign PROFIBUS fieldbus coupler

Figure 9: Process image I/O addresses

The I/O-Link Master is added in the device view of the fieldbus coupler. The
process image input and output addresses can be set in the I/O module properties.

Application Note
1.0.0
TIA Portal System configuration 15
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 10: Select ports in I/O module assembly parameters

In the I/O module assembly parameters, the ports are selected, ->I/O-Link, the
size of the input and output process images determined Output PA ->3 and Input
PA ->5 and the fragmentation ->locked.

Application Note
1.0.0
16 Function Blocks TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

4 Function Blocks

4.1 FB1 FB IOL_CALL


Table 6: FB1 FB IOL_CALL
Function Blocks for TIA
Category:
Name: FB IOL_CALL
Type: Function Function block X Program
Name of Library:
Applicable to: S7-300

Input Parameters: Data Type: Comment:


REQ BOOL Read/write operation is started.
Gain DWORD I/O-Link Master in-/output addresses
CAP INT Client access point always 255 for WAGO;
227 for Siemens
RD_WR BOOL 0 = Read
1 = Write
PORT INT I/O-Link device port number
IOL_INDEX INT ISDU access index
IOL_SUBINDEX INT ISDU access subindex
LEN INT Size of data to be written
RECORD_IOL_DATA ANY ANY pointer on the data range for reading
and writing

Output Parameters: Data Type: Comment:


DONE_VALID BOOL 0 = Data invalid
1 = Data valid
BUSY BOOL Instruction was completed.
ERROR BOOL An unexpected error has occurred; the
instruction was closed.
STATUS DWORD DP/PNIO error
IOL_STATUS DWORD I/O-Link error
RD_LEN INT Size of the read data

Application Note
1.0.0
TIA Portal Function Blocks 17
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Graphical Illustration:

Function Description:
With this Siemens FB (function block), it is possible to perform a standard I/O call. This block
permits access to the ISDU dataset of an I/O-link device.
Example for reading the manufacturer:
Port=4
IOL_Index=16
IOL_Subindex=0
The answer is: WAGO Kontakttechnik GmbH Co. KG

Application Note
1.0.0
18 Function Blocks TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

4.2 FB50001 IO_LINK_DEVICE


Table 7: FB50001 IO_LINK_DEVICE
Function Blocks for TIA
Category:
Name: IO_LINK_DEVICE
Type: Function Function block X Program
Name of Library:
Applicable to: S7-1500

Input Parameters: Data Type: Comment:


REQ BOOL Read/write operation is started.
Gain HW_IO Hardware recognition of the I/O-Link Master
CAP INT Client access point always 255 for WAGO;
227 for Siemens
RD_WR BOOL 0 = Read
1 = Write
PORT INT I/O-Link device port number
IOL_INDEX INT ISDU access index
IOL_SUBINDEX INT ISDU access subindex
LEN INT Size of data to be written
RECORD_IOL_DATA Array[0..231] of Data range for reading and writing
Byte

Output Parameters: Data Type: Comment:


DONE_VALID BOOL 0 = Data invalid
1 = Data valid
BUSY BOOL Instruction was completed.
ERROR BOOL An unexpected error has occurred; the
instruction was closed.
STATUS DWORD DP/PNIO error
IOL_STATUS DWORD I/O-Link error
RD_LEN INT Size of the read data

Application Note
1.0.0
TIA Portal Function Blocks 19
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Graphical Illustration:

Function Description:
With this Siemens FB, it is possible to perform a standard IO call. This block permits access
to the ISDU dataset of an I/O-link device.
Example for reading the manufacturer:
Port=1
IOL_Index=16
IOL_Subindex=0
The answer is: WAGO Kontakttechnik GmbH Co. KG

Application Note
1.0.0
20 Function Blocks TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

4.3 Fuse_IOL
Table 8: FUSE_IOL
Function Blocks for TIA
Category:
Name: Fuse_IOL
Type: Function Function block X Program
Name of Library:
Applicable to: S7-1500

Input Parameters: Data Type: Comment:


xEnable BOOL Module is released.
xIs4ChannelFuse BOOL True, when a 4-channel fuse is used
Gain HW_IO Hardware recognition of the I/O-Link Master
CAP INT Client access point always 255 for WAGO
I/O-Link Master module; 227 for Siemens
I/O-Link Master
iPORT INT Fuse port number -> [1..4]
aDeviceInData Array[0..4] of Fuse input data
Byte
aSetpointTripCurrent Array[0..8] of Trip current per channel -> [1,2,3,4,6,8,10]
Byte
aOnOffReset Array[0..8] of Commands per channel -> [0,1]
Bool
xWriteTripCurrent BOOL Write all trip currents.
xReset BOOL Write all values of input “aOnOffReset” to
activate/deactivate the channels.
Input/Output Parameters: Data Type: Comment:
typVisu typVisu Data for the visualization

Output Parameters: Data Type: Comment:


typFuseStatus typFuseStatus Data structure with the current information
about the status of the various fuse channels
aDeviceOutData Array[0..2] of Output data of the channel
Byte
xBusy BOOL Status polling is running.
xDone BOOL Status data is updated.
wStatus WORD Diagnostics information about the block|s
internal processing

Application Note
1.0.0
TIA Portal Function Blocks 21
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Graphical Illustration:

Application Note
1.0.0
22 Function Blocks TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Function Description:
This block enables control of electric fuses type 787-1668/0000-0080 and 787-1664/0000-
0080.
Trip current can be specified for each channel. To do so, the corresponding channel must be
in the operating mode “RemoteControl.”
Also, if the channel was not switched off locally, each channel can be specifically switched
on or off. If a channel has tripped, it can be switched on again.
In addition, the current at any given time can be output.
The block “FB50001 IO_LINK_DEVICE” is used internally, so the ID and CAP entries must
be preset accordingly. Thus, this block cannot be used with a series 300 or 400 CPU.
The electronic fuse delivers five bytes input data and requires three bytes output data. This
data must be applied at the input “aDeviceInData” or the output “aDeviceOutData.” Where
this information from the respective I/O-Link Master is provided from is to be determined in
specific association with the respective configuration.
The signals needed for the visualization are provided at the in-/output “typVisu.” It must be
used in the data block “IOLink_Fuse” or “IOLink_Fuse_Siemens.”

Application Note
1.0.0
TIA Portal Function Blocks 23
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

4.4 Wago_Fuse_IO_Link
Table 9: Wago_Fuse_IO_Link
Function Blocks for TIA
Category:
Name: Wago_Fuse_IO_Link
Type: Function Function block X Program
Name of Library:
Applicable to: S7-1500

Input Parameters: Data Type: Comment:


IOID INT Identification according to the hardware
configuration of the I/O-Link Master module.
Address WORD Address according to the hardware
configuration of the I/O-Link Master module.
Modules INT Running number of the I/O-Link Master;
used as reference for the data block
IOLink_Fuse
src VARIANT Input image of the I/O-Link Master
Input/Output Parameters: Data Type: Comment:
dst VARIANT Output image of the I/O-Link Master

Output Parameters: Data Type: Comment:

Graphical Illustration:

Application Note
1.0.0
24 Function Blocks TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Function Description:

Additional Information:
This block can only be used for the WAGO-I/O-Link Master.

The block enables control of up to four electric fuses type 787-1668/0000-0080 and 787-
1664/0000-0080.

The various fuses and channels are controlled through the data block “IOLink_Fuse.”

Trip current can be specified for each channel. To do so, the corresponding channel must be
in the operating mode “RemoteControl.”
Also, if the channel was not switched off locally, each channel can be specifically switched
on or off. If a channel has tripped, it can be switched on again.
In addition, the current at any given time can be output.
The block “FB50001 IO_LINK_DEVICE” is used internally, so the ID and CAP entries must
be preset accordingly. Thus, this block cannot be used with a series 300 or 400 CPU.
Each channel of the I/O-Link Master must be set to five bytes input, two bytes output and no
fragmentation.
The signals needed for the visualization are provided at the in-/output “typVisu.” The data
block “IOLink_Fuse” or “IOLink_Fuse_Siemens” must be used.

Application Note
1.0.0
TIA Portal Examples 25
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

5 Examples
5.1 Siemens I/O-Link Master: Example
The file IOL_V1_2_RC_Fuse_v16_Siemens.zap15 provides a TIA V15 archive.

5.1.1 Configuring the I/O-Link Masters

Figure 11: Set I/O-Link Master ports

The I/O-Link Master is configured without using the S7-PCT software. Thus, the
individual ports are to be set in the following.

The length of the input data for the electronic fuse must be set to “5” and the length
of the output data to “3.” The operating mode for the channel should be “I/O-Link
Autostart.”

The starting address for the inputs and outputs is automatically determined. These
values are important for the programming.

Application Note
1.0.0
26 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 12: I/O-Link Master port configuration

5.1.2 “Fuse_IOL” Function Block


The block “Fuse_IOL” is used for controlling and evaluating the data of the
electronic fuse.

The global data block “IOLink_Fuse_Siemens” is also needed.

The input “ID” of the block “Fuse_IOL” needs a hardware address that can be
determined with the block “LOG2MOD.”

Figure 13: Block "LOG2MOD"

Application Note
1.0.0
TIA Portal Examples 27
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

The call-up of the block “Fuse_IOL” is depicted below.

Figure 14: Call-up block “Fuse_IOL”

Application Note
1.0.0
28 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

A connection to the address area of the I/O-Link Master is needed to provide this
block with the data for the corresponding ports.

For the input data of the first channel:

Figure 15: Connection diagram for the input data of the first channel

For the output data of the first channel:

Figure 16: Connection diagram for the output data of the first channel

Application Note
1.0.0
TIA Portal Examples 29
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

5.1.3 Visualization
The example project also contains the visualization (HMI_Siemens_IOL_Master).
Either an eight-channel or a four-channel variant can be selected.
“IOLink_Fuse_Siemens” is the basis for data exchange with the PLC program.

For the eight-channel variant:

Figure 17: Visualization for the eight-channel variant

For the four-channel variant:

Figure 18: Visualization for the four-channel variant

Application Note
1.0.0
30 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

The following variables are determined in the HMI variant editor:

For the eight-channel variants:

DB8_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[1].xxx
DB9_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[2].xxx
DB10_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[3].xxx
DB11_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[4].xxx

For the four-channel variants:

DB100_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[1].xxx
DB200_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[2].xxx
DB300_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[3].xxx
DB400_xxx ->IOLink_Fuse_Siemens.aModule[1].aPort[4].xxx

Additional Information:
The visualization HMI_3 contains all eight available images. The images for
specific project can be copied starting with this visualization. Each port in the
specific project can only have one image.

If more than one master module is used, the variable

IOLink_Fuse_Siemens.aModule[1].aPort[1].xxx

must be replaced by the corresponding module number in the respective images;


e.g.:

IOLink_Fuse_Siemens.aModule[2].aPort[1].xxx

The visualization project HMI_2 only serves to create the images with the
corresponding variables (there may be more elegant ways to modify the variables).

The images delivered in the example project can be viewed in the HMI simulation
mode.

This requires setting the corresponding image as starting image in the properties
of visualization “HMI_Siemens_IOL_Master”:

Application Note
1.0.0
TIA Portal Examples 31
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 19: Set starting image

The “HMI_Siemens_IOL_Master” simulation can be started through a change in


the visualization:

Figure 20: Select visualization to start "HMI_Siemens_IOL_Master"

5.1.4 The Example Project


In the actual example project, an eight-channel fuse is operated at Port 1 and a
four-channel fuse at Port 2.

The default setting in the data block “IOLink_Fuse_Siemens” is set to eight-


channel fuses. With this in mind, the variable
"IOLink_Fuse_Siemens".aModule[1].aPort[2].xIs4ChannelFuse
must be set with “True.”

One option in the example project is presented by Network 1.

If control should not be through the visualization, the data block


“IOLink_Fuse_Siemens” offers access to all the information.

Application Note
1.0.0
32 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 21: Information via data block “IOLink_Fuse_Siemens”

The variables correspond directly with the designations of the block “Fuse_IOL.”

If additional four-channel fuses are to be used, one of the images


Bild_8Channel_Port3 or Bild_8Channel_Port4 must be replaced with the
corresponding image from the HMI_3 project. Furthermore, the corresponding
adaptations must be made in the HMI variables of the “HMI_Siemens_IOL_Master”
project by using “Search and Replace.”

Application Note
1.0.0
TIA Portal Examples 33
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 22: Replaceable images

The “HMI_Siemens_IOL_Master” must be connected with the corresponding


network in the device overview.

Figure 23: Connect "HMI_Siemens_IOL_Master" in device overview

Application Note
1.0.0
34 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

5.2 WAGO I/O-Link Master: Example


The file IOL_V1_2_RC_Fuse_v16_Wago.zap15 provides a TIA V15 archive.

5.2.1 “Fuse_IOL” Function Block


The block “Fuse_IOL” is used for controlling and evaluating the data of the
electronic fuse.

The call-up of the block can be seen in Network 11.

Figure 24: Call-up “Fuse_IOL”

Application Note
1.0.0
TIA Portal Examples 35
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

5.2.2 “Wago_Fuse_IO_Link” Function Block

There is also one more function block; with it, up to four electronic fuses can be
operated.

Figure 25: “Wago_Fuse_IO_Link” Function Block

Additional Information:
It is imperative to use the data block “IOLink_Fuse” with this function block.

The IO-IDs and addresses for the inputs correspond to the inputs as they are
defined for the Siemens Log2Mod; i.e., the settings from the I/O-Link-Masters 750-
657 configuration are to be entered.

In addition, the I/O-Link Master input and output ranges are to be entered at the
inputs “src” and “dst.”

A link is made to the corresponding instance in data block “IOLink_Fuse” through


the input “Module.”

With multiple instancing, more than four electronic fuses can also be used. Each
module requires a corresponding entry in the data block “IOLink_Fuse.”

Figure 26: Adapt number of I/O-Modules

Application Note
1.0.0
36 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface
The number of I/O-Link Modules (750-657) can be specified by adapting the upper
array limit. The number of possible electronic fuses is increased by a factor of four.

In this example, five I/O-Link Master modules, each with four electronic fuses, are
possible.

5.2.3 Visualization
The example project also contains the visualization (HMI_1). Either an eight-
channel or a four-channel variant can be selected. “IOLink_Fuse” is the basis for
data exchange with the PLC program.

For the eight-channel variant:

Figure 27: Visualization for the eight-channel variant

For the four-channel variant:

Figure 28: Visualization for the four-channel variant

Application Note
1.0.0
TIA Portal Examples 37
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface
The following variables are determined in the HMI variant editor:

For the eight-channel variants:

DB8_xxx ->IOLink_Fuse.aModule[1].aPort[1].xxx
DB9_xxx ->IOLink_Fuse.aModule[1].aPort[2].xxx
DB10_xxx ->IOLink_Fuse.aModule[1].aPort[3].xxx
DB11_xxx ->IOLink_Fuse.aModule[1].aPort[4].xxx

For the four-channel variants:

DB100_xxx ->IOLink_Fuse.aModule[1].aPort[1].xxx
DB200_xxx ->IOLink_Fuse.aModule[1].aPort[2].xxx
DB300_xxx ->IOLink_Fuse.aModule[1].aPort[3].xxx
DB400_xxx ->IOLink_Fuse.aModule[1].aPort[4].xxx

Additional Information:
The visualization HMI_3 contains all eight available images. The images for
specific project can be copied starting with this visualization. Each port in the
specific project can only have one image.

If more than one master module is used, the variable


IOLink_Fuse.aModule[1].aPort[1].xxx

must be replaced by the corresponding module number in the respective images;


e.g.:
IOLink_Fuse.aModule[2].aPort[1].xxx

The visualization project HMI_2 only serves to create the images with the
corresponding variables (there may be more elegant ways to modify the variables).

The images delivered in the example project can be viewed in the HMI simulation
mode.

This requires setting the corresponding image as starting image in the properties
of visualization “HMI_1”:

Application Note
1.0.0
38 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 29: Set starting image

The “HMI_1” simulation can be started through a change in the visualization:

Figure 30: Select visualization to start "HMI_1"

5.2.4 The Example Project


In the actual example project, a four-channel fuse is operated at Port 2 and an
eight-channel fuse at Port 3.

The default setting in the data block “IOLink_Fuse” is set to eight-channel fuses.
With this in mind, the variable
"IOLink_Fuse".aModule[1].aPort[2].xIs4ChannelFuse
must be set with “True.”

One option in the example project is presented by Network 1.

If control should not be through the visualization, the data block “IOLink_Fuse”
offers access to all the information.

Application Note
1.0.0
TIA Portal Examples 39
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 31: Information via data block “IOLink_Fuse”

The variables correspond directly with the designations of the block “Fuse_IOL.”

If additional four-channel fuses are to be used, one of the images


Bild_8Channel_Port1 or Bild_8Channel_Port4 must be replaced with the
corresponding image from the HMI_3 project. Furthermore, the corresponding
adaptations must be made in the HMI variables of the “HMI_1” project by using
“Search and Replace.”

Application Note
1.0.0
40 Examples TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

Figure 32: Replaceable images

Application Note
1.0.0
TIA Portal List of Figures 41
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

List of Figures
Figure 1: Devices & networks .............................................................................10
Figure 2: Select PROFINET fieldbus coupler .....................................................10
Figure 3: Assign PROFINET coupler ..................................................................11
Figure 4: Process image I/O addresses .............................................................11
Figure 5: Select ports in I/O module assembly parameters ................................12
Figure 6: Networks & devices .............................................................................13
Figure 7: Select PROFIBUS fieldbus coupler .....................................................13
Figure 8: Assign PROFIBUS fieldbus coupler ....................................................14
Figure 9: Process image I/O addresses .............................................................14
Figure 10: Select ports in I/O module assembly parameters...............................15
Figure 11: Set I/O-Link Master ports...................................................................25
Figure 12: I/O-Link Master port configuration .....................................................26
Figure 13: Block "LOG2MOD" ............................................................................26
Figure 14: Call-up block “Fuse_IOL”...................................................................27
Figure 15: Connection diagram for the input data of the first channel .................28
Figure 16: Connection diagram for the output data of the first channel ...............28
Figure 17: Visualization for the eight-channel variant .........................................29
Figure 18: Visualization for the four-channel variant ...........................................29
Figure 19: Set starting image .............................................................................31
Figure 20: Select visualization to start "HMI_Siemens_IOL_Master" ..................31
Figure 21: Information via data block “IOLink_Fuse_Siemens” ...........................32
Figure 22: Replaceable images ..........................................................................33
Figure 23: Connect "HMI_Siemens_IOL_Master" in device overview .................33
Figure 24: Call-up “Fuse_IOL” ............................................................................34
Figure 25: “Wago_Fuse_IO_Link” Function Block ..............................................35
Figure 26: Adapt number of I/O-Modules...........................................................35
Figure 27: Visualization for the eight-channel variant .........................................36
Figure 28: Visualization for the four-channel variant ...........................................36
Figure 29: Set starting image .............................................................................38
Figure 30: Select visualization to start "HMI_1" ..................................................38
Figure 31: Information via data block “IOLink_Fuse” ..........................................39
Figure 32: Replaceable images ..........................................................................40

Application Note
1.0.0
42 List of Tables TIA Portal
a2019004 Electronic fuse 787-166x/0000-0080 with I/O-Link Interface

List of Tables
Table 1: Number Notation ................................................................................... 6
Table 2: Font Conventions .................................................................................. 6
Table 3: Revision History .................................................................................... 8
Table 4: Devices ................................................................................................. 9
Table 5: Tools ..................................................................................................... 9
Table 6: FB1 FB IOL_CALL................................................................................16
Table 7: FB50001 IO_LINK_DEVICE .................................................................18
Table 8: FUSE_IOL ............................................................................................20
Table 9: Wago_Fuse_IO_Link ............................................................................23

Application Note
1.0.0
WAGO Kontakttechnik GmbH & Co. KG
Postfach 2880 • 32385 Minden
Hansastraße 27 • 32423 Minden
Phone: +49 571 887 – 0
Fax: +49 571 887 – 844169
E-Mail: info@wago.com
Internet: www.wago.com

You might also like