IIoT Quick Start Guide for ICE2/ICE3
IIoT Quick Start Guide for ICE2/ICE3
Pepperl+Fuchs IO-Link
Master, ICE2 and ICE3
MQTT, and OPC UA
Manual
With regard to the supply of products, the current issue of the following document is applicable:
The General Terms of Delivery for Products and Services of the Electrical Industry, published
by the Central Association of the Electrical Industry (Zentralverband Elektrotechnik und Elek-
troindustrie (ZVEI) e.V.) in its most recent version as well as the supplementary clause:
"Expanded reservation of proprietorship"
Worldwide
Pepperl+Fuchs Group
Lilienthalstr. 200
68307 Mannheim
Germany
Phone: +49 621 776 - 0
E-mail: info@[Link]
North American Headquarters
Pepperl+Fuchs Inc.
1600 Enterprise Parkway
Twinsburg, Ohio 44087
USA
Phone: +1 330 425-3555
E-mail: sales@[Link]
Asia Headquarters
Pepperl+Fuchs Pte. Ltd.
P+F Building
18 Ayer Rajah Crescent
Singapore 139942
Phone: +65 6779-9091
E-mail: sales@[Link]
[Link]
Contents
1 Introduction................................................................................................................ 4
3
IIoT Quick Start Guide
Introduction
1 Introduction
Pepperl+Fuchs has developed an innovative way to share IIoT and Industry 4.0 data from its
sensors and other sensor or actuator systems through communication solutions including its
IO-Link master, the ICE2 and ICE3 devices, or the ICRL Ethernet switch series. The ICE2 and
ICE3 solutions embed IIoT protocols such as OPC UA and MQTT along with various REST
APIs to enable automatic data sharing with or without PLC communication. The IIoT protocols
described below can communicate simultaneously along with the industrial Ethernet protocols
such as PROFINET, Ethernet/IP, or ModbusTCP.
Pepperl+Fuchs' ICE2 and ICE3 have the ability to communicate process-critical data with the
PLC for real-time control and send the non-time-critical data via MQTT or OPC UA for diagnos-
tics, predictive maintenance, trending, and reporting. This ability is called MultiLinkTM.
The graphic below illustrates how the protocols run concurrently and send process and sensor
health data to multiple software systems. The software systems can be a cloud-enabled dash-
board, on-premise SCADA or MES system, or a centralized Unified Name Space (UNS) soft-
ware system.
Figure 1.1
2022-02
4
IIoT Quick Start Guide
Introduction
The differences and capabilities of OPC UA and MQTT are described in the following table:
OPC UA MQTT
Communication Model Client/Server Publish/Subscribe
Publish/Subscribe
Communication Method Request/Response Publish/Subscribe
Publish/Subscribe (based on
MQTT/AMQP)
Participants Identified Unknown (Broker has no info
(Handshake during connec- about participants)
tion)
Relationship n:1 (Client/Server) n:m
n:m (Pub/Sub)
Data Update Cyclic and change-driven (for Change-driven
events and alarms)
Data Overhead High Low
Standardization High Low
Metadata Yes No
Security Integrated (Optional) Separate (On higher network
level)
Driving Industry Automation IT
Table 1.1
Depending on the project application needs and its SCADA or MES control software capabili-
ties, the customer can decide which protocol will work best. Flexibility and innovation are the
driving principles behind Pepperl+Fuchs' Sensorik 4.0 strategy, which gives the customer con-
trol of their sensing and data-sharing requirements for automation applications.
This guide will provide the necessary understanding to enable the MQTT and OPC UA proto-
cols within the embedded webserver on the ICE2 and ICE3 sensor edge gateway and its asso-
ciated connection software called PortVision DX.
Additionally, Pepperl+Fuchs' IIoT Starter Kits contain everything that you need to integrate IO-
Link technology into your system. The following diagrams illustrate the suggested connections
and layout of the products included in the kits, making setup quick and easy.
2022-02
5
IIoT Quick Start Guide
Introduction
INPUT
AC 100-240V 3 3 3
N L Power In 2 2 2
1 1 1 Front View IQC21-50
Side View 1 2 3 4 1 2 3 4
AC Input
White or Gray Wire (Neutral)
x3
Power In Port IO-Link Ports
Green Wire (Ground)
Black Wire (Positive)
x3
1 2 3 4 1 2 3 4
4
IO-Link Master (IP20) 3 Black Wire (to Terminal 4) Female Cordset
2 Read/Write Station
1 V11-G-0,8M-PVC
Blue Wire (to Terminal 2) IQT1-F61-IO-V1
Lead length as is from stock
2022-02
6
IIoT Quick Start Guide
Introduction
Ethernet Ports
Front View
AC Input
White or Gray Wire (Neutral)
Connection Cable
Green Wire (Ground)
Black Wire (Positive)
0.0
0.2
0.4
V11-G-1M-PVC-V11-G
0.6
0.8
1.0
Inductive Sensor
Female Cordset
NRB4-12GS40-E2-IO-V1
V15L-G-2M-PUR-U
(If too long to fit into the kit,
the V15L can shortened to 1 m)
Connection Cable
V11-G-1M-PVC-V11-G
3-Conductor
US Power Cable Distance Sensor
( ≶ 3 – 5 ft) OMT550-R200-2EP-IO-V1
Ethernet Connection Cable
Brown Wire (L+) Blue Wire (L-) V1SD-G-GN1M-PUR-E1S-V45-G
Ethernet Ports
Ethernet Switch Unmanaged
ICRL-U-5RJ45-DIN-NT V+ V- Ethernet Connection Cable
P5 P4 P3 P2 P1
Side View Front View V45-G-C5-GN1M-PUR-E1S-V45-G
Relay Power
2022-02
7
IIoT Quick Start Guide
MQTT Protocol Primer
2022-02
8
IIoT Quick Start Guide
MQTT Protocol Primer
Figure 2.1 An IO-Link distance measurement sensor published the "target distance" to the broker.
User application programs subscribe to this data (topic) and receive updates when they
are available.
2022-02
9
IIoT Quick Start Guide
Configuring ICE2 / ICE3 Network Settings
10
IIoT Quick Start Guide
Configuring ICE2 / ICE3 Network Settings
11
IIoT Quick Start Guide
Configuring ICE2 / ICE3 Network Settings
Table 3.1
12
IIoT Quick Start Guide
Configuring ICE2 / ICE3 Network Settings
ISDU Read/Write
Since MQTT lacks intrinsic support for request/response semantics, ISDU read/write requests
and responses are handled via a pair of topics:
• MqttTopicBase/port/n/isdu/request/client_transaction_id and
• MqttTopicBase/port/n/isdu/response/client_transaction_id
Requests for ISDU read/write are published by other clients to the "request" topic shown above.
The client_transaction_id is an arbitrary string chosen by the requesting client and should be
chosen to be unique. After the ISDU operation is completed, the IOLM will publish the response
to the corresponding "response" topic (with the same client_transaction_id as the request).
ISDU Request Payload
Name Type Description
Op String Required—must be "read" or "write"
Index Integer Required
Subindex Integer Optional—defaults to 0 if not provided
Fields specific to write requests (exactly one of uint, raw, or str must be present):
In a write request with str data and a len field, the string will be NULL-padded to the requested
length before being written to the device.
2022-02
13
IIoT Quick Start Guide
Configuring ICE2 / ICE3 Network Settings
Fields specific to read response (one or more of raw, str, uint may be present)
PDO Write
PDO values may be written by publishing to MQTTTopicBase/port/n/pdowr. The payload may
contain PDO data fields in one of two formats: raw or uint. Data in raw format must match the
PDO length exactly. Data in uint format is supported only for PDO lengths of no more than four
bytes. It may also contain a Boolean valid flag.
Implementation Notes
The Pepperl+Fuchs IO-Link master MQTT package is implemented using the Eclipse Paho C
client ([Link]/paho/clients/c) libraryversion 1.3.0
([Link]/eclipse/[Link].c/tree/v1.3.0).
This concludes the MQTT portion on the Pepperl+Fuchs IO-Link master. The next section will
provide connectivity guidance on OPC UA server and client information.
2022-02
14
IIoT Quick Start Guide
OPC UA Protocol Primer for Pepperl+Fuchs' ICE2/3 IO-Link Master
Ensure Compatibility
1. Check the IO-Link master to confirm it has the following application base images installed:
• EIP v1.5.0.1 or higher
• PNIO v1.5.0.1 or higher
2. Check your software version using one of the following methods:
15
IIoT Quick Start Guide
OPC UA Protocol Primer for Pepperl+Fuchs' ICE2/3 IO-Link Master
PortVision DX Method
1. To check your software on PortVision DX, launch the application, left-click Scan once the IOLM
is connected to the network, check the box labeled IO-Link Master / ICE2 / ICE3, and left-
click Scan. Highlight the folder of the connected device. In the example below, the folder is
named Scan Results [1/1].
16
IIoT Quick Start Guide
OPC UA Protocol Primer for Pepperl+Fuchs' ICE2/3 IO-Link Master
Tip
Not the correct version?
Depending on when the IO-Link master was manufactured, you may need to send the IO-Link
master to Pepperl+Fuchs for image updates, if below v1.5.0.1
If you do NOT have PortVision DX, install it using this link:
Install PortVision DX
Configuring
1. After confirming your software version is correct, open a web browser and enter the IO-Link
master IP address.
2. Once loaded, click on Configuration, the OPC UA.
3. Click Edit for the OPC UA Configuration tab on the right side.
17
IIoT Quick Start Guide
OPC UA Protocol Primer for Pepperl+Fuchs' ICE2/3 IO-Link Master
18
IIoT Quick Start Guide
OPC UA Protocol Primer for Pepperl+Fuchs' ICE2/3 IO-Link Master
19
IIoT Quick Start Guide
Client and Server: OPC UA
Overview
The IO-Link master acts as the OPC UA server. The OPC UA client can be your choice of either
HMI, SCADA, or a PC application. Once the client is ready for the server, you will be required to
enter an Endpoint to access the server, such as typing in the IP address of the server. Your cli-
ent connects to the OPC UA server’s endpoint to communicate. Pepperl+Fuchs does not use a
Discovery Server between the client and server.
2022-02
20
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
21
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
2. Next, find your "add server" option. In UA Expert, that will be located in the top left under
Server. Select Add.
3. This will be your endpoint to connect to the server. When working with OPC via TCP, choose
the [Link] option.
2022-02
22
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
4. Discover the server through the UA Client. Double-click on <Double click to Add Server...>
under the Custom Discovery tab.
23
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
6. Double-click the IP address you just added. Then double-click the endpoint name. Since the
master has not yet been named within the OPCUA Configuration tab via the Web Server, it is
simply named ([Link]).
7. Replace the hostname of the connected endpoint with the IP address of the master. Click Yes
to continue.
2022-02
24
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
25
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
9. The server is now connected! A blank name for the connection is acceptable, but may be
renamed by right-clicking the connection icon, going into Properties, and changing the
Configuration Name field. In the example below, the connection was named "Test1."
Additional Steps:
1. If your server and client are not connected yet, please continue to the next page
2. If you have successfully connected, see "Viewing Tags and Data on the Client" on page
28 to view tags inside your OPC UA client.
3. If you want to find a specific tag, see "How to Read Tag Values: Practical Application" on
page 31 .
2022-02
26
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
Note
You may have to type "port:4840" after the IP address.
2022-02
27
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
2022-02
28
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
2. Expand one of your Ports that a sensor is attached to. In this example, a Pepperl+Fuchs
Diffuse mode photoelectric sensor (OBD1400-R200-2EP-IO-V1) is attached to Port 3. To view
data, the IODD files for the device in use MUST be uploaded to the web server.
2022-02
29
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
3. Expand Attached Device. This will be the destination for all your tags you want to view on your
OPC UA client for that specific port.
2022-02
30
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
4. Now, you can explore the different tags and view any data you wish to select. To test if the IO-
Link master is properly working with its respective sensor(s), click on Vendor Name tag (left
side), then look over on the Attributes (right side). Under Value, the Vendor Name of our
device (Pepperl+Fuchs) for the port confirms that the client, server, and port are all
communicating—you can now freely view the data for any tag.
2. To view the data change in real time, you’ll need to use the Data Access View tab (the center
panel in the image below). This will give you live data while testing your sensor. To start using
the Data Access View tab, pick the tag you want to track data for. In this case, PDI Data
Unsigned32 will work—drag it to the Data Access View tab and it will now display in real time.
Watch the value change as you move the sensor. The value will correlate to the output light on
the sensor.
2022-02
31
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
Tag Names:
Attached Devices IO-Link Tag Description
Actual Cycle Time When the master sends a packet and receives it. This is noted as a
period rather than a frequency (ex: 5ms). The Actual Cycle Time is a
negotiation between the IO-Link master and the IO-Link sensor / actu-
ator; this time will vary depending on the device and master. It will be
the greater of either the master or device min cycle time.
DS Capable Determines if the attached device is data storage capable; Boolean.
Data Storage allows saving and loading of multiple parameters as a
single object. This object can be uploaded or downloaded to facilitate
sensor cloning or effortless replacement of a bad sensor.
Device ID A numerical identifier set by the device manufacturer into the sensor
hardware that cannot be changed. Useful for basic identification and
criteria to allow certain automated options such as automatic data
storage download.
Device Min Cycle At the low level hardware IO-Link information exchange, the Device
Time Min Cycle Time is the minimum period of time at which the device can
run. It may not necessarily be used, but rather an "Actual Cycle Time"
is negotiated during IOL handshake which is acceptable to both mas-
ter and device.
FW Version Displayed under IOLM properties, this is the Firmware of the attached
device if displayed under "Port X/Attached device." It cannot be
changed.
HW Version Displayed under IOLM properties, this is the Hardware of the attached
device if displayed under "Port X/Attached device." It cannot be
changed.
IO-Link Version This is the version of the IO-Link spec that the device conforms [Link]-
sion 1.0 or 1.1 is reported.
ISDU Capable Implementation of the Index Service Data Unit; this tag is true when
the device supports ISDUs.
PDI Bytecount Size of the input process data payload
PDI Data Byte Array One of several different format options to read PDI; formatted in an
array.
PDI Data Byte String One of several different format options to display PDI; String
PDI Data Unsigned32: One of several different format options to read PDI; simple data type of
UInt32 (4 bytes).
PDI Files Collection of tags; only available if a valid IODD file has been loaded
for that particular device. Offers "smart automatic formatting" of the
PDI payload by parsing PDI. You may observe, for example, a raw 32
bit value sorted into a flow rate and a temperature complete with engi-
neering units, and the tags will be automatically labeled as "flow rate"
and "temperature."
PDI Valid This tag is true when the device is sending valid PDI data. The device
(sensor) determines if the data is valid.
PDO Bytecount Size of the output process data payload.
PDO Data Byte Array One of several different format options to read PDO; formatted in an
(RW) array.
2022-02
32
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
Tag Names:
Attached Devices IO-Link Tag Description
PDO Data Unsigned One of several different format options to read PDO; simple data type
with of UInt32 (4 bytes).
PDO Fields Collection of tags; only available if a valid IODD file has been loaded
for that particular device. Offers "smart automatic formatting" of the
PDO payload by parsing PDO.
Page 1 Data ISDU Index 0; Index that tells critical information on the device such as
Min Cycle Time, etc.
Page 2 Data Used for devices that are minimalistic and do not implement ISDU.
Used to store parameter data(16 bytes).
Product Name Often called "model" or "family of devices." This tag is any string of
alphanumeric characters. Ex: TD2807, Q4X.
Serial Numerical Identifier assigned by the device (sensor) manufacturer at
build time; unchangeable and unique for each device built.
Vendor ID Assigned to each vendor in the IO-Link community. The Vendor ID will
appear the same for every IO-Link compatible product made by that
OEM.
Vendor Name The common name of the vendor.(Ex: Pepperl-Fuchs)
33
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
2022-02
34
IIoT Quick Start Guide
Using an OPC UA Client to Connect to the IOLM Server
6.3 Contact Us
Still have questions?
This handy guide was designed to introduce you to IO-Link technology and to address many of
the common questions new users have. If you have any questions or concerns not addressed
in this document, a member of our staff will always be happy to help. Feel free to contact us by
telephone or email and we will be sure to get back to you as soon as possible.
35
Pepperl+Fuchs Quality
Download our latest policy here:
[Link]/quality
[Link]
© Pepperl+Fuchs · Subject to modifications
/ DOCT-8129