+ All Categories
Home > Documents > netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway...

netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway...

Date post: 05-Jul-2020
Category:
Upload: others
View: 9 times
Download: 0 times
Share this document with a friend
279
User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH www.hilscher.com DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public
Transcript
Page 1: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

User manual

netIOT Edge GatewayNIOT-E-TIB100-GB-RE (Remote)

V1.1.2.1

Hilscher Gesellschaft für Systemautomation mbHwww.hilscher.com

DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

Page 2: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Table of contents 2/279

Table of contents1 Introduction ..............................................................................................................................  7

1.1 About the user manual ..................................................................................................... 71.2 List of revisions ................................................................................................................ 7

2 Brief description ......................................................................................................................  8

3 Device drawings.......................................................................................................................  93.1 Positions of the interfaces ................................................................................................ 93.2 Dimensions .................................................................................................................... 11

4 Connectors and mounting ....................................................................................................  124.1 Mounting ........................................................................................................................ 124.2 LED sticker..................................................................................................................... 124.3 Power supply.................................................................................................................. 124.4 LAN connectors.............................................................................................................. 134.5 Real-Time Ethernet connectors ..................................................................................... 134.6 USB connectors ............................................................................................................. 134.7 Serial Interface ............................................................................................................... 14

4.7.1 RS-232............................................................................................................  144.7.2 RS-485............................................................................................................  14

4.8 Wi-Fi............................................................................................................................... 154.9 Battery compartment...................................................................................................... 15

4.9.1 Exchange of backup battery ...........................................................................  15

5 LEDs........................................................................................................................................  175.1 Positions of the LEDs on the gateway ........................................................................... 175.2 Gateway status LEDs..................................................................................................... 185.3 LEDs of the LAN interface.............................................................................................. 185.4 LEDs of the PROFINET IO Device interface.................................................................. 195.5 LEDs of the EtherNet/IP Adapter interface .................................................................... 20

6 Commissioning the Edge Gateway ......................................................................................  226.1 Establishing the IP address communication .................................................................. 226.2 Using the web browser to establish a connection with the Edge Gateway .................... 24

6.2.1 Using the host name .......................................................................................  246.2.2 Access to the Edge Gateway in the Windows network environment ..............  256.2.3 Using the IP address.......................................................................................  25

7 Edge Gateway Manager.........................................................................................................  267.1 Calling the Edge Gateway Manager .............................................................................. 267.2 Edge Gateway Manager web page................................................................................ 27

8 Control Panel..........................................................................................................................  298.1 Opening the control panel .............................................................................................. 29

8.1.1 First login ........................................................................................................  308.1.2 Secure connection ..........................................................................................  31

8.2 Overview and main menu .............................................................................................. 35

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 3: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Table of contents 3/279

8.3 System information and system time ............................................................................. 378.3.1 Displaying system information ........................................................................  378.3.2 License Manager ............................................................................................  388.3.3 Displaying the system log files........................................................................  428.3.4 Setting the system time...................................................................................  468.3.5 Backup and restore.........................................................................................  498.3.6 Rebooting the system .....................................................................................  568.3.7 System shutdown............................................................................................  57

8.4 Packet management ...................................................................................................... 588.4.1 Managing packets...........................................................................................  58

8.5 Network .......................................................................................................................... 598.5.1 Configuring Ethernet communication (LAN) ...................................................  598.5.2 Configuring wireless communication (Wi-Fi)...................................................  628.5.3 Field ................................................................................................................  688.5.4 Hostname........................................................................................................  69

8.6 Services ......................................................................................................................... 708.6.1 Starting, stopping and configuring services ....................................................  70

8.7 User management.......................................................................................................... 748.7.1 Managing user roles .......................................................................................  748.7.2 Managing user accounts.................................................................................  76

8.8 Security .......................................................................................................................... 778.8.1 Public Key Infrastructure.................................................................................  77

8.9 Help................................................................................................................................ 808.10 Session .......................................................................................................................... 80

8.10.1 User profile......................................................................................................  808.10.2 Logout .............................................................................................................  81

9 Node-RED - The wiring editor ...............................................................................................  829.1 Modelling IoT flows with nodes ...................................................................................... 839.2 Opening Node-RED ....................................................................................................... 849.3 Graphical user interface ................................................................................................. 869.4 Working with Node-RED ................................................................................................ 88

9.4.1 Using Git hub repository to store flows (projects) ...........................................  909.4.2 Menu Deploy...................................................................................................  919.4.3 Dashboard ......................................................................................................  93

9.5 List of nodes................................................................................................................. 1039.6 MQTT input node ......................................................................................................... 1069.7 MQTT output node ....................................................................................................... 1119.8 OPC UA input node...................................................................................................... 1139.9 OPC UA output node ................................................................................................... 122

10 Examples for Node-RED......................................................................................................  12610.1 Example 1: Inject and debug node............................................................................... 12610.2 Example 2: MQTT input node ...................................................................................... 12810.3 Example 3: MQTT output node .................................................................................... 13210.4 Example 4: OPC UA input node................................................................................... 13610.5 Example 5: OPC UA output node ................................................................................ 14410.6 Example 6: Fieldbus input node................................................................................... 152

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 4: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Table of contents 4/279

10.7 Example 7: Fieldbus output node................................................................................. 160

11 Configuring and using the fieldbus node..........................................................................  16811.1 Overview ...................................................................................................................... 16811.2 Configuring the fieldbus and defining the signals......................................................... 170

11.2.1 Creating a new fieldbus configuration...........................................................  17011.2.2 Changing the existing fieldbus configuration ................................................  17711.2.3 Loading firmware and configuration..............................................................  183

12 Configuring PROFINET and defining signals....................................................................  18512.1 User interface............................................................................................................... 18512.2 Menu commands.......................................................................................................... 185

12.2.1 Project - Save ...............................................................................................  18612.2.2 GSDML Download ........................................................................................  18612.2.3 Printing the configuration ..............................................................................  18612.2.4 Help - Contents .............................................................................................  18712.2.5 Help - Information .........................................................................................  187

12.3 Configuration tree......................................................................................................... 18812.3.1 PROFINET configuration ..............................................................................  18812.3.2 IO and signal configuration ...........................................................................  18912.3.3 Signal definitions overview............................................................................  19812.3.4 Download of the GSDML file.........................................................................  19912.3.5 Help...............................................................................................................  199

13 Configuring EtherNet/IP and defining signals ..................................................................  20013.1 User interface............................................................................................................... 20013.2 Menu commands.......................................................................................................... 200

13.2.1 Project - Save ...............................................................................................  20113.2.2 EDS Download..............................................................................................  20113.2.3 Printing the configuration ..............................................................................  20213.2.4 Help - Contents .............................................................................................  20213.2.5 Help - Information .........................................................................................  202

13.3 Configuration tree......................................................................................................... 20313.3.1 EtherNet/IP configuration..............................................................................  20313.3.2 IO and signal configuration ...........................................................................  20413.3.3 Signal definitions overview............................................................................  21313.3.4 Download of the EDS file ..............................................................................  21413.3.5 Help...............................................................................................................  214

14 Edge Server ..........................................................................................................................  21514.1 Function principle ......................................................................................................... 215

14.1.1 Communication with IT-network and mobile devices....................................  21514.1.2 Communication with the OT-network............................................................  21714.1.3 Access rights to the REST API .....................................................................  21714.1.4 Functions of the Edge Server .......................................................................  21814.1.5 Internal structure of the Edge Server ............................................................  219

14.2 Edge Server Control Center......................................................................................... 22014.2.1 Starting the Edge Server Control Center ......................................................  22014.2.2 Functions ......................................................................................................  22014.2.3 Service list.....................................................................................................  221

14.3 Configuration of the Edge Server................................................................................. 22314.3.1 The configuration of IP address area............................................................  22314.3.2 Selecting the protocols to scan for field devices ...........................................  226

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 5: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Table of contents 5/279

15 Isolated application execution with Docker ......................................................................  22715.1 Docker, image, and container ...................................................................................... 22715.2 Working with Docker via the web GUI.......................................................................... 230

15.2.1 The portainer.io interface ..............................................................................  23015.2.2 Example: Executing the web server NGINX as a container..........................  232

16 Public Key Infrastructure ....................................................................................................  23416.1 Asymmetric encryption................................................................................................. 23416.2 Certificates and keys.................................................................................................... 236

16.2.1 Structure of a certificate according to X.509 .................................................  23616.2.2 Hierarchy of trust...........................................................................................  23716.2.3 File formats for certificate and key files.........................................................  238

16.3 Use cases .................................................................................................................... 23916.3.1 Use case 1: Verification of the authenticity of the communication partner

(Server) .........................................................................................................  23916.3.2 Use case 2: Server certificates for Edge Gateway services .........................  24016.3.3 Use case 3: Client certificates for specific servers........................................  242

16.4 Verification of the authenticity of the communication partner using trustworthycertificates .................................................................................................................... 24416.4.1 Display the list of trustworthy root certificates stored within the Edge Gateway ..

 24416.4.2 Upload a trustworthy certificate into the Edge Gateway ...............................  24516.4.3 Download of certificates from the Edge Gateway into a file..........................  24616.4.4 Removing certificates no longer considered as trustworthy..........................  246

16.5 Working with server certificates for inbound connections ............................................ 24716.5.1 Uploading a a pair of certificate file and key file for HTTPS und OPC UA Server

 24716.5.2 Working with certificates for HTTPS and OPC UA Server............................  25016.5.3 Working with key files for HTTPS and OPC UA Server ................................  252

16.6 Working with client authentication certificates for outbound connections .................... 25316.6.1 Uploading a pair of certificate and corresponding key file for client

authentication................................................................................................  25416.6.2 Working with certificates for client authentication .........................................  25716.6.3 Working with key files for client authentication .............................................  260

17 Technical data ......................................................................................................................  26317.1 Technical Data NIOT-E-TIB100-GB-RE....................................................................... 26317.2 Technical data PROFINET IO Device.......................................................................... 26517.3 Technical data EtherNet/IP Adapter............................................................................. 266

18 Decommissioning, dismounting and disposal .................................................................  26718.1 Putting the device out of operation............................................................................... 26718.2 Removing device from top hat rail................................................................................ 26718.3 Removal of battery ....................................................................................................... 26718.4 Disposal of waste electronic equipment....................................................................... 267

19 Appendix...............................................................................................................................  26819.1 Legal notes................................................................................................................... 268

List of figures .......................................................................................................................  272

List of tables.........................................................................................................................  276

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 6: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Table of contents 6/279

Contacts................................................................................................................................  279

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 7: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Introduction 7/279

1 Introduction

1.1 About the user manualThis user manual describes the installation, configuration and functionalityof the device NIOT-E-TIB100-GB-RE .

1.2 List of revisionsRevision Date Author Revision4 2018-08-13 RGö, HHe Section Displaying the system log files [} page 42] added.

Section Security [} page 77] added.Section Public Key Infrastructure [} page 234] added.

5 2018-10-08 RGö, HHe Section Configuring wireless communication (Wi-Fi) [} page 62] updated.Section OPC UA input node [} page 113]updated.SectionOPC UA output node [} page 122] updated.Section Public Key Infrastructure [} page 234] updated.

Table 1: List of revisions

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 8: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Brief description 8/279

2 Brief descriptionHilscher's netIOT Edge Gateway NIOT-E-TIB100-GB-RE securelyconnects Real-Time Ethernet automation networks with a „Cloud“ or anyIoT-directed application.As a field device, it is performing a cyclic I/O data exchange with the PLCand communicates with further IoT-capable field devices within theautomation network.These key field data exchanged in real-time form the basis for intelligenthigher-level IoT applications for cyber-physical processes and M2Msolutions.

The gateway is designed for continuous operation in environments withpermanent intranet or Internet connection. Security mechanisms such asthe physical separation of automation and IT network, a secure operatingsystem, the execution of signed firmware and packets, as well asencryption techniques of the latest standards secure the data integrity andoffer protection against data theft.

The gateway base function forms the web-based Thing Wiring editor Node-RED, which serves to model the flows in the devices. Data apps and dataprofiles are created within minutes with predefined function blocks of theeditor. OPC UA and MQTT functions address objects in IoT-capable fielddevices or in the cloud via standardized IoT protocols.

The Hilscher netIOT Service offers additional software packets to extendthe Edge Gateway base functions by further applications or accesses tospecific clouds.

Figure 1: Edge Gateway communication structure

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 9: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Device drawings 9/279

3 Device drawings

3.1 Positions of the interfaces

Fieldbus

SYS

1

9

APL SEC POW

GPO1 WWAN WLAN BAT

COM

1

2

4

5

3

6

8 7

10

11

2

Figure 2: Positions of the interfaces of NIOT-E-TIB100-GB-RE

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 10: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Device drawings 10/279

Pos. Interface For details see(1) Gateway state LEDs (8 x) Gateway status LEDs(2) Antenna (1 x Wi-Fi), optional: Available at device variant

NIOT-E-TIB100-GB-RE/WF only.Wi-Fi [} page 15]

(3) LED communication state of Real-Time Ethernet.Name und function depends on used RTE protocol:PROFINET IO Device = SF (System failure)EtherNet/IP Adapter = MS (module status)

LEDs of the PROFINET IO Deviceinterface [} page 19]LEDs of the EtherNet/IP Adapterinterface [} page 20]

(4) Real-Time Ethernet connector (RJ45 jacket) channel 0 Real-Time Ethernet connectors [} page 13](5) Real-Time Ethernet connector (RJ45 jacket) channel 1(6) LED communication state of Real-Time Ethernet.

Name und function depends on used RTE protocol:PROFINET IO Device = BF (Bus failure)EtherNet/IP Adapter = NS (network status)

LEDs of the PROFINET IO Deviceinterface [} page 19]LEDs of the EtherNet/IP Adapterinterface [} page 20]

(7) USB connector (1x USB 3.0) USB connectors [} page 13](8) USB connector (1x USB 2.0) USB connectors [} page 13](9) LAN connector (RJ45 jacket) port 2 / Eth1 LAN connectors [} page 13]

(10) LAN connector (RJ45 jacket) port 1 / Eth0 LAN connectors [} page 13](11) Serial interface connector COM (RS-232/485, can be

configured)Serial Interface [} page 14]

Table 2: Positions of the interfaces of NIOT-E-TIB100-GB-RE

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 11: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Device drawings 11/279

3.2 Dimensions

Fieldbus

SYS APL SEC POW

GPO1 WWAN WLAN BAT

COM

1

2

12

0m

m

63 mm

106

mm

10

6m

m

106 mm

100 mm

Figure 3: Dimensions

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 12: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Connectors and mounting 12/279

4 Connectors and mounting

4.1 MountingMount the Edge Gateway on a DIN rail onto the wall of the cabinet.

4.2 LED stickerEach fieldbus system uses its own names for the LED displays. Therefore,an LED sticker with the names of the respective fieldbus system is includedwithin the delivery of the Edge Gateway. Stick the sticker of the fieldbussystem to be used to the I/O shield of the fieldbus interface of the EdgeGateway.

Figure 4: LED label

4.3 Power supplyDC 24V Pin Signal Description

+ +24 V DC +24 V DC- GND Ground (Reference potential)

FE Functional earth

Table 3: Power supply connector

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 13: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Connectors and mounting 13/279

4.4 LAN connectorsThe Edge Gateway has two LAN connectors for connecting it to the cloudnetwork, positions (10) and (9) (see section Positions of theinterfaces [} page 9]).

The MAC addresses of the LAN interfaces are printed on the device label.

Section Configuring Ethernet communication (LAN) [} page 59] describes,how you can set the IP address parameters of the LAN interfaces.

4.5 Real-Time Ethernet connectorsThe Edge Gateway has 2 RJ45-connectors to connect the fieldbus to aReal-Time Ethernet network (OT network), positions (4) and (5) (seesection Positions of the interfaces [} page 9]).

For data exchange at the fieldbus, use the fieldbus input and output in nodeNode-RED. Sections Example 6: Fieldbus input node [} page 152] andExample 7: Fieldbus output node [} page 160] describe how to access thecyclic I/O data of the fieldbus in Node-RED.

4.6 USB connectorsThe Edge Gateway has 2 USB connectors (1), positions (7) and (8) (seesection Positions of the interfaces [} page 9]).

You do not need the USB connectors for operation of the Edge Gateway.You need the USB connector if you connect a keyboard in order to changesettings in the BIOS or if you do a firmware recovery with a USB stick.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 14: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Connectors and mounting 14/279

4.7 Serial InterfaceThe Edge Gateway has one configurable serial interface (position (11)).You can use the serial interface as RS-232 or RS-485 interface.

Prerequisites

You have to set the interface type in the BIOS. For this, you need akeyboard with USB connector, and a serial cable.

BIOS settings

In the BIOS, select Advanced > IT8786 Super IO Configuration > SerialPort 1 Configuration for COM1 or Serial Port 2 Configuration for COM2.Serial Port Configuration ParameterSerial Port Enabled

DisabledDevice Settings Display only

Serial Port (COM): IO=248h; IRQ=5Onboard Serial Port Mode RS232

RS485 (do not use this setting)RS485 Auto (use this setting for RS-485 only, because RTScontrol is active)

Table 4: Parameters of the serial interface

4.7.1 RS-232RS-232 Pin Signal Description

1 DCD Data Carrier Detect2 RXD Receive signal3 TXD Send signal4 DTR Data Terminal Ready5 ISO_GND Ground (reference potential)6 DSR Data Set Ready7 RTS Request to Send8 CTS Clear to Send9 RI Ring Indicator

Table 5: RS-232 D-Sub

4.7.2 RS-485RS-485 Pin Signal Description

1 Rx/Tx‑ Send/receive signal negative2 Rx/Tx+ Send/receive signal positive3 n.c. -4 n.c. -5 ISO_GND Ground (reference potential)6 n.c. -7 n.c. -8 n.c. -9 n.c. -

Table 6: RS-485 D-Sub

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 15: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Connectors and mounting 15/279

4.8 Wi-FiYou can use the Edge Gateway for wireless network communication. TheEdge Gateway supports 2 Wi-Fi operating modes: Access Point andClient. Operating mode Access Point allows the Edge Gateway to connectto other Wi-Fi devices in order to configure the Edge Gateway from amobile device for example. Operating mode Client allows the EdgeGateway to be connected to any Wi-Fi Access Point.

Section Configuring wireless communication (Wi-Fi) [} page 62] describeshow you activate the antennas and how to set the Wi-Fi operating mode.

4.9 Battery compartmentThe Edge Gateway NIOT-E-TIB100-GB-RE contains a backup batterybuffering the real-time clock. This battery is situated within the batterycompartment accessible from the upper side of the device, see figurebelow:

Figure 5: Position of battery compartment on the upper side of the Edge Gateway NIOT-E-TIB100-GB-RE

4.9.1 Exchange of backup batteryThe backup battery buffering the real-time clock of the NIOT-E-TIB100-GB-RE has a lifetime of several years. When empty, it must be exchanged. Toexchange the battery, you will need the following items:1. A Lithium coin cell (Type CR 2450, 3 Volt)2. A narrow cross-tip screwdriver3. Tweezers or narrow flat pliers

Part 1: Removal of backup battery

To remove the formerly used backup battery in case of exchange or prior todisposal of the device, proceed as follows:Ø Remove the cross-tip screw fixing the battery compartment cover.Ø Remove the battery compartment cover.Ø Carefully pull out the transparent security strip.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 16: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Connectors and mounting 16/279

Ø Use a screw driver to carefully apply a light pressure at the battery fromthe side in order to force the battery to move a little bit higher so thatyou can grab it.

Ø Now, take hold of the battery using either the tweezers or the narrow flatpliers and pull it out.

ð After the removal of the battery, take care of the disposal instructions.

Waste electronic equipmentDisposal of used batteriesAs a consumer, you are legally obliged to dispose of batteries according tonational and local regulations, for instance at the public collection sites forwaste batteries. According to European Directive 2006/66/EU batteries maynot be treated as household waste.

Part 2: Insertion of a new backup battery

In order to insert a new backup battery, proceed as follows:Ø Insert the backup battery into the battery compartment with its narrower

side showing to the outside of the device.Ø Put the transparent security strip over the battery.Ø Mount the battery compartment cover again.Ø Fix the battery compartment cover using the corresponding cross-tip

screw.ð The new backup battery has now been inserted.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 17: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

LEDs 17/279

5 LEDs

5.1 Positions of the LEDs on the gateway

Fieldbus

SYS

1

9

APL SEC POW

GPO1 WWAN WLAN BAT

COM

1

2

3

2

7

4

5

6

10

11

12

Figure 6: NIOT-E-TIB100-GB-RE LED positions

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 18: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

LEDs 18/279

5.2 Gateway status LEDsLEDs indicating system status, application status, voltage supply, batterystate, as well as activity of the serial interface COM, and GPIOs. Theposition of the LEDs is indicated by position (1), see in section Positions ofthe LEDs on the gateway [} page 17].

LED Color MeaningSYS yellow/

green

System status

APL yellow/ green

Application status

SEC blue Security status (not used)

POW yellow Power supply OK

GPO1 yellow/ green

GPIO1 (programmable, currently not used)

WWAN yellow WWAN status

WLAN yellow Wireless LAN status

BAT yellow Battery state

Table 7: Description of gateway status LEDs

5.3 LEDs of the LAN interfaceLEDs indicating state of the LAN communication. For the positions of theLAN LEDs, see section Positions of the LEDs on the gateway [} page 17].

LED Color State MeaningLINKSee positions (2) and(4)

Duo LED green/orange

(green) On 1 GBit network connection

(orange) On 100 MBit network connection

(off) Off 10 MBit or no network connection

RX/TXSee positions (3) and(5)

LED yellow

(yellow) On The device does not send/receive frames.

(yellow) Flickering(loaddependent)

The device sends/receives frames.

(off) Off The device does not send/receive Ethernet frames.

Table 8: LEDs LAN interface

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 19: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

LEDs 19/279

5.4 LEDs of the PROFINET IO Device interfaceLED Color State MeaningSF (System Failure)Position in the devicedrawing: (2)

Duo LED red/green

(off) (Off) No error

(red) Flashing (1 Hz, 3 s)

DCP signal service is initiated via the bus.

(red) On Watchdog timeout; channel, generic or extended diagnosispresent; system error

BF (Bus Failure)Position in the devicedrawing: (7)

Duo LED red/green

(off) Off No error

(red) Flashing (2 Hz)

No data exchange

(red) On No configuration; or low speed physical link; or no physical link

LINKCH0 (3) , CH1 (5)

LED green

(green) On The device is linked to the Ethernet.

(off) Off The device has no link to the Ethernet.

RX/TXCH0 (4) , CH1 (6)

LED yellow

(yellow) Flickering (loaddependent)

The device sends/receives Ethernet frames.

(off) Off The device does not send/receive Ethernet frames.

Table 9: LED states for the PROFINET IO-Device protocol

LED state DefinitionFlashing (1 Hz, 3 s)

The indicator turns on and off for 3 seconds with a frequency of 1 Hz: “on” for 500 ms, followed by “off” for 500 ms.

Flashing (2 Hz)

The indicator turns on and off with a frequency of 2 Hz: “on” for 250 ms, followed by “off” for 250 ms.

Flickering (loaddependent)

The indicator turns on and off with a frequency of approximately 10 Hz to indicate high Ethernetactivity: "on" for approximately 50 ms, followed by "off" for 50 ms. The indicator turns on and off inirregular intervals to indicate low Ethernet activity.

Table 10: LED state definitions for the PROFINET IO-Device protocol

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 20: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

LEDs 20/279

5.5 LEDs of the EtherNet/IP Adapter interfaceLED Color State MeaningMS (module status)Position in the devicedrawing: (2)

Duo LED red/green

(green) On Device operational: The device is operating correctly.

(green) Flashing (1 Hz) Standby: The device has not been configured.

(green/red/green)

Flashinggreen/red/green

Self-test: The device is performing its power-up testing. The module status indicator test sequence occurs before thenetwork status indicator test sequence, according to thefollowing sequence:

· Network status LED off.

· Module status LED turns green for approximately 250 ms,turns red for approximately 250 ms, and again turns green(and holds that state until the power-up test has completed).

· Network status LED turns green for approximately 250 ms,turns red for approximately 250 ms, and then turns off (andholds that state until the power-up test has completed).

(red) Flashing (1 Hz) Major recoverable fault: The device has detected a majorrecoverable fault. E.g., an incorrect or inconsistentconfiguration can be considered a major recoverable fault.

(red) On Major unrecoverable fault: The device has detected a majorunrecoverable fault.

(off) Off No power: The device is powered off.

NS (Network status)Position in the devicedrawing: (7)

Duo LED red/green

(green) On Connected: An IP address is configured, at least one CIPconnection (any transport class) is established, and anExclusive Owner connection has not timed out.

(green) Flashing (1 Hz) No connections: An IP address is configured, but no CIPconnections are established, and an Exclusive Ownerconnection has not timed out.

(green/red/off)

Flashinggreen/red/off

Self-test: The device is performing its power-up testing. Referto description for module status LED self-test.

(red) Flashing (1 Hz) Connection timeout: An IP address is configured, and anExclusive Owner connection for which this device is the targethas timed out.The network status indicator returns to steady green onlywhen all timed out Exclusive Owner connections arereestablished.

(red) On Duplicate IP: The device has detected that its IP address isalready in use.

(off) (Off) Not powered, no IP address: The device does not have anIP address (or is powered off).

LINKCH0 (3), CH1 (5)

LED green

(green) On The device is linked to the Ethernet.

(off) Off The device has no link to the Ethernet.

ACTCH0 (4), CH1 (6)

LED yellow

(yellow) Flickering (loaddependent)

The device sends/receives Ethernet frames.

(off) Off The device does not send/receive Ethernet frames.

Table 11: LED states for the EtherNet/IP Adapter protocol

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 21: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

LEDs 21/279

LED state DefinitionFlashing (1 Hz)

The indicator turns on and off with a frequency of 1 Hz: “on” for 500 ms,followed by “off” for 500 ms.

Flashing green/red/green

The MS LED indicator turns on green on for 250 ms, then red on for 250 ms,then green on (until the test is completed).

Flashing green/red/off

The NS LED indicator turns on green on for 250 ms, then red on for 250 ms,then off (until the test is completed).

Flickering (load dependant)

The indicator turns on and off with a frequency of approximately 10 Hz toindicate high Ethernet activity: on for approximately 50 ms, followed by offfor 50 ms. The indicator turns on and off in irregular intervals to indicate lowEthernet activity

Table 12: LED state definitions for the EtherNet/IP Adapter protocol

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 22: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Commissioning the Edge Gateway 22/279

6 Commissioning the Edge Gateway

6.1 Establishing the IP address communicationAn IP address is required to address the Edge Gateway in the LANnetwork.

The following figure shows the factory setting of the LAN interfaces and theassignment of the connections.

Figure 7: Default settings of the Ethernet network connectors

You have two possibilities of establishing a connection with the EdgeGateway (factory setting):

NetNetwork connection - alternative 1: DHCP server available

If a DHCP server is available in the network:Ø Use an Ethernet cable to connect the LAN connection port 1 (eth0)

(see position (7) in section Positions of the interfaces [} page 9]) with anetwork in which a DHCP server is available.

ð The Edge Gateway obtains an IP address from the DHCP server.Access to the Edge Gateway is possible now.

Note:The Edge Gateway sends a request to a DHCP server once afterswitching on the device or after each connection of the Ethernetcable, i.e. when the Edge Gateway detects a link signal. If you wantto activate a request of the Edge Gateway to the DHCP servermanually, pull off the Ethernet cable from the Edge Gateway andreconnect it to the Edge Gateway.

Read section Using the web browser to establish a connection with theEdge Gateway [} page 24] to find out how to access the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 23: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Commissioning the Edge Gateway 23/279

Network connection - alternative 2: Direct connection and adaptationof the IP address of the PC or notebook used for commissioning

The IP address of the Edge Gateway (factory setting) is 192.168.253.1and the subnet mask is 255.255.255.0 at LAN connection port 2 (eth1,see position (5) in section Positions of the interfaces [} page 9]).

If no DHCP server is available, you can set an IP address on your PC ornotebook, which suits the same subnet:Ø Use an Ethernet cable to connect the LAN connection port 2 (eth1)

directly with your PC or notebook.Ø Open the Control panel.Ø Click on Network and Sharing Center.Ø Click on Change adapter settings.Ø Double click the name of the network connection: Local Area

Connection. (The name of the network connection may be different onyour PC.)

Ø Click on Properties.Ø Double click on Internet Protocol Version 4 (TCP/IPv4).Ø Set the following IP address, e.g. 192.168.253.2 and subnet mask

255.255.255.0.

Ø Click on Ok and then click on Close.ð Now you can access the Edge Gateway from your PC or notebook.

Read section Using the IP address [} page 25] to find out how to accessthe Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 24: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Commissioning the Edge Gateway 24/279

6.2 Using the web browser to establish a connection with theEdge Gateway

You have three possibilities to access the Edge Gateway:1. by means of the host name (see section Using the host

name [} page 24])2. by access via the Windows network (see section Access to the Edge

Gateway in the Windows network environment [} page 25]),3. by using the IP address (see section Using the IP

address [} page 25]).

6.2.1 Using the host nameThe Edge Gateway has a host name you can use to access the device.

Where do you find the host name on the device?

The device is delivered (factory setting) with a label printed at its bottom. Inthe figure below the host name has a red frame.

Figure 8: Device label: Hostname

Establishing a connection with the host nameØ Enter the following address in the address line of your browser:

https://<hostname>Example: For the device with the host name NTB827EB1D9D94 enterhttps:// NTB827EB1D9D94

ð The Edge Gateway Manager opens.

You can now use the Edge Gateway manager to configure the device. Forthis purpose, read section Edge Gateway Manager web page [} page 27].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 25: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Commissioning the Edge Gateway 25/279

6.2.2 Access to the Edge Gateway in the Windows network environmentTo be located easily in the network, the Edge Gateway uses the UPnPtechnology (Universal Plug and Play). This technology will display the EdgeGateway in the Windows network environment.Ø To display all devices in the network, click on Network in the Windows

Explorer.Ê You will find the Edge Gateway under Other Devices:

Figure 9: netIOT Edge Gateway in the Windows network

Ø Open the context menu of this entry and select Properties.Ê The menu provides information on the Edge Gateway, e.g. serial

number, MAC address, host name or die IP address.Ø Click on the link under Device web page.ð The Edge Gateway manager opens.Ø To open the Edge Gateway manager, you can also double-click on the

device icon.

ð The Edge Gateway manager opens.

You can now use the Edge Gateway manager to configure the device. Forthis purpose, read section Edge Gateway Manager web page [} page 27].

6.2.3 Using the IP addressIf you know the IP address of one of the LAN connections of the EdgeGateway and if you are physically connected to your operating device, youcan use your web browser to establish a connection with the EdgeGateway by entering this IP address directly. Should your operating devicebe configured with an IP address only, but without a subnet mask, youroperating device has to be located in the same subnet as the EdgeGateway to be able establish a connection.Ø Enter the IP address in the address line of the web browser as follows:

https://<IP address>Example: https://10.11.5.61

ð The Edge Gateway manager opens.

You can now use the Edge Gateway manager to configure the device. Forthis purpose, read section Edge Gateway Manager web page [} page 27].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 26: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Gateway Manager 26/279

7 Edge Gateway Manager

7.1 Calling the Edge Gateway ManagerThe Edge Gateway manager is a web page with tiles that allow rapidaccess to the applications integrated in the device or to external webpages.

The Edge Gateway uses the secured HTTPS protocol to access web pagesstored in the Edge Gateway.Ø To open the Edge Gateway manager, enter the following information in

the address line of your browser: https://<Host name of the Edge Gateway> orhttps://<IP address of the Edge Gateway>

ð Your browser displays the Edge Gateway manager.

Figure 10: Edge Gateway Manager

Note:Remember that the secured HTTPS protocol is used here, not thewidely spread HTTP protocol.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 27: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Gateway Manager 27/279

7.2 Edge Gateway Manager web pageThe Edge Gateway Manager displays tiles that allow rapid access to theapplications integrated in the device or external web pages.Icon Function

Opens the control panel of the Edge Gateway.The control panel configures the Edge Gateway and displaysinformation on the system. Section Control Panel [} page 29]describes the possibilities of configuration as well as the displayedinformation on the system.

Opens the wiring editor Node-RED.Section Node-RED - The wiring editor [} page 82]describes howto create applications for the Edge Gateway.

Opens the Node-RED Dashboard (graphical user interface).

Opens the Edge Server Control Center.See section Edge Server [} page 215].

Opens the Docker management.See section Isolated application execution withDocker [} page 227].

Opens the Edge Gateway documentation stored in the device.

Opens the homepage of the Device Information Portal in theInternet.Requires a connection to the Internet.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 28: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Gateway Manager 28/279

Icon FunctionOpens the homepage of the netIOT platform in the Internet.Requires a connection to the Internet.

Opens the Hilscher homepage in the Internet.Requires a connection to the Internet.

Opens legal information concerning the Edge Gateway.Requires a connection to the Internet.

Table 13: Starting applications with the Edge Gateway Manager

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 29: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 29/279

8 Control Panel

8.1 Opening the control panelWith the control panel you can configure the Edge Gateway and displaydevice-specific information.Ø Click the tile Control Panel.

Ø The login screen for the Control Panel is displayed.

Ø Enter your user name and your password.Ø Click at Login.ð The Control Panel will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 30: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 30/279

8.1.1 First login

Setting the administrator password when the control panel is calledfor the first time

The dialog box Set Administrator Password is displayed when the controlpanel is called for the first time.

Figure 11: Edge Gateway Manager - Setting the administrator password

To set a new administrator password, proceed as follows:Ø Enter the preset password under Current Password. With the first

commissioning, the password is: admin

Ø Enter the new administrator password. It must have at least 7characters. For reasons of safety, Hilscher recommends usingsignificantly more characters. A strong password consists of upper andlower case letters, digits and special characters. A quality indicator inthe dialog box evaluates the password.

Weak password Mediocre password Strong password

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 31: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 31/279

Ø Click Change Password only after the entered password has beenevaluated as strong.

ð The administrator password for the user account Admin has thus beenchanged.

ð As an administrator you can now use the control panel, create furtherusers in the user management, and assign access rights.

8.1.2 Secure connectionEdge Gateways support web connections secured by SSH/TSL viahttps:// accesses only.

By definition, a secure connection can provide an efficient protection only ifa certificate proves that the server is secure. Only then can runningtransactions of the initiating browser and the server be considered asprotected against interception and data theft.

This is why the browser at first inquires a certificate of verification from theserver (Gateway). This certificate proves that the issuer has verified thesecurity of the server. Each browser provides a preinstalled list of knownauthorized issuers of certificates.

Each time the certificate of the server arrives at the browser, the browsercompares the issuer of the certificate with the issuers stored in the list ofknown authorized issuers of certificates.

If the issuer of the certificate is not listed, the browser will signal acertificate error and request the user's confirmation to continue because itassumes that the connection is insecure.

