Manual Gateway E
Manual Gateway E
Manual Gateway E
General instructions.............................................................................................................................................................. 4
About INSEVIS...................................................................................................................................................................... 5
Product family S7-IIoT Gateways.......................................................................................................................................... 6
Technical data.................................................................................................................................................................. 8
Commissioning.............................................................................................................................................................. 10
Restore IP-address........................................................................................................................................................ 10
Restore password.......................................................................................................................................................... 11
Update firmware............................................................................................................................................................ 11
Example project............................................................................................................................................................. 12
Dashboard-Visualisation.......................................................................................................................................... 13
OPC UA-Server....................................................................................................................................................... 14
WebConfigurator................................................................................................................................................................. 18
System settings............................................................................................................................................................. 18
Date and time........................................................................................................................................................... 18
Network.................................................................................................................................................................... 19
Device...................................................................................................................................................................... 20
Backup & Update..................................................................................................................................................... 21
Connections................................................................................................................................................................... 23
S7-Connections....................................................................................................................................................... 23
Modbus-TCP............................................................................................................................................................ 24
Data points.................................................................................................................................................................... 25
S7-Data points......................................................................................................................................................... 25
Import of S7-Variables............................................................................................................................................. 26
Modbus-TCP............................................................................................................................................................ 27
OPC UA......................................................................................................................................................................... 28
Application............................................................................................................................................................... 28
Security.................................................................................................................................................................... 29
Server status............................................................................................................................................................ 30
S7 Datapoints in the OPC UA Server...................................................................................................................... 31
Modbus-TCP im OPC UA Server............................................................................................................................. 32
MQTT............................................................................................................................................................................ 33
Broker-Settings........................................................................................................................................................ 33
Datapoints-Settings.................................................................................................................................................. 34
Node-RED..................................................................................................................................................................... 35
Config....................................................................................................................................................................... 35
Routes...................................................................................................................................................................... 35
openVPN....................................................................................................................................................................... 36
Site-To-Site-Topology............................................................................................................................................... 36
Remote maintenance 1-Topology............................................................................................................................ 39
Remote maintenance 2-Topology............................................................................................................................ 39
Users............................................................................................................................................................................. 40
Changes to older versions of the manual
Rev. 01 / 2019:
new: Initial version
Rev. 01 / 2020:
new: Chapter MQTT and openVPN added
changed: All descriptions improved, order of chapters changed
Rev. 02 / 2020:
changed: Description Update and OPCUA, screenshoots updated to V 3.3.1
small corrections in all texts
Import of S7-Variablen moved from „Connections“ to „Datenpoints“
Rev. 03 / 2020:
new: Additions in OPCUA und NodeRed
Rev. 04 / 2020:
changed: typos, example OPCUA warnings removed
new: Hint WAN at 192.168.80.60, MQTT unsecure
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 3
Manual Gateway, Rev. 04 / 2020
General instructions
Safety instructions
This manual contains instructions to avoid material damage and must be carefully attended for your own safety. These
instructions are identified with a warning triangle with a note of exclamation inside and a signal word (Signal word) below.
Danger Death, heavy bodily harm or material damage will appear, if appropriated precautions are not taken over.
Warning Death, heavy bodily harm or material damage will appear, if appropriated precautions are not taken over.
Caution Bodily harm or material damage will appear, if appropriated precautions are not taken over.
Attention means, that a not wished results or states can occur, if the appropriated instruction is not noticed.
Important means the commitment to a special behaviour or operation for the safe treatment of the controller / machine.
Qualified personnel
All devices described in this manual may only be used, built up and operated together with this documentation. Installation,
initiation and operation of these devices might only be done by instructed personnel with certified skills, who can prove their
ability to install and initiate electrical and mechanical devices, systems and current circuits in a generally accepted and admitted
standard.
Maintenance
Modifications / repairs of an INSEVIS device might be done only by special educated and trained personnel of
INSEVIS in an ESD safe area. Every unauthorized opening might cause damages and will terminate all
warranty claims.
Data security
Each customer is responsible by himself for protecting his IT-environment against illegal external attacks. INSEVIS shall not be
held liable for any direct, indirect or consequential damages respect to any claims arising from the possible illegal external
access to their PLCs or HMIs by Ethernet. If you are not sure, how to protect your environment ask for help at professional legal
IT-companies.
Copyright
This and all other documentation and software, supplied or hosted on INSEVIS web sites to download are copyrighted. Any
duplicating of these data in any way without express approval by INSEVIS GmbH is not permitted.
All property and copy rights of theses documentation and software and every copy of it are reserved to INSEVIS GmbH.
Trade Marks
INSEVIS refers that all trade marks of particular companies used in own documentation as e.g.
- STEP®, SIMATIC® and other as reserved trade mark of Siemens AG.
- CANopen® and other as reserved trade mark of CAN in Automation eG
- WINDOWS® and other as reserved trade mark of MICROSOFT AG
and more reserved trade marks are property of the particular owners and are subjected to common protection of trade marks.
Disclaimer
All technical details in this documentation were created by INSEVIS with highest diligence. Anyhow mistakes could not be
excluded, so no responsibility is taken by INSEVIS for the complete correctness of this information. This documentation will
reviewed regulary and necessary corrections will be done in next version.
With publication of this manual all other versions are no longer valid.
4 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
About INSEVIS
The easy integration of INSEVIS-products into the S7-world meanwhile is famous and exemplary. Complex communication settings will be
assigned easily and intuitively, so that these properties expand the common S7-world by far. A large and multilingual visualization in a modern
design is done by a few clicks and the work flow is known by every WinCCflex user. It can be simulated on the visualization PC and is
accessible remote.
The S7-CPUs -V and -P are the base of the successfully INSEVIS product families with Profibus DP Master/Slave.
With the new S7-CPU-T Panel-PLCs and Compact-PLCs are available with Profinet IO Controller.
Step®7-Programmability
INSEVIS-S7-CPUs are programmable by STEP 7® - AWL, KOP, FUP, S7-SCL, S7-Graph from Siemens and in general command-compatible to
Siemens-CPU S7-315-2PNDP. Some special INSEVIS blocks expand the functionality and allow outstanding solutions. The S7-programming
will be done by good known tools SIMATIC®-Manager or by TIA-Portal® from Siemens always.
Independence
INSEVIS-PLCs and HMIs does not base on Windows or Linux, they have an own firmware. Thereby the hard- and software can be exactly
designed for a perfect co-ordination with this firmware and a low power consumption. Booting times of less than 4 seconds and completely no
software licenses and a current drain of <100mA @ 24V are the result of these facts.
Made in Germany
Development, PCB-design and -production, test and mounting of all INSEVIS-products - all this is made in Germany. So every product is a
proof for the combination of German engineering and economy and is available with a certification of German origin.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 5
Manual Gateway, Rev. 04 / 2020
Product family S7-IIoT Gateways
INSEVIS-S7-IIoT-Gateway – compatible but independent up to the cloud
INSEVIS is known for independent and sustainable solutions in the S7-world. With the IIoT-gateways these experience
should be broadened to the „Industrial Internet of Things“ or „Industry 4.0“. The large know-how for S7-technology,
combined with most modern security-, communication- and operation philosophy allow optimal combination of S7-
solutions with the big-data-world on one side and, secure connections between S7-islands completely without a portal
or a cloud.
Referring to the „Reference architecture model Industry 4.0 – RAMI4.0“ INSEVIS supplies all configuration shells
onboard, so that a single browser is enough to assign and configure all the settings. But not for anyone, because a
sophisticated user management cares for a considerably protection and allows released connections only. External
access is possible by openVPN in a safe way. An internal project and version management guarantees a better
overview.
With huge projections by the implemented „NodeRed“ you can let you imagination run; create tweeds, emails or
convert text to speech and get it read to you by an artificial voice. The integrated project- and version management
cares for a better overview or backups of previous versions.
Fields of application
Add S7-controllers by OPC UA-interface to I4.0
Secure integrating of the S7- Welt by OPC UA to MES, HMI, SCADA
ref. to RAMI4.0 (administration shell)
6 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Product family S7-IIoT Gateways
Communication in LAN and WAN
The S7-IIoT-Gateway communicates to control- and field-level by Ethernet RFC1006 (S7-communication, active Put/Get) and Modbus-TCP.
Other interfaces like CAN/ CANopen, RS485 and RS232 may be configured by Node-RED.
At the WAN-side a firewall protects the device against unauthorized communication attempts. The IIoT-Gateway offers OPC UA-server
functionality for data exchange with SCADA-, MES- or other management systems. The MQTT-client functionality allows the process data
supply for cloud systems.
LAN @Node-RED: CAN, RS485 and RS232 LAN: S7-Ethernet and Modbus-TCP
Activated by Node-RED: Easy data exchange by additional Communicate by RFC1006 (S7-communication,
protocols to communicate to different kinds of field devices active Put/Get) easily and with all Siemens-S7-CPUs
like energy meters, decentral I/Os, FCs, etc. Integrate energy meters into your system by Modbus-TCP.
Services @ NodeRED: Create own value Dashboard @ NodeRED: web visualization for free
Use imported data points in available Node-RED-nodes Visualize imported data points in available
to multiple different services and create a Node-RED-nodes as dashboard and provide
unique selling proposition and added value it as free web visualization
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 7
Manual Gateway, Rev. 04 / 2020
Product family S7-IIoT Gateways
Technical data
S7-IIoT-Gateway
for 35mm DIN-rail
Standard configuration:
RS232
(for Node-RED-projects)
RS485
(for Node-RED-projects)
- with switchable teminate
resistors for RS485
CAN
(for Node-RED-projects)-
- with switchable teminate
resistors)
Ethernet with
- RFC1006
(S7-communication,
Send/ Receive (active)
- Modbus-TCP
Switch
for operation mode
Scope of delivery:
- Grounding terminal
- Technical data sheet
8 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Product family S7-IIoT Gateways
Technical data
Dimensions W x H x D (mm) 28 x 116 x 84
Cut out W x H (mm) 35mm DIN rail
Protection class IP41
Weight ca. 350g
Operating temperature range -20°C ... +60°C (without condensation)
Storage temperature range -30°C ... +80°C
Connection technology removable connector with 2 bolt flanges aside
(cage clamp technology) for cross section up to max. 1,5mm2
Load voltage L+ 24V DC (11 V ... 30V DC)
Start-up current < 3A
internal memory 4 GByte, thereof ca. 1 GByte for user data (visualizations, etc)
Programming languages JavaScript
Programming system Node-RED
subscriptions: max. 8
monitored items per subscription: max. 200
SecurityPolicy monitored items total: max. 500
none / Basic 256 Sha 256 sign / Basic 256 Sha 256 sign & encrypt
(can be enabled and disabled separately)
MQTT Client (subscriber / publisher)
Node-RED performance limit approx. 50 variables actualise cyclic
data points from all other interfaces
CAN (protocols) Baudrate 10 kBaud ... 1 MBaud – via Node-RED
Data security open source packages OpenSSH and OpenVPN
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 9
Manual Gateway, Rev. 04 / 2020
Commissioning
The IIoT-Gateway is shipped with LAN-address 192.168.80.60. If the own net differs from it, act as follows:
• Connect LAN-interface of the IIoT-Gateway (Do not mix it with the WAN-interface)
with the LAN- interface of your computer.
• Assign your PC an IP-address in the subnet of the IIoT-Gateway (for example 192.168.80.65).
Name admin
Password admin
ATTENTION:
The Admin-password must be changed for security reasons immediately after first login!
Restore IP-address
It is easy to detect a forgotten IP-address:
• Switch from run → service mode to
• restart by power OFF/ON (boots 1-2min).
• in service mode the LAN IP address of the IIoT gateway is always 192.168.80.60
• on the default address 192.168.80.60 that mask (below) appears.
If not → clear the browser cache or reload the page in your browser!
• Left at “Network” is displayed the assigned LAN-address (here: 192.168.80.60),
• than switch service → run mode,
• restart by power OFF/ON or press the button right in „Restart Gateway“ (boots 1-2min),
• insert right IP-address in your browser and ready!
10 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Commissioning
Restore password
If the admin - password has been lost, a reset of the device with all data is necessary.
To be able to enter a “super-password” now and all will be fine, this IIoT-Gateway would have a “backdoor”.
→ But it hasn't.
Update firmware
Hint: Create a backup before start to update the firmware!
In general, however, all settings - unless it is a new or modified function - are retained.
Requirement:
• Internet connection via WAN-port and DHCP-server
During the update, the WAN port is reconfigured via DHCP (!) regardless of any settings made before.
Update in service-mode :
In Service Mode, the WAN port is temporarily switched to DHCP, regardless of the settings in Run Mode.
This allows to check
• in the browser with "Check for updates"
whether the INSEVIS update server is accessible and which version is kept there.
If the update server cannot be reached, the update process should NOT be started either, because the IIoT Gateway will then
never again be accessible via the web interface.
update in run-mode
If an update is to take place without physical access to the device, the update can and must be started in run mode.
It must be ensured, however, that the IIoT Gateway gets Internet access via DHCP over the WAN port mentioned above -
regardless of current WAN Port settings.
Even in run mode, the INSEVIS update server can be checked for new versions:
• in the browser at „System“ - „Backup and Update“ - and „Check for updates“
However, the current WAN settings are used (valid settings assumed). This does not tell us whether the update server can be
found in update mode.
update procedure:
• The IIoT Gateway is thus set to firmware update mode and boots a standard configuration with DHCP on the WAN port
and loads the firmware via it (i.e. the settings under System - Network are irrelevant)
• The yellow LED flashes for ~5..10 min about 50x in irregular speed.
(Devices delivered from Sept. 2020 on additionally flash green with ~ 1 Hz)
• When the update is completed the IIoT Gateway will boot back into run or service mode, depending on the switch
position.
i.e. RUN = green LED permanently on / SRV = yellow LED permanently on
ATTENTION:
If the WAN network also randomly operates in the address range 192.168.80.0, the LAN and WAN port of the
IIoT gateway must be connected to the network.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 11
Manual Gateway, Rev. 04 / 2020
Example project
VIDEO-Tutorial available
For this example you find a link to a instructional YouTube® video in the download section of Insevis.com
The variables in the demo project correspond to the variables in the demo visualisations for the Insevis HMIs, Panel-PLCs and
Remote visualizations.
We recommend to keep a device with such a demo visualisation, or at least a PLC with PUT/GET enabled, in the same LAN
network as the IIoT-Gateway
After the download has finished you can log in and navigate to
System / Backup and Update.
This section is only accessible as the user admin. Now press the
button Upload in the tile Complete Backup to upload the demo
project.
After the restart has finished you can login with the standard
credentials (admin : admin).
The IIoT-Gateway is now able to get data from the PLC and pass them on to Node-RED, MQTT and OPC UA .
12 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Example project
Dashboard-Visualisation
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 13
Manual Gateway, Rev. 04 / 2020
Example project
OPC UA-Server
When you open UA-Expert for the first time you have to create
a client certificate. To do so follow the instructions and fill out
all requested fields.
opc.tcp://192.168.80.60
14 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Example project
OPC UA-Server
The server has now been added to the project tree on the left
side.
To connect to the server select it and choose from the menue
bar Server / Connect.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 15
Manual Gateway, Rev. 04 / 2020
Example project
OPC UA-Server
Select now the certificate and trust it with the Trust button in
the function bar below. Save your changes with Save
settings to device (bottom right)
16 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
Example project
OPC UA Server
In the bottom left window below the project tree you can see
the namespace of the server.
To read the variables just drag and drop them to the middle
section where they can be observed and controlled.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 17
Manual Gateway, Rev. 04 / 2020
WebConfigurator
System settings
Date and time
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can adjust the date and time for the IIoT-Gateway. These settings are persistent to restarts and power loss and are beeing
updated by the included real time clock.
Caution:
If the IIoT-Gateway has a established internet connection date and time are beeing set automatically and
manual input will be ignored.
18 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Network
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
Under Network you can access the network settings for the device. Applying these settings can take a few seconds and are only possible if all
inputs are correct.
something tricky:
When the IoT Gateway sends data, the LAN or WAN address and the destination address are logically ANDed with the
respective MASK. If the result is identical, the data is sent on the respective LAN or WAN port.
Otherwise, the data will be forwarded to the set gateway.
This definition of mutually exclusive IP address ranges separates WAN and LAN.
The addresses of LAN and WAN MUST differ within the defined masks.
Otherwise, no assignment is possible and all data is sent via the LAN connection.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 19
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Device
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
20 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Backup & Update
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can archive, restore and update your device.
Warning:
see chapter
“Update firmware”
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 21
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Backup & Update
22 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Connections
S7-Connections
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can manage the connections between the IIoT-Gateway and S7 PLCs.
Row handle to select row. Use shift
or ctrl to select multiple.
Internal ID of the connection.
Is used to get data from this
connection in Node-RED.
Name of the connection.
(freely selectable)
Ressource-ID
(see left, part of the TSAP)
Rack number
(see left, part of the TSAP)
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 23
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Modbus-TCP
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can manage the connections between the IIoT-Gateway and Modbus-TCP enabled devices.
24 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Data points
S7-Data points
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can manage the data points for the configured S7 PLC's.
Row handle to select row. Use shift or ctrl to select multiple.
Address-offset
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 25
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Import of S7-Variables
As an alternative to the manual configuration of the S7 variables, the import function can be used to make work easier.
• Global variables of a Simatic Manager or TIA project can be exported as sdf file and read in here.
• Mostly data structures in DBs are interesting. For this purpose, the relevant DBs have to be exported as sources
(with Simatic Manager as .awl file, TIA generates a db file) and imported here.
Unfortunately, the DB number is lost for symbolic awl sources and the DB name for absolute awl sources.
This information must be added manually later.
• If a visualisation with VisuStage was already implemented and the relevant variables match, an import via the
VisuStage project file *.vsproj may be useful.
In general, the VisuStage import functions for variables including symbols (also from data blocks with a few mouse
clicks) are very convenient.
However, a visualisation does not necessarily have to be created. After the variable import in the "VisuStage" program,
an "empty" visualisation file *.vsproj also contains the information of all variables defined there, which are required here
for the import of S7 variables.
26 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Modbus-TCP
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menu item the data points of the connected Modbus-TCP devices are managed.
Word order
Only for data types with 4 bytes (DINT, DWORD, REAL).
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 27
Manual Gateway, Rev. 04 / 2020
WebConfigurator
OPC UA
Application
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can adjust the application settings of the OPC UA server.
28 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Security
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can adjust to security settings for the OPC UA server.
ATTENTION:
An encrypted and signed connection is strongly recommended for the transmission of machine data.
The setting Encryption none enables an unencrypted access and data transmission to the OPC UA
server.
This poses a substantial security risk and should only be enabled for
testing purposes.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 29
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Security
ATTENTION:
The setting Encryption none enables an unencryptet access and data transmission to the OPC UA
server.
This poses a substantial security risk and should only be enabled for
testing purposes.
Server status
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menu item the status of the OPC UA server can be monitored and controlled.
Start and Stop controls the OPC UA server.
30 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
S7 Datapoints in the OPC UA Server
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can adjust to previously submitted data points for the OPC UA server.
Row handle to select row. Use shift or ctrl to select multiple.
Name of the connection to which this data point is assigned to.
(taken from data points)
Browse name
(OPCUA browse name for the data point in the namespace)
Number of samples.
Only limited by the available storage.
* Note: For variables in data blocks it is essential that the S7 syntax "block_name.variable_name" is used.
The Node-ID is used to insert the variable into the tree, the browser name to display.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 31
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Modbus-TCP im OPC UA Server
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you can adjust to previously submitted datapoints for the OPC UA server.
Browse name
(OPCUA browse name for the data point in the namespace)
Number of samples.
Only limitet by the available storage.
32 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
MQTT
MQTT (Message Queue Telemetry Transport) has become one of the standard protocols for IoT and M2M communication. The
MQTT protocol works as publish-subscribe communication. There is one broker and several clients.The clients can post
messages as publishers and receive messages as subscribers. The broker's task is to manage and distribute the messages.
Broker-Settings
The IIoT-Gateway does not contain a MQTT-broker. Here the general settings to connect a external broker (in the local net or in
the cloud) are done. The IIoT-Gateway communicates with multiple brokers but always as one client only.
• At activated „Retain“-function the last message will be stored by the broker and on reconnection of a client delivered
immediately (Otherwise he needs to wait for the next change).
MQTT supports the optional “Birth” and “Last Will and Testament” (LWT) messages.
• The “Birth” message will be sent at the start of a connection of a client to inform other clients about the new client.
• The “Will” message („Last Will and Testament“, LWT) will be sent to inform other clients about the disconnected client.
Will-Quality of Service
0: maximum 1x
1: minimum 1x
2: exactly 1x
Will - retainflag:
If activated, the “Will”-message will be delivered
at reconnect and subscribe of a client
Birth -Topic and -payload (optional)
Will be sent when the connection
of these client is started
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 33
Manual Gateway, Rev. 04 / 2020
WebConfigurator
MQTT
Datapoints-Settings
ATTENTION:
34 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Node-RED
Config
In this menue you can adjust the behaviour of Node-RED. The Node-RED-server is an additional function without any warranty
or service from INSEVIS. Use only well-known and successfully tested Node-RED-nodes for your projects.
CAUTION:
Do not activate Node-RED if you don't need it as it consumes substantial system resources.
By the unknown origin of Node-RED-nodes INSEVIS does not takes over any warranty for their functions or
service for Node-RED-projects.
Routes
Menue entry „Node-Red“ opens a new window containing the Node-Red „Routes-Editor“.
The communikation between NodeRed and the configured variables uses MQTT.
The payload data is binary. A conversion can be done via a script: e.g.
var buffer = Buffer.from(msg.payload);
msg.payload = buffer.readInt32LE(0);
return msg;
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 35
Manual Gateway, Rev. 04 / 2020
WebConfigurator
openVPN
The IIoT Gateway uses openVPN with openSSL to transfer machine data via an encrypted connection.
Site-To-Site-Topology
Secure client/server connection between two S7-“islands“
Requirements:
• IP-address settings in the company net are static,
• address of the „unsecure“net (e.g. 192.168.2.0 ) is normally pre-defined
• a local net for the IIoT-Gateway as openVPN-server (e.g. 192.168.80.0) and
• a local net for the IIoT-Gateway as openVPN-client (e.g. 192.168.90.0) will be defined
Hint:
• The local nets of both „islands“ must be different.
Procedure:
1: Configuration on the openVPN-Server-IIoT-Gateway:
Step 1.0: Before generating of certificates the system time must be checked to be correctly so that valid expiry dates are
generated. (If the IIoT-Gateway was longer powered off, the low battery could cause a wrong system time.)
Caution:
The entries in
„... expires after ...“ determines
the period of validity of the
certificates
36 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
openVPN
Site-To-Site-Topology
Step 1.2: Create a client on the openVPN-Server-IIoT-Gateway
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 37
Manual Gateway, Rev. 04 / 2020
WebConfigurator
openVPN
Site-To-Site-Topology
2: Configurations on the openVPN-Client-IIoT-Gateway:
Step 2.0: Before using of certificates the system time must be checked to be correctly.
38 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
WebConfigurator
openVPN
Remote maintenance 1-Topology
Secure client/server connection betweenS7-“island“ and a PC
Requirements:
• openVPN must be installed on the PC
• decompress the exported file „servername_clienname.tar.gz“ (e.g. Win-7z).
• Rename the file "client.conf" into a meaningful client name with suffix „.ovpn“ (e.g. machine_xy.ovpn)
• move all 4 decompressed files to C:\Program Files (x86)\openVPN\config\clientname\...
or use the gui's import function
• start a VPN-connection via openVPN-GUI („machine_xy – connect).
Hints:
• In practice, this is imaginable within a static configured company net.
(Rare a IIoT-Gateway will be accessible by a fixed IP-address via internet directly.)
• The option „Route LAN Net“ of the server configuration allows the PC-access to the PLC (and further components at
the LAN-port of the IIoT-Gateway). Without this option only the IIoT-Gateway-shell is accessable.
• The option „Route LAN Net“ of the client configuration is not useful for that case.
This scenario arises when a PC is inserted at the server side in the Site-To-Site-open-VPN-
Topology.
Thereby this PC has a remote-access to the PLC(s) of the remote network ( – with minor
restrictions – you can not search in the remote network, you need to know it).
Is the server-side e.g. in a home-office, what does not belong to to a company-IT-
administration, it is possible to “tunnel” vie internet as long the client-IIoT-Gateways have a
standard internet access.
Requirements:
• IP-address settings in the company net are static,
• a local network for the IIoT-Gateway as openVPN-Server and
• each one local network for the IIoT-Gateway as openVPN-Client will be assigned.
Hints
• If communication takes place via the "real" Internet, a global IP address is required for the server
(e.g. by DynDNS) and this is to be assigned as „Public router IP“ and in the router is to configure a referring port-
forwarding (see referring router-manuals).
The external address of the server does not matter, but the WebConfigurator needs to insert it into the client-
configuration.
• If the openVPN-server at the WAN-port will be configured by DHCP, a name server must exist.
(perhaps the DHCP-Server takes over the device-FQN of the IIoT-Gateway automatically.
This must be assigned in the server als „Public router IP“ *.
• If IP-addresses changes, this configuration must be repeated.
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 39
Manual Gateway, Rev. 04 / 2020
WebConfigurator
Users
VIDEO-Tutorial available
For this menue you find a link to a instructional YouTube® video in the download section of Insevis.com
In this menue you find the user management. Doubleclick on an entry to edit it.
40 INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen
Manual Gateway, Rev. 04 / 2020
INSEVIS Gesellschaft für industrielle Systemelektronik und Visualisierung mbH • Am Weichselgarten 7 • D-91058 Erlangen 41
Manual Gateway, Rev. 04 / 2020