As standard, Edge Gateways contain a certificate issued by Hilscher that isnot on the list of the known authorized issuers of certificates. Due to that,the browser signals an insecure connection and requests the confirmationto continue. When this confirmation has been given once, any futureconnections will be established without further requests.

Note:In the control panel you can replace this certificate any time by thecertificate of a known authorized issuer of certificates, see sectionUploading and installing own security certificates).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 32: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 32/279

8.1.2.1 Connection without certificate with Microsoft Internet Explorer

Microsoft Internet Explorer: Edge Gateway Manager will not bedisplayed

If you use the Microsoft Internet Explorer and the following page isdisplayed, click the option Continue to this web site (not recommended).

Figure 12: Security error message of the Internet Explorer

8.1.2.2 Connection without certificate with Firefox

If you use Firefox as a browser, a self-signed certificate will cause thefollowing error message:

Figure 13: Security error message of the Firefox browser (1)

To avoid this message caused by a self-signed certificate, proceed asfollows:Ø To display the complete message, click Advanced.

Figure 14: Security error message of the Firefox browser (2)

Ø To define an exceptional rule that enables the display of the userinterface without repeated error messages, click Add Exception.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 33: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 33/279

Figure 15: Firefox dialog box: Adding exceptional safety rule

Ø To save the setting permanently, check the box Permanently storethis exception.

Ø To save the rule, click Confirm Security Exception.ð When you open the control panel in future, security messages will no

longer be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 34: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 34/279

8.1.2.3 Connection without certificate with Google Chrome

If you use Google Chrome as web browser, you will get the following errormessage due to a self-signed certificate.

Figure 16: Security error message of Google Chrome (1)

Proceed as follows in order to avoid the following message, which iscaused by a self-signed certificate,Ø Click at ADVANCED to display the complete message.

Figure 17: Security error message of Google Chrome (2)

Ø In order to continue, click at Proceed to ... (unsafe).ð The Control Panel is displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 35: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 35/279

8.2 Overview and main menuThe following figure displays the main menu of the Control Panel.

Figure 18: Main menu of the Control Panel

Menu Description Details in sectionSystem > Info Center Displaying the system information, monitoring of

the processor core temperature, and a systemmonitor for the usage of CPU, main memory, andSSD.

Displaying systeminformation [} page 37]

System > License Manager Display of activated licenses, upload anddownload of the license file.

License Manager [} page 38]

System > Syslog Displaying the system log files Displaying the system logfiles [} page 42]

System >Time Settings of system time and time synchronization. Setting the systemtime [} page 46]

System > Backup and Restore Backup and recovery of the files of the Linuxoperating system of the Edge Gateway.

Backup and restore [} page 49]

System > Reboot Rebooting the Linux operating system of the EdgeGateway

Rebooting thesystem [} page 56]

System > Shutdown Shutting down the Linux operating system of theEdge Gateway

System shutdown [} page 57]

Package Manager > Packages Managing the packages of the Linux-basedoperating system of the Edge Gateway.

Managing packets [} page 58]

Network > LAN Configuring the Ethernet interfaces to the ITnetwork and OT network (fieldbus).

Configuring Ethernetcommunication(LAN) [} page 59]

Network > Wi-Fi Configuring the Wi-Fi communication Configuring wirelesscommunication (Wi-Fi) [} page 62]

Network > Field Configuring the operating mode of the fieldbusinterface (Real-Time Ethernet).

Field [} page 68]

Network > Hostname Displaying and configuring the host nameidentifying the Edge Gateway in the network.

Hostname [} page 69]

Services > Service List Displaying, starting, and stopping the services ofthe Edge Gateway.

Starting, stopping and configuringservices [} page 70]

User Management > Roles Displaying and configuring the permissions foruser roles.

Managing user roles [} page 74]

User Management > Accounts Displaying user accounts und assigning userroles.

Managing useraccounts [} page 76]

Security > Public KeyInfrastructure

Store and administer certificates and key fileswithin the Public Key Infrastructure

Public KeyInfrastructure [} page 77]

Help > Info Displaying current software version. Help [} page 80]Session > User Profile Displaying the permissions of the user. User profile [} page 80]Session > Logout Logout Logout [} page 81]

Table 14: Functional overview of the Control Panel

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 36: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 36/279

For the pages which can be invoked via the Control Panel, the followingapplies:

If for the selected page, no access right for reading is present, this has thefollowing implications:· No data are displayed. All important controls and displays of the page

are grayed out respectively inactive.· The error message Permission denied is displayed when accessing

the page.

If there is read but no write access right present, this has the followingimplications:· The error message Permission denied is displayed when trying to

make a change.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 37: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 37/279

8.3 System information and system time

8.3.1 Displaying system informationOpen this page with System > Info Center. No access rights are requiredin order to open this page. This page shows e.g. the firmware version andthe serial number of the Edge Gateway.

Figure 19: Page Info Center

The Info Center displays the following information:System info DescriptionHardware ident. Serial number of the Edge GatewayModel name Model designation of the Edge Gateway (NIOT-E-TIB100-GB-RE )Firmware version Complete version designation of the firmware stored in the Edge

GatewaySystem time Synchronization status of the internal clock of the Edge Gateway.

When the clock is synchronized via the network, the IP address andthe name of the time server used for synchronization will bedisplayed. The user has to configure the time zone.

Processor name Name of the microprocessor (CPU) installed in the Edge Gateway.Table 15: Info Center: Area System info

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 38: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 38/279

Monitoring DescriptionCPU usage Number of microprocessor cores plus clock frequency and average

utilization of each core in the Edge GatewayMemory utilization Size and average utilization of the main memory in the Edge GatewayStorage space Display of available memory and the memory that is currently utilized

on the integrated Solid-State-Disk of the Edge GatewayTable 16: Info Center: Area Monitoring

Temperature DescriptionCPU temperature Display of the temperature of each processor core in the Edge

GatewayTable 17: Info Center: Area Temperature

If the data of the area Monitoring cannot be read, this is grayed out.

8.3.2 License ManagerOpen this page with System > License Manager.

The functionality of an Edge Gateway can be extended. The use ofparticular functions requires a license. On this page you can see whichlicenses are present in the device and you can transfer a license file intothe device.

8.3.2.1 Which licenses are present in the device?

In order to display the licenses contained in the Edge Gateway, use theLicense Manager. You can open it as follows:Ø Open the Control Panel.Ø Select System>License Manager.Ê The window of the License Manager opens:

Figure 20: License Manager with license for the passive mode of operation

The table License enabled Software Packages displays the currentlyavailable licenses, in the example a license for the passive mode ofoperation of the Edge Gateways is available.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 39: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 39/279

Open Details window in the License Manager

To open the Details window:Ø Click at the info button on the left edge of the line (within column

Details ).Ê The Details window opens:

Figure 21: License information in window Details

For each license, it displays the license type (Column Type), a briefdescription (Column Description) and the expiration date (ColumnExpires) .

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 40: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 40/279

8.3.2.2 How to order and receive a license

The following instruction explains how to order a license for your EdgeGateway to be used in passive mode of operation and receive a license file.

If you order device and license together or after ordering the license, youreceive a delivery note. After receiving the delivery note order the licensefile from Hilscher by e-mail. Specify the following information in your e-mail:1. The denomination of the desired license2. The number of your delivery note (for reference)3. The LAN MAC address of your device (to be taken from the device

label)4. The e-mail address, to which the license download link shall be sent to.

Specify the following as the subject of your e-mail:

Request for a netIOT Licence

Ø Send the e-mail to Hilscher: [email protected]Ø Hilscher creates an individual license file for your Edge Gateway

according to the information supplied by you.Ø Hilscher sends this file back to you as an attachment within the answer

e-mail. Consequently, this license file has to be transferred into theEdge Gateway as described in section How to transfer a license into thedevice? [} page 41].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 41: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 41/279

8.3.2.3 How to transfer a license into the device?

Load the individual license file received from Hilscher from your PC into theEdge Gateway. Do the upload as follows:Ø Open the Control Panel in a web browser.Ø Select System > License Manager.Ø Click on Upload License.Ê A file selection dialog opens.Ø Select the license file. This file has the file extension *.LIC.Ø Click on OK.Ê The license file is transferred into the Edge Gateway. If the transfer is

successful, the following message is displayed:

Figure 22: Message after the transfer of the license file into the Edge Gateway

Ê To activate the license, a restart of the Edge Gateways is necessary.Ø Click on OK.Ê The license is installed now, but becomes active after the next restart of

the Edge Gateways.Ø For a restart, select System > Reboot.ð The license is activated.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 42: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 42/279

8.3.3 Displaying the system log files

System log service and syslog file

At any time, a Linux system executes many programs running in parallelwithin the background. Usually, these are denominated as services, serversor daemons. They perform a large part of the work of the operating system.As they run in the background, these programs do not have a GUI and sothey are not able to manage output directly, for instance in case of eventsrelevant for system administration.

Such messages originate from1. the Linux kernel (the central part of the operating system)2. the daemons (programs executing the system services3. user nprograms

Therefore, these messages are collected by a central system log service(syslog) and are distributed depending on their priority and origin accordingto a configurable set of rules.

So ,for system supervision and safeguarding correct reaction on errorsituations, the file logging daemon syslogd (or an improved successor of it)runs on every Linux system,. On the Edge Gateways from Hilscher, thewidely-spread logging daemon Syslog-ng is used, which had beendevelopped by BalaBit IT Security Ltd. (now: One Identity, https://syslog-ng.org/).

Openíng the system log

To access the syslog files generated by Syslog-ng, open this page withinthe main menu of the control panel using System > Syslog. Read accessrights are required to open this page. The page shows you a list of storedsystem logs covering different periods in time. This list also contains thelast date of change and the file size specified in KB. Within this list, eachline corresponds to a gzip-compressed system log file for a specific timeperiod.

Figure 23: Control Panel, page System > Syslog

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 43: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 43/279

Ø Select the desired entry within table Syslog files.Ê The selected line is highlighted instantly.Ø Click at button Download in the header of window Syslog files.ð Your Web browser loads the file down from the Edge Gateway and

offers options for further processing of the downloaded file such asOpen, Open directory. The file has been compressed with the programgzip and must be unpacked prior to evaluation.

8.3.3.1 Structure of system log file

The structure of the entries has been originally defined by the IETF withinRFC3164 (https://tools.ietf.org/html/rfc3164), meanwhile it has beenreworked and substituted by RFC5424 (https://tools.ietf.org/html/rfc5424) .The structure of the entries in the system log files of the Edge Gatewaysalso follows this structure.

HEADER

PRI - Priority The header starts with the priority, denominated as PRI within thestandard.The priority is an integer number enclosed by angled brackets like<45>, for instance.

The priority can be calculated from two numeric values:· the facility (signifying the origin of the message, located within the upper

5 Bits)· the severity (signifying the urgence and importance of the message,

located within the lower 3 Bits)

The following formula accomplishes this:Priority = 8 * Facility + Severity

The facility is coded according to the following table:Code Facility (Origin of message)0 Kernel messages1 User-level message2 Mail system3 System daemons4 Security/authorization messages5 Messages generated internally by syslogd6 Line printer subsystem7 Network news subsystem8 UUCP subsystem9 Clock daemon10 Security/authorization messages11 FTP daemon12 NTP subsystem log audit13 Log audit14 Log alert15 Clock daemon16…23 Locally used facilities (local0-local7)

Table 18: Numeric coding of facility value in priority PRI

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 44: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 44/279

The severity is coded according to the following table:Code Severity (Importance of message)0 Emergency: System is currently in an unusable state1 Alert: Immediate action required2 Critical: The system is in a critical state3 Error: Error messages are present4 Warning: Warning messages are present.5 Notice: Normal state of operation, but there is an important Information6 Informational: Informational messages are present7 Debug: Messages on debug level are present

Table 19: Numeric coding of severity value in priority (PRI)

VERSION Here the version number of the current sys´log protocol standard is put out.As this is still in version 1, the version without any exception always equalsto 1.

ISOTIMESTAMP This part of the message line contains a timestamp in ISO 8601-compatiblestandard format (yyyy-mm-ddThh:mm:ss+-ZONE). This time stamprelates to the point in time at that the message has been generated.

Example07/06/2018 15:59:41

HOSTNAME This part of the message line contains the name of the machine originallysending the message. The length of HOSTNAME is limited to 255characters.

APPLICATION This part of the message line contains the name of the device or applicationoriginally generating the message. The length of APPLICATION is limitedto 48 characters.

PID This part of the message line contains the name of the process or theprocess ID of the syslog application originally sending the message. Thismay not necessarily be the process ID of the application generating themessage. The length of PID is limited to 128 characters.

MESSAGEID This is the ID of the message itself. The length of MESSAGEID is limited to32 characters.

This part of the message line may contain metadata on the message line orapplication-specific information such as counters or IP addresses. Itconsists of data blocks enclosed in angled brackets []. Each block containsan ID and one or more pairs of the form name=value.

Example

[meta sequenceId="1"]

MSG

This part of the message line contains the genuine text of the message. Itcan either be coded in UTF-8 (if a BOM character has been detected) orotherwise it is ASCII-coded.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 45: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 45/279

Example of complete message line

A message line may look as follows:<45>1 2018-07-06T13:59:41+00:00 localhost syslog-ng 1524 - [metasequenceId="1"] syslog-ng starting up; version='3.8.1'

The following table shows the assignment of the parts of this specificmessage line:Part of message line Corrresponding denomination<45> PRI (Priority)1 VERSION (Versions number of current syslog

protocol standard)2018-07-06T13:59:41+00:00 ISOTIMESTAMPlocalhost HOSTNAMEsyslog-ng APPLICATION1524 PID (Process name or process D ofsyslog

application sending the message)- MESSAGEID[meta sequenceId="1"] STRUCTURED-DATA (Meta information)syslog-ng starting up;version='3.8.1'

MSG (Real message text)

Table 20: Assignment of parts of message line

8.3.3.2 Log rotation

The Edge Gateway is configured for a daily change of the logging file andto keep the files of the last seven days. This procedure is denominated aslog rotation.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 46: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 46/279

8.3.4 Setting the system timeOpen this page with System > Time.

In order to access this page you require the following access right:

Setting the system time

On this page you can set the system time and the time zone this timerelates to.

You can set the system time in two ways:Type Selection Method Standard

presettingmanually Manual selection by entering date and time yesautomatically NTP synchronized by means of a time server no.

Table 21: Setting the system time

Figure 24: Time configuration page

Note:When you change a system time setting, always reboot the EdgeGateway afterwards so that all software components in the EdgeGateway take the changed time: System > Reboot.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 47: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 47/279

Setting the system time manuallyØ Click the option Manual.Ø Enter the time in the input field Time in the format hh:mm:ss.Ø Set the date using the calendar input field Date.Ø Click Save changes.Ø Reboot the device: System > Reboot in order that all software

components in the Edge Gateway take the changed time.ð The system time is set.

Setting the system time automatically using a time server

You can synchronize the time using a time server that uses the NetworkTime Protocol (NTP). Under NTP synchronized there is a list where youcan enter such time servers. The list of NTP servers will be worked off fromtop to bottom until a server gives a valid answer and synchronizationoccurs.Ø Click the option NTP Synchronized.Ø Click Add NTP server.Ê The dialog box for entering the NTP server is displayed.

Ø In the input field NTP server enter the address of a server which usesthe NTP to synchronize the time: E.g.: To add the server for time synchronization of the Physikalisch-Technische Bundesanstalt (the National Metrology Institute ofGermany) to the list, enter the address ptbtime1.ptb.de in the inputfield NTP server.

Ø Click Add.Ø Click Save changes.Ø Reboot the device: System > Reboot in order that all software

components in the Edge Gateway take the changed time.ð The system time is set via the NTP. As soon as the system time is set

successfully, the following information will be displayed under Status:Synchronized to time server <IP address of the timeserver>:<Port number of the time server > (<NTPaddress of the time server>)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 48: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 48/279

Setting the time zone

With the selection list Timezone you can adjust the time zone to your localtime in which the Edge Gateway is so that the set time can be interpretedcorrectly (e.g. summer time conversion). For this purpose, the selection listTimezone offers many setting options. The default value is Universal. ForCentral European Time set CET.

Note:Once the system time has been set, system services and Node-RED flows which use the system time for synchronization loosetheir reference time, i.e. they refer to the new time set. When youchange a system time setting, always reboot the Edge Gatewayafterwards so that all software components in the Edge Gatewaytake the changed time.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 49: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 49/279

8.3.5 Backup and restoreOpen this page by System > Backup and Restore.

You have to login as Administrator to use this function.

This page offers the possibility to store the complete system files of theLinux operating system of your Edge Gateway onto an external massstorage device and to restore it from there, if necessary.

Backup

Observe the following information:· The duration of the backup depends on the quantity of data.· A running backup cannot be interrupted.· The backup can deteriorate the performance of the Edge Gateway.· Save the backup on an external data carrier because any existing

backup will be overwritten irrevocably without prior notice.

In order to create a backup of your system, proceed as follows:Ø Select System > Backup and Restore in the control panel.Ê The following screen is displayed:

Figure 25: Backup and recovery

Ø Click at Create local backup.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 50: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 50/279

Ê The following warning message is issued:

Figure 26: Warning message

To improve the safety you can optionally define a password within inputfield Password. If a password has been specified, that password must beentered at each attempt to access the created backup file.

Furthermore, this warning message explains the above mentionedconsequences of starting the backup process such as time expense,increased system load and missing possibility of abortion.Ø In order to start the backup process, click at Yes.Ê The following screen indicates the start of the backup process by the

text Backup in progress:

Figure 27: Backup in progress

ð If the backup process has successfully been finished, the formerlygrayed out buttonDownload local backup is activated and the backupfile is offered for possible download. This means, the backup of systemfiles has been completed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 51: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 51/279

Recovery from internal backup

Choose this option to restore the system using the stored data, if alreadyan internal backup has been performed within your device.

Take care of the following consequences of system recovery:· that the former system is fully replaced and overwritten by the system

stored in the backup file.· that the system is stopped.· that a new start of the system is initiated.· that this process can last for a significant amount of time and cannot be

interrupted.· that you must not interrupt power supply of the Edge Gateway in

any case.

In order to restore your system from a previous internal backup, proceed asfollows.Ø Select System>Backup and Restore within the Control Panel..Ê The following screen appears:

Figure 28: Backup and recovery

Ø Click at Restore from backup.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 52: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 52/279

Ê The following recovery dialog is displayed:

Figure 29: Recovery dialog

Ê If there is already an internal backup present in the system, you willnotice that the button Restore is activated.

Note:If a password has been specified at creation of the backup file to berestored, that password must be entered in input field Password!

Ø Click at Restore.Ê The following security query is displayed:

Figure 30: Security query prior to system recovery from internal backup file

Ê You are informed about the above mentioned consequences of systemrecovery.

Ø If you want to proceed taking into account these consequences, thenclick at Yes.

Ø The system on your device is restored from the system files storedwithin the internal backup. In any way, do not interrupt the power supplyof the Edge Gateway during system recovery!

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 53: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 53/279

Recovery from external backup

Choose this option to restore the system using the stored data, if alreadyan internal backup has been performed within your device and you havedownloaded this backup to an external storage medium or device.

Take care of the following consequences of system recovery:· that the former system is overwritten and fully replaced by the system

stored in the backup file.· that a new start of the system is initiated.· that this process can last for a significant amount of time and cannot be

interrupted.· that you must not interrupt power supply of the Edge Gateway in any

case.

In order to restore your system from a previous external backup (i.e.download of an internal backup), proceed as follows.Ø Select System>Backup and Restore within the Control Panel.Ê The following screen appears:

Figure 31: Backup and recovery

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 54: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 54/279

Ø Click at Restore from backup.Ê The following recovery dialog appears:

Figure 32: Recovery dialog (external source)

Note:If a password has been specified at creation of the backup file to berestored, that password must be entered in input field Password!

Ø Click at Explorer.Ê A file selection dialog appears.Ø Select the image file with your stored system (file extension is *.img).Ê The following message dialog is displayed:

Figure 33: Message prior to starting recovery from external backup

Ê You are informed about the above mentioned consequences of systemrecovery.

Ø If you want to proceed taking into account these consequences, thenclick at Yes.

ð The selected file is checked for correctness. If the file is no image file,does not contain a backup or is defective in any other way, an errormessage is displayed. Otherwise your system is recovered fromexternal backup. In any way, do not interrupt the power supply of theEdge Gateway during system recovery!

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 55: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 55/279

Delete local backup

If you want to delete a locally present internal backup, you can perform thisas follows:Ø Select menu entry System>Backup and Restore within the Control

Panel.Ê The following screen appears:

Figure 34: Backup and restore when backup file is present

Ø Click at Delete local backup.Ê The following safety query indicates the danger of possible data loss at

deleting the backup, if it has not externally been saved via the downloadfunction.

Figure 35: Safety query before deletion of local backup

Ø If you are still sure, that you really intend to delete the local backup,click at Yes.

ð The local backup is internally deleted. Right of Local backup the textNo backup is displayed now instead the name of the former backup.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 56: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 56/279

Downloading a local backup

To download an existing local backup (image file) from the Egde Gatewayto an external data carrier, proceed as follows:Ø Select System > Backup and Restore in the control panel.Ê The following screen will be displayed:

Figure 36: Backup and Restore

Ø Click Download local backup.Ø Select a storage location.ð The download of your backup will be started and the backup will be

stored on the external data carrier.

8.3.6 Rebooting the systemYou have to login as Administrator to use this function.

In order to reboot the system:Ø Within the Control Panel select menu entry System>RebootÊ The following safety query is displayed:

Figure 37: Reboot safety query

Ø If you really intend to reboot the system, answer to the safety query with

.ð The Linux operating system of your Edge Gateway is shut down and

then immediately restarted.

Note:Take care of the consequences of shutting down and restarting foryour network, if you reboot the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 57: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 57/279

8.3.7 System shutdownYou have to login as Administrator to use this function.

In order to shut down the system:Ø Within the Control Panel select menu entry System>Shutdown.Ê The following safety query is displayed:

Figure 38: Warning for consequences of shutdown

Ø If you really intend to shut down the system, answer to the safety query

with .ð The Linux operating system of your Edge Gateway is shut down.

Note:Take care of the consequences for your network, if you shut downthe Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 58: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 58/279

8.4 Packet management

8.4.1 Managing packetsOpen this page with Package Manager > Packages.

In order to access this page you require the following access right:

Managing packets

This page contains the package management of the Linux-based operatingsystem of the Edge Gateway. This page· lists the installed packages including version,· adds new signed packages or· updates already installed signed packages.

Note:You can only install packages signed by Hilscher!

Use the package management only when Hilscher requests you to use thepackage management.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 59: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 59/279

8.5 Network

8.5.1 Configuring Ethernet communication (LAN)Open this page with Network > LAN.

In order to access this page you require the following access right:

Access to LAN (Ethernet network)

On this page you configure the Ethernet interfaces eth0, eth1 (both onthe side of the cloud) and cifx0 (on the side of the fieldbus).

The Ethernet interface cifx0 is deactivated when delivered (factorysetting). Section “Activating the Ethernet interface cifx0“ (see below)describes how you can activate this interface.

For each Ethernet interface you can configure how to set the IP address:· The Edge Gateway is to obtain the IP address parameters automatically

from a DHCP server: Option DHCP.· The IP address parameters are manually entered by the user: Option

Fixed address.

The IP address parameters include the IP address, the subnet mask, theGateway address, and the IP addresses of the 1st and 2nd domain nameserver.

The default IP address of the LAN connection eth1 (Port 2) is192.168.253.1 with the subnet mask 255.255.255.0.

Figure 39: Default LAN configuration

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 60: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 60/279

Column MeaningName displays the name of the LAN interface.MAC address displays the MAC address of the LAN interface.Settings Selecting the configuration method: Here you can select between

· DHCP (IP address parameters automatically obtained from a DHCPserver) or

· Fixed address (IP address parameters entered by the user)If you enter the IP address manually, also always enter the subnetmask and the Gateway address.

Domain NameSystem

If you enter the IP address parameters manually, enter the IP addressof the 1st and 2nd domain name server.

Table 22: Table LAN: Meaning of the columns

If you want to save your changes permanent, click on Save changes.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 61: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 61/279

Activating the Ethernet interface cifx01. Select operating mode and firmware

Ø Open the Field page with Network > Field.Ê The Field page is displayed.Ø Set the operating mode to Active.Ø Select for Firmware either PROFINET IO Device or EtherNet/IP

Adapter.Ø Click on Change mode.Ø Confirm the question with Yes.Ê The device is prepared.

2. Start the Node-RED service.Ø Open the Service page with Services > Service List.Ê The Service page is displayed.Ø If the Node-RED service is in the state Stop (yellow), then mark the

service Node-RED.Ø Set the Autostart to enabled that the Node-RED service is started with

the next start of the device also.Ø Click on Apply.Ø Click at Operating status on Start.Ê The Node-RED service has been started and is displayed green.

3. Display Ethernet interface cifx0Ø Open the LAN page with Network > LAN.ð The Ethernet interface cifx0 is activated and you can configure it now.

Figure 40: LAN configuration (cifx0 activated)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 62: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 62/279

8.5.2 Configuring wireless communication (Wi-Fi)Open this page with Network > Wi-Fi.

In order to access this page you require the following access right:

Access onto Wi-Fi (wireless network)

On this page, you configure the wireless network communication of theEdge Gateway (Wi-Fi / WLAN according to IEEE 802.11).

The Wi-Fi is deactivated when delivered (factory setting).

Figure 41: Wi-Fi (default setting)

You can use Wi-Fi only with device variant NIOT-E-TIB100-GB-RE\WF.

This page is empty when you use device variant NIOT-E-TIB100-GB-REand the message “Wi-Fi interface not found” is displayed when opening thispage.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 63: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 63/279

Wi-Fi modes of operation

The Edge Gateway offers 2 Wi-Fi operating modes. These can be selectedvia the selection list Mode, see following table.

Figure 42: Wi-Fi modes of operation in selection list Mode

Operating mode DescriptionDisabled Wi-Fi is deactivated.Access Point In the operating mode Access point the Edge Gateway enables other

Wi-Fi-capable devices to establish a connection with the EdgeGateway and its peripheral devices.

Client In the operating mode Client the Edge Gateway acts as WLANEthernet adapter. This allows the integration of the Edge Gateway intoan already existing WLAN (Wireless Area Network).

Table 23: Wi-Fi modes of operation in selection list Mode

Wi-Fi DescriptionOperating mode displays the active operating mode.Name displays the name of the Wi-Fi interface (wlan0).MAC address displays the MAC address, if Wi-Fi is activated.

Table 24: Wi-Fi

Changing the operating mode:

You can change the operating mode via the Mode list.Ø Specify the parameters for the new operation mode.Ø Click at Change mode.Ê A safety query, whether you want to really change the operation mode,

appearsØ Confirm the message with OK.ð The message Wi-Fi Settings are succcessfully changed is displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 64: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 64/279

Operating mode Access point

Figure 43: Wi-Fi operating mode: Access point

The following table describes the parameters of the operating mode Accesspoint.Element DescriptionOperationmode

Current mode of operation Access point.

Mode Selection list for changing the mode of operationSelect the new operation mode from the selection list and then click atChange mode.

Name displays the name of the Wi-Fi interface (wlan0).MAC address displays the MAC address, if Wi-Fi is activated.IP address Specify IP address of Edge Gateway.Subnet mask Specify subnet mask of Edge Gateway.Gateway Specify IP address of network gateway.Channel In the list Channel you can select the radio channel and, thus, determine the

WLAN radio frequency in the 2.4 GHz band.Country In the list Country you can select the country in which you operate the radio

network.SSID Specify Service Set Identifier of wireless network

Here you enter the SSID to be used in the wireless network (WLAN) of theEdge Gateway.Note: Do not use the default SSID.In order to use a WLAN connection, you have to specify the SSID at the Wi-Fi clients.

Wi-Fiprotectedaccess

displays the encryption method used in the wireless network.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 65: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 65/279

Element DescriptionPre sharedkey

Here you enter the key to be used in the wireless network (WLAN) of theEdge Gateway. In order to use a WLAN connection, you have to enter thiskey on any Wi-Fi client.Note: Do not use the predefined default key.

DHCP Server to activate/deactivate the DHCP serverCheck this box whenever the Edge Gateway is to provide a DHCP server.

Start IPaddress

Here you have to enter the start IP address of the IP address range for theDHCP server if you have checked the box DHCP server.

End IPaddress

Here you have to enter the end IP address of the IP address range for theDHCP server if you have checked the box DHCP server.

Table 25: Parameters of the operating mode Access point

Operating mode: Client

Figure 44: Wi-Fi operating mode: Client

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 66: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 66/279

The following table describes the parameters of the operating mode Client.Element DescriptionOperatingmode

Current mode of operation: Client.

Mode Selection list for changing the operation modeSelect the new operation mode from the selection list and then click atChange mode.

Name displays the name of the Wi-Fi interface (wlan0).MACaddress

displays the MAC address, if Wi-Fi is activated.

Receive IP addressthroughDHCPserver

to obtain the IP address parameters from a DHCP server.Activated: The DHCP server will send the IP address parametersautomatically.Deactivated: You have to enter the IP address parameters manually.

IP address to enter the IP address of the client manually.Subnetmask

to enter the subnet mask of the client manually.

Gateway to enter the IP address of the Gateway manually for the client.DNS server1 and 2

to enter the IP address of the 1st and 2nd DNS server manually for the client.

Channel Display of the used wireless channel.SSID Shows the SSID (Service Set Identifier) of the Access Point the Edge

Gateway is connected to.Table 26: Parameters of the operating mode Client

Table Client

For each found client, the following data is shown in a separate column ofthe table:· SSID (Service Set Identifier)· MAC Address· Quality (of radio signal)· Wi-Fi protected access· State· Stored connections.

Scanning for a WLAN clientØ Click Scan.ð If a WLAN client is found, its data will be displayed in a line of the table

Client.

Establishing a connection to a WLAN client foundØ Click a line in the table which shows data of a client found.Ø Click at Connect.ð A dialog to enter the password is displayed.Ø Enter the password and click Connect.ð The Edge Gateway tries to establish a WLAN connection with the found

client. If this does not succeed, an error message is displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 67: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 67/279

Delete stored connectionØ In the table of the connections, click Delete in the row to be deleted.ð The stored connection is deleted and the messageWi-Fi successfully

disconnected is displayed.

Saving the Wi-Fi settings

To save the Wi-Fi settings, you need the access right 'Write' for the Wi-Fipage.Ø Click Save changes.ð A security request box appears:Ø Click at OK.ð The Wi-Fi settings are saved.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 68: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 68/279

8.5.3 FieldOpen this page with Network > Field.

In order to access this page you require the following access right:

Access to Field

On this page you configure the operating mode of the fieldbus interface(Real-Time Ethernet). The fieldbus interface is deactivated when delivered(factory setting).Operating mode DescriptionActive In the operating mode Active, the device can send and receive data on

the fieldbus interface. Note: The operating mode Active is required forthe typical operation of the Edge Gateway.In this operating mode, select a firmware: PROFINET IO Device orEtherNet/IP Adapter. Note: Do not use the PROFIBUS DP Slavefirmware.In Node-RED use

· the fieldbus input node to receive data from the fieldbus (see sectionExample 6: Fieldbus input node [} page 152]) and

· the fieldbus output node to send data to the fieldbus (see sectionExample 7: Fieldbus output node [} page 160]).

Passive In this operating mode Passive, the device receives data from thefieldbus interface. The receives data can be processed in Node-RED ora Docker application. Table Operating modes in the passive operatingmode [} page 68] describes further operating modes.

Inactive The interface is deactivated.Table 27: Operating mode fieldbus interface

The passive operating mode offers you further operating modes.

The user manual Passive operating mode describes capabilities ofthe Edge Gateway in the passive operation mode.

Operating mode DescriptionConfiguration In operating mode Configuration, you can transfer the signal

configuration in the Edge Gateway. After you have transferred the signalconfiguration in the Edge Gateway, change the operating mode toOperational.

Operational The received data can be processed in Node-RED using the passivefieldbus input node.The Edge Gateway has to be configured before using the operationmode Configuration.

Docker The received data can can be processed in a Docker application. TheEdge Gateway does not need a signal configuration in this mode.

Table 28: Operating modes in the passive operating mode

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 69: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 69/279

8.5.4 HostnameOpen this page with Network > Hostname.

In order to access this page you require the following access right:

Access onto hostname of Edge Gateway

On this page you configure the host name.

The host name identifies the device via the Wi-Fi or LAN network.

The default host name starts with the two letters "NT" followed by the LANMAC address of the LAN connection port 1 of the Edge Gateway. ExampleNT0002A233E559. The default host name is printed on the label at thebottom of the Edge Gateway. With the host name you can access the EdgeGateway from your PC even without knowing the IP address of the EdgeGateway (also see Using the web browser to establish a connection withthe Edge Gateway [} page 24]).

If the Edge Gateway does not obtain an IP address from a DHCP server,the system cannot translate the host name and you cannot access thedevice.

Figure 45: Hostname

Input field Hostname

A string of ASCII characters of arbitrary length can be entered into the inputfield Hostname.

Saving the host name

The hostname is saved by clicking at .

If storing the hostname has succeeded, the following message box isdisplayed:

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 70: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 70/279

8.6 Services

8.6.1 Starting, stopping and configuring servicesOpen this page with Services > Service List.

On this page you can· display the list of the running services,· display the operating status of each service,· start and stop single services,· activate/deactivate Autostart.

A service can allow you individual settings.

The list of services is displayed at the left edge:

Figure 46: List of default services

For a quick overview, the operating status of each service is displayed incolor.Color Operating statusgreen The service is being executed.yellow The service is configured, but not executed.red The service is neither configured nor executed.grey Right for accessing this service is missing

Table 29: Operating statuses of the services

8.6.1.1 Node-RED service

Deleting the current Node-RED flows

In case, the processing of a flow in the Edge Gateway takes a very longtime (e.g. due to an endless loop) you can delete all flows. After deletingthe flows there is no chance to restore these flows.Ø Click Delete all.Ê A security question is displayed.Ø If you intend to delete all flows, click Yes.ð All Node-RED flows are deleted.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 71: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 71/279

8.6.1.2 OPC UA Server for Edge

Figure 47: OPC-UA Server for Edge settings within the Control Panel, page Network>Field

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 72: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 72/279

The following table describes the parameters of the OPC UA Server forEdge.

Parameter Description Range of valuesGeneral communication parametersPort The port used for communication by OPC UA Valid port

Default: 4840Server Name The name of the OPC-UA Server (for the client) Name consisting of:

a…z, A…Z, 0-9, spaceGlobal discovery serverURL

URL of a Discovery Server within the network to whichthe Edge Gateway is connected. If there is a GlobalDiscovery Server in your network, then specify ist URL inParameter Global discovery server URL. Using thisserver, you can then access all OPC UA Servers listedthere. If this is not the case, use the displayed defaultaddress: opc.tcp://127.0.0.1:4840/UADiscovery

Valid URL to a DiscoveryServer within the network.

LimitationsMax Sessions Maximum number of sessions 1 … 10

Default: 10Max connections perendpoint

Maximum number of connections per endpoint 1 … 100 Default:100

Max nodes per read Maximum number of nodes per read 1 … 100 Default: 100

Max nodes per browse Maximum number of nodes per browse 1 … 200 Default: 200

Min sampling interval EdgeServer

Minimum sampling interval of the Edge Server, specifiedin milliseconds

>= 1 000 Default: 1000 [ms]

Min sampling intervalpassive fieldbus

Minimum sampling interval of the passive fieldbus,specified in milliseconds

>= 200 Default: 200 [ms]

Security settings (Security modes) At least one of these options must be checked. If multiple options are checked, the OPC UA Client may select a suitableof these options.None Unsigned communication without encryption Checked / not checkedSign Signed communication without encryption Checked / not checkedSign&Encrypt Signed communication with encryption Checked / not checkedSecurity settings (Security policies)At least one of these options must be checked. If multiple options are checked, the OPC UA Client may select a suitableof these options. For maximum security you should choose the security mode Sign&Encrypt and the security policyBasic256Sha256. For more information, follow the links to the various security policies on https://opcfoundation.org/UA/SecurityPolicy/.None No encryption

useful at security mode None und SignChecked / not checked

Basic128Rsa15 Encryption algorithm Basic128Rsa15, useful at securitymode Sign&Encrypt

Checked / not checked

Basic256 Encryption algorithm Basic256, useful at security modeSign&Encrypt

Checked / not checked

Basic256Sha256 Encryption algorithm Basic256Sha256, useful at securitymode Sign&Encrypt

Checked / not checked

Security settings (Access method to OPC UA Server)Anonymous access Anonymous access to the OPC UA Server (not secure) Checked / not checkedPassive mode of operation

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 73: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 73/279

Parameter Description Range of valuesEnable passive fieldbus Enabling the passive mode of operation

Check, if OPC UA Server should provide passivelyacquired process data. Prerequisites are the EdgeGateway running in the passive mode of operation andthe process data have been configured.Not checked: The OPC UA Server should not providepassively acquired process data.

Checked / not checked

Connection settings for the Edge ServerEdge Server Check, if the OPC UA Server is active. OPC UA for Edge

then accesses to the Edge Server and can accesstopology information from the Edge-Server.Not checked: OPC UA for Edge should not accesstopology information from the Edge-Server.

Checked / not checked

Username Username Valid usernamePassword Password Valid password

Table 30: Parameters of the OPC UA Server for Edge

Authentifcation in OPC UA

In general, OPC UA uses three methods for authentication.1. Anonymous access2. Access via username and password3. Access via username, password, certificate and private key.

In order to allow anonymous access to the OPC UA Server, checkcheckbox Allow anonymous access. This mode does not provide anysecurity and an OPC UA Client can connect via anonymous login.Otherwise an OPC UA Client can access the den Edge Server viausername and password.

Storing the settings for the OPC UA Server for Edge

After you finished making your settings for the OPC UA Server for Edge,you have to store these as follows in order to make them effective.Ø Click at Save all.Ê A message indicates that the configuration of the OPC UA Servers will

be changed on the next restart of the OPC UA Server.Ø Click at OK.ð The following message appears:

OPC UA Server for Edge config settings aresuccessfully savedThe changes are stored in the Edge Gateway now. However, they willget effective after the next restart of the Edge Gateway.

Ø Click at Stop.Ø Wait for some seconds.Ø Click at Start.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 74: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 74/279

8.7 User managementThe administrator manages users by means of two configuration pages:· User roles (determining new roles and assigning access rights) and· User accounts (adding, processing, and deleting).

Defining a user account is accomplished by assigning a predefined role tothe user.

8.7.1 Managing user rolesOpen this page with User Management > Roles.

On this page, you can determine roles and assign access rights ontoresources to these roles.

The roles Administrator and View are standard and cannot be deleted.

Figure 48: Page for configuring roles

An access right is set per resource. Each configuration page of the controlpanel which contains settable device parameters is a resource. Access viaREST-API (see Functions of the Edge Server [} page 218]) is also aresource.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 75: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 75/279

An access right can be assigned to the following single resources:Access right / Rewsource Access to resource

accomplished via menuentry

Usage

SystemSetting the system time System >Time Setting the system

time [} page 46]Packet managementManaging packets Package Manager >

PackagesManaging packets [} page 58]

Network accessAccess to LAN (Ethernetnetwork)

Network > LAN Configuring Ethernetcommunication(LAN) [} page 59]

Access onto Wi-Fi (wirelessnetwork)

Network > Wi-Fi Configuring wirelesscommunication (Wi-Fi) [} page 62]

Access onto hostname of EdgeGateway

Network > Hostname Hostname [} page 69]

Access onto Field network(Ethernet network)

Network > Field

ServicesConfigure service"S" (depends on installedservices)

Services > Service "S" Starting, stopping andconfiguringservices [} page 70]

SecurityInstall security certificates Security > SSL/TLS

CerticateUploading and installing ownsecurity certificates

Edge ServerAccess via REST-API Edge Server (REST API) Functions of the Edge

Server [} page 218]Table 31: Access rights onto resources

Each resource may obtain one of the following access rights:Access rights onto resource CheckboxNo access NoneRead access only ReadRead and write access Read, Write

Table 32: Access rights to resources

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 76: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 76/279

Adding a new role

Ø Click at

ð The dialog box for entering the role name is displayed.

Ø Enter a name for the role, e.g. User.Ø Click Add.ð The role is added.

Setting the access rights of a roleØ Click a role.ð The resources and access rights for this role will be displayed.Ø Assign the access right per resource.

Ø Click at

8.7.2 Managing user accountsOpen this page with User Management > Accounts.

On this page you can· add· process· delete user accounts.

Figure 49: User account page

Each user account has a user name, a password, and an assigned role.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 77: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 77/279

8.8 Security

8.8.1 Public Key InfrastructureFor the protection of its communication using encryption, the EdgeGateway uses security certificates and keys based on modern asymmetricencryption techniques. The Edge Gateway can be integrated into a publickey infrastructure. The menu Security > Public Key Infrastructure offersyou the possibility to manage security certificates for several use cases,display the contents of certificates.

To display information related to certificates and the associated keys, yourequire access rights for reading on Public Key Infrastructure.

To add certificates and keys, you require access rights for writing on PublicKey Infrastructure.

Figure 50: Public Key Infrastructure for managing of certificates

The GUI of the public key infrastructure consists of these areas:1. Selection list for the certificate type (1): Trusted Certification Authorities

or Service certificates2. File selection area for certificate and key files (2)3. Certificate Viewer (3)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 78: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 78/279

Certificate type selection list

Figure 51: Certificate type selection list

In the Certificate Type selection list (1), you can select whether you wantto manage· certificates in the Trusted Certification Authorities or· service certificates (server or client certificates for services in the Edge

Gateway) for the communication using the HTTPS or OPC UAprotocols.

File selection window for certificates and key files

In this area (2), you can select a PEM file containing information about acertificate or a key. In case of selection of a certificate, importantinformation about the selected certificate is displayed in the area CertificateViewer (right side).

Depending on the selected certificate type (1), the file selection area forcertificate and key files either displays a list structure or a tree structure:

On selection of Root Certificates the list structure of the Trusted CA Storein the Edge Gateway is displayed.

On selection of Service Certificates a tree structure is displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 79: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 79/279

Certificate Viewer

Figure 52: Certificate Viewer

The area Certificate Viewer (3) is used to display the structure of acertificate selected within the file selection area on the left side. Theelements of the selected certificate according to the X.509 standard, suchas information on the issuer, serial number, country, locality, organisationand oganisation unit are displayed, see section Structure of a certificateaccording to X.509 [} page 236].

Note:For more information on the foundations of asymmetric encryptiontechniques and public key infrastructure, see sections Asymmetricencryption [} page 234] and Certificates and keys [} page 236].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 80: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 80/279

8.9 HelpOpen this page with Help> Info. No access rights are required in order toopen this page.

This page displays the firmware version of the Edge Gateway.

Figure 53: Info page

8.10 Session

8.10.1 User profileOpen this page with Session> User Profile. No access rights are requiredin order to open this page.

Figure 54: User profile page

On this page you can· display the access rights of your user account,· change your E-mail address, and· change your password.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 81: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Control Panel 81/279

Changing the e-mail address

Ø Click at .Ê The dialog Edit user account is displayed.

Figure 55: Dialog "Edit user account"

Ø Specify your e-mail address at the input field E-mail.

Ø Click at .ð The specified e-mail address is stored.

Changing the password

Ø Click on .Ê The dialog Edit user account is displayed.Ø Check change user password.Ø Specify your password at the input field New Password.Ø In order to confirm your input, specify your password again at the input

field Confirm Password.

Ø Click on .ð The changed password is saved.

8.10.2 LogoutTo log out from the Edge Gateway, use Session> Logout. No accessrights are required to select this menu entry. Prior to accessing the EdgeGateway again, a new login (Specifying user name and password) isnecessary.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 82: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 82/279

9 Node-RED - The wiring editorThe task of a gateway in the Internet of Things is to establish easyconfigurable flexible connections between different devices. The netIOTEdge Gateway uses Node-RED for this task, a very flexible visual wiringeditor for the Internet of Things.

Node-RED was developed by IBM. It is a web-based graphical tool with anintuitive user interface for wiring nodes for an application-specific data flow.Nodes are wired by means of a mouse with drag and drop.

Node-RED is based on node.js a platform independent runtimeenvironment to develop Web applications with server side java scripting.

This manual explains you how to use Node-RED for configuration andwiring of nodes within the netIOT Edge Gateway.

This manual refers to the following versions:· Node-RED version 0.18.· node.js minimal V4.x

Note:You can find information about Node-RED in the Internet: http://nodered.org/. The current documentation is available here: http://nodered.org/docs/. For beginning, read the document GettingStarted: http://nodered.org/docs/getting-started/.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 83: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 83/279

9.1 Modelling IoT flows with nodesTo combine physics and logic, Node-RED models ("flows") and works with("nodes") which represent objects in the Internet of Things. You can relatethese objects to physical interfaces as well as to logic functions.

Figure 56: Comparison of the physical and logic view

By means of Drag&Drop the nodes are interactively wired with one anotherto get flows, as shown in the following figure.

Figure 57: Wiring the nodes

The following basic properties apply to one Node-RED node:· A node fulfills a specific, defined task.· A node has entry masks for setting the parameters.· A node can have inputs and outputs.· A node can be connected with other nodes via its inputs and outputs.· A node can modify and overwrite data before passing the data on.· A node transports data via the msg object in the JSON format.

The msg object always contains the objects .topic and .payload.· .topic identifies the message.· .payload contains the payload to be transported.

Node-RED has an ample library with already predefined nodes which areready for immediate use.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 84: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 84/279

Node-RED categorizes nodes. The following categories of nodes exist,e.g.:· input· output· function· social· storage· analysis· advanced· cloud· modbus· dashboard

Nodes offer functions, e.g.:· Web-based communication· TCP/UDP send/receive· MQTT publish/subscribe· Serial send/receive· Time emitter

9.2 Opening Node-REDThis section describes how to call Node-RED for configuring the flow withinthe netIOT Edge Gateway.

Prerequisite: To login, you have to know your user name and password.

To open Node-RED, proceed as follows:Ø Open the Edge Gateway manager (see Calling the Edge Gateway

Manager [} page 26])Ø In the Edge Gateway manager click on the tile Node-RED.

Ê The Node-RED start screen will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 85: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 85/279

Ø Enter your user name and password.

Ø Click on Login.ð Node-RED asks you whether you want to use the projects function

which allows you to store flows in a Git hub repository.Ø If needed, you can setup the project function later. Click on Not right

now.ð The Node-RED workspace will be displayed.

Figure 58: Node-RED workspace

Note:Remember that the secured HTTPS protocol is used here, not thewidely spread HTTP protocol.

If the Node-RED workspace does not open, read the following sections incompliance with the browser used:

Connection without certificate with Microsoft Internet Explorer [} page 32]

Connection without certificate with Firefox [} page 32]

Connection without certificate with Google Chrome [} page 34]

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 86: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 86/279

9.3 Graphical user interface

Graphical user interface

The following figure and table describe the elements of the user interface.

3 4 52

15

16

1

14

12 1113 9

6

8

7

10

Figure 59: Node-RED user interface

Position number Description(1) Worksheet which contains one or more flows. This worksheet has

the name Flow 1.(2) Add worksheet(3) Deploy, to transfer the configuration (flows) into the device(4) Logout(5) Node-RED menu(6) Display of configuration nodes

If necessary, the display has to be activated first: Node-RED menu> View > Configuration nodes.

(7) Debug outputIf necessary, the display has to be activated first: Node-RED menu> View > Debug messages.

(8) Information outputIf necessary, the display has to be activated first: Node-RED menu> View > Information.

(9) SidebarThe sidebar can be switched on or off.

(10) Zoom(11) Workspace which contains one or more worksheets.(12) Expand or collapse the node library(13) Node library(14) Node category(15) Nodes(16) Node filter

Table 33: Node-RED user interface

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 87: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 87/279

Nodes

The following figure and table describe the elements of a node.

57

1 2 3 4

6

Figure 60: Node

Position number Description(1) Node icon(2) Node name (editable)(3) The red triangle shows that a required parameter is not configured

yet.(4) The blue circle shows that this node has been changed but not

transmitted yet.(5) Output port (if available)(6) Node status (if available)(7) Input port (if available)

Table 34: Node elements

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 88: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 88/279

9.4 Working with Node-REDIn Node-RED you can process data using1. Input nodes (nodes that read data),2. Processing nodes and3. Output nodes (nodes that write data).

You can wire nodes by connecting their input and output ports. Byconnecting the nodes you create a data flow that is simply called "flow" inthe user interface. The flow direction is always fixed: From input node tooutput node. Insert the nodes in a worksheet, configure these nodes,connect them, and deploy the result to the Edge Gateway.

Procedure (overview)1. Inserting a node from the library2. Configuring node parameters:

A node may require parameters that you can configure in an edit dialog.The fieldbus node is an example for a node which is configured via anedit dialog.

3. Connecting nodes to determine the flow:In Node-RED the data flow is realized as „flow“.

4. Using Deploy to activate the flow in the Edge Gateway:The flow in the workspace still has to be activated in the Edge Gateway.For this purpose Deploy is used to transmit the flow from the workspaceto the Edge Gateway.

Procedure (step by step)1. Inserting nodes from the library

Ø Use the mouse to drag a node from the library and insert the node inthe flow.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 89: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 89/279

2. Configuring node parametersØ Double-click on the node.ð The edit dialog will be displayed.

3. Connecting nodes to determine the flowØ Connect the input node with the output node. For this purpose hold

down the mouse button and draw a line (wire) from the output port ofthe node (in the example called „Hello World“-node) to the input port ofthe other node.

ð Thus, the two nodes are connected by a line (wire) in the workspace,but they are not yet activated in the Edge Gateway.

4. Using Deploy to activate the flow in the Edge GatewayØ Click on Deploy.

ð The flow will be deployed from the workspace to the Edge Gateway andactivated.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 90: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 90/279

9.4.1 Using Git hub repository to store flows (projects)Node-RED offers you the projects function (optional). If you intend to use it,you first have to set it up. Then you can use Node-RED together with Gitand can use the following functions:· save flows in a repository,· manage different versions of flows (version control), and· collaborate with other persons on flows.

To setup a new procect or to open an existing project, you have to specifyor to know the following names:· User name (for Git)· Email address· Project name· Description for the project (optional)· Flow file name· The key, if encryption is used.

Starting from the Node-RED menu, use Projects > New to create a newproject in Git and use Projects > Open to open an existing project in Git.To open the project settings, use Projects > Project Settings to display orchange them and to use the version control.

Note:For a description of the projects function, see https://nodered.org/docs/user-guide/projects/.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 91: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 91/279

9.4.2 Menu DeployThe menu Deploy offers further commands to control the deployment of theflow.

Figure 61: Menu Deploy

Command DescriptionFull deploys the entire workspace.Modified Flows deploys only those flows which contain modified nodes.Modified Nodes deploys only nodes that have been modified.

Table 35: Commands of menu Deploy

ProcedureØ Click on the white arrow located at the right edge of the red button

Deploy.Ê The menu Deploy opens.Ø Click on the menu command to be executed.Ê The dialog box Confirm Deploy is displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 92: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 92/279

Ê The dialog box Confirm Deploy is displayed.Ê A dialog box will indicate incorrectly configured nodes in the workspace,

if there are any, and ask whether you really want to execute the deployprocedure.

Ø Click on Cancel to correct any possible errors.ð The flow has not been deployed to the Edge Gateway.

orØ Click on Confirm deploy to deploy the flow to the Edge Gateway and

activate it.ð Thus, the flow is activated in the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 93: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 93/279

9.4.3 DashboardBeginning with Version 0.14, Node-RED simply allows to design integratedgraphical user interfaces. These graphical user interfaces are calleddashboards and designed within the dashboard configuration using somespecial nodes.

These special nodes contain graphical elements for control and display,which are used for input and output purposes. These are called widgets.Node/Widget

Function

button Adds a button to the user interfacedropdown Adds a dropdown list to the user interfaceswitch Adds a switch to the user interfaceslider Adds a slider to the user interfacenumeric Adds a widget for putting in numerical values to the user interfacetext input Adds a widget for text input to the user interfacecolour picker Adds a widget for color selection to the user interfaceform Adds a form to the user interfacetext Display of a non-editable text field on the user interfacegauge Adds a round gauge display to the user interfacechart Adds a chart to the user interface (can be configured as line chart, bar

chart or pie chart)notification Displays the contents of a message msg.payload as popup

notification or as dialog box (Options Ok / Cancel on the user interfaceaudio out Adds audio output or speech output of textui control Allows to control the dashboard dynamicallytemplate Adds directives or HTML code for further processing

Table 36: Kinds of widgets for use in dashboards

Widgets can be organized in groups. These groups together appear onworksheets which are called tabs

9.4.3.1 Dashboard configuration (Overview)

The dashboard configuration occurs in register card Dashboard of the sidebar. In the following the structure of and the functions provided by of thedashboard configuration are explained.

The register card Dashboard of the Edge Bar is itself divided into threeregister cards:· Layout· Theme· Site

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 94: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 94/279

These register cards look as follows:Register card Layout Register card Theme Register card Site

They consist of the following elements:Number Area Register card(1) Button "Show current dashboard in the browser within new register card" Layout,

Theme, Site

(2) Editable tree structure for creating tabs, groups and widgets. See sections Working withtabs [} page 96], Working with groups [} page 97] and Working with widgets [} page 99].

Layout

(3) Area for displaying messages Layout

(4) List field „Menu links“.See section Working with menu links [} page 101]. Layout

(5) Selection list "Style" - allows the selection of colors for background display (light or dark background or user-defined color display)

Theme

(6) Input field „Custom Profile“- allows to put in a name for a theme - is only displayed, if option „Custom“ has been chosen in selection list "Style"

Theme

(7) Color selection field „Base Settings“ Theme(8) Color selection field „Page Settings“

- is only displayed, if option „Custom“ has been chosen in selection list "Style"Theme

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 95: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 95/279

Number Area Register card(9) Color selection field „Group Settings“

- is only displayed, if option „Custom“ has been chosen in selection list "Style"Theme

(10) Color selection field „Widget Settings“- for the selection of text color, base color and background color for widgets- is only displayed, if option „Custom“ has been chosen in selection list "Style"

Theme

(11) Input field „Title“ - for specifying the title of the dashboard

Site

(12) Selection list „Options“ - Showing or hiding the title bar - Swiping over tabs

Site

(13) Input field „Data Format“ - allows specifying the date format of your choice

Site

(14) Input fields „Sizes“ for sizes and distances of widgets SiteTable 37: Areas of the dashboard configuration

9.4.3.2 Display dashboard

You can visualize the dashboard currently configured in the active Node-RED flow and test it as f9ollows:

Ø Click at the button right of the input field Title.ð In the browser a new register card is opened, in which the dashboard is

displayed graphically.

9.4.3.3 Change title

You can change the title of a dashboard as follows:Ø Specify the title of the dashboard in input field Title of register card Site.

9.4.3.4 Background

Select the background color (light or dark) of the dashboard as follows:Ø In the selection list Style in register card Theme select option

„Light(default)" or „Dark“. The option Custom allows you to adjustadditional color settings.

ð The background color is changed. However, the change will geteffective at the next deploy operation.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 96: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 96/279

9.4.3.5 Working with tabs

In this section, working with tabs is described, such as creating new tabs,changing tabs and deleting these.

Adding a tab

In this way you can add a tab to the dashboard:

Ø Click at icon (right of the text "Tabs").ð A new tab is added below the already preset ones.

Editing a tab

In this way, you edit a tab:Ø Move your mouse cursor to the tab to be edited (within the tree

structure).

Ê The icons and get visible.

Ø Click at the icon (right of the name of the according tab).ð The dialog Edit dashboard tab node is opened.

Figure 62: Dialog "Edit dashboard tab node"

Ø Specify the desired name of the tab in field Name.Ø If desired, specify the icon type within the field Icon, for instance,

Dashboard.

Ø In order to store, click at in dialog Edit dashboard tabnode.

ð The dialog Edit dashboard tab node is closed and the tab is adaptedaccording to your specifications.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 97: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 97/279

Deleting a tab

So you can delete a tab:

Ø Click at the icon (right of the name of the according tab)ð The dialog Edit dashboard tab node is opened.

Figure 63: Dialog "Edit dashboard tab node"

Ø In order to delete a tab, click at in dialog Edit dashboardtab node.

ð The dialog Edit dashboard tab node is closed and the tab is removedfrom the tree structure.

9.4.3.6 Working with groups

In this section, working with groups is described, such as creating newgroups and changing and deleting groups .

Adding a group to a tab

So you can add a group to the dashboard within a tab

Ø Click at the icon (right of the name of the according tab).ð A new group is added below the already present groups. If there is not

any group, the new group is directly added below the tab.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 98: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 98/279

Editing a group

In this way, you can edit a group of widgets:

Ø Click at the icon (right of the name of the according group).ð The dialog Edit dashboard tab node is opened.

Figure 64: Dialog "Edit dashboard tab node"

Ø Specify the desired name of the tab in field Name.Ø If you want to change the relation of a group to a superordinated tab,

you can select another tab from the selection list Tab. If you want torelate the group with a tab to be newly created, select entry Add newui_tab at the end of the selection list. Then a new tab is created and thecurrent group is related to this new tab.

Ø Specify the width of the group in field Width.Ø You can control via the checkbox Display Group Name whether the

name of the group as displayed in the field Name is displayed on thedashboard, or not.

Ø In order to store, click at in dialog Edit dashboard tabnode.

ð The dialog Edit dashboard tab node is closed and the group isadapted according to your specifications.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 99: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 99/279

Deleting a group

In this way, you can delete a group (within a tab)

Ø Click at the icon (right of the name of the according tab).ð The dialog Edit dashboard tab node is opened.

Figure 65: Dialog "Edit dashboard tab node"

Ø In order to delete a group, click at in dialog Edit dashboardtab node.

ð The dialog Edit dashboard tab node is closed and the group isremoved from the tab.

9.4.3.7 Working with widgets

In this section, working with widgets is described,such as creating newwidgets, changing widgets and deleting these.

Adding a widget to group

So you can add a widget of your choice to a group:Ø Select a node for a widget from the node group dashboard out of the

node library, for instance for a line chart, bar chart or pie chart the nodefor the widget Chart.

Ø Pull this node onto your worksheet using Drag&Drop.Ø Double-click onto this node.Ê The edit dialog of the node is opened. Name and contents of the edit

dialog depend on the choice of the node. At its upper edge, thiscontains the three buttons Delete, Cancel und Done.

Note:Further information can be found in the documentation of Node-RED. You can find it at https://github.com/node-red/node-red-dashboard.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 100: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 100/279

Ø Configure the widget according to your needs.Ø Select the group from the selection list, to which you want to add the

widget having just been configured.Ø Finish configuration by clicking at Done.ð The widget is stored including its configured settings and it is assigned

to the selected group.

Editing a widget

In this way, you edit a widget:

Ø Click at the icon (right of the name of the according widget).ð The edit dialog of the widget to be edited is opened. The name and the

contents of this edit dialog strongly depends on the type of therespective widget such as button, dropdown, switch, slider,numeric, textinput, form, colour picker, gauge, chart,audio out, notification, text, template or ui control.

Note:Further information can be found in the documentation of Node-RED. You can find it athttps://github.com/node-red/node-red-dashboard.

Ø Select the desired settings for your widget.

Ø Click at .ð The edit dialog is closed and the settings of your widget are stored.

Deleting a widget

So you can delete a widget:

Ø Click at the icon (right of the name of the according widget).ð The edit dialog of the widget to be edited opens.

Ø Click at .ð The widget is deleted and removed from the group, to which it belonged

previously.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 101: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 101/279

9.4.3.8 Working with menu links

Adding a link

So you can add a further link to the dashboard:Ø Click at icon (right of the text "Menu links").ð A new link is added at the end of the link list below "Menu links".

Editing a link

In this way, you edit a link within the link list:

Ø Click at the icon (right of the name of the according link).ð The dialog Edit dashboard tab node is opened.

Figure 66: Dialog "Edit link node"

Ø Specify the desired name of the tab in field Name.Ø Specify the link address in the field Link (Protocol http or https).Ø Specify in field Icon, how the link should be opened (Options

dashboard or open_in_browser)Ø Choose whether the link in the browser should be opened within a new

tab (Option New Tab) or within an iframe (Option iframe).

Ø In order to store, click at in dialog Edit link node.ð The dialog Edit link node is closed and the link is adapted according to

your specifications.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 102: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 102/279

Deleting a link

So you can delete a link

Ø Click at the icon (right of the name of the according link).ð The dialog Edit dashboard tab node is opened.

Figure 67: Dialog "Edit link node"

Ø In order to delete a link, click at in dialog Edit link node.ð The dialog Edit link node is closed and the link is removed from the

link list.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 103: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 103/279

9.5 List of nodesThe following table lists the nodes of the standard scope of delivery.Category NodeInput inject

catchstatuslinkmqtthttpwebsockettcpudpfieldbusI/Oopc ua (client)s7commWatson IoTserial

Output debuglinkmqtthttp responseweb sockettcpudpfieldbusLEDI/Oopc ua (client)s7commWatson IoTserial

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 104: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 104/279

Category NodeFunction function

templatedelaytriggercommenthttp requesttcp requestswitchchangerangesplitjoincsvhtmljsonxmlyamlsparkplugrbe

Social email inemail outtwitter intwitter out

Storage file tailfile insqlitefile out

Analysis sentimentAdvanced watch

feedparseexec

Cloud azureiothubModbus Modbus Response

Modbus ReadModbus GetterModbus Flex GetterModbus WriteModbus Flex WriteModbus ServerModbus Queue InfoModbus Flex Connector

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 105: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 105/279

Category NodeDashboard button

dropdownswitchslidernumerictext inputdate pickercolour pickerformtextgaugechartaudio outnotificationui controltemplate

Table 38: List of standard nodes

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 106: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 106/279

9.6 MQTT input nodeThe MQTT input node allows you to receive data from an MQTT broker viathe MQTT protocol using the MQTT function subscribe.

Figure 68: MQTT input node

Parameters of the MQTT input node

This section describes the parameters of the MQTT input node.

Figure 69: Dialog box Edit MQTT in node

Parameter Type DescriptionServer Selection list The selection list Server shows the MQTT broker to be used.

If MQTT brokers are already defined, they will be listed here.The selection list Server always contains a further entry Addnew mqtt-broker to add a new MQTT broker if no MQTTbroker has been defined yet or if already existing brokers arenot to be used.

Topic Input field In the input field Topic you can enter the topic for the MQTTcommunication. If no name has been entered, but an inputhas been made under Topic, this input will be used as nodename in the Node-RED workspace.Topic # causes all topics of the broker to be received.

Name Input field Here you enter the name of the MQTT input node that isdisplayed at the node in Node-RED and used foridentification.

Table 39: Parameter MQTT input node

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 107: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 107/279

If you select Add new mqtt-broker in the list Server and click Edit thereafter, the dialog box Add new mqtt-broker config node will bedisplayed. In this dialog box you can configure the parameters for aconnection to an MQTT broker.

Figure 70: Dialog box MQTT broker config node – tab Connection

Tab Connection

In the tab Connection you can configure the connection to the server.Parameter Type DescriptionServer Input field Here you indicate with which MQTT broker the Node-RED

MQTT input node shall communicate.For the communication with an external MQTT brokerspecify the IP address of this broker here or specifylocalhost (denoting the locally defined host computer).foraddressing the integrated MQTT broker of the EdgeGateway

Port Input field Here you enter the port via which Node-RED communicateswith MQTT. Port 1883 (for standard MQTT) or 8883 (forMQTT with TLS encryption) is usually used here.

Client ID Input field If the box Use clean session is not checked, you have toenter the client ID here to identify the client.If the box Use clean session is checked, no entry isrequired because in this case the client ID will be producedautomatically.

Keep alivetime

Input field Here you enter the lifetime of the connection.

Use cleansession

Checkbox By checking this box you can activate a clean sessionduring which the client ID is produced automatically.

Use legacyMQTT 3.1support

Checkbox By checking this box you can activate MQTT 3.1 support.

Table 40: Parameters in the tab Connection

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 108: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 108/279

Tab Security

In the tab Security you can configure the parameters for a secureconnection, e.g. authentication and encryption.

Figure 71: Dialog box MQTT broker config node - tab Security

Parameter Type DescriptionUser name Input field Here you enter the user name for the connection.Password Input field Here you enter the password for the connection.Enablesecure(SSL/TLS)connection

Checkbox By checking this box, the MQTT protocol will be transmittedto SSL/TLS via a secure connection with encryption. Forreason of data security, we recommend checking this box.

Verifyservercertificate

Checkbox By checking this box, the security certificate of the serverwill be verified, which will cause the browser to sendsecurity messages in case of problems with the certificate.This checkbox is active only if the checkbox Enable secure(SSL/TLS) connection has been checked.

Table 41: Parameters in the tab Security

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 109: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 109/279

Tab Birth Message

In the tab Birth Message you can configure the topic that is sent when anew connection is established.

Figure 72: Dialog box MQTT broker config node - tab Birth Message

Parameter Type DescriptionTopic Input field In the input field Topic you can enter the topic of the MQTT

communication. If you leave this field blank, no BirthMessage will be sent. In that case, all other parameters ofthis tab are meaningless.

QoS Selection list You can set the selection list QoS (Quality of Service) toone of the three values 0, 1, and 2.The meaning of thesevalues is as follows:0 = At most once (no acknowledge by the receiver)1 = At least once (the sender stores the message until itreceives an acknowledge from the receiver)2 = Exactly once (Sender and receiver acknowledge themessage using additional acknowledge messages)

Retain Selection list Here you can set whether the connection is to bemaintained after use:TRUE: The connection is to be maintained.FALSE: The connection will be terminated.

Payload Input field Here you can enter the payload (text) to be transmitted inthe Birth Message via MQTT.

Table 42: Parameters in the tab Birth Message

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 110: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 110/279

Tab Will Message

In the tab Will Message you configure the topic that is sent before aconnection is terminated.

Information on the Will Message, an MQTT message that is sent at the endof the lifetime of a node, if a topic is entered here.

Figure 73: Dialog box MQTT broker config node - tab Will Message

Parameter Type DescriptionTopic Input field In the input field Topic you can enter the topic of the MQTT

communication. If you leave this field blank, no WillMessage will be sent. In that case, all other parameters ofthis tab are meaningless.

QoS Selection list You can set the selection list QoS (Quality of Service) toone of the three values 0, 1, and 2. The meaning of thesevalues is as follows:0 = At most once (no acknowledge by the receiver)1 = At least once (the sender stores the message until itreceives an acknowledge from the receiver)2 = Exactly once (Sender and receiver acknowledge themessage using additional acknowledge messages)

Retain Selection list Here you can set whether the connection is to bemaintained after use:TRUE: The connection is to be maintained.FALSE: The connection will be terminated.

Payload Input field Here you can enter the payload (text) to be transmitted inthe Will Message via MQTT.

Table 43: Parameters in the tab Will Message

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 111: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 111/279

9.7 MQTT output nodeThe MQTT output node allows you to send data to an MQTT broker via theMQTT protocol using the MQTT function publish.

Figure 74: MQTT output node

Parameters of the MQTT output node

This section describes the parameters of the MQTT output node.

Figure 75: Dialog box Edit MQTT out node

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 112: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 112/279

Parameter Type DescriptionServer Selection list The selection list Server shows the MQTT broker to be

used.If MQTT brokers are already defined, they will be listedhere. The selection list Server always contains a furtherentry Add new mqtt-broker to add a new MQTT broker ifno MQTT broker has been defined yet or if already existingbrokers are not to be used.

Topic Input field In the input field Topic you can enter the topic of the MQTTcommunication. If no name has been entered, but an inputhas been made under Topic, this input will be used as nodename in the Node-RED workspace.

QoS Selection list You can set the selection list QoS (Quality of Service) toone of the three values 0, 1, and 2. The meaning of thesevalues is as follows:0 = At most once (no acknowledge by the receiver)1 = At least once (the sender stores the message until itreceives an acknowledge from the receiver)2 = Exactly once (Sender and receiver acknowledge themessage using additional acknowledge messages)

Retain Selection list Here you can set whether the connection is to bemaintained after use:TRUE: The connection is to be maintained.FALSE: The connection will be terminated.

Name Input field Here you enter the name of the MQTT output node that isdisplayed at the node in Node-RED and used foridentification.

Table 44: Parameters of the Edit MQTT out node

If you select Add new mqtt-broker in the list Server and click Edit thereafter, the dialog box Add new mqtt-broker config node will bedisplayed. In this dialog box you can configure the parameters for aconnection to an MQTT broker.

The parameters of tabs Connection, Security, Birth Message, and WillMessage of the MQTT output and input node are identical and described insection MQTT input node [} page 106].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 113: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 113/279

9.8 OPC UA input nodeThis section describes how you can read a single or several attributes of aselected object using the OPC UA input node in order to process thesewithin your Node-RED flow. The result is delivered either as an object inJSON notation or as a data value within the data type of the selectedobject. This depends on the settings. The OPC UA input nodecommunicates with an OPC UA Server and thus plays the role of an OPCUA Client in this context.

Figure 76: OPC UA input node

Dialog Edit opcua in node

The parameters can be set in dialog Edit opcua in node. This dialog hasthree tabs:Tab PurposeHome Configuration of basic connection parametersBrowse Selection of object and attribute to be read within a tree structureMode Selection of mode of operation, payload and other settings which depend

on the mode of operationTable 45: Tabs of dialog Edit opcua in node

Tab Home

The tab Home contains controls for the configuration of basic connectionparameters of the OPC UA input node.

Figure 77: Dialog box Edit OPC UA in node – tab Home

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 114: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 114/279

Parameter Type DescriptionServer Selection list The selection list Server indicates the OPC UA server with

which the node shall communicate..If any OPC UA servers are already defined, they will belisted here. The selection list Server always contains anentry Add new OPC UA client to add a new OPC UA serverif no OPC UA server has been defined yet or if alreadyexisting servers are not to be used.

Topic Input field In the input field Topic you can enter a topic that the node atthe output port passes on with the JSON object foridentification to succeeding nodes.

Name Input field Here you enter the name that is displayed at the node.BrowseName Display field Here, the name of the object been selected within register

card Browse is displayed. If an object has not yet beenselected, BrowseName is displayed and the field is grayedout.

NameSpace Display field Here, the namespace information (a numerical value)concerning the object been selected within register cardBrowse is displayed. If an object has not yet been selected,NameSpace is displayed and the field is grayed out.

Identifier Display field Here, the identifier (a numerical value) concerning theobject been selected within register card Browse isdisplayed. If an object has not yet been selected, Identifieris displayed and the field is grayed out.

Table 46: Configuration parameters of the dialog OPC UA in node

If there is an OPC UA connection, the fields BrowseName, NameSpaceand Identifier display information about the choice of object and attribute.Otherwise, the fields display their own names and are grayed out and noteditable. You can identify an operational OPC UA connection by the greensquare and the text session below the OPC UA input node.

Figure 78: OPC UA output node with currently operational OPC UA Cconnection

If you select Add new opcua config in the list Server and click Edit thereafter, the dialog box Add new opcua- config config node will bedisplayed. In this dialog box, you can configure a parameter for aconnection to an OPC UA server. Additionally, you can configurespecifications concerning security and authentication there.

Note:In order to establish an operational OPC UA connection, allspecifications concerning security and authentication must matchwith the respective settings of the OPC UA Server.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 115: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 115/279

Figure 79: Dialog box „Add new opcua config config node“

Structure of OPC UA server address

The address of the OPC UA server is structured as follows:

opc.tcp://<IP address:port

Example: opc.tcp://192.168.253.12:4840

Port 4840 is the standard port for unencrypted OPC UA communication.For encrypted OPC UA communication via TLS/SSL usually port 4843 isapplied.

Area Security

In the area Security, the following parameters can be specified:· Security Policy· Message Security Mode

OPC UA supports multiple security policies and their associated encryptionmethods via parameter Security Policy. The following options are offered:Value MeaningNone No encryption (Minimum degree of security)Basic128Rsa15 Encryption with 128 digit key according to the RSA method (no longer

recommended)Basic256 Encryption with 256 digit key (no longer recommended)Basic256Sha256 Encryption with 256 digit key according to the SHA method (Maximum

degree of security, current recommendation)Table 47: Security policies and encryption methods - Parameter Security Policy

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 116: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 116/279

Additionally, OPC UA supports these three Parameter Message SecurityModes:Value MeaningNone Messages are neither signed nor encrypted.Sign All messages are signed.Sign&Encrypt All messages are both signed and encrypted.

Table 48: Parameter Message Security Mode

Area Authentication

Within this area, it is specified whether the login at the OPC UA server isdone anonymously or by entering username and password. In the„Authentication“ area the following controls are available:Element Type MeaningAnonymous Radio button allows anonymous login. i.e. login without specifying use

name and password. To do so, anonymous login must havebeen enabled at the OPC UA Server.

Username &Password

Radio button forces login using user name and password. To do so, loginby username and password must have been enabled at theOPC UA Server.

Username Input field specify the username for login here.Password Input field specify the password of the user here.

Table 49: Controls in the area Authentication

As an example, the following figure shows a completely configured Hometab.

Figure 80: Dialog box „Edit opcua in node“ – Tab Home

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 117: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 117/279

Tab Browse

Figure 81: Dialog box Edit OPC UA in node – tab Browse

To be able to use the browser function, you must perform the followingsteps in order to fulfill the requirements:

(Physically) establish a connection to the OPC UA server.

Specify the address of the OPC UA server (Parameter Server in dialog boxAdd new opcua- config config node, see above).

Transfer the OPC UA output node to the Edge Gateway by Deploy.

If all of these conditions are fulfilled, the following applies:· The left window of the tab Browse displays the objects of the server’s

address space within a tree structure.· The right window displays the attributes of the object selected in the left

window.

The specifications Path, BrowseName, NameSpace and Identifier alsorelate to the selected object.

Tab Mode

In tab Mode, you can select the parameters for the operating modeSubscribe or Polling (under Transfer). It offers the following options:

the mode of operation (Polling or Subscriber)

the amount of the transmitted payload

settings depending on the mode of operation

By means of the selection list Payload you configure the amount of thepayload.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 118: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 118/279

Figure 82: Options of the selection list Payload

Option Descriptionvalue The value is transmitted only. The value is transmitted without time stamp.custom Only data that you can select by checking one box or several boxes will be

transferred. Also the time stamp will be transferred.Table 50: Options of the payload list

By selecting the option custom you can select the attributes to betransmitted in the payload.

Figure 83: OPC UA in - custom payload

Selection list Transfer

In the Mode tab, select the mode of operation for the data transfer betweenOPC UA node and server using the selection list Transfer. The followingmodes of operation are available:Mode ofoperation

Meaning

Polling Checks, whether a change of value occurred, are periodically executedSubscribe Communication between OPC UA node and server works according to

the publisher-subscriber model.Table 51: OPC UA modes of operation

The specifications Path, BrowseName, NameSpace and Identifier alsorelate to the selected object.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 119: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 119/279

Operating mode Polling

In operation mode Polling, the following controls are displayed additionally:· The selection list repeat· The checkbox Inject once at start

Figure 84: Dialog box Edit OPC UA in node – Tab Mode - Polling

In the list Repeat you can select if, when, and at what interval you want torepeat the reading of data from the OPC UA server.

Figure 85: Options of the list Repeat

Option Descriptionnone no repetitioninterval

You can set the time interval for periodic repetitions of the data transmissionvia OPC UA.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 120: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 120/279

Option Descriptionat a specifictime

You can set that the data is transmitted regularly at defined, selectableweekdays at a fixed time.

intervalbetweentime

Additionally, you can limit the space of time in which the periodic repetitions(at every) take place to an exact time range (between and) and definedweekdays.

Table 52: Options of the list Repeat

If the checkbox Inject once at start is checked, data are once transmittedvia OPC UA.

Operating mode Subscribe

Figure 86: Dialog Box Edit OPC UA in node – tab Mode - Subscribe

In operating mode Subscribe, the following controls are displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 121: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 121/279

Parameter DescriptionPublishing Duration of the publishing interval (in milliseconds)Life Time Life time (in milliseconds)Priority Relative priorityKeep Alive Number of empty messages sent until the client is informed

about timeout of session.Table 53: Parameters in Subscription Settings

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 122: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 122/279

9.9 OPC UA output nodeThis section describes, how you can read data of your Node-RED flow intoone single attribute of a selected OPC UA object using the OPC UA outputnode. The OPC UA output node has the function of a client.

The OPC UA output node communicates with an OPC UA server. Thus, ithas the role of an OPC UA client.

Figure 87: OPC UA output node

Dialog Edit opcua out node

The parameters can be adjusted in dialog Edit OPC UA out node. Dialogbox Edit OPC UA out node has 2 tabs: Home and Browse.Tab FunctionHome Configuration of basic connection parametersBrowse Selection of object and attribute to be written within a tree structure

Table 54: Tabs of dialog Edit OPC UA out node

Tab Home

Figure 88: Dialog box Edit OPC UA output node – Tab Home

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 123: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 123/279

The Home tab contains controls for setting the basic parameters ofconfiguration dialog Edit OPC UA out node.Parameter Type DescriptionServer Selection list The selection list Server indicates the OPC UA server with

which the node shall communicate.If any OPC UA servers have already been defined, they willbe listed here. The selection list Server always contains anentry Add new OPC UA config to add a new OPC UA serverif necessary.

Topic Input field Here you can enter the OPC UA topic.Name Input field Here you can enter the name that is displayed at the node.BrowseName Display field Here, the name of the object been selected within register

card Browse is displayed. If an object has not yet beenselected, BrowseName is displayed and the field is grayedout.

NameSpace Display field Here, the namespace information (a numerical value)concerning the object been selected within register cardBrowse is displayed. If an object has not yet been selected,NameSpace is displayed and the field is grayed out.

Identifier Display field Here, the identifier (a numerical value) concerning theobject been selected within register card Browse isdisplayed. If an object has not yet been selected, Identifieris displayed and the field is grayed out.

Table 55: Parameters of the configuration dialog Edit OPC UA out node

If there is an OPC UA connection, the fields BrowseName, NameSpaceand Identifier display information about the choice of object and attribute.Otherwise, the fields display their own names and are grayed out and noteditable. You can identify an operational OPC UA connection by the greensquare and the text session below the OPC UA input node.

Figure 89: OPC UA output node with currently operational OPC UA Cconnection

If you select Add new opcua config in the list Server and click Edit thereafter, the dialog box Add new opcua- config config node will bedisplayed. In this dialog box, you can configure a parameter for aconnection to an OPC UA server. Additionally, you can configurespecifications concerning security and authentication there.

Note:In order to establish an operational OPC UA connection, allspecifications concerning security and authentication must matchwith the respective settings of the OPC UA Server.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 124: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 124/279

Figure 90: Dialog box „Add new opcua config config node“

Structure of OPC UA server address

The address of the OPC UA server is structured as follows:

opc.tcp://<IP address>:port

Example:

opc.tcp://192.168.253.12:4840

Port 4840 is the standard port for unencrypted OPC UA communication.For encrypted OPC UA communication via TLS/SSL usually port 4843 isapplied.

In area Security the following parameters can be specified:· Security Policy· Message Security Mode

OPC UA supports multiple security policies and their associated encryptionmethods via parameter Security Policy. The following options are offered:Value MeaningNone No encryption (Minimum degree of security)Basic128Rsa15 Encryption with 128 digit key according to the RSA method (no

longer recommended)Basic256 Encryption with 256 digit key (no longer recommended)Basic256Sha256 Encryption with 256 digit key according to the SHA method

(Maximum degree of security, current recommendation)Table 56: Security policies and encryption methods - Parameter Security Policy

Additionally, OPC UA supports three Parameter Message Security Modes:Value MeaningNone Messages are neither signed nor encrypted.Sign All messages are signed.Sign&Encrypt All messages are both signed and encrypted.

Table 57: Parameter Message Security Mode

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 125: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Node-RED - The wiring editor 125/279

This area decides whether the login at the OPC UA-Server is doneanonymously or by entering username and password. In the„Authentication“ area the following controls are available:Element Type MeaningAnonymous Radio button allows anonymous login. i.e. login without specifying use

name and password. To do so, anonymous login must havebeen enabled at the OPC UA Server.

Username &Password

Radio button forces login using user name and password. To do so, loginby username and password must have been enabled at theOPC UA Server.

Username Input field specify the username for login here.Password Input field specify the password of the user here.

Table 58: Controls in the area Authentication

Tab Browse

Figure 91: Dialog box Edit OPC UA out node – Tab Browse

In order to fulfill the requirements for using the Browse function, perform thefollowing steps:Ø Establish a connection to the OPC UA server.Ø Specify the address of the OPC UA server (Parameter Server in dialog

box Add new opcua- config config node, see above).Ø Transfer the OPC UA output node to the Edge Gateway by Deploy.

If these conditions are fulfilled, the left window of the tab Browse displaysthe objects of the server’s address space within a tree structure. The rightwindow displays the attributes of the object selected in the left window.

The specifications BrowseName, NameSpace and Identifier also relate tothe selected object.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 126: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 126/279

10 Examples for Node-REDThe following sections describe examples for data flows.

10.1 Example 1: Inject and debug nodeThis example shows a simple flow with an inject node (input node) and adebug node (output node).

The inject node allows you to insert messages into a flow, either by clickingonce a button at the node or regularly by using a time interval between thesending of two messages.

The debug node allows you to display any messages (or the entiremessage object) in the sidebar. When the default settings of the debugnode are used, the payload of the message will be displayed only.

Prerequisites1. A connection with the Edge Gateway is established (see section Using

the web browser to establish a connection with the EdgeGateway [} page 24]).

2. The Node-RED workspace is open.

Step-by-step instructions1. Inserting an inject node:

Ø Drag an inject node from the node library and drop it in the worksheet.

2. Showing the sidebar:Ø Show the sidebar with the key combination Ctrl+spacebar or via the

Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click the inject node to show its properties and function description in

the tab Info.

3. Inserting a debug node:Ø Drag a debug node from the node library and drop it in the worksheet.

4. Connecting the nodesØ To connect inject node and debug node, hold down the left mouse

button and draw a connecting line (wire) from the output port of theinject node to the input port of the debug node.

ð The inject node can send messages to the debug node.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 127: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 127/279

5. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them. This procedure is calleddeployment.

ð The flow is activated in the Edge Gateway.

Note:For more information on Deploy, see section MenuDeploy [} page 91].

The example for copying[{"id":"46ae085e.4fd768","type":"debug","z":"9deaf786.3854a","name":"","active":true,"console":"false","complete":"false","x":330,"y":200,"wires":[]},{"id":"b2605825.aea4d","type":"inject","z":"9deaf786.3854a","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":138,"y":188.5,"wires":[["46ae085e.4fd768"]]}]

Testing the flow and displaying messagesØ Click the tab Debugin the sidebar.Ø Click the left button at the inject node.ð The sidebar should display numbers. In the standard default setting, the

inject node uses the quantity of milliseconds that have elapsed sinceJanuary 1st, 1970, as payload.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 128: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 128/279

10.2 Example 2: MQTT input nodeThe MQTT input node allows receiving data from an MQTT broker via theMQTT protocol and uses the MQTT function subscribe for this purpose.

Figure 92: MQTT input node

This example uses the MQTT input node together with a Debug node toreceive data via MQTT and to display the data thereafter in the tab Debugof the Node-RED sidebar.

Prerequisite1. A connection to the Edge Gateway is established (see section Using the

web browser to establish a connection with the EdgeGateway [} page 24])

2. The Node-RED workspace is open.

Step-by-step instructions1. Inserting an MQTT input node:

Ø Drag an MQTT input node from the node library and drop it in theworksheet.

Ê The red triangle the MQTT input node is displayed with indicates thatthe node still needs some more parameters which you have to configurein the following steps.

2. Showing the sidebar:Ø Show the sidebar using the keyboard shortcut Ctrl+spacebar or via

the Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click the MQTT input node to display its properties and a functional

description in the tab Info.

3. Editing the MQTT input node:Ø To open the edit dialog, double-click on the MQTT input node.Ê The edit dialog for entering the parameters will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 129: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 129/279

4. Adding a broker:Ø If you use an MQTT node for the first time, the Server list contains the

entry Add new mqtt-broker only. In that case, click Edit to add anMQTT broker. As an alternative you can select a server from the listand continue with step 5.

Ê The dialog box Add new mqtt-broker config node will be displayed.Ø Enter the name localhost in the field Server of the tab Connection. By

means of localhost you address the MQTT broker integrated in theEdge Gateway.

Ø For this (simple) example you can adopt the preset parameters withouthaving to enter any further parameters.

Ø Click Add.Ê The MQTT broker is configured.Ê The dialog box returns to the first edit dialog.Ê Under Server the edit dialog shows the address and the port

localhost:1883.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 130: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 130/279

5. Configuring the MQTT input node:Ø Enter the name of the topic that you want to receive in the field Topic,

e.g. Timestamp1. To receive all topics, enter #.Ø For QoS enter the value 1.Ø Enter the name of this node, e.g. MySubscribingNode, in the field

Name.Ê All parameters are entered.

Ø Click Done.Ê The configuration of the MQTT input node is completed and the red

triangle has disappeared.

6. Inserting a Debug node:Ø Drag a Debug node from the node library and drop it in the worksheet.

7. Connecting the nodes:Ø To connect the MQTT node with the Debug node, hold down the left

mouse button and draw a connecting line (wire) from the output port ofthe MQTT node to the input port of the Debug node.

ð

8. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them.ð The flow is activated in the Edge Gateway.

ð As soon as the topic Timestamp1 changes, the Debug output willdisplay the new value.

The section MQTT input node [} page 106] describes the parameters of theMQTT input node.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 131: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 131/279

The example for copying[{"id":"4a22a8ea.115788","type":"mqttin","z":"6b03759e.b5eb4c","name":"MySubscribingNode","topic":"Timestamp1","qos":"1","broker":"55ba4653.6e07b8","x":211,"y":512,"wires":[["2785278d.2d5bc8"]]},{"id":"2785278d.2d5bc8","type":"debug","z":"6b03759e.b5eb4c","name":"","active":true,"console":"false","complete":"false","x":402,"y":512,"wires":[]},{"id":"55ba4653.6e07b8","type":"mqtt-broker","z":"6b03759e.b5eb4c","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]

Testing the flow and displaying messagesØ Click the tab Debugin the sidebar.Ø Use a device that is externally connected to the Edge Gateway to

execute a publish with MQTT on topic Timestamp1.- or -Copy and use the example MQTT output node (see section Example 3:MQTT output node [} page 132]).

ð The Debug node displays messages of the MQTT input node as soonas the topic Timestamp1 changes.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 132: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 132/279

10.3 Example 3: MQTT output nodeThe MQTT output node allows you to send data to an MQTT broker via theMQTT protocol and uses the MQTT function publish for this purpose.

This example uses the MQTT output node together with an Inject node tosend data via MQTT.

Figure 93: MQTT output node

Prerequiste1. A connection to the Edge Gateway is established (see section Using the

web browser to establish a connection with the EdgeGateway [} page 24]).

2. The Node-RED workspace is open.

Step-by-step instructions1. Inserting an Inject node:

Ø Drag an Inject node from the node library and drop it in the worksheet.

2. Inserting an MQTT output node:Ø Drag an MQTT output node from the node library and drop it in the

worksheet.Ê The red triangle the MQTT output node is displayed with indicates that

the node still needs some more parameters which you have to configurein the following steps.

3. Showing the sidebar:Ø Show the sidebar using the keyboard shortcut Ctrl+spacebar or via

the Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click the MQTT output node to display its properties and a functional

description in the tab Info.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 133: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 133/279

4. Editing the MQTT output node:Ø To open the edit dialog, double-click on the MQTT output node.Ê The edit dialog for entering the parameters will be displayed.

5. Adding a broker:Ø If you use an MQTT node for the first time, the Server list contains the

entry Add new mqtt-broker only. In that case, click Edit , to add anMQTT broker. As an alternative you can select a server from the listand continue with step 6.

Ê The dialog box Add new mqtt-broker config node will be displayed.Ø Enter the name localhost in the field Server of the tab Connection. By

means of localhost you address the MQTT broker integrated in theEdge Gateway.

Ø For this (simple) example you can adopt the preset parameters withouthaving to enter any further parameters.

Ø Click Add.Ê The MQTT broker is configured.Ê The dialog box returns to the first edit dialog.Ê Under Server the edit dialog shows the address and the port

localhost:1883.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 134: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 134/279

6. Configuring the MQTT output node:Ø Enter the name of the topic that you want to send (publish) in the field

Topic, e.g. Timestamp1.Ø For QoS enter the value 1.Ø Enter the name of this node, e.g. MyPublishingNode, in the field

Name.Ê All parameters are entered.

Ø Click Done.Ê The configuration of the MQTT output node is completed and the red

triangle has disappeared.

7. Connecting the nodes:Ø To connect the Inject node with the MQTT node, hold down the left

mouse button and draw a connecting line (wire) from the output port ofthe Inject node to the input port of the MQTT node.

ð

8. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them.ð The flow is activated in the Edge Gateway.

The section MQTT output node [} page 111] describes the parameters ofthe MQTT output node.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 135: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 135/279

The example for copying[{"id":"c28f8355.ed0b7","type":"inject","z":"6b03759e.b5eb4c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":187,"y":163,"wires":[["9bc7b36a.df3c3"]]},{"id":"9bc7b36a.df3c3","type":"mqttout","z":"6b03759e.b5eb4c","name":"MyPublishingNode","topic":"Timestamp1","qos":"1","retain":"","broker":"cf82b7fc.b44d18","x":461,"y":163,"wires":[]},{"id":"cf82b7fc.b44d18","type":"mqtt-broker","z":"6b03759e.b5eb4c","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]

Testing the flow and displaying messagesØ Use a device that is externally connected to the Edge Gateway to

execute a subscribe with MQTT on topic Timestamp1.- or -Copy and use the example MQTT input node (see section Example 2:MQTT input node [} page 128]).

ð With each click on the button at the Inject node the topic Timestamp1 issent to the MQTT broker. If you use this example together with theexample MQTT input node, you can display the value of the topicTimestamp1 in the tab Debug.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 136: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 136/279

10.4 Example 4: OPC UA input nodeThe OPC UA input node allows you to read data from an OPC UA servervia the OPC UA protocol.

This example uses the OPC UA input node together with a Debug node toreceive data via OPC UA and to display the data thereafter in the tabDebug of the Node-RED sidebar.

Figure 94: OPC UA input node

Prerequisites1. A connection to the Edge Gateway has been established (see section

Using the web browser to establish a connection with the EdgeGateway [} page 24]):

2. The Node-RED workspace is open.3. The device running the OPC UA server is connected to the Edge

Gateway.4. The IP-address of the OPC UA server is known to you.

Step-by-step instructions1. Inserting the OPC UA input node:

Ø Drag an OPC UA input node from the node library and drop it within theworksheet.

Ê The red triangle the OPC UA input node is displayed with indicates thatthe node still needs some more parameters which you have to configurein the following steps.

2. Displaying the sidebar:Ø Open the bar at the right edge with the key combination Ctrl

+Spacebar or via the Node-RED menu View>Show SidebarØ Click the tab Info.Ø Click the OPC UA input node to display its properties and a functional

description in the tab Info.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 137: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 137/279

3. Editing the OPC UA input node:Ø To open the edit dialog, double-click on the OPC UA input node.Ê The edit dialog for entering the parameters will be displayed.

4. Adding the server:Ø Within the server list, select option Add new opcua. If you use an OPC

UA node for the first time, (the server list displays ...), there is only thissingle entry.

Ø Then click at Edit to add a new server.Ê A new dialog is opened.

Figure 95: Add a new client

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 138: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 138/279

Ø Enter the server address in the field Server in the form opc.tcp://<IP-address>:4840 (e. g. opc.tcp://192.168.253.12:4840).Port 4840 is the OPC UA standard port.

Ø Within the Security area, select the desired security policy(determinining the encryption method) and the message security mode.

Ø Within the Authentication area, decide whether the login is doneanonymously or by specifying username and password.

Ø Click Add or Update.Ê The dialog box returns to the first edit dialog.Ê Under Server the edit dialog displays the IP-address and the port.

5. Transferring the OPC UA input node into the Edge Gateway:Ø Before you can select an object with the Browse function, you have to

transfer the node: At first click Done and then Deploy to transmit thenodes, that have so far existed in the editor only, to the device and toactivate them.

Ê The Edge Gateway executes the OPC UA node. The OPC UA nodetries to establish a connection to the server.

Ê If the OPC UA node has no connection to the server, node statusobject will be displayed. Objects cannot be read. Only after establishinga connection to the OPC UA server can you continue the configurationof the OPC UA input node. E.g., check the Ethernet wiring, the IP-address, the device configuration, etc. If required, repeat a Deploy.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 139: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 139/279

Ê If the OPC UA node has a connection to the server, node statussession will be displayed.

6. Selecting the object:Ø To open the edit dialog, double-click the OPC UA input node.Ø Click the tab Browse.Ê If the OPC UA node has no connection to the server, the node can

neither read nor display the address space of the server. In that case

the edit dialog shows bars . You continue the configuration of theOPC UA input node only after establishing a connection to the OPC UAserver. E.g., check the Ethernet wiring, the IP-address, the deviceconfiguration, etc. If required, repeat a Deploy.

Ê If the OPC UA node has a connection to the server, the node reads anddisplays the address space of the server.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 140: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 140/279

To select the object to be read (e. g. DIN1) from the address space,open the elements in the tree structure (+).

7. Configure the parameters:Ø Click the tab Mode.Ê The edit dialog for entering the parameters is displayed.

Ø Under Transfer select the operating mode for the data transfer, e.g.polling.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 141: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 141/279

Figure 96: Selection list Transfer: After selection of Polling mode

Ê The selection list Repeat for entering specifications concerningrepetitions is displayed.

Ø Under Payload select the scope of payload. E.g. select specific andcheck the boxes BrowseName and Value to transfer the name and thevalue with a time stamp.

Ø Under Repeat select how often and when the object is to be read, e.g.interval and 10 seconds so that the object is read every 10 seconds.

Ê All parameters have been entered.

Figure 97: Selection list Transfer: After selection of the repetition interval.

Ø Click Home.Ø Enter the name of the topic in the field Topic, e. g. Read_DIN1.Ø Enter the name of the node in the field Name, e. g. Read_DIN1.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 142: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 142/279

Ê The configuration of the OPC UA input node is completed.

Ø Click Done.Ê The configuration of the OPC UA input node is finished and the red

triangle has disappeared. The blue circle indicates that the modifiednode has not yet been transferred into the Edge Gateway.

8. Insert debug nodeØ Drag a Debug node from the node library and drop it in the worksheet.

9. Connecting the nodes:Ø To connect the OPC UA node with the Debug node, hold down the left

mouse button and draw a connecting line (wire) from the output port ofthe OPC UA node to the input port of the Debug node.

10. DeployØ Click at Deploy in order to transfer the nodes still only existing within

the editor to the Edge Gateway and to activate those there.ð The flow is activated within the Edge Gateway.

The section OPC UA input node [} page 113] describes the parameters ofthe OPC UA input node.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 143: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 143/279

Testing the flow and displaying messagesØ Click the tab Debug in the sidebar.ð If the OPC UA input node has a connection to the OPC UA server, the

Debug node displays every 10 seconds messages of the OPC UA nodewhich contains the value of the object read.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 144: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 144/279

10.5 Example 5: OPC UA output nodeThe OPC UA output node allows you to write data via the OPC UAprotocol.

This example uses two Inject nodes and the OPC UA output node to writedata via OPC UA.

Figure 98: OPC UA output node

Prerequisites1. A connection to the Edge Gateway is established (see section Using the

web browser to establish a connection with the EdgeGateway [} page 24]).

2. The Node-RED workspace is open.3. The device with the OPC UA server is connected to the Edge Gateway.4. The IP-address of the OPC UA server is known to you.

Step-by-step instructions1. Inserting the first Inject node:

Ø Drag an Inject node from the node library and drop it in the worksheet.

2. Configuring the Inject node:Ø To open the edit dialog, double-click on the Inject node.Ê The edit dialog for entering the parameters will be displayed.Ø Select the entry number from the Payload list and enter number 1.Ø In the field Topic enter the name of the topic, e.g. Write1.Ø In the field Name enter the name of this node, e.g. Write number 1.Ê All parameters are entered.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 145: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 145/279

3. Inserting the second Inject node:Ø Drag a further Inject node from the node library and drop it in the

worksheet.

4. Configuring the Inject node:Ø To open the edit dialog, double-click on the Inject node.Ê The edit dialog for entering the parameters will be displayed.Ø Select the entry number from the Payload list and enter number 2.Ø In the field Topic enter the name of the topic, e.g. Write2.Ø In the field Name enter the name of this node, e.g. Write number 2.Ê All parameters are entered.

5. Inserting the OPC UA output node:Ø Drag an OPC UA output node from the node library and drop it in the

worksheet.Ê The red triangle the OPC UA output node is displayed with indicates

that the node still needs some more parameters which you have toconfigure in the following steps.

6. Showing the sidebar:Ø Show the sidebar using the keyboard shortcut Ctrl+spacebar or via

the Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click the OPC UA output node to display its properties and a functional

description in the tab Info.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 146: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 146/279

7. Editing the OPC UA output node:Ø To open the edit dialog, double-click on the OPC UA output node.Ê The edit dialog for entering the parameters will be displayed.

8. Adding the server:Ø If you use an OPC UA node for the first time, (the server list displays

Add new opcua ...), click Edit to add a new server.Ø Enter the server address in the field Server in the form opc.tcp://

<IP-address>:4840 (e.g. opc.tcp://192.168.253.12:4840).Port 4840 is the OPC UA standard port.

Ø Click Add or Update.Ê The dialog box returns to the first edit dialog.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 147: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 147/279

Ê Under Server the edit dialog displays the protocol, the IP-address andthe port.

9. Transferring the OPC UA output node into the Edge Gateway:Ø Before you can select an object with the Browse function, you have to

transfer the node: At first click Done and then Deploy to transmit thenodes, that have so far existed in the editor only, to the device andactivate them.

Ê The Edge Gateway executes the OPC UA node. The OPC UA nodetries to establish a connection to the server.

Ê If the OPC UA node has no connection to the server, node statusdisconnected will be displayed. Objects cannot be read. Only afterestablishing a connection to the OPC UA server can you continue theconfiguration of the OPC UA output node. E.g., check the Ethernetwiring, the IP-address, the device configuration, etc. If required, repeata Deploy.

Ê If the OPC UA node has a connection to the server, node statusconnected will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 148: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 148/279

10. Selecting the object:Ø To open the edit dialog, double-click the OPC UA output node.Ø Click the tab Browse.Ê If the OPC UA node has no connection to the server, the node can

neither read nor display the address space of the server. In that case

the edit dialog shows bars . Only after establishing a connection tothe OPC UA server can you continue the configuration of the OPC UAoutput node. E.g., check the Ethernet wiring, the IP-address, the deviceconfiguration, etc. If required, repeat a Deploy.

Ø If the OPC UA node has a connection to the server, the node reads anddisplays the address space of the server.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 149: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 149/279

Ø To select the object to be read (e.g. DOUT1) from the address space,open the elements in the tree structure (+).

Ø Click Home.Ø In the field Topic enter the name of the topic, e.g. Write_DOUT1.Ø In the field Name enter the name of the node, e.g. Write_DOUT1.Ê The configuration of the OPC UA output node is completed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 150: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 150/279

Ø Click Done.Ê The configuration of the OPC UA output node is finished and the red

triangle has disappeared. The blue circle indicates that the modifiednode has not yet been transferred into the Edge Gateway.

11. Connecting the nodes:Ø To connect the first Inject node with the OPC UA output node, hold

down the left mouse button and draw a connecting line (wire) from theoutput port of the Inject node to the input port of the OPC UA node.

Ø Connect the second Inject node with the OPC UA output node.Ê The nodes are connected.

12. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them.ð The flow is activated in the Edge Gateway.

The section OPC UA output node [} page 122] describes the parameters ofthe OPC UA output node.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 151: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 151/279

Testing the flow

For testing the flow you need a connection to the OPC UA server.Ø Click the button to the left of Inject node 1.Ê Value 1 will be written to object DOUT1 in the OPC UA server.Ø Click the button to the left of Inject node 2.Ê Value 2 will be written to object DOUT1 in the OPC UA server.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 152: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 152/279

10.6 Example 6: Fieldbus input nodeThe fieldbus input node allows you to receive data from the fieldbus, e.g.PROFINET, and uses signals to address this data. Before you can use thefieldbus input node, you have to configure the fieldbus and define thesignals.

Figure 99: Fieldbus input node

This example uses the fieldbus input node together with a Debug node toreceive fieldbus data (in this case PROFINET) and to display the datathereafter in the Debug tab of the Node-RED sidebar.

Prerequisite1. A connection to the Edge Gateway is established (see section Using the

web browser to establish a connection with the EdgeGateway [} page 24]).

2. The Node-RED workspace is open.

Step-by-step instructions1. Inserting the fieldbus input node:

Ø Drag a fieldbus input node from the node library and drop it in theworksheet.

Ê The red triangle the fieldbus node is displayed with indicates that thenode still needs some more parameters which you have to configure inthe following steps.

2. Showing the sidebar:Ø Show the sidebar using the keyboard shortcut Ctrl+spacebar or via

the Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click thefieldbus input node to display its properties and a functional

description in the tab Info.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 153: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 153/279

3. Editing the fieldbus input node:Ø To open the edit dialog, double-click on the fieldbus node.Ê The edit dialog for entering the parameters will be displayed.

4. Adding the fieldbus input node:Ø If you use a fieldbus node for the first time, (the fieldbus interface list

displays Add new fieldbus interface), click Edit to add a newfieldbus interface.

Ê The fieldbus configuration node will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 154: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 154/279

5. Selecting the fieldbus interface:Ø Check whether Currently loaded firmware displays the entry

PROFINET IO Device: Version ....

Ø If it is not displayed, use to select the entry PROFINET IO Deviceunder fieldbus interface and click Reconfigure.

6. Opening the fieldbus configurator (PROFINET configurator):Ø If Currently loaded firmware does not yet display the entry PROFINET

IO Device, repeat step 5.Ø If Currently loaded firmware displays the entry PROFINET IO Device,

click Open Fieldbus Configurator.

Ê A new tab with the PROFINET configuration interface will be displayed.

7. Configuring PROFINET:Ø Click IO and Signal configuration in the configuration tree (left).Ê The page IO Configuration with the list of Available IO items will be

displayed.Ø At first, double-click the entry 16 send byte (inputs) in the list of

Available IO items.Ø Then, double-click the entry 16 receive byte (outputs) in the list of

Available IO items.Ê The list of IO items displays 2 PROFINET modules.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 155: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 155/279

8. Defining signal names for modules:Ø In the column Tag of the list IO items, click send_001 (index 001

named 16 send byte (inputs)).Ø Overwrite the available Tagname with the following new Tagname:

toController.Ø In the column Tag of the list IO items, click receive_001 (index 002

named 16 receive byte (outputs)).Ø Overwrite the available Tagname with the following new Tagname:

fromController.Ê The new Tagname which is part of the entire signal name is now

displayed for each module.

9. Defining signals for module 1:Ø Select 001: 16 send byte (inputs) in the configuration tree.

Ê The signal configuration page with information on module 001 will bedisplayed.

Ø Mark the available signal in the signal list.Ø Click Delete selected items.Ø Click Add new signals.Ê The Add new signals dialog box will be displayed.Ø Select the data type: Signed16.Ø Select the quantity: 8.Ø Under tag name base enter Temperature.Ø Click Ok.Ê Column Tag displays Temperature_1 to Temperature_8. If required,

you can adapt the signal names in the column Tag.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 156: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 156/279

10. Defining signals for module 2:Ø Select 002: 16 receive byte (outputs) in the configuration tree.

Ê The signal configuration page with information on module 002 will bedisplayed.

Ø Mark the available signal in the signal list.Ø Click Delete selected items.Ø Click Add new signals.Ê The Add new signals dialog box will be displayed.Ø Select the data type Signed16.Ø Select the quantity: 8.Ø Under tag name base enter Set_temperature.Ø Click Ok.Ê Column Tag displays Set_temperature_1 to Set_temperature_8. If

required, you can adapt the signal names in the column Tag.

11. Saving the configuration:Ø To save the configuration in the Edge Gateway, click Project > Save in

the main menu of the PROFINET-configuration.Ê A message confirms that the configuration has been saved

successfully.Ø Click Ok.Ê The PROFINET configuration and signal definition are saved in the

Edge Gateway, but they are not activated yet.

12. Returning to Node-RED:Ø Return to the tab Node-RED in your browser.Ø To adopt a new/changed PROFINET configuration, click Reconfigure

interface.Ø To add a new fieldbus interface, click Add.

- or -Update is offered as an alternative. Click Update, if only signal nameshave been extended or changed, whereas the PROFINET configurationhas remained unchanged.

Ê The display returns to the edit dialog.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 157: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 157/279

13. Entering names:Ø Under Name enter a node name e.g. MyInput.

14. Selecting a signal:

Ø Use to open the signal list and select a Signal e.g.input~fromController~Set_temperature_2.If the signal is not displayed, close the edit dialog with Done anddouble-click to reopen the fieldbus node.

15. Finishing the fieldbus input node:Ø Click Done.ð The red triangle in the upper right corner has disappeared, i.e. the

configuration of the fieldbus input node is completed, but not yetactivated in the Edge Gateway.

16. Inserting a Debug node:Ø Drag a Debug input node from the node library and drop it in the

worksheet.

17. Connecting the nodes:Ø To connect the fieldbus node with the Debug node, hold down the left

mouse button and draw a connecting line (wire) from the output port ofthe fieldbus node to the input port of the Debug node.

18. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them.ð The flow is activated in the Edge Gateway.

ð As soon as the value of the signal changes, the Debug output willdisplay the changed value/s and status information.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 158: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 158/279

The example for copying

Note:To configure the fieldbus (in this case PROFINET), it is simply notenough to copy this example. You have to perform steps 6 to 12 ofthe step-by-step instructions for this purpose.

[{"id":"98832253.9224b","type":"fieldbusin","z":"ae0f59a7.16c008","name":"MyInput","FieldbusNodeVersion":"1.1.0","WrapperVersion":"1.1.0","WrapperCompileDate":"Sep 12016/08:37:12","MinExpectedNodeJSVersion":"4.5.0","selectedSignalPath":"input~fromController~Set_temperature_2","fieldbusObj":"e3a02a0f.a95938","x":179,"y":144,"wires":[["572ba7f6.f90c08"]]},{"id":"572ba7f6.f90c08","type":"debug","z":"ae0f59a7.16c008","name":"","active":true,"console":"false","complete":"false","x":361,"y":144,"wires":[]},{"id":"e3a02a0f.a95938","type":"fieldbusinterface","z":"ae0f59a7.16c008","selectedConfigPath":"","currentFirmwareName":"PROFINET IO Device: Version(3.9, build 0, revision6)","currentInterfaceName":"cifX0:PROFINETIO:Device","expectedInterfaceName":"cifX0:PROFINETIO:Device","expectedFirmwareName":"PROFINET IO Device: Version(3.9,build 0, revision6)","expectedFirmwarePath":"","selectedChannelNumber":"2","selectedDeviceNumber":"1291105","selectedSerialNumber":"20726"}]

Testing the flow and displaying messages

For testing the flow you need a connection to a configured PROFINET IOController which cyclicly exchanges I/O-data with the Edge Gateway. At thePROFINET IO Controller you have to set output data so that the fieldbusinput node can receive changed output data.Ø Click the tab Debugin the sidebar.Ø Set the output data at the PROFINET IO Controller: The example uses

the signal Set_temperature_2 and is byte 3 and 4 of module 16receive byte (outputs). Byte 1 and 2 have been assigned by theconfiguration Set_temperature_1.

ð The Debug node displays messages of the fieldbus input node as soonas the signal Set_temperature_2 changes.

The following figure shows the value 123 for the signalSet_temperature_2. The value 0 for "Error" indicates that the cyclicPROFINET communication works without problems.

Figure 100: Message of the fieldbus input node (without error)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 159: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 159/279

The following figure displays a value for "Error" that is unequal to 0, i.e. thePROFINET communication does not work.

Figure 101: Message of the fieldbus input node (with error)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 160: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 160/279

10.7 Example 7: Fieldbus output nodeThe fieldbus output node allows you to send data to the fieldbus, e.g.PROFINET, and uses signals to address this data. Before you can use thefieldbus output node, you have to configure the fieldbus and define thesignals.

Figure 102: Fieldbus output node

This example uses the fieldbus output node together with two Inject nodesto send data to the fieldbus.

Prerequisite1. A connection to the Edge Gateway is established (see section Using the

web browser to establish a connection with the EdgeGateway [} page 24]).

2. The Node-RED workspace is open.

Step-by-step instructions1. Inserting the first Inject node:

Ø Drag an Inject node from the node library and drop it in the worksheet.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 161: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 161/279

2. Configuring Inject node:Ø To open the edit dialog, double-click on the Inject node.Ê The edit dialog for entering the parameters will be displayed.Ø Select from the Payload list the entry number and enter number 1.Ø Enter in the field Topic the name of the topic, e.g. Send1.Ø Enter in the field Name the name for this node, e.g. Send number 1.Ê All parameters are entered.

3. Inserting the second Inject node:Ø Drag another Inject node from the node library and drop it in the

worksheet.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 162: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 162/279

4. Configuring the Inject node:Ø To open the edit dialog, double-click on the Inject node.Ê The edit dialog for entering the parameters will be displayed.Ø Select from the Payload list the entry number and enter number 2.Ø Enter in the field Topic the name of the topic, e.g. Send2.Ø Enter in the field Name the name for this node, e.g. Send number 2.Ê All parameters are entered.

5. Inserting the fieldbus output node:Ø Drag a fieldbus output node from the node library and drop it in the

worksheet.Ê The red triangle the fieldbus node is displayed with indicates that the

node still needs some more parameters which you have to configure inthe following steps.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 163: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 163/279

6. Showing the sidebar:Ø Show the sidebar using the keyboard shortcut Ctrl+spacebar or via

the Node-RED menu View > Show Sidebar.Ø Click the tab Info.Ø Click the fieldbus output node to display its properties and a functional

description in the tab Info.Ê The field Type of the tab Info shows the node type fieldbus.out.

7. Editing the fieldbus output node:Ø To open the edit dialog, double-click on the fieldbus node.Ê The edit dialog for entering the parameters will be displayed.

8. Adding a fieldbus interface:Ø If you use an fieldbus node for the first time, (the fieldbus interface list

displays Add new fieldbus interface), click Edit to add a newfieldbus interface.

9. Selecting the fieldbus interface:Ø Check whether Currently loaded firmware displays the entry

PROFINET IO Device: Version ....

Ø If it is not displayed, use to select the entry PROFINET IO Deviceunder fieldbus interface and click Reconfigure.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 164: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 164/279

10. Opening the fieldbus configurator (PROFINET configurator):Ø If Currently loaded firmware does not yet display the entry PROFINET

IO Device, repeat step 9.Ø If Currently loaded firmware displays the entry PROFINET IO Device,

click Open Fieldbus Configurator.

Ê A new tab with the PROFINET configuration interface will be displayed.

11. Configuring PROFINET:Ø Click IO and Signal configuration in the configuration tree.Ê The page IO Configuration with the list of Available IO items will be

displayed.Ø At first, double-click the entry 16 send byte (inputs).Ø Then, double-click the entry 16 receive byte (outputs).Ê The list of IO items displays 2 PROFINET modules.

12. Defining signal names for modules:Ø In the column Tag of the list IO items, click send_001 (index 001

named 16 send byte (inputs)).Ø Overwrite the available Tagname with the following new Tagname:

toController.Ø In the column Tag of the list IO items, click receive_001 (index 002

named 16 receive byte (outputs)).Ø Overwrite the available Tagname with the following new Tagname:

fromController.Ê The new Tagname which is part of the entire signal name is now

displayed for each module.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 165: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 165/279

13. Defining signals for module 1:Ø Select 001: 16 send byte (inputs) in the configuration tree.

Ê The signal configuration page with information on module 001 will bedisplayed.

Ø Mark the available signal in the signal list.Ø Click Delete selected items.Ø Click Add new signals.Ê The Add new signals dialog box will be displayed.Ø Select the data type Signed16.Ø Select the quantity: 8.Ø Under tag name base enter Temperature.Ø Click Ok.Ê Column Tag displays Temperature_1 to Temperature_8. If required,

you can adapt the signal names in the column Tag.

14. Defining signals for module 2:Ø Select 002: 16 receive byte (outputs) in the configuration tree.

Ê The signal configuration page with information on module 002 will bedisplayed.

Ø Mark the available signal in the signal list.Ø Click Delete selected items.Ø Click Add new signals.Ê The Add new signals dialog box will be displayed.Ø Select the data type Signed16.Ø Select the quantity: 8.Ø Under tag name base enter Set_temperature.Ø Click Ok.Ê Column Tag displays Set_temperature_1 to Set_temperature_8. If

required, you can adapt the signal names in the column Tag.

15. Saving the configuration:Ø To save the configuration in the Edge Gateway, click Project > Save in

the main menu of the PROFINET configuration.Ø A message confirms that the configuration has been saved

successfully.Ø Click Ok.Ê The PROFINET configuration and signal definition are saved in the

Edge Gateway, but they are not activated yet.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 166: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 166/279

16. Returning to Node-RED:Ø Return to the tab Node-RED in your browser.Ø To adopt a new/changed PROFINET configuration, click Reconfigure

interface.Ø To add a new fieldbus interface, click Add

- or -/>Update is offered as an alternative. Click Update, if only signalnames have been extended or changed, whereas the PROFINETconfiguration has remained unchanged.

Ê The display returns to the edit dialog.

17. Entering names:Ø Under Name enter a node name, e.g. MyOutput.

18. Selecting a signal:

Ø Use to open the signal list and select a Signal e.g.output~toController~Temperature_2.If the signal is not displayed, close the edit dialog with Done anddouble-click to reopen the fieldbus node.

19. Finishing the fieldbus input node:Ø Click Done.ð The configuration of the fieldbus input node is completed, but not yet

activated in the Edge Gateway.

20. Connecting the nodes:Ø To connect the first Inject node with the fieldbus output node, hold down

the left mouse button and draw a connecting line (wire) from the outputport of the Inject node to the input port of the fieldbus node.

Ø Connect the second Inject node with the fieldbus output node.Ê The nodes are connected.

21. Deploy:Ø Click Deploy to transmit the nodes, that have so far existed in the editor

only, to the device and activate them.ð The flow is activated in the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 167: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Examples for Node-RED 167/279

The example for copying

Note:To configure the fieldbus (in this case PROFINET), it is simply notenough to copy this example. You have to perform steps 10 to 16 ofthe step-by-step instructions for this purpose.

[{"id":"fa23cb52.763c48","type":"inject","z":"ae0f59a7.16c008","name":"Send number1","topic":"Send1","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"x":192,"y":136,"wires":[["dcbda172.a1923"]]},{"id":"6663e56b.1bb5cc","type":"inject","z":"ae0f59a7.16c008","name":"Send number2","topic":"Send2","payload":"2","payloadType":"num","repeat":"","crontab":"","once":false,"x":190,"y":210,"wires":[["dcbda172.a1923"]]},{"id":"dcbda172.a1923","type":"fieldbusout","z":"ae0f59a7.16c008","name":"MyOutput","FieldbusNodeVersion":"1.1.0","WrapperVersion":"1.1.0","WrapperCompileDate":"Sep 12016/08:37:12","MinExpectedNodeJSVersion":"4.5.0","selectedSignalPath":"output~toController~Temperature_2","fieldbusObj":"e3a02a0f.a95938","x":469,"y":166,"wires":[]},{"id":"e3a02a0f.a95938","type":"fieldbusinterface","z":"ae0f59a7.16c008","selectedConfigPath":"","currentFirmwareName":"PROFINET IO Device: Version(3.9, build 0, revision6)","currentInterfaceName":"cifX0:PROFINETIO:Device","expectedInterfaceName":"cifX0:PROFINETIO:Device","expectedFirmwareName":"PROFINET IO Device: Version(3.9,build 0, revision6)","expectedFirmwarePath":"","selectedChannelNumber":"2","selectedDeviceNumber":"1291105","selectedSerialNumber":"20726"}]

Testing the flow and displaying messages

For testing the flow you need a connection to a configured PROFINET IOController which cyclicly exchanges I/O-data with the Edge Gateway. At thePROFINET IO Controller you have to display input data.Ø Verify that the status of the fieldbus node MyOutput displays

Communicating.Ø Click the button to the left of Inject node 1.ð Signal Temperature_2 is set to value 1 and transferred to the

PROFINET IO Controller.Ø Click the button to the left of Inject node 2.ð Signal Temperature_2 is set to value 2 and transferred to the

PROFINET IO Controller.Ø At the PROFINET IO Controller, display the input data in a window.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 168: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 168/279

11 Configuring and using the fieldbus node

11.1 OverviewThe fieldbus input node allows you to receive data from the fieldbus system(e.g. PROFINET). The fieldbus output node allows you to send data to thefieldbus system. Each fieldbus node needs signals to address data. At first,configure the fieldbus system, then define the signals, and thereafter usesignals for the fieldbus input node or the fieldbus output node.

The fieldbus input node (fieldbus in) receives output datafrom the master:Fieldbus master (e.g. PROFINET IO controller) → fieldbusinput nodeStandard procedure1. Inserting the fieldbus input node2. Configuring the fieldbus system (e.g. PROFINET)3. Defining the signals4. Configuring the fieldbus input nodeThe fieldbus output node (fieldbus out) sends input data tothe master:Fieldbus output node → fieldbus master (e.g. PROFINET IOcontroller)Standard procedure1. Inserting the fieldbus output node2. Configuring the fieldbus system (e.g. PROFINET)3. Defining the signals4. Configuring the fieldbus output node

Table 59: Standard procedure

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 169: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 169/279

The following table shows the sequence of the configuration steps:

Open fieldbus node

Open PROFINET configuration Configure modules

Fieldbus node (configured) Project > Save Define signals

Reconfigure / Update

Deploy

Table 60: Configuration steps

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 170: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 170/279

11.2 Configuring the fieldbus and defining the signals

11.2.1 Creating a new fieldbus configurationThis section describes how to open the fieldbus configuration of the EdgeGateway from Node-RED using the PROFINET configuration as anexample.

Prerequisite

The Node-RED workspace is open.

1. Inserting and opening the fieldbus nodeØ Drag a fieldbus node from the node library and drop it in the workspace.

Ø Double-click the fieldbus node.ð The edit dialog Edit fieldbus in node will be displayed.

Figure 103: Edit dialog “Edit fieldbus in node”

Ø Click on Edit .Ê The edit dialog Add new fieldbus interface config node will be

displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 171: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 171/279

2. Opening the PROFINET configuration

Ø Click the square to the right of fieldbus interface .Ê The dialog box Add new fieldbus interface config node opens. The

fieldbus interface list is empty if no fieldbus interface has been definedyet.

Figure 104: Dialog box “Add new fieldbus interface config node”

Ê If one or several fieldbus interfaces have already been defined, theinterface/s will be offered for selection in the list.

Figure 105: Dialog box “Add new fieldbus interface config node”

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 172: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 172/279

Ø Configure the behaviour of the output signals of the fieldbus nodeduring the deploy process: Select Clear output signals on deploy, if during deploy the fieldbusnode should set the output data received by the master to 0. In thiscase, the Edge Gateway can signal 'no valid data' to the master.If this option is cleared, the output data hold their last state duringdeploy. In this case, the master has no information that the EdgeGateway does not process the received data anymore.

Ø Click Open fieldbus configurator .ð The user interface for the fieldbus configuration of the Edge Gateway

will be opened in a new browser window: (the example shows thePROFINET configuration)

Figure 106: PROFINET configuration

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 173: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 173/279

3. Configuring the modulesØ Click IO and signal configuration in the configuration tree (left).Ê The tables Available IO items and IO items will be shown in the

display area and the workspace.

Note:For more information on the tables Available IO items and IOitems (example PROFINET), see IO and signalconfiguration [} page 189].

Ø To select the inputs and outputs to be configured, double-click theappropriate entry in the upper table Available IO items, e.g. 4 byteinput and 8 byte output. Note: Use the scroll bar to display further entries.

Figure 107: Available IO items (Example in figure: PROFINET)

Ê After each double-click, the corresponding entry for defining an input oroutput signal will be displayed immediately in a new line of the lowertable IO items in einer neuen Zeile angezeigt.

Figure 108: IO items (Example: PROFINET)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 174: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 174/279

4. Defining signalsØ As standard a signal definition is performed during which one single

signal of the data type OctetString will be defined which uses the entireavailable data length. If you wish to have another signal definition, you

can delete this definition (with the button ) anddefine new signals until the available data length is used up (with the

button ).Ø In the table columns Tag and Description, you can enter a short name

and a description for each defined signal.

Note:For more information on the signal definition, see section Definingsignals (procedure) [} page 195].

5. Saving the signal configurationØ Save your signal configuration via the menu function Project > Save.Ø The configuration is prepared.Ø Return to the Node-RED browser window that was originally used.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 175: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 175/279

6. Reconfigure interface: Transfer firmware and configuration into EdgeGatewayØ Click the button Reconfigure interface in the dialog Add new fieldbus

interface config node.

Figure 109: Dialog box “Add new fieldbus interface config node”

This is necessary to make sure that the following information on thefieldbus interface in the Edge Gateway can be transmitted later: Firmware,configuration, and signal definitionsØ Click the button Add in the dialog Add new fieldbus interface config

node.Ê This operation causes the transmission of the fieldbus configuration to

the device and the update of the signal definitions to the fieldbus node.

7. DeployØ Perform a Deploy in the Node-RED. For this purpose, select one of the

three options of the selection list Deploy in the Node-RED window (top,right).

ð The flow will thus be transmitted to the Edge Gateway, and the newconfiguration will be applied in the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 176: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 176/279

Message displayed on mismatch between the expected firmware andthe determined firmware

Should you receive a message like the one shown below when you openthe user interface to the fieldbus configuration of the Edge Gateway (afterstep 5), the expected firmware and the actually determined firmware do notmatch (EtherNet/IP Adapter is expected in the example shown, butPROFINET IO Device is actually loaded):

Figure 110: Error message – Firmware mismatch

In that case, check whether the desired firmware is really set underFieldbus interface.

If this is not the case, select the desired firmware in the list Fieldbusinterface and click Reconfigure interface.

Figure 111: Reconfigure interface

Note:For a detailed description of what happens when you click atReconfigure interface, see Loading firmware andconfiguration [} page 183].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 177: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 177/279

11.2.2 Changing the existing fieldbus configurationThis section describes how to change the existing fieldbus configuration (inthis case PROFINET) des Edge Gateways from Node-RED.

Prerequisites1. The Node-RED workspace is open.2. On the Node-RED screen, there must already be a flow whose

workspace contains a fieldbus node. The node represents the previousfieldbus configuration of the Edge Gateway.

1. Opening the fieldbus node for changingØ In the workspace, double-click on the fieldbus node to be changed. It is

assumed that the node shown in the examples is preconfigured forPROFINET.

Figure 112: Fieldbus node

Ê The edit dialog Edit fieldbus in node will be displayed.

Figure 113: Dialog Edit fieldbus in node

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 178: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 178/279

Ê The selection list Fieldbus Interface displays all fieldbus interfaces thatare already configured. (In addition to that, there is an entry Add newfieldbus interface for adding a new fieldbus interface.)

Figure 114: Dialog Edit fieldbus in node

Ø Select the interface to be changed (in the example this is cifX0PROFINET...).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 179: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 179/279

2. Opening the PROFINET configuration

Ø Click the square to the right of Fieldbus interface. Ê The dialog box Edit fieldbus interface node opens.

Figure 115: Dialog “Edit fieldbus interface config node”

Ø Configure the behaviour of the output signals of the fieldbus nodeduring the deploy process: Select Clear output signals on deploy, if during deploy the fieldbusnode should set the output data received by the master to 0. In thiscase, the Edge Gateway can signal 'no valid data' to the master.If this option is cleared, the output data hold their last state duringdeploy. In this case, the master has no information that the EdgeGateway does not process the received data anymore.

Ø Click Open fieldbus configurator.

Figure 116: Button Open fieldbus configurator

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 180: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 180/279

ð The user interface for fieldbus configuration of the currently loadedfirmware of the Edge Gateway will be opened in a new browser window:If (as this example shows) PROFINET IO Device is the currently loadedfirmware, the user interface for PROFINET configuration of the EdgeGateway will open, see figure:

Figure 117: Start screen of the user interface for fieldbus configuration of the netIOT EdgeGateway (the example in the figure shows PROFINET)

3. Configuring modulesØ Make your changes in the fieldbus configuration. The possibilities you

have for this purpose are described in the chapters Configurationtree [} page 188] and Menu commands [} page 185].

4. Defining signalsØ If required, adapt the signal definitions as you desire.

5. Saving the signal configurationØ Once you have made all desired changes, save your fieldbus

configuration as described in section Project - Save [} page 186]:Ê The steps to be made in the user interface for fieldbus configuration of

the Edge Gateway are thus completed.Ø Return to the Node-RED browser window that was originally used.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 181: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 181/279

6. Reconfigure interface: Transfer firmware and configuration into EdgeGatewayØ Click the button Reconfigure interface in the dialogEdit fieldbus interface

config node.

Figure 118: Dialog Edit fieldbus interface node

This is necessary to make sure that the following information on thefieldbus interface in the Edge Gateway can be transmitted later: Firmware,configuration, and signal definitions

Note:For a detailed description of what happens when you click thebutton Reconfigure interface, see Loading firmware andconfiguration [} page 183].

Ø Configure the behaviour of the output signals of the fieldbus nodeduring the deploy process: Select Clear output signals on deploy, if during deploy the fieldbusnode should set the output data received by the master to 0. In thiscase, the Edge Gateway can signal 'no valid data' to the master.If this option is cleared, the output data hold their last state duringdeploy. In this case, the master has no information that the EdgeGateway does not process the received data anymore.

Ø Click the button Update in the dialog Edit fieldbus interface config nodeÊ This operation causes the transmission of the fieldbus configuration (in

this case: PROFINET) to the device and the update of the signaldefinitions to the fieldbus node:

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 182: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 182/279

7. DeployØ Perform a Deploy in the Node-RED. For this purpose, select one of the

three options of the selection list Deploy in the Node-RED window (top,right).

ð The flow will thus be transmitted to the netIOT Edge Gateway, and thenew configuration will be applied in the Edge Gateway.

If the GUI in step 4) could not successfully be started, a message similar tothe following appears:

Figure 119: Error message – Firmware mismatch

That means that the expected firmware and the actually determinedfirmware do not match. Check your settings in such a case!

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 183: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 183/279

11.2.3 Loading firmware and configurationThe button Reconfigure interface in the dialog Add new fieldbus interfaceconfig node serves to reconfigure the Edge Gateway completely including afirmware exchange. The previous firmware will be overwritten thereby.

In case of Reconfigure interface the following information will betransmitted to the fieldbus interface in the Edge Gateway:· Firmware· Configuration· Signal definitions

1. To exchange the firmware in the Edge Gateway for the firmware selectedunder Fieldbus interface, proceed as follows:Ø Click Reconfigure interface.Ê Two messages can appear depending on the situation. If the same

firmware is selected under Currently loaded firmware and Fieldbusinterface, the following message box appears:

Figure 120: Message box firmware already on board

Ê That means that the firmware has not been exchanged. The currentlyloaded firmware as well as its version number, build number, andrevision number are displayed in the message box. If the firmware loaded under Currently loaded firmware and Fieldbusinterface differs, the following message box appears:

Figure 121: Warning: Consequences of reconfiguration

Ê This message draws the attention to the consequences the firmwareexchange will have for the running operation (the networkcommunication of the Gateway will stop, modifications to the networkconfiguration will be lost).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 184: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring and using the fieldbus node 184/279

Ø If you are really sure that you want to exchange the firmware althoughyou are aware of the consequences for the running operation, click OK.

ð Clicking OK triggers the following actions:1. The previous firmware will be deleted.2. The bootloader will be loaded into the Edge Gateway.3. The bootloader will be executed to load the selected firmware into the

Edge Gateway.4. The new firmware loaded will be started.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 185: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 185/279

12 Configuring PROFINET and defining signals

12.1 User interfaceThe following figure and table describe the elements of the user interface.

3

2 1

Figure 122: PROFINET user interface

Position number Description(1) Display area and workspace(2) Configuration tree(3) PROFINET configuration menu

Table 61: PROFINET configuration user interface

12.2 Menu commandsThe menu bar of the PROFINET configuration of the netIOT Edge Gatewayallows you to· save the configuration in the Edge Gateway (see Project -

Save [} page 186]),· download the GSDML-file from the Edge Gateway (see GSDML

Download [} page 186]),· print the configuration (see Printing the configuration [} page 186]),· call the help page (see Help - Contents [} page 187]), and· display the software version of the configuration GUI (see Help -

Information [} page 187]).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 186: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 186/279

12.2.1 Project - SaveTo save the configuration in the device, proceed as follows:Ø Click Project > Save

.ð The configuration is saved in the Edge Gateway.

12.2.2 GSDML DownloadThe GSDML file contains the PROFINET properties of the Edge Gatewayand is required for configuring the PROFINET controller. Download theGSDML file from the Gateway so that you can use it in the configurationtool of the PROFINET controller.

To download the GSDML file, proceed as follows:Ø Click Download > GSDML.

ð A dialog to save the GSDML file is displayed.Ø Select a folder and click Save.Ø Use the saved GSDML file to configure the PROFINET Controller.

12.2.3 Printing the configurationTo print configuration and signal definition, proceed as follows:Ø Click Print > Print configuration.

ð The print dialog box will be displayed.Ø Select a printer or an output file and set the printing parameters.ð The current configuration and signal definition will be printed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 187: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 187/279

12.2.4 Help - ContentsThe Edge Gateway contains integrated documentation.Ø Click Help > Contents.

ð The integrated documentation is displayed

12.2.5 Help - InformationTo display the version of the PROFINET configuration software of thenetIOT Edge Gateway, proceed as follows:Ø Click Help > Info.

ð The version will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 188: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 188/279

12.3 Configuration treeMenu Submenu Description Details in sectionPROFINETconfiguration

- Shows a note about how to set PROFINETname of station

PROFINETconfiguration [} page 188]

IO and signalconfiguration

- Configuring input and output data. IO and signalconfiguration [} page 189]

depends onconfiguration

Defining signal names. Defining signals(procedure) [} page 195]

Signaldefinitionsoverview

- Displaying defined signal names. Signal definitionsoverview [} page 198]Send signals Displaying defned signal names.

Receive signals Displaying defined input signal names.GSDML filedownload

- Download and displaying the GSDML file. Download of the GSDMLfile [} page 199]

Help Contents Displaying help. Help [} page 199]Info Displaying current software version.

Table 62: PROFINET configuration tree

12.3.1 PROFINET configurationThis page only contains a note on the setting of the PROFINET devicename.

Figure 123: Note: Name of station

Note:In the factory setting of the Edge Gateway the PROFINET devicename (Name of station) is an empty name. Via a PROFINETconnection of the Edge Gateway you assign the PROFINET devicename with an engineering tool of the PROFINET IO controller or astand-alone tool. For this purpose the tools use the DCP protocol.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 189: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 189/279

12.3.2 IO and signal configurationOn this page you configure the PROFINET input and output modules forthe Edge Gateway. The Edge Gateway is a PROFINET IO device.

The upper table (Available IO items) shows the list of available input andoutput modules. The lower table (IO items) shows the PROFINETconfiguration and is empty at the beginning.

An “IO Item” corresponds to a PROFINET input or output module. The datalength of PROFINET modules differs: Possible lengths are 1, 2, 3, 4, 8, 12,16, 20, 32, 64, 128 and 256 bytes for input or output data. The configuredmodules (“IO Items” in the lower table) are the basis for the signaldefinition.

Figure 124: List of the possible input and output modules

Figure 125: List of the configured input and output modules

The table “IO items” shows you the configured PROFINET input or outputmodules.Column name DescriptionIndex Shows the module index.Name Shows the name of the module.Tag Editable short name required for the signal name. The signal name

addresses the data.Description Editable description of the moduleLength in bytes Shows the module length in bytes.Byte offset Shows the start address of the module (offset in bytes) in the input-

and output data memory. The offset is calculated automatically.Table 63: Contents of the table “IO items”

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 190: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 190/279

DThe column Tag is editable for each module. The Tag is an essential partof the signal name. The following characters are allowed only:· Upper-case letters (A-Z),· lower-case letters (a-z),· numbers (0-9), and· underscore.

Do not enter two or more underscores in succession.

To open the signal configuration of the respective module, double-click anyline.

The following table lists the controls of the table IO Items.Control Description

Moves the marked IO item (module) upward by one line.Note: This changes the PROFINET configuration of the Edge Gateway and has tobe taken into account when configuring the PROFINET controller.Moves the marked IO item (module) downward by one line.Note: This changes the PROFINET configuration of the Edge Gateway and has tobe taken into account when configuring the PROFINET controller.Duplicates the marked IO item (module).Note: This changes the PROFINET configuration of the Edge Gateway and has tobe taken into account when configuring the PROFINET controller.Deletes the marked IO item (module).Note: This changes the PROFINET configuration of the Edge Gateway and has tobe taken into account when configuring the PROFINET controller.This selection allows you to filter the IO items.

· Send/Receive shows you all IO items (modules).

· Send shows you all send IO items (input modules).

· Receive shows you all receive IO items (output module).Each column offers you sort and search functions.To open the list to select from, click the column heading. To activate the filterfunction, enter the text in the filter input field and press the Enter key. You can use* as a wildcard for filtering. To deactivate the filter function again, delete any textentered in the filter input field and press the Enter key.

Table 64: Controls of the table “IO Items”

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 191: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 191/279

12.3.2.1 Signal definition page

On this page you can define the signals for the input and output modules ofthe PROFINET for the Edge Gateway. Signal names are required for thefieldbus node to address PROFINET data.

The table „IO item“ provides information on the selected IO item for whichyou define signals on this page.

Figure 126: Selected IO item (module) for which you define signals

Column name DescriptionIndex Shows the module index.Name Shows the module name.Tag Shows the short name required for the signal name.Length in bytes Shows the module length in bytes.Length in bits Shows the module length in bits.Byte offset Shows the start address of the module (offset in bytes) in the input

and output data memory. The offset will be calculated automatically.Table 65: Contents of table „IO item“

In the table Signals you can configure the signals for an IO item (module).The table shows you the current signal configuration and allows you toenter signal names, lengths and offset addresses.

Figure 127: List of the signal names of an IO item (module)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 192: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 192/279

Column name DescriptionIndex Shows the module index.Name Shows the module name.Tag Editable short name required for the signal name. The signal name

addresses the data.Description Editable module description.Data type Data type of the signal. You can set the data type only when you

add a new signal.Length in bits Shows the module length in bits.Bit offset Shows the configured start address of the module (offset in bytes)

for a signal within a module.Table 66: Contents of the table „Signals“

The column Tag is editable for each module. The Tag is an essential part ofthe signal name. The following characters are allowed only:· Upper-case letters (A-Z),· lower-case letters (a-z),· numbers (0-9), and· underscore.

Do not enter two ore more underscores in succession.

The following table lists the controls of the table Signals.Controls Description

Moves the marked signal upward by one line.

Moves the marked signal downward by one line.

Adds a new signal. A dialog box for selecting the data type is displayed. You canset the data type of the signal in this dialog box only.

Deletes the marked signal.

Each column offers you sort and search functions.To open the list to select from, click the column heading. To activate the filterfunction, enter the text in the filter input field and press the Enter key. You can use* as a wildcard for filtering. To deactivate the filter function again, delete any textyou have entered in the filter input field and press the Enter key.

Table 67: Controls of the table „Signals“

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 193: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 193/279

12.3.2.2 Data types for signal names

The following table lists the data types for signal names.Name of the datatype

Description Bit length Value range

Bit list List of individual bitsThe number of bits ina list must be amultiple of 8.

1 0 (false), 1 (true)

OctetString Character sequence 8*(n+1)Integer8 Short integer 8 -128 … 127Integer16 Integer 16 -32768 … 32767Integer32 Double integer 32 -231 … +231-1Unsigned8 Unsigned short

integer8 0 … 255

Unsigned16 Unsigned integer /Word

16 0 …65535

Unsigned32 Unsigned doubleinteger

32 0 … +232-1

Float32 Floating point 32 ≈ -/+ 1038

Float64 Long Float 64 ≈ -/+ 10308

Table 68: Data types for signal names

12.3.2.3 Structure of the signal names

Signal names address the fieldbus data.

General structure of the signal names

Signal names have the following structure:· input~module_tag~signal_tag· output~module_tag~signal_tag

For a bit list the signal names have the following structure:· input~module_tag~bitlist_signal_tag· output~module_tag~bitlist_signal_tag

Parts of the signal name1. The prefix input or output is produced automatically.2. The tilde (~) separates the prefix and the module_tag.3. You can enter the name for module_tag as described in section

Configuring I/O [} page 194].4. The tilde (~) separates the module_tag and the signal_tag or the

module_tag and the bitlist_signal_tag.5. You can enter the name for signal_tag or bitlist_signal_tag as

described in section Defining signals (procedure) [} page 195].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 194: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 194/279

12.3.2.4 Configuring I/O

The upper table (Available IO items) displays the list of the possible(selectable) input and output modules. The lower table (IO items) displaysthe PROFINET configuration and is empty at the beginning.

1. Inserting the IO item (module):Ø To insert the required IO item into the „IO item“ list, double-click the IO

item in the „Available IO item“ list.Ê The respective IO item will be inserted at the end of the list, if no „IO

Item“ line has been marked, or before a marked „IO item“ line.

Figure 128: List of the configured input and output modules

2. Entering the tag for the IO item:Ø Enter a name for each IO item in the column Tag using the characters

A‑Z, a‑z, 0‑9 and _ (underscore) only.Ê The name (Tag) is used for the signal name to address the data.

3. Entering the description of the IO item (optional):Ø In the column Description you can enter a text (e.g. temperature

sensor) which helps you describe the use of the data.Ê This description is used only if you print the signal list.

4. Configuring PROFINET:Ø Repeat steps 1‑3 until all required IO items (modules) are inserted into

the „IO Item“ list.ð The PROFINET configuration is prepared.

5. Saving the configuration:Ø To save the PROFINET configuration in the Edge Gateway, click

Project > Save.ð The PROFINET configuration in the Edge Gateway is saved, but not

active yet.Ø To activate the PROFINET configuration, you have to click

Reconfigure in the fieldbus node as soon as you have finished thePROFINET configuration.

In the next step define the signal names as described in section Definingsignals (procedure) [} page 195].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 195: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 195/279

12.3.2.5 Defining signals (procedure)

Each IO item (module) contains one or more bytes for input or output data.To enable the fieldbus node to access the input or output data, you have toselect a signal at the fieldbus node. You can use the predefined signalname or define your own signal name.

The upper table (IO item) shows the IO item (module) for which you candefine signals on this page. For defining signals, use the lower table(Signals).

Each IO item (module) already has a predefined signal. The predefinedsignal comprises and addresses the entire IO item (module). If you want toaccess a „part“ of the IO item, you can define a new signal for this purpose.

Example 1: The IO item contains 16 bytes. If you want to access eachsingle byte, define 16 signals of data type byte each.

Example 2: The IO item contains 2 bytes that correspond to 16 digital inputor outputs. If you want to access each single bit, define 16 signals of datatype bit each.

Defining your own (new) signals1. Selecting the IO item (module):

Ø Select the IO item (module) for which you want to define signal namesin the configuration tree under IO and signal configuration.

Ê The selected IO item is displayed in the workspace.

2. Deleting the predefined signal:Ø Mark the predefined signal in the table Signals.Ø Click Delete selected items.

Ê The predefined signal is deleted and you can define your own signals.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 196: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 196/279

3. Adding new signals:Ø Click Add new signals.

Ê The dialog box Add new Signals for selecting the data type isdisplayed.

4. Configuring signals:Ø Select the data type for the signal. The list of data types is described in

section Data types for signal names [} page 193].Ø Select the quantity. The possible values you can select depend on the

selected data type and the number of input or output bytes to which nosignal name has been assigned yet.

Ø To have an identical beginning for all signal names, enter a text in theinput field Tag name base. The extension „_1“, „_2“, etc. will be addedautomatically, if you have entered a value greater than 1 under"Quantity".

Ø Click OK.ð The new signal/s is/are defined and will be displayed in the table

Signals.

5. Modifying signals subsequently:Ø If required, you can subsequently modify the signal names in the

column Tag of the table Signals.Ø If required, you can enter a signal description in the column

Description of the table Signals.

6. Defining signals:Ø Repeat steps 1‑5 until you have defined all required signals.ð The signal definition is prepared.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 197: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 197/279

7. Saving the configuration and signal definition:Ø To save the configuration and signal definition in the Edge Gateway,

click Project > Save.ð The configuration and signal definition in the Edge Gateway is saved,

but not active yet.Ø Click Update in the fieldbus node so that the fieldbus node reads the

signal definition again.Ø To activate the configuration, click Reconfigure in the fieldbus node as

soon as you have finished or changed the configuration.

The name in the column Tag is a part of the signal name and is describedas Signal_tag or Bitlist_signal_tag in section Structure of the signalnames [} page 193].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 198: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 198/279

12.3.3 Signal definitions overviewThis page displays the list of the defined signals in the table „Send andReceive signals“. You can limit the display of the signals to send signals orreceive signals. The signal names on these pages are not editable.

Figure 129: List of the send and receive signals

If a module contains one or more signals, these signals will be displayedunder the respective module.Column names DescriptionIndex Shows the index of the module (3-digit) or signal (1 to 3 digits).Name Shows the name of the module or signal.Tag Short name required for the signal name. The signal name

addresses the data.Data type Sows the data type of the module or signal.Length in bits Shows the length of the module or signal in bits.Byte offset Shows the start address (offset in bytes) for a module in the input-

or output data memory. The offset will be calculated automatically.Bit offset Shows the configured start address (bit offset) for a signal within a

module.Table 69: Columns of the table of the send and receive signals

You can print the table using Print > Print configuration.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 199: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring PROFINET and defining signals 199/279

12.3.4 Download of the GSDML fileOn this page you can· display the contents of the GSDML file and· save the GSDML file on your PC (download).

The GSDML file contains the PROFINET properties of the Edge Gatewayand is required for configuring the PROFINET controller. Download theGSDML file from the Gateway so that you can use it in the configurationtool of the PROFINET controller.

Display of the GSDML file

The GSDML file is not editable in this window. The contents of the GSDMLfile is represented in different colors:· Violet: Names of elements.· Black: Texts.· Black and bold: Names of attributes.· Red: Values of attributes.

Download of the GSDML fileØ click on the ZIP file. The ZIP file contains the device description file

GSDML-V2.31-HILSCHER-NIOT-E-TIB100-GB-RE-xxxxxxxx.xmlÊ Your PC displays a dialog for saving the GSDML file.Ø Select a folder and click Save.Ø Use the saved GSDML file to configure the PROFINET Controller.

12.3.5 Help

Contents

Page with the contents of the online help (currently empty)

Info

This page displays the version of the PROFINET configuration software.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 200: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 200/279

13 Configuring EtherNet/IP and defining signals

13.1 User interfaceThe following figure and table describe the elements of the user interface.

3

2 1

Figure 130: EtherNet/IP user interface

Position number Description(1) Display area and workspace(2) Configuration tree(3) EtherNet/IP configuration menu

Table 70: EtherNet/IP configuration user interface

13.2 Menu commandsThe menu bar of the EtherNet/IP configuration of the netIOT Edge Gatewayallows you to· save the configuration in the Edge Gateway (see Project -

Save [} page 201]),· print the configuration (see Printing the configuration [} page 202]),· download the EDS file from the Edge Gateway (see EDS

Download [} page 201]),· call the help page (see Help - Contents [} page 202]), and· display the software version of the configuration GUI (see Help -

Information [} page 202]).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 201: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 201/279

13.2.1 Project - SaveTo save the configuration data in the device, proceed as follows:Ø Click Project > Save.

ð The configuration will be saved within the Edge Gateway.

13.2.2 EDS DownloadThe EDS file contains the Ethernet/IP properties of the Edge Gateway andis required for configuring the Ethernet/IP Scanner. Download the EDS filefrom the Edge Gateway in order to use it in the configuration tool of theEthernet/IP Scanner.

To download the EDS file, proceed as follows:Ø Click Download > EDS.

A dialog for saving the EDS file will be displayed.Ø Select a folder and then click Save.Ø Use the saved EDS file to configure the EtherNet/IP Scanner.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 202: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 202/279

13.2.3 Printing the configurationTo print configuration and signal definition, proceed as follows:Ø Click Print > Print configuration.

ð The print dialog box will be displayed.Ø Select a printer or an output file and set the printing parameters.ð The current configuration and signal definition will be printed.

13.2.4 Help - ContentsThe Edge Gateway contains integrated documentation.Ø Click Help > Contents.

ð The integrated documentation is displayed.

13.2.5 Help - InformationTo display the version of the EtherNet/IP configuration software of thenetIOT Edge Gateway, proceed as follows:Ø Click Help > Info.

ð The version will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 203: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 203/279

13.3 Configuration treeMenu Submenu Description Details in sectionEtherNet/IPconfiguration

- Setting IP address (using DHCP, BOOTP ordirect input)

EtherNet/IPconfiguration [} page 203]

IO and signalconfiguration

- Configuring input and output data. IO and signalconfiguration [} page 204]

(depends onconfiguration)

Defining signal names. Defining signals(procedure) [} page 210]

Signaldefinitionsoverview

- Displaying defined signal names. Signal definitionsoverview [} page 213]Send signals Displaying defined send signal names.

Receive signals Displaying defined receive signal names.EDS filedownload

- Download of EDS file and contents of EDS file. Download of the EDSfile [} page 214]

Help Contents Displaying online help. Help [} page 214]Info Displaying current software version.

Table 71: EtherNet/IP configuration tree

13.3.1 EtherNet/IP configuration

Figure 131: IP Settings

This page allows to define the method used for assigning an IP address tothe Edge Gateway. This assignment can be accomplished eitherautomatically via DHCP or BOOTP or manually by specifying the followinginformation:· IP address of Edge Gateway· Network mask of Edge Gateway· IP address of the gateway, to which the Edge Gateway is connected

within the IP network

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 204: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 204/279

Parameters for setting the IP addressesParameter DescriptionDHCP Activate/ deactivate DHCP protocol in order to configure the IP address

via DHCP.BootP Activate/ deactivate BootP protocol in order to configure the IP address

via BootP.Fixed Address Activate/ deactivate a fixed IP configurationIP address Specify the IP address of the Edge Gateway when configuring IP

settings manually.Network mask Specify the network mask of the Edge Gateway when configuring IP

settings manually.Gateway If necessary, specify the gateway address of the IP gateway here.

Table 72: Parameters for setting the IP addresses

If multiple options have been checked, these are evaluated in the followingsequence:1. DHCP2. BOOTP3. Fixed IP settings

13.3.2 IO and signal configurationOn this page, you configure the send and receive assemblies for EtherNet/IP within the Edge Gateway. The Edge Gateway works as an EtherNet/IPAdapter

In the context of EtherNet/IP, an „IO Item“ corresponds to an EtherNet/IPsend or receive assembly.

The upper table (Available IO items) displays the list of the possible(selectable) send and receive assemblies:· The Send Assembly (IO item Send, Instance ID usually 100) acts as a

producer and transmits data from the application to the network.· The Receive Assembly (IO item Receive, Instance ID usually 101) acts

as a consumer and transmits data from the network to the application.

At maximum, one send and one receive assembly can be configured.EtherNet/IP assemblies have a configurable data length: possible lengthsrange from 1 up to 504 Byte each for send and receive data (see columnsMin_length and Max_length).

The lower table (IO items) displays the EtherNet/IP configuration and isempty at the beginning.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 205: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 205/279

The configured assemblies („IO Items“ in the lower table) are the basis forthe signal definition. They are displayed in the lower table below “IO Items”.

Figure 132: List of the possible send and receive assemblies

Figure 133: List of the configured send and receive assemblies

The table „IO items“ shows you the currently configured EtherNet/IP sendand receive assemblies.Column name DescriptionIndex Shows the index of the assembly.Name Shows the name of the assembly.Tag Editable short name required for the signal name. The signal name

addresses the data.Description Editable description of the assembly.Data length Contains the length of the assembly in bytes.Byte offset Shows the start address of the assembly (offset in bytes) in the

input- and output data memory. The offset is calculatedautomatically.

Table 73: Contents of the table „IO items“

The column Tag is editable for each assembly. The Tag is an essential partof the signal name. The following characters are allowed only:· Upper-case letters (A-Z),· lower-case letters (a-z),· numbers (0-9), and· the underscore.

Do not enter two or more underscores in succession.

To open the signal configuration of the respective assembly, double-clickany line.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 206: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 206/279

The following table lists the controls of the table IO Items.Control Description

Moves the marked IO item (module) upward by one line.

Moves the marked IO item (module) downward by one line.

Without function.

Deletes the marked IO item (module).Note: This changes the EtherNet/IP configuration of the Edge Gateway and has tobe taken into account when configuring the EtherNet/IP Scanner.This selection allows you to filter the IO items.

· Send/Receive shows you all IO items (modules).

· Send shows you all send IO items (input assemblies).

· Receive shows you all receive IO items (output assembly).Each column offers you sort and search functions.To open the list to select from, click the column heading. To activate the filterfunction, enter the text in the filter input field and press the Enter key. You can use* as a wildcard for filtering. To deactivate the filter function again, delete any textentered in the filter input field and press the Enter key.

Table 74: Controls of the table „IO Items“

13.3.2.1 Signal definition page

On this page, you can define the signals for the input and outputassemblies of the EtherNet/IP for the Edge Gateway. Signal names arerequired for the fieldbus node to address EtherNet/IP data.

The table „IO item“ provides information on the selected IO item for whichyou define signals on this page.

Figure 134: Selected IO item (assembly) for which you define signals

Column name DescriptionIndex Shows the index of the assembly.Name Shows the name of the assembly.Tag Editable short name required for the signal name.Length in bytes Contains the length of the assembly in bytes.Length in bits Shows the length of the assembly in bits.Byte offset Shows the start address of the assembly (offset in bytes) in the

input- and output data memory. The offset is calculatedautomatically.

Table 75: Contents of the table „IO items“

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 207: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 207/279

In the table Signals you can configure the signals for one IO item(assembly). The table shows you the current signal configuration andallows you to enter signal names, lengths and offset addresses.

Figure 135: List of the signal names of an IO item (assembly)

Column name DescriptionIndex Shows the index of the assembly.Name Shows the name of the assembly.Tag Editable short name required for the signal name. The signal name

addresses the data.Description Editable description of the assembly.Data type Data type of the signal. You can set the data type only when you

add a new signal.Length in bits Shows the assembly length in bits.Bit offset Shows the configured start address for a signal within the assembly

(offset in bytes).Table 76: Contents of the table „IO items“

The column Tag is editable for each signal. The Tag is an essential part ofthe signal name. The following characters are allowed only:· Upper-case letters (A-Z),· lower-case letters (a-z),· numbers (0-9), and· the underscore.

Do not enter two or more underscores in succession.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 208: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 208/279

The following table lists the controls of the table Signals.Control Description

Moves the marked signal upward by one line.

Moves the marked signal downward by one line.

Adds a new signal. A dialog box for selecting the data type is displayed. You canset the data type of the signal only in this dialog box.

Deletes the marked signal(s).

Each column offers you sort and search functions.To open the list to select from, click the column heading. To activate the filterfunction, enter the text in the filter input field and press the Enter key. You can use* as a wildcard for filtering. To deactivate the filter function again, delete any textyou have entered in the filter input field and press the Enter key.

Table 77: Controls of the table „Signals“

13.3.2.2 Data types for signal names

The following table lists the data types for signal names.Name of data type Description Length in bits Allowed value rangebit list List of single bits

The number of bits inthe list must be amultiple of 8.

1 0 (false), 1 (true)

octetString String of octets(bytes)

8*(n+1)

signed8 Short signed integer 8 -128 … 127signed16 Signed integer 16 -32768 … 32767signed32 Double signed integer 32 -231 … +231-1unsigned8 Unsigned short

integer8 0 … 255

unsigned16 Unsigned integer /Word

16 0 …65535

unsigned32 Unsigned doubleinteger

32 0 … +232-1

real32 Real (Floating point ) 32 ≈ -/+ 1038

real64 Long real 64 ≈ -/+ 10308

Table 78: Data types for signal names

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 209: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 209/279

13.3.2.3 Structure of the signal names

Signal names address the fieldbus data.

General structure of the signal names

Signal names have the following structure:· input~Modul_Tag~Signal_Tag· output~Modultag~Signal_Tag

For a bit list, the signal names have the following structure:· input~Modul_Tag~Bitlisten_Signal_Tag· output~Modul_Tag~Bitlisten_Signal_Tag

Parts of the signal name1. The prefix input or output is produced automatically.2. The tilde (~) separates the prefix and the assembly_tag.3. You can enter the name for assembly_tag as described in section

Configuring I/O [} page 209].4. The tilde (~) separates the assembly_tag and the signal_tag or the

assembly_tag and the bitlist_signal_tag.5. You can enter the name for signal_tag or bitlist_signal_tag as

described in section Defining signals (procedure) [} page 210].

13.3.2.4 Configuring I/O

The upper table (Available IO items) displays the list of the possible(selectable) send and receive assemblies: The lower table (IO items)displays the EtherNet/IP configuration and is empty at the beginning.

1. Inserting the IO item (assembly):Ø To insert the required IO item into the „IO item“ list, double-click the IO

item in the „Available IO item“ list.Ê The respective IO item will be inserted at the end of the list, if no „IO

Item“ line has been marked, or before a marked „IO item“ line.

Figure 136: List of the configured send and receive assemblies

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 210: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 210/279

2. Entering the tag for the IO item:Ø Enter a name for each IO item in the column Tag using the characters

A‑Z, a‑z, 0‑9 and _ (underscore) only.Ê The name (Tag) is used for the signal name to address the data.

3. Entering the description of the IO item (optional):Ø In the column Description you can enter a text (e.g. temperature

sensor) which helps you describe the use of the data.Ê This description is used only if you print the signal list.

4. Configuring EtherNet/IP:Ø Repeat steps 1‑3 until all required IO items (assemblies) are inserted

into the „IO Item“ list.ð The EtherNet/IP configuration is prepared.

5. Saving the configuration:Ø To save the EtherNet/IP configuration in the Edge Gateway, click

Project> Save.ð The EtherNet/IP configuration in the Edge Gateway is saved, but not

active yetØ To activate the EtherNet/IP configuration, you have to click

Reconfigure in the fieldbus node as soon as you have finished theEtherNet/IP configuration.

In the next step define the signal names as described in section Definingsignals (procedure) [} page 210].

13.3.2.5 Defining signals (procedure)

Each IO item (assembly) contains one or more bytes for input or outputdata. To enable the fieldbus node to access the input or output data, youhave to select a signal at the fieldbus node. You can use the predefinedsignal name or define your own signal name.

The upper table (IO item) shows the IO item (assembly) for which you candefine signals on this page. For defining signals, use the lower table(Signals).

Each IO item (assembly) already has a predefined signal. The predefinedsignal comprises and addresses the entire IO item (assembly). If you wantto access a „part“ of the IO item, you can define a new signal for thispurpose.

Example 1: The IO item contains 16 bytes. If you want to access eachsingle byte, define 16 signals of data type byte each.

Example 2: The IO item contains 2 bytes that correspond to 16 digital inputor outputs. If you want to access each single bit, define 16 signals of datatype bit each.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 211: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 211/279

Defining your own (new) signals1. Selecting the IO item:

Ø Select the IO item for which you want to define signal names in theconfiguration tree under IO and signal configuration.

Ê The selected IO item is displayed in the workspace.

2. Deleting the predefined signal:Ø Mark the predefined signal in the table Signals.Ø Click Delete selected items.

Ê The predefined signal is deleted and you can define your own signals.

3. Adding new signals:Ø Click Add new signals.

Ê The dialog box Add new Signals for selecting the data type isdisplayed.

Ê Configuring signals:Ø Select the data type for the signal. The list of data types is described in

section Data types for signal names [} page 208].Ø Select the quantity. The possible values you can select depend on the

selected data type and the number of input or output bytes to which nosignal name has been assigned yet.

Ø To have an identical beginning for all signal names, enter a text in theinput field Tag name base. The extension „_1“, „_2“, etc. will be addedautomatically, if you have entered a value greater than 1 under"Quantity".

Ø Click OK.ð The new signal/s is/are defined and will be displayed in the table

Signals.

4. Modifying signals subsequently:Ø If required, you can subsequently modify the signal names in the

column Tag of the table Signals.Ø If required, you can enter a signal description in the column

Description of the table Signals.

5. Defining signals:Ø Repeat steps 1‑5 until you have defined all required signals.ð The signal definition is prepared.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 212: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 212/279

6. Saving the configuration and signal definition:Ø To save the configuration and signal definition in the Edge Gateway,

click Project > Save.ð The configuration and signal definition in the Edge Gateway is saved,

but not active yet.Ø Click Update in the fieldbus node so that the fieldbus node reads the

signal definition again.Ø To activate the configuration, click Reconfigure in the fieldbus node as

soon as you have finished or changed the configuration.

The name in the column Tag is a part of the signal name and is describedas Signal_tag or Bitlist_signal_tag in section Structure of the signalnames [} page 209].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 213: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 213/279

13.3.3 Signal definitions overviewAn overview on the current signal definitions is displayed on page “SignalDefinitions Overview”. This page displays the list of the defined signals inthe table „Send and Receive signals“. You can restrict the display of thesignals to send signals or receive signals. The signal names on thesepages are not editable.

Figure 137: List of the send and receive signals

If an assembly contains one or more signals, these signals will be displayedunder the respective assembly.Column names DescriptionIndex Shows the index of the assembly (3-digit) or signal (1 to 3 digits).Name Shows the name of the assembly or signal.Tag Short name required for the signal name. The signal name

addresses the data.Data type Shows the data type of the assembly or signal.Length in bits Shows the length of the assembly or signal in bits.Byte offset Shows the start address (offset in bytes) for an assembly in the

input- or output data memory. The offset will be calculatedautomatically.

Bit offset Shows the configured start address (bit offset) for a signal within anassembly.

Table 79: Columns of the table of the send and receive signals

You can print this table using Print > Print configuration.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 214: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Configuring EtherNet/IP and defining signals 214/279

13.3.4 Download of the EDS fileOn this page you can· display the contents of the EDS file and· save the EDS file on your PC (download).

The EDS file contains the Ethernet/IP properties of the Edge Gateway andis required for configuring the Ethernet/IP Scanner. Download the EDS filefrom the Edge Gateway in order to use it in the configuration tool of theEthernet/IP Scanner.

Display of the EDS file

The EDS file is not editable in this window.

Download of the EDS fileØ Click the file with the extension .ZIP. The ZIP file contains the device

description fileHILSCHER NIOT-E-TIB100-GB-RE EIS V1.1.EDS

Ê A dialog for saving the ZIP file is displayed.Ø Select Save and then click on OK.Ø Select a folder and click Save.Ø Extract the ZIP file to get the EDS file.Ø Use this EDS file to configure the EtherNet/IP Scanner.

13.3.5 Help

Contents

Opens a page offering access to the contents of the online help system.See Help - Contents [} page 202].

Info

This page only displays the current version of the EtherNet/IP configurationsoftware. See Help - Information [} page 202].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 215: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 215/279

14 Edge ServerThis chapter describes the Edge Server for Hilscher Edge GatewaysVersion 0.4.x and higher and explains the following topics:· Communication, functions and internal structure of the Edge Server

(see chapter Function principle [} page 215])· The Edge Server Control Center [} page 220]· The Configuration of the Edge Server [} page 223]

14.1 Function principleThe Edge Server· is a software component that has been developed by Hilscher and is

executed under the Linux operating system of the Edge Gateway.· enables secure and capsuled access from the IT-network to functions

and protocols embedded within the Edge Gateway via a REST API.From the IT network means here, e.g. from the cloud or an applicationon a mobile device (e.g. a mobile phone) or also from the EdgeGateway itself via functions of the integrated Node-RED application..

· is a secure link between Web-applications and the OT-network thatallows only indirect access to the OT-network via the provided EdgeServer services and functions.In any way, direct access to the OT-network, which would counteract the security concept of the EdgeGateway is not possible.

· allows access to processes having been prepared in an automated way,e.g.– the scan of the field devices of the OT-network (automation network)– or the identification of the topology.

· is used for acquiring the status of the OT network and the field devicesconnected with this network and to provide it in JSON format forapplications performing further processing..

14.1.1 Communication with IT-network and mobile devicesA REST API (also called RESTful API or RESTful interface) is aprogramming interface (API) which uses HTTP-requests like GET, PUT,POST and DELETE to access data between a web-based client and aserver. The abbreviation REST stands for Representational State Transfer,API for Application Programming Interface.

The Edge Server uses a REST API to provide the client with its services.The client application uses this REST API to communicate with the EdgeServer. The Edge Server communicates exclusively via the secure ProtocolHTTPS limiting the communication to the services GET, POST, and PUT.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 216: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 216/279

The following figure shows the Edge Server structure:

Figure 138: Edge Server structure

Note:For more information on the protocol HTTPS, see https://en.wikipedia.org/wiki/HTTPS, on REST APIs, see https://en.wikipedia.org/wiki/Representational_State_Transfer.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 217: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 217/279

14.1.2 Communication with the OT-networkTo communicate with the connected OT-network the Edge Server uses,among other protocols, the protocols SNMP (Simple Network ManagementProtocol) and ARP (Address Resolution Protocol). In addition to this,PROFINET protocols are used for communication with PROFINET devices,and an IO-Link UDP protocol transmitting encapsulated IO-Link data isused for communication with IO-Link master devices in the OT-network.

Note:see Configuration of the Edge Server [} page 223] Concerning SNMP, see https://de.wikipedia.org/wiki/Simple_Network_Management_Protocol. Concerning ARP, see https://de.wikipedia.org/wiki/Address_Resolution_Protocol.

14.1.3 Access rights to the REST APIAccess to the REST API is governed by rights as follows:1. In order to request data from the Edge Server using the REST API

(HTTP method GET), read access rights are required.2. In order to make changes within the Edge Server using the REST API

(HTTP methods PUT and POST), write access rights are required.3. You can check whether you have the required access rights via the

menu entry User profile [} page 80].4. Granting read and right access rights requires administrator rights and

is described in section Managing user roles [} page 74].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 218: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 218/279

14.1.4 Functions of the Edge ServerVia its REST API the Edge Server provides functions from the groupsDEVICE (device handling), FILE (file handling), GATEWAY (information ongateway), PROGRESS (information on progress), TOPOLOGY (informationon topology), and USER (user login) for access from the IT-network:Group Function Method

(HTTPS)Name

DEVICEdevicehandling

Reading device information GET /device/info

Setting device information POST /topology/device/infoDetailed device list withadditional information

GET /device/list

Reading parameters GET /device/parameterWriting parameters POST /device/parameterReading parameter list GET /device/parameter/listCyclic reading of process data orreading of parameters

GET /device/processData

Cyclic writing of process data orwriting of parameters

POST /device/processData

List of process data GET /device/processData/listFILEfile handling

File-upload (firmware,configuration, device descriptionfiles, general data)

PUT /file

GATEWAY information onthe gateway

Information on installedpackages and internal modules

GET /gateway/package/info

Access to product data GET /gateway/infoPROGRESSinformation onprogress

Request of progress informationon running tasks

GET /progress

TOPOLOGYinformation ontopology

List of topology scan resultswithin a defined period

GET /topology/networkScanList

Output of a network status list GET /topology/networkStatus/list

USERuser login

Authentication of the app POST /user/loginLogout request POST /user/logout

Table 80: Functions of the Edge Server

Note:For a detailed description of the functions and parameters providedby the netIOT Edge Server API, see http://www.netiot.com/external/stkit-doku/.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 219: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 219/279

14.1.5 Internal structure of the Edge ServerThe following figure shows the environment of the Edge Server for theEdge Gateways:

Figure 139: Edge Server environment

The following figure shows the internal structure of the Edge Server for theEdge Gateways:

Figure 140: Internal structure of the Edge Server

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 220: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 220/279

14.2 Edge Server Control Center

14.2.1 Starting the Edge Server Control CenterThe Edge Server Control Center is a tool for commissioning andadministrating the Edge Server. It can be started via the netIOT EdgeServer Icon within the Edge Gateway Manager (see Edge GatewayManager [} page 26]).

Figure 141: netIOT Edge Server icon within the Edge Gateway Manager

14.2.2 FunctionsThe Edge Server Control Center provides the following functions:· Information on the Edge Server· Configuration of the Edge Server· List of services· Scan protocols of field devices

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 221: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 221/279

14.2.3 Service listThe service list contains valuable information on the components of theEdge Server. To display the service list, proceed as follows:Ø Select entry Service list in menu Services.ð The service list is displayed. Each listed service represents an installed

component of the Edge Server.

Figure 142: Edge Server Control Center

The left part of the window lists all services with their name and a symbolindicating the current state of operation of the service.Symbol Meaning

RunningService is running

InfoFor this service, an informative message has been stored (see below).

Warning For this service, a warning message has been stored.

Error For this service, an error message has been stored.

Table 81: Symbols for the state of operation in the service list

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 222: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 222/279

You can select one of these services in the left part of the window. A bluebar marks the currently selected service. The right part of the windowadditionally shows the following data concerning the selected service:· Name of service / component· Operating status (displayed as text)· Last information· Version· Description· Information on the author

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 223: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 223/279

14.3 Configuration of the Edge ServerFor the configuration of the Edge Server, the following two steps arenecessary in this order:1. The configuration of the used IP address area

(see The configuration of IP address area [} page 223])2. The configuration of field devices

(see Selecting the protocols to scan for field devices [} page 226])

14.3.1 The configuration of IP address areaTo configure the IP address range used, proceed as follows:Ø Open the menu System in the Edge Server Control Center and select

menu entry Configuration.Ê The configuration screen page displays the settings for the server

configuration.

Figure 143: Server configuration

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 224: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 224/279

Ø Click Scanning in the left column.Ê The screen page for the scan settings (Scanning) is displayed:

Figure 144: Configuration of the scan settings

Ø Here you can define several address ranges. To create a new input line

for entering an IP-address range click . Makesure, that an entered IP-address range falls into the IP-address range ofthe OT-network to allow the scanning of the connected devices.

Ø Under Start address enter the start address of the IP-address range,e.g. 192.168.0.1.

Ø Under End address enter the end address of the IP-address range,e.g. 192.168.0.8.

Note:For configuring the Edge Gateway, we strongly recommend you toset cifX0 to the IP-address 192.168.0.8. For the correctconfiguration of the IP-address range, the entered IP-addressesmust fall into the range of the cifX0 network and its IP-address.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 225: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 225/279

Ø To save your settings in the Edge Server, click .ð Now, the screen page for the scan settings should look like that:

Figure 145: Correct configuration of the scan settings

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 226: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Edge Server 226/279

14.3.2 Selecting the protocols to scan for field devicesThe protocols used to scan the individual field devices in the set IP-addressrange are set in the Edge Server Control Center.

To activate or deactivate individual protocols:Ø Select menu entry Scanning in menu Services within the Edge Server

Control CenterÊ The protocol configuration will be displayed:

Figure 146: Scan protocol configuration

Ø On this page, you can set the scan protocols to be active or inactiveindividually for each address of the configured IP-address range. Forthe basic registration of the field devices, you should activate the scanprotocols SNMP and ARP.

Note:Check the boxes IO-Link or PROFINET for IP-addresses in theconfigured IP-address range only if the corresponding IO-Linkmaster devices or PROFINET devices are connected andconfigured.

Ø To save your settings in the Edge Server, click .ð Thus, your scan protocol settings of the field devices are saved.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 227: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 227/279

15 Isolated application execution with DockerThe Edge Gateway enables the user to execute his own applications withinthe protected Linux operating system. A software platform becomesnecessary to allow the execution of said applications withoutsimultaneously opening the possibility of evading the safety mechanisms ofthe Linux operating system. For that purpose, the Edge Gateway uses theopen-source software "Docker" from Docker Inc. (https://www.docker.com/).

In order to work with Docker, read and write access rights at Docker UI arerequired. You can check whether you have the required access rights viathe menu entry User profile [} page 80]. Granting read and right accessrights requires administrator rights and is described in section Managinguser roles [} page 74].

Note:For more information on Docker, see the documentation of theDocker organization under https://docs.docker.com/.

15.1 Docker, image, and container

Docker

Docker offers a platform for the isolated execution of applications withinprotected environments and, moreover, a standard for the distribution ofsoftware. This platform allows Edge Gateway users to run their ownapplications within the protected Linux operating system without being ableto weaken or evade its safety mechanisms.

For realizing containers, Docker internally uses techniques from operatingsystem virtualization. On the Edge Gateway, Docker is running as a service(Docker daemon dockerd).

As standard with Linux, Docker is controlled by entering commands via thecommand line. For reasons of safety, a command line service is notinstalled on the Edge Gateway.

Thus, Docker cannot be operated via a CLI (Command Line Interface) asdescribed in the official Docker documentation (https://docs.docker.com/).An easy-to-use GUI (Graphical User Interface) portainer.io is installedinstead. This GUI provides the essential functions for managing the Dockerservices.

Note:For more information on portainer.io, see http://portainer.io.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 228: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 228/279

Image

An image is the basis for a container and includes only its program codeand basic settings.

It does not include information the program code generates on a storagemedium or RAM while it is running.

Moreover, it does not include any information on the environment the imageis to be executed in, i.e. it is platform-neutral.

An image always relates to the defined processor architecture it is compiledfor, e.g. x86, x64 or ARM. If a container is generated from an image, makesure that the image is suitable for the hardware platform used.

For distributing images via the Internet, the Docker organization provides aso-called repository under https://hub.docker.com/. Images stored thereare freely accessible. Users can also manage their own repositories.

Note:For more information on images, see the Docker documentationhttps://docs.docker.com/engine/docker-overview/%23docker-objects and, in particular, its glossary https://docs.docker.com/glossary/?term=image.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 229: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 229/279

Container

A container is a runtime instance of an image.

A container represents an image that is being executed in its individualruntime environment and can be compared with a running process.Running an image in a container is commonly denominated as "starting"the container. The term "starting" implies that Docker transfers the image toan individual runtime environment to execute it there. This runtimeenvironment is isolated against host machine and other containers, i.e.neither host machine nor other containers can influence it. Access toresources of the host system as e.g. host files and ports occurs only ifexplicitly configured.

A container consists of:· a Docker image,· a runtime environment, and· a standard command architecture.

The runtime environment contains e.g. current information on configurationand status. For storing this information, Docker generates a virtual drive inthe container, a so-called "volume"

Docker can start several containers, even containers originating from thesame image.

Note:For more information on containers, see the Docker documentation(https://docs.docker.com/get-started/#prerequisites) and, inparticular, its glossary (https://docs.docker.com/glossary/?term=container).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 230: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 230/279

15.2 Working with Docker via the web GUIThis section describes· how to operate Docker via the portainer.io interface of the browser· how to run additional software on the Edge Gateway with Docker (using

the web server NGINX as an example).

15.2.1 The portainer.io interface

Tasks of the portainer.io interface

The portainer.io interface serves:· to add new containers· to provide functions for controlling the code execution such as Start,

Stop, Kill, Restart, Pause, Resume, and Remove· to configure the containers.

Starting the portainer.io interface for working with the containers

To start the portainer.io interface, proceed as follows:Ø Open the Edge Gateway Manager, if it is not already open.

For this purpose see Calling the Edge Gateway Manager [} page 26]Ø Click the tile Docker Management in the Edge Gateway Manager..

Figure 147: Tile Docker in the Edge Gateway Manager

Ê The portainer.io login screen will be displayed. In the field Username,admin is already entered. This is the only predefined user name.

Ø Enter the password for the user name admin. This password is set inthe user management of the Edge Gateway Manager, see Usermanagement [} page 74].

Ê The start page "Dashboard" of the user interface portainer.io will bedisplayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 231: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 231/279

Figure 148: View of portainer.io dashboard

Ø Click Containers in the menu on the left or Containers on the page"Dashboard".

ð The page "Container list" will be displayed. This list contains the namesand statuses of all currently known containers and provides thefunctions for controlling the code execution.

Figure 149: Container list (portainer.io)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 232: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 232/279

Functions for working with containers

Docker provides the following functions for controlling the code execution:Icon Function Meaning

Start Starting a container

Stop Stopping a container

Kill Aborting the execution of a container

Restart Repeated starting of a container

Pause Interrupting the execution of a container temporarily

Resume Continuing the execution of a container after an interruption

Remove Deleting a container

Table 82: Functions for working with containers

15.2.2 Example: Executing the web server NGINX as a containerNGINX is an open-source web server. This section shows how to executethe web server NGINX with Docker on the Edge Gateway.

Note:Further information on the web server NGINX can be downloadedfrom https://nginx.org/, https://hub.docker.com/r/_/nginx/, andhttps://en.wikipedia.org/wiki/Nginx.

Prerequisite

The following prerequisite must be met: The user interface portainer.io isopen (see The portainer.io interface [} page 230]).

Steps

Ø On the page "Container list" click .Ê The page "Create container" will be displayed.Ø In the field Name enter the name of your container, e.g.

MyFirstContainer.Ø In the field Image of the zone Image configuration enter the name of

the image to be executed in the container: nginx.Ê The system will automatically search for the image in the official Docker

registry, and the NGINX repository (located there) will load it. The http-address of the NGINX repository is https://hub.docker.com/_/nginx/.

Ø Always set the switch Always pull image of the zone Imageconfiguration to On (i.e. the switch is in position "right"). Thisautomatically loads the image before the start. A manual loading via theoption "Images" from portainer.io is thus no longer required.

Ø To configure a network-port-assignment between container and Linux-host-system, click the button map additional port. This will deviatenetwork port 80, used by NGINX as standard, e.g. to port 8080 andmake it accessible for the web browser.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 233: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Isolated application execution with Docker 233/279

Ê The fields host and container are shown on the page "Container list".Ø Field host: Enter the port, e.g. 8080, where the NGINX can be

accessed via the web browser.Ø Field container: Enter the port, e.g. 80, that NGINX uses within the

container.

Figure 150: NGINX example - screen page "Create container"

Ø If required, set the Advanced options according to the documentationof the container to be started (in this case: NGINX documentation,https://hub.docker.com/r/_/nginx/). This example does not require anyfurther settings.

Ø Click .ð The configuration of the container is thus ready for the execution of

NGINX. Docker will first load the image from the registry (duration 2-3minutes), deposit it in the Edge Gateway, and transform it into acontainer thereafter. This container will then appear in the container listand its status changes to running.

To check the correct installation of NGINX, proceed as follows:Ø Enter the following address in the adress line of your web browser:

http://<IP-address of your device>:8080

ð The NGINX-start screen will be displayed.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 234: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 234/279

16 Public Key InfrastructureThis chapter explains, how a Public Key Infrastructure (PKI) for storing andadministration of certificates and (private) keys can be established with theEdge gateway in order to provide protected data communication. First, themethod of asymmetric encryption providing the logical foundation of the PKIis described, and the single members of the PKI are introduced. Then,certificates and keys are explained in more detail. Finally, all actionsconcerning PKI which are executable within the Control Panel of the EdgeGateway are explained within a step-by-step description.

Public Key Infrastructure (PKI) means a system to protect datacommunication based on asymmetric encryption that maintains digitalcertificates by creation, distribution, and checking. The Edge Gatewaystores and checks digital certificates and can be integrated into a PublicKey Infrastructure.

16.1 Asymmetric encryptionAsymmetric encryption uses a pair of keys consisting of a public key and aprivate key.

The private key is used to· create signatures and· decrypt messages.

Der public key is used to· verify signatures and· encrypt messages.

A server provides the public key within a certificate. Beside the public key,a certificate includes even a signature and many more information. With acertificate, a client can identify a server and can encrypt messages (data)using the public key and send it to the server. The client does anauthenticity check of the certificate of the server using one or moretrustworthy root certificates which the client has stored in local directory oftrustworthy certificates.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 235: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 235/279

Process of asymmetric encryption

Figure 151: Process of asymmetric encryption

1. The server has two keys– the private key– the public key– Both keys have a relation.

2. The client receives the certificate from the server which contains eventhe public key and a signature.

3. The client verifies the signature of the certificate using trustworthycertificates stored in its local directory of trustworthy certificates. Only ifthe authenticity check is ok, the client uses the received public key.

4. The client encrypts the message using the public key and sends theencrypted message to the server.

5. The server decrpyt the message using his private key.6. Client and server continue its encrypted communication using one new

created protected transmitted key (symmetric communication).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 236: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 236/279

16.2 Certificates and keysA certificate can be considered as the digital confirmation of authenticity forthe public key contained therein. For the time of its validity, the certificateconnects the identity of the certificate owner owning the private key on onehand with the public key on the other hand. An advantage of the usage ofcertificates is that the effort of password administration is no longernecessary by creating a state of trust between the host and the issuer ofthe certificate.

16.2.1 Structure of a certificate according to X.509The strtucture of a certificate corresponds to the standard X.509 issued byITU-T or the equivalent ISO/IEC 9594-8 standard.

According to this, a certificate has the following constituents:· Version· Serial number· Algorithm ID· Time period of validity (specifications of begin and end)· Specifications concerning the issuer of the certificate (see below)· Specifications concerning the owner of the certificate (see below)· Key information concerning the certificate owner· Optional: Unique ID of the issuer of the certificate· Optional: Unique ID of the owner of the certificate· Signature algorithm· Signature· Extensions

The specifications concerning the issuer and the owner of the certificatemay each have the following attributes:Attribute MeaningCN Common nameO OrganisationOU Organisational unitC Country or regionST StateL Location

Table 83: Attributes concerning the issuer and owner of the certificate zum Zertifikats-Aussteller und Zertifikats-Inhaber

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 237: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 237/279

16.2.2 Hierarchy of trustCertificates link with other certificates for authentication, that have beenissued by an instance classified as being trustworthy. Such a certificateitself can link to another one, etc. So, a chain of concatenated certificateslinked pair-wise is generated. This chain is denominated as the hierarchy oftrust. One certificate is located at the end of this chain. This one isdenominated as the root certificate. It is not linked to another certificate, butto itself, thus putting an end to the chain of certificates. Such certificates aredenominated as self-signed certificates. You will only trust a self-signedcertificate, if it has been signed by an extraordinarily trustworthy authority.For this purpose, Certificate Authorities (CAs)s have been established whosign certificate requests, who issue certificates and who check the identityand authority of the requestors. Usually, these are renowned officialinstitutions, clubs or companies..

Consequently, the authenticity check of a certificate is practically done inthat way, that the complete hierarchy of trust is tracked up to the rootcertificate, whose issuer is determined and a list of well-known trustworthyroot certificates is searched whether it contains the root certificate at theend of the hierarchy of trust. Such lists are maintained by all browsermanufacturers within the scope of special membership programmes andmay be found within browsers, operating systems and mobile devices.

On the Edge Gatewaythe operating system Linux is run, which itselfmaintains such a list of root certificates of renowned CAs. This list isdenominated as the Linux Trust Store and thus constitutes the RootCertificate Store of Linux.

Note:A list of trustworthy root certificates is maintained by the Mozillaorganisation under the denomination Mozilla CA Certificate Store,see https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/. The display of root certificates in the ControlPanel of the Edge Gateway follows this list.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 238: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 238/279

16.2.3 File formats for certificate and key filesThe Edge Gateway uses the PEM file format (Privacy Enhanced Mailaccording to RFC1421 to 1424) to store certificate and key files.

PEM file format

Certificate and key files for use in the PKI of the Edge Gateway use theBase64-coded PEM file format. Within this format, the genuine Base64-coded certificate data are surrounded by -----BEGIN CERTIFICATE----- at the beginning and-----END CERTIFICATE----- at the end of the PEM file.

Similarly, key data are surrounded by-----BEGIN RSA PRIVATE KEY----- and -----END RSA PRIVATE KEY-----.

you can convert a Base64-coded *.CER or *.CRT file into the *.PEMformat, by following these steps:Ø Surround the Base64-coded genuine certificate data with

-----BEGIN CERTIFICATE----- at the beginning and-----END CERTIFICATE----- at the end.

Ø Surround the Base64-coded genuine key data with-----BEGIN RSA PRIVATE KEY----- at the beginning and-----END RSA PRIVATE KEY-----at the end.

Ø DChange the file extension *.CER or *.CRT to *.PEM.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 239: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 239/279

16.3 Use casesUse case Details in sectionRoot certificates Use case 1: Verification of the authenticity of the communication

partner (Server) [} page 239]Server certificatesand private keys

Use case 2: Server certificates for Edge Gatewayservices [} page 240]

Client certificates andprivate keys

Use case 3: Client certificates for specific servers [} page 242]

Table 84: Overview use cases

16.3.1 Use case 1: Verification of the authenticity of the communicationpartner (Server)

The Edge Gateway (Client) can communicate in a protected (i.e. encrypted)way with a specific server. For this, the Edge Gateway needs the public keyof the server, which the server provides within a certificate. This servercertificate contains the public key and a signature (among otherinformation). The signature serves the Edge Gateway to verify the servercertificate. The client verifies the signature of the certificate usingtrustworthy root certificates which the Edge Gateway has stored in its localdirectory of trustworthy certificates. Only if the verification results in a validauthenticity, the Edge Gateway uses the received key.

When the Edge Gateway is delivered, it already has a directory withtrustworthy certificates (Trusted Certification Authorities). You can addmore trustworthy certificates or delete them. The preinstalled certificatesoriginate from the Mozilla CA Store (https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/, e.g. List of included rootcertificates).

Figure 152: Use case 1: Verification of the authenticity of the communication partner(Server)

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 240: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 240/279

A trustworthy certificate can require another trustworthy certificate to verifyauthenticity. Consequently, a so called Hierarchy of trust [} page 237] isestablished. For verification, the Edge Gateway requires all trustworthycertificates related to a specific server certificate. For this, if applicable, youhave to load more trustworthy certificates into the directory of trustworthycertificates (Trusted Certification Authorities) of the Edge Gateway

For details about “How to work with the certificates of this list (Upload,Download, Removal, Creation, Show List)" see section Verification of theauthenticity of the communication partner using trustworthycertificates [} page 244].

16.3.2 Use case 2: Server certificates for Edge Gateway servicesIn the role as a server, the Edge Gateway provides server certificates whichcontain the public key. An external client can encrypt the communication tothe Edge Gateway with the public key and verify the authenticity of theEdge Gateway.

In the Edge Gateway, you can manage the private key and the relatedserver certificate for a service. Each service of the Edge Gateway uses aseparate pair consisting of private key and certificate. This certificatecontains the public key, a signature and furthermore information.

From the point of view of the Edge Gateway, server certificates apply toinbound connections (e.g. HTTPS).

Figure 153: Use case 2: Server certificates for Edge Gateway services

The file name for the private key is key.pem. The file name for thecertificate is cert.pem. Both files have the PEM file format, see sectionFile formats for certificate and key files [} page 238].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 241: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 241/279

Folder name (contains thepair of files)

Edge Gateway service

nginx The Nginx server is the access point for several EdgeGatways servies. The pair of files (private key key.pem andthe related server certificate cert.pem) is used among otherservices for the following services:

· Edge Gateway Manager

· Node-RED

· Edge Server and Rest API

· Portainer.io (Docker)

· AIN Connectoropcuaserverforedge OPC UA for Edge

Table 85: Edge Gateway services

Note:The certificate (containing the public key) and the private key arestored in two separated files and uploaded individually into the EdgeGateway. As the user, you are solely responsible that the file withthe certificate matches with the file containing the private key, whichyou have uploaded into the Edge gateway.

For details about “How to work with the certificates and key files (Upload,Download, Removal, Creation)”, see section Working with servercertificates for inbound connections [} page 247].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 242: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 242/279

16.3.3 Use case 3: Client certificates for specific serversThe Edge Gateway (client) is able to authenticate itself to a specific server.For this, you can store client certificates in the Edge Gateway. This usecase extends use case 1 (The Edge Gateway uses server certificates, toidentify a server and to encrypt messages). In case, you want to ensurethat the server identifies the Edge Gateway, the Edge Gateway has to sendhis client certificate to the server.

From the point of view of the Edge Server, the client certificates relate tooutbound HTTPS and OPC UA connections.

For each server the Edge Gateway should send an certificyte forauthentication, you have to upload a pair of files (private keyxyz_key.pem and certificate xyz_cert.pem). The prefix (here xyz_) hasto be identical for each file pair (you can freely choose the prefix).

You can upload and use client certificates in the Edge Gateway for Node-RED only.

Note:The certificate (containing the public key) and the private key arestored in two separated files and uploaded individually into the EdgeGateway. As the user, you are solely responsible that the file withthe certificate matches with the file containing the private key, whichyou have uploaded into the Edge gateway.

Node-RED

You can upload several pairs of files (one pair for one server) in order touse the client certificate functionality. Use the same prefix for one pair offiles. For each server, a separate pair of files is necessary.

For a Node-RED node, you need to use a path to the certification file aswell as to the private key file:· Mark the entry xyz_cert.pem and then click Copy path. Use the

copied path in the Node-RED node for the path to the certificate.· Mark the entry xyz_key.pem and then click Copy path. Use the

copied path in the Node-RED node for the path to the private key.

OPC UA Client in Node-RED

The Edge Gateway is able to communicate with exactly one OPC UAServer using the authentication based-on client certificates. The file namesare· Certificate file node-opcuaclient_cert.pem and

· File with the private key node-opcuaclient_key.pem

For a OPC UA Client node, you need to use a path to the certification fileas well as to the private key file.· Mark the entry node-opcuaclient_cert.pem and then click Copy

path. Use the copied path in the OPC UA Client node for the path to thecertificate.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 243: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 243/279

· Mark the entry node-opcuaclient_key.pem and then click Copypath. Use the copied path in the OPC UA Client node for the path to theprivate key.

Actions for working with certificates and key files

For client certificates, you can do the following actions:1. Step 2: Uploading a certificate for client authentication for a specific

server on the Edge Gateway [} page 256]2. Downloading a certificate for client authentication for a specific server

from the Edge Gateway [} page 257]3. Removing a certificate for client authentication for a specific server on

the Edge Gateway [} page 258]4. Newly creating a certificate for client authorization for a specific server

on the Edge Gateway5. Copying the path to a certificate for client authentication for a specific

server on the Edge Gateway [} page 259]

With the related key files, you can do the following actions:1. Step 1: Uploading a key file for client authentication for a specific server

into the Edge Gateway [} page 255]2. Downloading a key file for client authentication for a specific server from

the Edge Gateway [} page 260]3. Removing a key file for client authentication for a specific server on the

Edge Gateway [} page 261]4. Newly creating a key file for client authorization for a specific server into

the Edge Gateway5. Copying the path to a key file for client authentication for a specific

server on the Edge Gateway [} page 262]

How to accomplish these, describes section Working with clientauthentication certificates for outbound connections [} page 253].

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 244: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 244/279

16.4 Verification of the authenticity of the communication partnerusing trustworthy certificates

Certificates from trustworthy sources can be used for verification of theauthenticity of the communication partner using the hierarchy of trust asdescribed within section Use case 1: Verification of the authenticity of thecommunication partner (Server) [} page 239]. Within the Edge Gateway, alist of certificates of trustworthy issuers (Trusted Certification Authorities) isstored which can be adapted if required. The following actions can beperformed:1. Display list of trustworthy root certicates issued by Trusted Certification

Authorities stored within the Edge Gateway2. Upload a trustworthy certificate into the Edge Gateway3. Download of certificates from the Edge Gateway into a file4. Removing certificates/CAs that are no longer considered as trustworthy5. Adding a new trustworthy certificate to the Linux trust store of the Edge

Gateway

16.4.1 Display the list of trustworthy root certificates stored within the EdgeGateway

To display the list of trustworthy certificates within the Edge Gateway,which have been issued by Trusted Certification Authorities, proceed asfollows:Ø Select option Trusted Certification Authorities in selection list (Selection

list for certificate type [} page 78]).Ê In window Certificates the list of trustworthy certificates within the Edge

Gateway, which have been issued by Trusted Certification Authorities,is displayed (containing certificates originating from the Mozilla CACertificate Shop, see https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/).

Ø Select the desired entry within window Certificatesð The window Certificate Viewer now shows the data of the selected

certificate (Structure according to X.509 [} page 236]).

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 245: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 245/279

16.4.2 Upload a trustworthy certificate into the Edge GatewayTo upload a trustworthy certificate from a file in *.pem format [} page 238]and update it within the list of the Trusted Certification Authorities of theEdge Gateway, proceed as follows:Ø Select optionTrusted Certification Authorities within selection list

(Selection list for certificate type [} page 78]).Ê In window Certificates, the list of trustworthy certificates within the

Edge Gateway, which have been issued by Trusted CertificationAuthorities, is displayed (containing certificates originating from theMozilla CA Certificate Store).

Ø Select the desired entry within window CertificatesÊ The window Certificate Viewer now shows the data of the selected

certificate (Structure according to X.509 [} page 236] standard)..Ø Click at button Upload in the header of window Certificates.Ê A file selection dialog appears:Ø Within that dialog, select the certificate file to be uploaded! This file

must be present in the *.pem file format [} page 238].Ê The certificate file is checked for correctness. In case of error, a

message indicating a defective file type appears and further processingis terminated. For instance, this occurs in case of the file not having theextension *.pem or the file contents is not coded in *.pem format.However, in case of success a security query appears whether youreally intend to replace the certificate file.

Ø If you are really sure not to need the current certificate file any longer,click at Yes.

ð The selected certificate file is uploaded into the Edge Gateway. Duringthis, the formerly existing certificate within the Edge Gateway isirreversibly destroyed. Thus, there is no possibility to restore thiscertificate if no suitable backup is available. After some seconds, amessage is displayed indicating that the upload has been completedand the Edge Gateway requires a restart according to the followingnote.

Note:If you upload a trustworthy certificate from a file into the EdgeGateway, it is necessary to consequently perform a reboot of theEdge Gateway [} page 56] for the changes to become effective.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 246: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 246/279

16.4.3 Download of certificates from the Edge Gateway into a fileTo download a trustworthy certificate from the list of the TrustedCertification Authorities of the Edge Gateway into a file in *.pem format,proceed as follows:Ø Select optionTrusted Certification Authorities within selection list

(Selection list for certificate type [} page 78]).Ê In window Certificates, the list of trustworthy certificates within the

Edge Gateway, which have been issued by Trusted CertificationAuthorities, is displayed (containing certificates originating from theMozilla CA Certificate Store).

Ø Select the desired entry within window Certificates.Ê The window Certificate Viewer now shows the data of the selected

certificate (Structure according to X.509 standard [} page 236])..Ø Click at button Download in the header of window Certificates.Ê A dialog box depending on the browser of your choice is displayed and

asks you whether the file should be opened or stored.Ø Select Save and then click on OK.ð The file is stored in *.pem [} page 238] format.

16.4.4 Removing certificates no longer considered as trustworthyIf you no longer trust the certificate or its issuer, proceed as follows toremove a certificate from the list of Trusted Certification Authorities of theEdge Gateway,Ø Select optionTrusted Certification Authorities within selection list

(Selection list for certificate type [} page 78]).Ê In window Certificates, the list of trustworthy certificates within the

Edge Gateway, which have been issued by Trusted CertificationAuthorities, is displayed (containing certificates originating from theMozilla CA Certificate Store).

Ø Select the entry of the certificate to be removed in window Certificates.Ê The window Certificate Viewer now shows the data of the selected

certificate (Structure according to X.509 standard [} page 236])..Ø Click at button Delete in the header of window Certificates.Ê A security query is displayed and warns against possible malfunction of

the related application caused by the removal of certificatesØ If you are really sure not to need the current certificate file any longer,

click at Yes.ð The selected certificate file is being removed from the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 247: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 247/279

16.5 Working with server certificates for inbound connectionsFor inbound connections, certificates can be stored within the EdgeGateway as described in Use case 2: Server certificates for Edge Gatewayservices [} page 240].

There is a 1:1-Relation between client and server (this means, exactly onecertificate and one matching private key are required per client).

In this context, the following actions can be performed:1. Uploading a pair consisting of a server certificate and the corresponding

key file in *.pem format into the Edge Gateway2. Downloading the server certificate from the Edge Gateway into a *.pem

file3. Removing a server certificate from the Edge Gateway4. Removing a key corresponding to a server certificate from the Edge

Gateway

Note:The certificate (containing the public key) and the private key arestored in two separated files and uploaded individually into the EdgeGateway. As the user, you are solely responsible that the file withthe certificate matches with the file containing the private key, whichyou have uploaded into the Edge gateway.

16.5.1 Uploading a a pair of certificate file and key file for HTTPS und OPCUA Server

As certificates and the corresponding private keys are logically connectedvery firmly and must always be uploaded or changed together, uploading ofan entire cerificate-key-pair is described here within a single stepdescription consisting of two separate consecutive steps of work.Nevertheless, uploading both of these separately is possible, but does notmake very much sense.

Note:Always take care of the order and upload the private key filekey.pem first and then the certificate file cert.pem into the EdgeGateway as described below. This execution sequence is necessary as a check whethercertificate and key match is performed every time a certificate file isuploaded and the key must already be present when this checktakes place.

Note:For the changes to become effective it is necessary to reboot theEdge Gateway [} page 56] consequently if you upload a servercertificate for communication with the HTTPS Server, Node-RED [} page 82], the Edge Server [} page 215] or the RESTAPI [} page 217] from a file into the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 248: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 248/279

16.5.1.1 Step 1: Uploading a key file belonging to a server certificate into the EdgeGateway

To upload a key file belonging to a server certificate for the communicationwith the HTTPS server nginx, Node-RED, the Edge Server or the RESTAPI from a file into the Edge Gateway, proceed as follows.Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.

If the server certificate applies to the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API:Ø Within window Certificates, select the entry key.pem below nginx.

Alternatively: If the server certificate applies to the communication with theOPC UA-Server:Ø Within window Certificates, select the entry key.pem below opcua.Ê In both cases,the window Certificate Viewer is empty now (Text No

data).Ø Click at button Upload in the header of window Certificates.Ê A file selection dialog appears.Ø Within that dialog, select the key file to be uploaded! This file must be

present in the *.pem file format [} page 238].Ê The key file is checked for correctness.In case of error, a message

appears indicating a defective file type and further processing of the keyfile is terminated. For instance, this occurs if the file does not have theextension *.pem or the contents of the file is not coded in *.pemformat. However, in case of success a security query appears whetheryou really intend to replace the key file.

Ø If you are really sure not to need the current key file any longer, click atYes.

ð The selected key file is uploaded into the Edge Gateway. During this,the formerly existing key within the Edge Gateway is irreversiblydestroyed. Thus, there is no possibility to restore this key if no suitablebackup is available. After a short delay, a message is displayedindicating that the upload has been completed and the Edge Gatewayrequires a restart

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 249: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 249/279

16.5.1.2 Step 2: Uploading the server certificate from a file into the Edge Gateway

To upload a server certificate for the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API from a file into theEdge Gateway, if the corresponding key file has already been uploaded,proceed as follows.Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.

If the server certificate applies to the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API:Ø Within window Certificates, select the entry cert.pem below nginx.

Alternatively: If the server certificate applies to the communication with theOPC UA-Server:Ø Within window Certificates, select the entry cert.pem below opcua.Ê In both cases, the window Certificate Viewer now displays the data of

cert.pem.Ø Click at button Uploadin the header of window Certificates.Ê A file selection dialog appears:Ø Within that dialog, select the certificate file to be uploaded! This file

must be present in the*.pem file format [} page 238].Ê The certificate file is checked for correctness.In case of error, a

message appears indicating a defective file type and further processingof the certificate file is terminated. For instance, this occurs if the filedoes not have the extension *.pem or the contents of the file is notcoded in *.pem format. In case of success a security query appearswhether you really intend to replace the key file.

Ø If you are really sure not to need the current certificate file any longer,click at Yes.

ð If this check is passed, the selected file is uploaded into the EdgeGateway. During this, the formerly existing certificate within the EdgeGateway is irreversibly destroyed. Thus, there is no possibility to restorethis certificate if no suitable backup is available. After a short delay , amessage is displayed indicating that the upload has been completedand the Edge Gateway requires a restart

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 250: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 250/279

16.5.2 Working with certificates for HTTPS and OPC UA Server

16.5.2.1 Uploading the server certificate from a file into the Edge Gateway

As described above, it should usually not be necessary to upload a servercertificate without a corresponding key file. If you nevertheless require thisfunctionality:

To upload a server certificate for the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API from a file into theEdge Gateway, proceed exactly as described in section Step 2: Uploadingthe server certificate from a file into the Edge Gateway [} page 249]beschrieben.

16.5.2.2 Downloading the server certificate from the Edge Gateway into a file

To download a server certificate for the communication with the HTTPSserver nginx, Node-RED, the Edge Server or the REST API from the EdgeGateway into a file, proceed as follows.Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.

If the server certificate applies to the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API:Ø Within window Certificates, select the entry cert.pem below nginx.

Alternatively: If the server certificate applies to the communication with theOPC UA-Server:Ø Within window Certificates, select the entry cert.pem below opcua.Ê In both cases, the window Certificate Viewer now displays the data of

cert.pem.Ø Click at button Download in the header of window Certificates.Ê A dialog box depending on the browser of your choice is displayed and

asks you whether the file should be opened or stored.Ø Select Save and then click on OK.ð The file is stored in *.pem [} page 238] format.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 251: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 251/279

16.5.2.3 Removing a server certificate from the Edge Gateway

To remove a server certificate from the Edge Gateway, proceed as follows.Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.

If the server certificate applies to the communication with the HTTPS servernginx, Node-RED, the Edge Server or the REST API:Ø Within window Certificates, select the entry cert.pem below nginx.

Alternatively: If the server certificate applies to the communication with theOPC UA-Server:Ø Within window Certificates, select the entry cert.pem below opcua.Ê In both cases, the window Certificate Viewer now displays the data of

cert.pem.Ø Click at button Delete in the header of window CertificatesÊ A security query whether you really intend to delete the server

certificate file Cert.pem is displayed.Ø If you are really sure not to need the currently stored certificate any

longer, click at Yes.ð The selected file is removed from the Edge Gateway.

Note:If a server certificate related to a specific service (for instance OPCUA Server), is removed, then the affected service will not beavailable until an according certificate is uploaded to the sameposition within the tree structure as that of the removed certificate.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 252: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 252/279

16.5.3 Working with key files for HTTPS and OPC UA Server

16.5.3.1 Uploading a key file for a server certificate into the Edge Gateway

As described above, it should usually not be necessary to upload a key filebelonging to a server certificate without the corresponding server certificateitself. If you nevertheless require this functionality:

To upload a key file into the Edge Gateway, proceed as described insection Step 1: Uploading a key file belonging to a server certificate into theEdge Gateway [} page 248].

16.5.3.2 Removing a key file for a server certificate on the Edge Gateway

To remove a key file corresponding to a server certificate on the EdgeGateway, proceed as follows.Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.

If the server certificate corresponding to the key file applies to thecommunication with the HTTPS server nginx, Node-RED, the Edge Serveror the REST API:Ø Within window Certificates, select the entry key.pem below nginx.

Alternatively: If the server certificate corresponding to the key file applies tothe communication with the OPC UA-Server:Ø Within window Certificates, select the entry key.pem below opcua.Ê In both cases, the window Certificate Viewer is empty now (Text No

data).Ø Click at button Delete in the header of window Certificates.Ê A confirmation prompt whether you really intend to delete the key file

key.pem corresponding to the server certificate, is displayed.Ø If you are really sure not to need the current key file any longer, click at

Yes.ð The key file is removed from the Edge Gateways.

Note:If a server certificate related to a specific service such as OPC UAClient or Server, is removed, then the affected service will not beavailable until an according key for this certificate is uploaded to thesame position within the tree structure as that of the formerlyremoved key.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 253: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 253/279

16.6 Working with client authentication certificates for outboundconnections

For outbound connections, client authentication certificates can be storedwithin the Edge Gateway, as described in Use case 3: Client certificates forspecific servers [} page 242].

Here, a 1:n relation between server and client applies (i.e. per client onecertificate and one corresponding key is stored for each server to which asecure connection shall be established).

In this context, the following actions can be performed for a specific server:1. Uploading of a pair of client authentication certificate and corresponding

key file from *.pem [} page 238] files into the Edge Gateway2. Download of a client authentication certificate from the Edge Gateway

into a *.pem [} page 238] file3. Removing a certificate for client authentication for a specific server on

the Edge Gateway4. Copying the path to a certificate for client authentication for a specific

server on the Edge Gateway5. Downloading a key file for client authentication for a specific server from

the Edge Gateway6. Removing a key file for client authentication for a specific server on the

Edge Gateway7. Copying the path to a key file for client authentication for a specific

server for further use within Node-RED on the Edge Gateway

Note:The certificate (containing the public key) and the private key arestored in two separated files and uploaded individually into the EdgeGateway. As the user, you are solely responsible that the file withthe certificate matches with the file containing the private key, whichyou have uploaded into the Edge gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 254: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 254/279

16.6.1 Uploading a pair of certificate and corresponding key file for clientauthentication

As certificates and the corresponding private keys are logically connectedvery tightly and must always be uploaded or changed together, uploadingof an entire certificate-key-pair is described here within a single stepdescription consisting of two separate consecutive steps of work.Nevertheless, uploading both of these separately is possible, but does notmake very much sense.

Note:Always take care of the order and upload the private key file node-opcuaclient_key.pem first and then the certificate file node-opcuaclient_cert.pem into the Edge Gateway as describedbelow. This execution sequence is necessary as a check whethercertificate and key match is performed every time a certificate file isuploaded and the key must be present, when this check takesplace.

Note:For the changes to become effective, it is necessary to reboot theEdge Gateway consequently if you upload a certificate for clientauthentication from a file into the Edge Gateway.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 255: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 255/279

16.6.1.1 Step 1: Uploading a key file for client authentication for a specific server intothe Edge Gateway

To upload a key file for client authorization for a specific server from a fileinto the Edge Gateway, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates, select the entry node-

opcuaclient_key.pem below node-red.Ê The window Certificate Viewer is empty now (Text No data).Ø Click at button Upload in the header of window Certificates.Ê A file selection dialog appears.Ø Within that dialog, select the key file to be uploaded! This file must be

present in the *.pem file format [} page 238].Ê The key file is checked for correctness. In case of error, a message

indicating a defective file type is displayed and further processing of thekey file is terminated. For instance, this occurs if the file does not havethe extension *.pemor the contents of the file is not coded in *.pemformat. However, in case of success a confirmation prompt whether youreally intend to replace the key file is displayed.

Ø If you are really sure not to need the currently stored key file any longer,click at Yes.

ð The selected key file is uploaded into the Edge Gateway. During this,the formerly existing key within the Edge Gateway is irreversiblydestroyed. Thus, there is no possibility to restore this key if no suitablebackup is available. A message is displayed indicating that the uploadhas been completed and the Edge Gateway requires a restart.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 256: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 256/279

16.6.1.2 Step 2: Uploading a certificate for client authentication for a specific server onthe Edge Gateway

To upload a certificate for client authentication for a specific server from afile into the Edge Gateway, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates, select the entry node-

opcuaclient_cert.pem below node-red.Ê The window Certificate Viewer now shows the data of node-

opcuaclient_cert.pem.Ø Click at button Upload in the header of window Certificates.Ê A file selection dialog appears.Ø Within that dialog, select the certificate file to be uploaded! This file

must be present in the *.pem file format [} page 238].Ê The certificate file is checked for correctness .In case of error, a

message appears indicating a defective file type and further processingof the certificate file is terminated. For instance, this occurs if the filedoes not have the extension *.pem or the contents of the file is notcoded in *.pem format. However, in case of success, a security queryappears whether you really intend to replace the certificate file.

Ø If you are really sure not to need the current certificate file any longer,click at Yes.

Ê The selected file is checked for matching the stored key file. In case oferror, a message indicating that the certificate does not match with theprivate key is displayed.

ð If this check is passed, the selected file is uploaded into the EdgeGateway. During this, the former certificate file is irreversiblyoverwritten.Thus, there is no possibility to recover this file if there is nosuitable backup available. A message is displayed and informs you, thatuploading has been completed and the Edge Gateway requires arestart.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 257: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 257/279

16.6.2 Working with certificates for client authentication

16.6.2.1 Uploading a certificate for client authentication for a specific server into theEdge Gateway

As described above, it should usually not be necessary to upload acertificate for client authentication for a specific server without thecorresponding key file. If you nevertheless should require this functionality:

To upload a certificate for client authentication for a specific server from afile into the Edge Gateway, proceed as described in section Step 2:Uploading a certificate for client authentication for a specific server on theEdge Gateway [} page 256].

16.6.2.2 Downloading a certificate for client authentication for a specific server fromthe Edge Gateway

To download a certificate for client authentication for a specific server fromthe Edge Gateway into a file, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates, select the entry node-

opcuaclient_cert.pem below node-red.Ê The window Certificate Viewer now shows the data of node-

opcuaclient_cert.pem.Ø Click at button Download in the header of window Certificates.Ê A dialog box depending on the browser of your choice is displayed and

asks you whether the file should be opened or stored.Ø Select Save and then click on OK.ð The file is stored in *.pem [} page 238] format.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 258: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 258/279

16.6.2.3 Removing a certificate for client authentication for a specific server on theEdge Gateway

To remove a certificate for client authorization for a specific server from theEdge Gateway, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø Select option Service certificates from the selection list (Selection list for

certificate type).Ø Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates select the entry node-

opcuaclient_cert.pem below node-red.Ê The window Certificate Viewer now shows the data of node-

opcuaclient_cert.pem.Ø Click at button Delete in the header of window Certificates.Ê A confirmation prompt is displayed whether you really intend to delete

the certificate file node-opcuaclient_cert.pem.Ø If you are really sure not to need the currently stored certificate any

longer, click at Yes.ð The selected certificate file is removed from the Edge Gateway.

Note:If a certificate related to a specific service such as OPC UA Client orServer, is removed, then the affected service will not be availableuntil an according certificate is uploaded to the same position withinthe tree structure as that of the removed certificate.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 259: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 259/279

16.6.2.4 Copying the path to a certificate for client authentication for a specific serveron the Edge Gateway

To copy the path to the certificate for client authentication for a specificserver, proceed as follows:Ø Select option Service Certificates from the selection list (Selection list

for certificate type [} page 78]).Ø Within window Certificates, a tree structure is displayed instead of the

list of preinstalled certificates.Ø In window Certificates, select the entry node-

opcuaclient_cert.pem below node-red.Ê The window Certificate Viewer now shows the data of node-

opcuaclient_cert.pem.Ø Click at button Copy path in the header of window Certificate Viewer.ð The path is now copied into the Windows clipboard. You can use it

within Node-RED to open and configure the corresponding elementwithin Node-RED.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 260: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 260/279

16.6.3 Working with key files for client authentication

16.6.3.1 Uploading a key file for client authentication for a specific server into theEdge Gateway

As described above, it should usually not be necessary to upload a keycorresponding to a certificate for client authentication for a specific serverwithout the corresponding certificate. If you nevertheless require thisfunctionality:

To upload a key file for client authentication for a specific server from a fileinto the Edge Gateway, proceed as described in section Step 1: Uploadinga key file for client authentication for a specific server into the EdgeGateway [} page 255].

16.6.3.2 Downloading a key file for client authentication for a specific server from theEdge Gateway

To download a key file for client authentication for a specific server from theEdge Gateway into a file, proceed as follows.:Ø Select option Service certificates within selection list (Selection list for

certificate typ [} page 78]e).Ê In window Certificates, a tree structure is displayed.Ø In window Certificates, select the entry node-

opcuaclient_key.pem below node-redÊ The window Certificate Viewer now shows the data of node-

opcuaclient_key.pem.Ø Click at button Download in the header of window Certificates.Ê A dialog box depending on the browser of your choice is displayed and

asks you whether the file should be opened or stored.Ø Select Save and then click on OK.ð The file is stored in *.pem [} page 238] format.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 261: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 261/279

16.6.3.3 Removing a key file for client authentication for a specific server on the EdgeGateway

To remove a key file for client authentication for a specific server from theEdge Gateway, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates, select the entry node-

opcuaclient_key.pem below node-red.Ê The window Certificate Viewer now shows the data of node-

opcuaclient_key.pem.Ø Click at button Delete in the header of window Certificates.Ê A confirmation prompt whether you really intend to delete the key file

node-opcuaclient_key.pem is displayed.Ø If you are really sure not to need the current key file any longer, click at

Yes.ð The key file is removed from the Edge Gateway.

Note:If a key file related to a specific service such as OPC UA Client orServer is removed, then the affected service will not be availableuntil an according key for this certificate is uploaded to the sameposition within the tree structure as that of the formerly removedkey.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 262: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Public Key Infrastructure 262/279

16.6.3.4 Copying the path to a key file for client authentication for a specific server onthe Edge Gateway

You might need the path to the certificate for client authentication for aspecific server later on within Node-RED in order to open and configure thecorresponding element.

To copy the path to a key file for client authentication for a specific serverfrom the Edge Gateway into a file, proceed as follows:Ø Select option Service certificates within selection list (Selection list for

certificate type [} page 78]).Ê Within window Certificates, a tree structure is displayed instead of the

list of preinstalled trustworthy certificates.Ø In window Certificates, select the entry node-

opcuaclient_key.pem below node-red.Ê The window Certificate Viewer is empty now (Text No data).Ø Click at button Copy path in the header of window Certificate Viewer.ð The path to the key file is now copied into Windows clipboard. You can

use it within Node-RED to open and configure the corresponding Node-RED element.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 263: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Technical data 263/279

17 Technical data

17.1 Technical Data NIOT-E-TIB100-GB-RENIOT-E-TIB100-GB-RE Parameter ValueProduct Part number 1321.200

Application For demanding IoT applications with larger quantityscale. Sufficient performance reserve for futureapplication expansions. Node-RED as basis, nativecloud connectors* as option.

Functions Services for IoT data mining anddistribution

Node-RED: MQTT Broker/Client, OPC UA Client, serial

Data connection, processing andcloud connectivity

Node-RED, IBM Watson, Azure IoT Hub, native cloudconnectors*

Web services (REST) OT network scan, diagnostics, device statusSecurity Booting Booting of signed software

Access HTTPS, TLSProcessors CPU 1.33 GHz Atom®, Intel® E3805Software Operating system Security Enhanced Linuxmemory RAM 2 GB DDR3 RAM

Flash memory 16 GB eMMC Flash memory8 GB application8 GB backup

Power Voltage 12 V DC ± 2.4 V DC or 24 V DC ± 4.8 V DCCurrent (at 24 V DC) 750 mAPower of the used power supplyunit

18 W

Connector 3-pin terminal blockIT interface Interface type 2 x 10/100/1000 Mbit, Intel® I210AT

LAN connector 2 x RJ45 socketOT interface OT network PROFINET IO-Device, EtherNet/IP Adapter

In listening mode: PROFINET, EtherCAT, EthernetInterface type 10BASE-T/100BASE-TX, potential free, Hilscher netX

100Connector 2 x RJ45 socket

Interfaces USB 1 x USB 2.0 (500 mA) 1 x USB 3.0 (900 mA)

Wi-Fi 802.11n (Option \WF only), flexible antenna connectionSerial interface 1 x RS-232/485 (can be configured)Display connection -

Display LED display 8 LEDsReal-time clock Buffering yes, battery (service interval 10 years)Environment Ambient temperature range for

operation-20°C ... +65°C with air flow

Ambient temperature range forstorage

-20°C ... +80°C

Humidity range 10 % … 95 % relative humidity (non-condensing)Device Dimensions 120 mm (H) x 63 mm (W) x 106 mm (D), without

antennaWeight 600 gHousing MetalMounting top hat railFan fanless

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 264: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Technical data 264/279

NIOT-E-TIB100-GB-RE Parameter ValueConformity RoHS YesConformance with EMCdirectives

CE sign Yes

Shock and vibrationresistance

Shock resistance 50 G, half sine, 11 ms, IEC 60068-2-27Vibration resistance Random: 2 Grms @ 5~500 Hz, IEC 60068-2-64

Sinusoidal: 2 Grms @ 5~500 Hz, IEC 60068-2-64* usable with netIOT service product only (NIOT-S-LIC-xxx)

Table 86: Techncal data NIOT-E-TIB100-GB-RE

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 265: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Technical data 265/279

17.2 Technical data PROFINET IO DeviceParameter DescriptionMaximum number of cyclic input data 1440 BytesMaximum number of cyclic output data 1440 BytesMaximum number of submodules 255 submodules per Application Relation at the same time, 1000

submodules can be configuredMultiple Application Relations (AR) The Stack can handle up to 2 IO-ARs, one Supervisor AR and one

Supervisor-DA AR at the same time.Supported protocols RTC – Real Time Cyclic Protocol, Class 1 (unsynchronized), Class 3

(synchronized)RTA – Real Time Acyclic ProtocolDCP – Discovery and configuration ProtocolCL-RPC – Connectionless Remote Procedure CallLLDP – Link Layer Discovery ProtocolSNMP – Simple Network Management ProtocolMRP – MRP Client

Topology recognition LLDP, SNMP V1, MIB2, physical deviceIdentification & Maintenance Read and write of I&M1-4Minimum cycle time 1 ms for RT_CLASS_1

250 µs for RT_CLASS_3IRT Support RT_CLASS_3Media redundancy MRP client is supportedAdditional features DCP, VLAN- and priority-tagging, Shared DeviceBaud rate 100 MBit/sData transport layer Ethernet II, IEEE 802.3PROFINET IO specification V2.2 (legacy startup) and V2.3 (but advanced startup only for RT) are

supported.Limitations RT over UDP not supported.

Multicast communication not supported.DHCP is not supported.FastStartUp is not supported.The amount of configured IO-data influences the minimum cycle time thatcan be reached.Only 1 Input-CR and 1 Output-CR are supported.Using little endian (LSB-MSB) byte order for cyclic process data instead ofdefault big endian (MSB-LSB) byte order may have a negative impact onminimum reachable cycle time.System Redundancy (SR-AR) and Configuration-in-Run (CiR) are notsupported.Max. 255 submodules can be used simultaneously within one specificApplication Relation.Advanced Startup according Profinet specification V2.3 is NOT yet supportedfor IRT.As there is no official certification available for Profinet IO specification V2.3at the time of release of the stack there is no guarantee that thisimplementation will pass such a certification once it is available.

Reference to stack version V3.9Table 87: Technical data PROFINET IO RT IRT Device Protocol

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 266: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Technical data 266/279

17.3 Technical data EtherNet/IP AdapterParameter DescriptionMaximum number of input data 504 bytesMaximum number of output data 504 bytesI/O Connection (implicit) 1 Exclusive Owner, 1 Listen Only, 1 Input onlyI/O Connection type 'Cyclic’, minimal 1 ms*

* depending on number of connections and number of input and output dataused

UCMM SupportedPredefined standard objects Identity-Objekt

, Message-Router-Objekt, Assembly-Objekt, Connection-Manager-Objekt, Ethernet-Link-Objekt, TCP/IP-Objekt

Topology Tree, Line, RingDLR (Device Level Ring) Beacon based ’Ring Node’ACD (Address Conflict Detection) SupportedDHCP SupportedBOOTP SupportedBaud rate 10 and 100 MBit/sData transport layer Ethernet II, IEEE 802.3Switch function Supportedintegrated Quick Connect not supported.

The Edge Gateway is designed for cyclic data exchange. Acycliccommunication for user data transfer can not be used.CIP Sync Services are not implemented.TAGs are not supported.

Reference to stack version V2.10Table 88: Technical data EtherNet/IP Adapter protocol

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 267: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Decommissioning, dismounting and disposal 267/279

18 Decommissioning, dismounting and disposal

18.1 Putting the device out of operation

Danger of Unsafe System Operation!To prevent personal injury or property damage, make sure that the removalof the device from your plant during operation will not affect the safeoperation of the plant.Ø Disconnect all communication cables from the device.Ø Disconnect the power supply plug.Ø Remove the device from the DIN top hat rail. .

18.2 Removing device from top hat railØ Before dismounting the Edge Gateway from the top hat rail, first remove

the power supply cable and all data cables from the device.Ø Put a screw driver into the slot of the latch at the bottom of the device.Ø To disengage the lock of the hook, pull down the latch with the screw

driver.Ø Take the device off the top hat rail.

18.3 Removal of batteryPrior to the disposal of the Edge Gateway, you have to remove the batteryfor buffering the real-time-clock and to dispose it properly according to theapplicable rules. To do so, follow the instructions for removing the battery insection Exchange of backup battery [} page 15].

18.4 Disposal of waste electronic equipmentImportant notes from the European Directive 2012/16/EU “Waste Electricaland Electronic Equipment (WEEE)”

Waste electronic equipmentArt und Quelle der GefahrThis product must not be treated as household waste.This product must be disposed of at a designated waste electronicequipment collecting point.

Waste electronic equipment may not be disposed of as household waste.As a consumer, you are legally obliged to dispose of all waste electronicequipment according to national and local regulations.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 268: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Appendix 268/279

19 Appendix

19.1 Legal notes

Copyright

© Hilscher Gesellschaft für Systemautomation mbH

All rights reserved.

The images, photographs and texts in the accompanying materials (in theform of a user's manual, operator's manual, Statement of Work documentand all other document types, support texts, documentation, etc.) areprotected by German and international copyright and by international tradeand protective provisions. Without the prior written consent, you do nothave permission to duplicate them either in full or in part using technical ormechanical methods (print, photocopy or any other method), to edit themusing electronic systems or to transfer them. You are not permitted to makechanges to copyright notices, markings, trademarks or ownershipdeclarations. Illustrations are provided without taking the patent situationinto account. Any company names and product designations provided inthis document may be brands or trademarks by the corresponding ownerand may be protected under trademark, brand or patent law. Any form offurther use shall require the express consent from the relevant owner of therights.

Important notes

Utmost care was/is given in the preparation of the documentation at handconsisting of a user's manual, operating manual and any other documenttype and accompanying texts. However, errors cannot be ruled out.Therefore, we cannot assume any guarantee or legal responsibility forerroneous information or liability of any kind. You are hereby made awarethat descriptions found in the user's manual, the accompanying texts andthe documentation neither represent a guarantee nor any indication onproper use as stipulated in the agreement or a promised attribute. It cannotbe ruled out that the user's manual, the accompanying texts and thedocumentation do not completely match the described attributes, standardsor any other data for the delivered product. A warranty or guarantee withrespect to the correctness or accuracy of the information is not assumed.

We reserve the right to modify our products and the specifications for suchas well as the corresponding documentation in the form of a user's manual,operating manual and/or any other document types and accompanyingtexts at any time and without notice without being required to notify of saidmodification. Changes shall be taken into account in future manuals and donot represent an obligation of any kind, in particular there shall be no rightto have delivered documents revised. The manual delivered with theproduct shall apply.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 269: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Appendix 269/279

Under no circumstances shall Hilscher Gesellschaft für SystemautomationmbH be liable for direct, indirect, ancillary or subsequent damage, or forany loss of income, which may arise after use of the information containedherein.

Liability disclaimer

The hardware and/or software was created and tested by HilscherGesellschaft für Systemautomation mbH with utmost care and is madeavailable as is. No warranty can be assumed for the performance orflawlessness of the hardware and/or software under all applicationconditions and scenarios and the work results achieved by the user whenusing the hardware and/or software. Liability for any damage that may haveoccurred as a result of using the hardware and/or software or thecorresponding documents shall be limited to an event involving willful intentor a grossly negligent violation of a fundamental contractual obligation.However, the right to assert damages due to a violation of a fundamentalcontractual obligation shall be limited to contract-typical foreseeabledamage.

It is hereby expressly agreed upon in particular that any use or utilization ofthe hardware and/or software in connection with· Flight control systems in aviation and aerospace;· Nuclear fusion processes in nuclear power plants;· Medical devices used for life support and· Vehicle control systems used in passenger transport

shall be excluded. Use of the hardware and/or software in any of thefollowing areas is strictly prohibited:· For military purposes or in weaponry;· For designing, engineering, maintaining or operating nuclear systems;· In flight safety systems, aviation and flight telecommunications systems;· In life-support systems;· In systems in which any malfunction in the hardware and/or software

may result in physical injuries or fatalities.

You are hereby made aware that the hardware and/or software was notcreated for use in hazardous environments, which require fail-safe controlmechanisms. Use of the hardware and/or software in this kind ofenvironment shall be at your own risk; any liability for damage or loss dueto impermissible use shall be excluded.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 270: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Appendix 270/279

Warranty

Hilscher Gesellschaft für Systemautomation mbH hereby guarantees thatthe software shall run without errors in accordance with the requirementslisted in the specifications and that there were no defects on the date ofacceptance. The warranty period shall be 12 months commencing as of thedate of acceptance or purchase (with express declaration or implied, bycustomer's conclusive behavior, e.g. putting into operation permanently).

The warranty obligation for equipment (hardware) we produce is 36months, calculated as of the date of delivery ex works. The aforementionedprovisions shall not apply if longer warranty periods are mandatory by lawpursuant to Section 438 (1.2) BGB, Section 479 (1) BGB and Section 634a(1) BGB [Bürgerliches Gesetzbuch; German Civil Code] If, despite of alldue care taken, the delivered product should have a defect, which alreadyexisted at the time of the transfer of risk, it shall be at our discretion toeither repair the product or to deliver a replacement product, subject totimely notification of defect.

The warranty obligation shall not apply if the notification of defect is notasserted promptly, if the purchaser or third party has tampered with theproducts, if the defect is the result of natural wear, was caused byunfavorable operating conditions or is due to violations against ouroperating regulations or against rules of good electrical engineeringpractice, or if our request to return the defective object is not promptlycomplied with.

Costs of support, maintenance, customization and product care

Please be advised that any subsequent improvement shall only be free ofcharge if a defect is found. Any form of technical support, maintenance andcustomization is not a warranty service, but instead shall be charged extra.

Additional guarantees

Although the hardware and software was developed and tested in-depthwith greatest care, Hilscher Gesellschaft für Systemautomation mbH shallnot assume any guarantee for the suitability thereof for any purpose thatwas not confirmed in writing. No guarantee can be granted whereby thehardware and software satisfies your requirements, or the use of thehardware and/or software is uninterruptable or the hardware and/orsoftware is fault-free.

It cannot be guaranteed that patents and/or ownership privileges have notbeen infringed upon or violated or that the products are free from third-partyinfluence. No additional guarantees or promises shall be made as towhether the product is market current, free from deficiency in title, or can beintegrated or is usable for specific purposes, unless such guarantees orpromises are required under existing law and cannot be restricted.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 271: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Appendix 271/279

Confidentiality

The customer hereby expressly acknowledges that this document containstrade secrets, information protected by copyright and other patent andownership privileges as well as any related rights of Hilscher Gesellschaftfür Systemautomation mbH. The customer agrees to treat as confidential allof the information made available to customer by Hilscher Gesellschaft fürSystemautomation mbH and rights, which were disclosed by HilscherGesellschaft für Systemautomation mbH and that were made accessible aswell as the terms and conditions of this agreement itself.

The parties hereby agree to one another that the information that eachparty receives from the other party respectively is and shall remain theintellectual property of said other party, unless provided for otherwise in acontractual agreement.

The customer must not allow any third party to become knowledgeable ofthis expertise and shall only provide knowledge thereof to authorized usersas appropriate and necessary. Companies associated with the customershall not be deemed third parties. The customer must obligate authorizedusers to confidentiality. The customer should only use the confidentialinformation in connection with the performances specified in thisagreement.

The customer must not use this confidential information to his ownadvantage or for his own purposes or rather to the advantage or for thepurpose of a third party, nor must it be used for commercial purposes andthis confidential information must only be used to the extent provided for inthis agreement or otherwise to the extent as expressly authorized by thedisclosing party in written form. The customer has the right, subject to theobligation to confidentiality, to disclose the terms and conditions of thisagreement directly to his legal and financial consultants as would berequired for the customer's normal business operation.

Export provisions

The delivered product (including technical data) is subject to the legalexport and/or import laws as well as any associated regulations of variouscountries, especially such laws applicable in Germany and in the UnitedStates. The products / hardware / software must not be exported into suchcountries for which export is prohibited under US American export controllaws and its supplementary provisions. You hereby agree to strictly followthe regulations and to yourself be responsible for observing them. You arehereby made aware that you may be required to obtain governmentalapproval to export, reexport or import the product.

Terms and conditions

Please read the notes about additional legal aspects on our netIOT website under http://www.netiot.com/netiot/netiot-edge/terms-and-conditions/.

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 272: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of figures 272/279

List of figuresFigure 1: Edge Gateway communication structure.............................................................. 8Figure 2: Positions of the interfaces of NIOT-E-TIB100-GB-RE.......................................... 9Figure 3: Dimensions........................................................................................................... 11Figure 4: LED label .............................................................................................................. 12Figure 5: Position of battery compartment on the upper side of the Edge Gateway NIOT-

E-TIB100-GB-RE.................................................................................................. 15Figure 6: NIOT-E-TIB100-GB-RE LED positions................................................................. 17Figure 7: Default settings of the Ethernet network connectors ............................................ 22Figure 8: Device label: Hostname........................................................................................ 24Figure 9: netIOT Edge Gateway in the Windows network ................................................... 25Figure 10: Edge Gateway Manager....................................................................................... 26Figure 11: Edge Gateway Manager - Setting the administrator password ............................ 30Figure 12: Security error message of the Internet Explorer................................................... 32Figure 13: Security error message of the Firefox browser (1) ............................................... 32Figure 14: Security error message of the Firefox browser (2) ............................................... 32Figure 15: Firefox dialog box: Adding exceptional safety rule ............................................... 33Figure 16: Security error message of Google Chrome (1)..................................................... 34Figure 17: Security error message of Google Chrome (2)..................................................... 34Figure 18: Main menu of the Control Panel ........................................................................... 35Figure 19: Page Info Center .................................................................................................. 37Figure 20: License Manager with license for the passive mode of operation ........................ 38Figure 21: License information in window Details.................................................................. 39Figure 22: Message after the transfer of the license file into the Edge Gateway .................. 41Figure 23: Control Panel, page System > Syslog.................................................................. 42Figure 24: Time configuration page ....................................................................................... 46Figure 25: Backup and recovery............................................................................................ 49Figure 26: Warning message................................................................................................. 50Figure 27: Backup in progress............................................................................................... 50Figure 28: Backup and recovery............................................................................................ 51Figure 29: Recovery dialog.................................................................................................... 52Figure 30: Security query prior to system recovery from internal backup file ........................ 52Figure 31: Backup and recovery............................................................................................ 53Figure 32: Recovery dialog (external source)........................................................................ 54Figure 33: Message prior to starting recovery from external backup..................................... 54Figure 34: Backup and restore when backup file is present .................................................. 55Figure 35: Safety query before deletion of local backup........................................................ 55Figure 36: Backup and Restore ............................................................................................. 56Figure 37: Reboot safety query ............................................................................................. 56Figure 38: Warning for consequences of shutdown .............................................................. 57Figure 39: Default LAN configuration..................................................................................... 59

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 273: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of figures 273/279

Figure 40: LAN configuration (cifx0 activated)....................................................................... 61Figure 41: Wi-Fi (default setting) ........................................................................................... 62Figure 42: Wi-Fi modes of operation in selection list Mode ................................................... 63Figure 43: Wi-Fi operating mode: Access point..................................................................... 64Figure 44: Wi-Fi operating mode: Client ................................................................................ 65Figure 45: Hostname ............................................................................................................. 69Figure 46: List of default services .......................................................................................... 70Figure 47: OPC-UA Server for Edge settings within the Control Panel, page

Network>Field....................................................................................................... 71Figure 48: Page for configuring roles..................................................................................... 74Figure 49: User account page ............................................................................................... 76Figure 50: Public Key Infrastructure for managing of certificates .......................................... 77Figure 51: Certificate type selection list ................................................................................. 78Figure 52: Certificate Viewer ................................................................................................. 79Figure 53: Info page............................................................................................................... 80Figure 54: User profile page .................................................................................................. 80Figure 55: Dialog "Edit user account" .................................................................................... 81Figure 56: Comparison of the physical and logic view........................................................... 83Figure 57: Wiring the nodes................................................................................................... 83Figure 58: Node-RED workspace .......................................................................................... 85Figure 59: Node-RED user interface ..................................................................................... 86Figure 60: Node ..................................................................................................................... 87Figure 61: Menu Deploy ........................................................................................................ 91Figure 62: Dialog "Edit dashboard tab node"......................................................................... 96Figure 63: Dialog "Edit dashboard tab node"......................................................................... 97Figure 64: Dialog "Edit dashboard tab node"......................................................................... 98Figure 65: Dialog "Edit dashboard tab node"......................................................................... 99Figure 66: Dialog "Edit link node" .......................................................................................... 101Figure 67: Dialog "Edit link node" .......................................................................................... 102Figure 68: MQTT input node.................................................................................................. 106Figure 69: Dialog box Edit MQTT in node ............................................................................. 106Figure 70: Dialog box MQTT broker config node – tab Connection ...................................... 107Figure 71: Dialog box MQTT broker config node - tab Security ............................................ 108Figure 72: Dialog box MQTT broker config node - tab Birth Message .................................. 109Figure 73: Dialog box MQTT broker config node - tab Will Message .................................... 110Figure 74: MQTT output node ............................................................................................... 111Figure 75: Dialog box Edit MQTT out node ........................................................................... 111Figure 76: OPC UA input node .............................................................................................. 113Figure 77: Dialog box Edit OPC UA in node – tab Home ...................................................... 113Figure 78: OPC UA output node with currently operational OPC UA Cconnection ............... 114Figure 79: Dialog box „Add new opcua config config node“ .................................................. 115Figure 80: Dialog box „Edit opcua in node“ – Tab Home....................................................... 116

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 274: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of figures 274/279

Figure 81: Dialog box Edit OPC UA in node – tab Browse.................................................... 117Figure 82: Options of the selection list Payload..................................................................... 118Figure 83: OPC UA in - custom payload................................................................................ 118Figure 84: Dialog box Edit OPC UA in node – Tab Mode - Polling........................................ 119Figure 85: Options of the list Repeat ..................................................................................... 119Figure 86: Dialog Box Edit OPC UA in node – tab Mode - Subscribe ................................... 120Figure 87: OPC UA output node............................................................................................ 122Figure 88: Dialog box Edit OPC UA output node – Tab Home.............................................. 122Figure 89: OPC UA output node with currently operational OPC UA Cconnection ............... 123Figure 90: Dialog box „Add new opcua config config node“ .................................................. 124Figure 91: Dialog box Edit OPC UA out node – Tab Browse ................................................ 125Figure 92: MQTT input node.................................................................................................. 128Figure 93: MQTT output node ............................................................................................... 132Figure 94: OPC UA input node .............................................................................................. 136Figure 95: Add a new client ................................................................................................... 137Figure 96: Selection list Transfer: After selection of Polling mode ........................................ 141Figure 97: Selection list Transfer: After selection of the repetition interval............................ 141Figure 98: OPC UA output node............................................................................................ 144Figure 99: Fieldbus input node .............................................................................................. 152Figure 100: Message of the fieldbus input node (without error) .............................................. 158Figure 101: Message of the fieldbus input node (with error) ................................................... 159Figure 102: Fieldbus output node ............................................................................................ 160Figure 103: Edit dialog “Edit fieldbus in node” ......................................................................... 170Figure 104: Dialog box “Add new fieldbus interface config node” ........................................... 171Figure 105: Dialog box “Add new fieldbus interface config node” ........................................... 171Figure 106: PROFINET configuration...................................................................................... 172Figure 107: Available IO items (Example in figure: PROFINET) ............................................. 173Figure 108: IO items (Example: PROFINET)........................................................................... 173Figure 109: Dialog box “Add new fieldbus interface config node” ........................................... 175Figure 110: Error message – Firmware mismatch................................................................... 176Figure 111: Reconfigure interface ........................................................................................... 176Figure 112: Fieldbus node ....................................................................................................... 177Figure 113: Dialog Edit fieldbus in node .................................................................................. 177Figure 114: Dialog Edit fieldbus in node .................................................................................. 178Figure 115: Dialog “Edit fieldbus interface config node” .......................................................... 179Figure 116: Button Open fieldbus configurator ....................................................................... 179Figure 117: Start screen of the user interface for fieldbus configuration of the netIOT Edge

Gateway (the example in the figure shows PROFINET) ...................................... 180Figure 118: Dialog Edit fieldbus interface node ....................................................................... 181Figure 119: Error message – Firmware mismatch................................................................... 182Figure 120: Message box firmware already on board ............................................................. 183Figure 121: Warning: Consequences of reconfiguration ......................................................... 183

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 275: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of figures 275/279

Figure 122: PROFINET user interface..................................................................................... 185Figure 123: Note: Name of station........................................................................................... 188Figure 124: List of the possible input and output modules ...................................................... 189Figure 125: List of the configured input and output modules................................................... 189Figure 126: Selected IO item (module) for which you define signals....................................... 191Figure 127: List of the signal names of an IO item (module) ................................................... 191Figure 128: List of the configured input and output modules................................................... 194Figure 129: List of the send and receive signals ..................................................................... 198Figure 130: EtherNet/IP user interface .................................................................................... 200Figure 131: IP Settings ............................................................................................................ 203Figure 132: List of the possible send and receive assemblies ................................................ 205Figure 133: List of the configured send and receive assemblies............................................. 205Figure 134: Selected IO item (assembly) for which you define signals ................................... 206Figure 135: List of the signal names of an IO item (assembly)................................................ 207Figure 136: List of the configured send and receive assemblies............................................. 209Figure 137: List of the send and receive signals ..................................................................... 213Figure 138: Edge Server structure........................................................................................... 216Figure 139: Edge Server environment..................................................................................... 219Figure 140: Internal structure of the Edge Server.................................................................... 219Figure 141: netIOT Edge Server icon within the Edge Gateway Manager .............................. 220Figure 142: Edge Server Control Center ................................................................................. 221Figure 143: Server configuration ............................................................................................. 223Figure 144: Configuration of the scan settings ........................................................................ 224Figure 145: Correct configuration of the scan settings ............................................................ 225Figure 146: Scan protocol configuration .................................................................................. 226Figure 147: Tile Docker in the Edge Gateway Manager.......................................................... 230Figure 148: View of portainer.io dashboard............................................................................. 231Figure 149: Container list (portainer.io) ................................................................................... 231Figure 150: NGINX example - screen page "Create container" .............................................. 233Figure 151: Process of asymmetric encryption........................................................................ 235Figure 152: Use case 1: Verification of the authenticity of the communication partner

(Server)................................................................................................................. 239Figure 153: Use case 2: Server certificates for Edge Gateway services................................. 240

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 276: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of tables 276/279

List of tablesTable 1: List of revisions ....................................................................................................... 7Table 2: Positions of the interfaces of NIOT-E-TIB100-GB-RE ............................................ 10Table 3: Power supply connector ......................................................................................... 12Table 4: Parameters of the serial interface........................................................................... 14Table 5: RS-232 D-Sub ........................................................................................................ 14Table 6: RS-485 D-Sub ........................................................................................................ 14Table 7: Description of gateway status LEDs ....................................................................... 18Table 8: LEDs LAN interface ................................................................................................ 18Table 9: LED states for the PROFINET IO-Device protocol ................................................. 19Table 10: LED state definitions for the PROFINET IO-Device protocol.................................. 19Table 11: LED states for the EtherNet/IP Adapter protocol .................................................... 20Table 12: LED state definitions for the EtherNet/IP Adapter protocol..................................... 21Table 13: Starting applications with the Edge Gateway Manager .......................................... 27Table 14: Functional overview of the Control Panel ............................................................... 35Table 15: Info Center: Area System info................................................................................. 37Table 16: Info Center: Area Monitoring................................................................................... 38Table 17: Info Center: Area Temperature............................................................................... 38Table 18: Numeric coding of facility value in priority PRI........................................................ 43Table 19: Numeric coding of severity value in priority (PRI)................................................... 44Table 20: Assignment of parts of message line...................................................................... 45Table 21: Setting the system time .......................................................................................... 46Table 22: Table LAN: Meaning of the columns....................................................................... 60Table 23: Wi-Fi modes of operation in selection list Mode ..................................................... 63Table 24: Wi-Fi ....................................................................................................................... 63Table 25: Parameters of the operating mode Access point.................................................... 64Table 26: Parameters of the operating mode Client ............................................................... 66Table 27: Operating mode fieldbus interface.......................................................................... 68Table 28: Operating modes in the passive operating mode ................................................... 68Table 29: Operating statuses of the services ......................................................................... 70Table 30: Parameters of the OPC UA Server for Edge .......................................................... 72Table 31: Access rights onto resources.................................................................................. 75Table 32: Access rights to resources...................................................................................... 75Table 33: Node-RED user interface........................................................................................ 86Table 34: Node elements........................................................................................................ 87Table 35: Commands of menu Deploy ................................................................................... 91Table 36: Kinds of widgets for use in dashboards .................................................................. 93Table 37: Areas of the dashboard configuration..................................................................... 94Table 38: List of standard nodes ............................................................................................ 103Table 39: Parameter MQTT input node .................................................................................. 106Table 40: Parameters in the tab Connection .......................................................................... 107

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 277: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of tables 277/279

Table 41: Parameters in the tab Security ............................................................................... 108Table 42: Parameters in the tab Birth Message ..................................................................... 109Table 43: Parameters in the tab Will Message ....................................................................... 110Table 44: Parameters of the Edit MQTT out node.................................................................. 112Table 45: Tabs of dialog Edit opcua in node .......................................................................... 113Table 46: Configuration parameters of the dialog OPC UA in node ....................................... 114Table 47: Security policies and encryption methods - Parameter Security Policy.................. 115Table 48: Parameter Message Security Mode ....................................................................... 116Table 49: Controls in the area Authentication......................................................................... 116Table 50: Options of the payload list ...................................................................................... 118Table 51: OPC UA modes of operation .................................................................................. 118Table 52: Options of the list Repeat ....................................................................................... 119Table 53: Parameters in Subscription Settings....................................................................... 121Table 54: Tabs of dialog Edit OPC UA out node .................................................................... 122Table 55: Parameters of the configuration dialog Edit OPC UA out node .............................. 123Table 56: Security policies and encryption methods - Parameter Security Policy.................. 124Table 57: Parameter Message Security Mode ....................................................................... 124Table 58: Controls in the area Authentication......................................................................... 125Table 59: Standard procedure ................................................................................................ 168Table 60: Configuration steps................................................................................................. 169Table 61: PROFINET configuration user interface ................................................................. 185Table 62: PROFINET configuration tree................................................................................. 188Table 63: Contents of the table “IO items”.............................................................................. 189Table 64: Controls of the table “IO Items”............................................................................... 190Table 65: Contents of table „IO item“...................................................................................... 191Table 66: Contents of the table „Signals“ ............................................................................... 192Table 67: Controls of the table „Signals“ ................................................................................ 192Table 68: Data types for signal names ................................................................................... 193Table 69: Columns of the table of the send and receive signals ............................................ 198Table 70: EtherNet/IP configuration user interface................................................................. 200Table 71: EtherNet/IP configuration tree ................................................................................ 203Table 72: Parameters for setting the IP addresses ................................................................ 204Table 73: Contents of the table „IO items“.............................................................................. 205Table 74: Controls of the table „IO Items“............................................................................... 206Table 75: Contents of the table „IO items“.............................................................................. 206Table 76: Contents of the table „IO items“.............................................................................. 207Table 77: Controls of the table „Signals“ ................................................................................ 208Table 78: Data types for signal names ................................................................................... 208Table 79: Columns of the table of the send and receive signals ............................................ 213Table 80: Functions of the Edge Server ................................................................................ 218Table 81: Symbols for the state of operation in the service list .............................................. 221

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 278: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

List of tables 278/279

Table 82: Functions for working with containers..................................................................... 232Table 83: Attributes concerning the issuer and owner of the certificate zum Zertifikats-

Aussteller und Zertifikats-Inhaber .......................................................................... 236Table 84: Overview use cases................................................................................................ 239Table 85: Edge Gateway services .......................................................................................... 241Table 86: Techncal data NIOT-E-TIB100-GB-RE................................................................... 263Table 87: Technical data PROFINET IO RT IRT Device Protocol.......................................... 265Table 88: Technical data EtherNet/IP Adapter protocol ......................................................... 266

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018

Page 279: netIOT Edge Gateway - hilscher.com · 2019-03-25 · User manual netIOT Edge Gateway NIOT-E-TIB100-GB-RE (Remote) V1.1.2.1 Hilscher Gesellschaft für Systemautomation mbH DOC170501UM05EN

Contacts 279/279

Contacts

HEADQUARTERSGermanyHilscher Gesellschaft für Systemautomation mbH Rheinstrasse 15 65795 Hattersheim Phone: +49 (0) 6190 9907-0 Fax: +49 (0) 6190 9907-50 E-mail: [email protected]

SupportPhone: +49 (0) 6190 9907-99E-mail: [email protected]

SUBSIDIARIESChinaHilscher Systemautomation (Shanghai) Co. Ltd.200010 ShanghaiPhone: +86 (0) 21-6355-5161E-mail: [email protected]

SupportPhone: +86 (0) 21-6355-5161E-mail: [email protected]

FranceHilscher France S.a.r.l.69500 BronPhone: +33 (0) 4 72 37 98 40E-mail: [email protected]

SupportPhone: +33 (0) 4 72 37 98 40 E-mail: [email protected]

IndiaHilscher India Pvt. Ltd.Pune, Delhi, MumbaiPhone: +91 8888 750 777E-mail: [email protected]

ItalyHilscher Italia S.r.l.20090 Vimodrone (MI)Phone: +39 02 25007068E-mail: [email protected]

SupportPhone: +39 02 25007068E-mail: [email protected]

JapanHilscher Japan KKTokyo, 160-0022Phone: +81 (0) 3-5362-0521E-mail: [email protected]

SupportPhone: +81 (0) 3-5362-0521E-mail: [email protected]

KoreaHilscher Korea Inc.Seongnam, Gyeonggi, 463-400Phone: +82 (0) 31-789-3715E-mail: [email protected]

SwitzerlandHilscher Swiss GmbH 4500 SolothurnPhone: +41 (0) 32 623 6633E-mail: [email protected]

SupportPhone: +49 (0) 6190 9907-99E-mail: [email protected]

USAHilscher North America, Inc. Lisle, IL 60532Phone: +1 630-505-5301E-mail: [email protected]

SupportPhone: +1 630-505-5301E-mail: [email protected]

Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)DOC170501UM05EN | Revision 5 | English | 2018-10 | Released | Public

© Hilscher 2017 – 2018


Recommended