156
OPC Router 4.9 User Guide inray Industriesoftware GmbH Holstenstraße 40 DE-25560 Schenefeld Edition of 2018/11/02 Software Release: 4.9 © Copyright 2018 inray Industriesoftware GmbH

User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

  • Upload
    others

  • View
    41

  • Download
    2

Embed Size (px)

Citation preview

Page 1: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9User Guide

inray Industriesoftware GmbHHolstenstraße 40

DE-25560 Schenefeld

Edition of 2018/11/02Software Release: 4.9

© Copyright 2018 inray Industriesoftware GmbH

Page 2: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9

2

Contents

OPC Router: Welcome ................................................................................................... 4

Security Guideline and Liability Limitations .................................................................... 5

The Manual's Manual ..................................................................................................... 7

Installation/Update ........................................................................................................... 9System Requirements ......................................................................................... 9Update from OPC Router 3.x ............................................................................ 10Installation .......................................................................................................... 12

OPC Router Configuration ............................................................................................ 15

Run on 64-bit environments ......................................................................................... 16

Licensing ....................................................................................................................... 17

OPC Router Settings .................................................................................................... 19

Settings notifications (alarm-mail) ................................................................................. 21

Settings redundancy ..................................................................................................... 23

Plug-in Configuration .................................................................................................... 24OPC DA Server Plug-in ..................................................................................... 24OPC UA Server Plug-in ..................................................................................... 26Database-Plug-in ............................................................................................... 28Plug-in for SAP Systems ................................................................................... 37Plug-in for Rest connection ............................................................................... 40ERP Webservice Plug-in ................................................................................... 42Mqtt Connectivity Plug-in ................................................................................... 44Telegram Bot-Plug-in ......................................................................................... 46Plug-in Thingworx® ........................................................................................... 49Mail server plug-in ............................................................................................. 51Euromap-77-plug-in ........................................................................................... 52Euromap 63 Plug-in ........................................................................................... 54Charm Plug-in .................................................................................................... 56Windows Printer Plug-In .................................................................................... 57Printer Plug-Ins .................................................................................................. 60Script Plug-in ..................................................................................................... 62Variable plug-in .................................................................................................. 67Scanner-Plug-in ................................................................................................. 68Plug-in RFID Reader ......................................................................................... 70

Defining Connections (Projecting) ................................................................................ 73

Page 3: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9

3

Creating and Managing Connections ................................................................ 73Activate/Deactivate Connections ....................................................................... 74Project Connections ........................................................................................... 75Sources and Destinations .................................................................................. 78Trigger Objects ................................................................................................ 117Working with templates ................................................................................... 148Export OPC Router 4 project .......................................................................... 153Import OPC Router 4 project ........................................................................... 155

Page 4: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 OPC Router: Welcome

4

OPC Router: Welcome

Dear reader,inray’s OPC Router is a software router for data routing between OPC Servers (and

therefore any PLCs) and databases (and therefore almost any MES, ERP or other busi-ness administration software. Other plug-ins connect SAP systems and mail servers,print labels, update excel files (or create them), communicate with web services or pro-cess individual scripts for customized connections.

OPC Router’s license per plug-in is unlimited regarding the number of connections,number and volume of data transfers. Data transfers are triggered by time, events, bitsor scripts.

This manual will show you the basics of OPC Router configuration. Please refer alsoto manuals of systems connected to OPC Router, e. g. to grant OPC Router accessto these systems.

We apologize for not providing the complete manual in English yet. Please contactus to obtain the latest translation.

inray Industriesoftware is always willing to provide training courses as well as con-figuring OPC Router according to your needs. Pleas contact us for further informationand offers.Yours team of inray Industriesoftware

Copyright

This manual and the software described are subject to licensing regulations and pro-tected by copyright laws. Manual and software are to be used only according to the li-cences granted. Information within this manual are valid with reservation only and mightbe changed without prior information.

Microsoft, Windows, SQL Server, Excel are registered trademarks of MicrosoftGroup of Companies. SAP, SAP-System, ABAP, BAPI, R/3 are trademarks or registe-red trademarks of SAP AG. Oracle is a registered trademark of Oracle Corporation.All product and company names in this manual may be trademarks of their registeredowners even if they are not listed here.

Page 5: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Security Guideline and Liability Limitations

5

Security Guideline and Liability Limitations

OPC Router is being installed via a simple setup program. The GUI makes configurationand development (of Router projects) simple as can be. Nonetheless it is very importantto read and follow these guidelines carefully to avoid data loss and resulting damagesand ensure data and system integrity.

Important: Please consult your system administrator before installing or updatingand follow your company's own policy or code of conduct concerning software.We strongly recommend that access to the computer with OPC Router installed islimited and for authorized staff only. Keep in mind that access data to connectedsystems have to be stored on this computer.

Knowledge assumed

Installation, configurations and administration (as well as understanding the manual)assumes the following knowledge: Administration of Windows operating systems, ITsecurity, knowledge about 3rd party systems connected (e. g. database administration,OPC Servers, MES, ERP systems used in this context).

Installation and Update

1. We recommend to backup your production system before installing or updating.2. OPC Router Setup might update or install Windows components. Please exit all

running programs before installing.3. We strongly recommend to ensure that existing configuration is compatible with

any update before updating your production system (e. g. update test withinquality control environment)

4. If you change the installation path proposed by the setup routine, please re-member your settings to simplify any support by inray.

Development

Router projects can be developed within your production system. However, we recom-mend to backup your system before installing new plug-ins or activate new transfers.If you are testing new transfers within your production system, please remember tobackup your database and ensure data consistency. We recommend to test all Routerprojects thoroughly before going productive.

Page 6: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Security Guideline and Liability Limitations

6

DANGER: Testing your Router projects within production environment might, de-pendent on your transfer configuration, result in changing your production facili-ties' configuration (via programmable logic controllers, PLCs) and result in loss ofmaterial or severe damage of machinery. Please be sure that only authorized andqualified staff activate such projects. inray takes no liability for such self-inflicteddamages (see below).

Limitations of Liability and Warranty

The OPC Router and its manual are provided by inray Industriesoftware GmbH “as is”and any express or implied warranties, including, but not limited to, the implied war-ranties of merchantability, fitness for a particular purpose and non-infringement, aredisclaimed. In no event shall inray or their suppliers be liable for any direct, indirect,incidental, special, exemplary, or consequential damages (including, but not limited to,procurement of substitute goods or services; loss of use, data, savings or profits; orbusiness interruption) however caused and on any theory of liability whether in contract,strict liability, or tort (including negligence or otherwise) arising in any way out of theuse of this software, even if advised of the possibility of such damage.

inray Industriesoftware advises you to double check Router projects carefully beforegoing productive. inray does not guarantee that Router projects developed accordingto this manual are compatible with future versions. Limitations of liability and warrantyincluded in the end user license agreement EULA and/or other agreements betweeninray and the licensee remain unaffected.

Errors Excepted

This manual is adapted to the Router's development. However, inray Industriesoftwaredoes not guarantee that the information in this manual is always consistent with thecurrent version of OPC Router. The manual is therefore subject to errors, especiallywhere 3rd party systems are concerned (Windows components, OPC configuration).Please check manuals of 3rd party systems regularly.

Page 7: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 The Manual's Manual

7

The Manual's Manual

This manual uses the following notations:

C:\Program files\inray\

log_1.txt

http://localhost/

File names and paths, URL

Datasource Names of parameters and objects' properties.

<Datasource> Place holder to be filled during development.

(Delete brackets < and >!)

... Dim TextHandleTextHandle.SetCoord 10,10 ...

Source code samples and templates

“Change” Names of controls, tabs, buttons etc. within

GUI.

File–New or File - New Menu/Submenu entries.

Terms used

(set of) access data Technically speaking: instance of a plug-in, e. g. the access

data to one specific OPC Server, a specific database server

etc. as in OPC access data, database access data etc

element (of a transfer object) Part of a transfer object, e. g. a table's column within a data-

base transfer object or an OPC item within an OPC transfer

object or a specific variable used. Elements (sometimes also

called items) are connected during development to define a

transfer.

item, transfer object item see “element”. Not to be mixed up with OPC item, so mostly

element is used.

configuration “Configuration” means (as a rule) the basic settings and the

creation of access data within the OPC Router Configurati-

on (GUI). Whereas “development” or “projection” means defi-

ning connections (also via OPC Router Configuration GUI).

plug-in Plug-ins provide the Router's functions, e. g. connection to

OPC, database or mail servers, to ERP systems, as well as

use of intern variables etc. Most plug-ins have to be licensed

separately. The manual uses the term for all sets of access

data of a specific plug-in also.

plug-in instance see “access data”.

Page 8: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 The Manual's Manual

8

development see “projection”.

projection The process of defining connections (projection of trans-

fers). i. e. the process of defining sources, destinations, trig-

gers as well as (de-)activating. Also referred to as “develop-

ment” in contrast to “configuration”. However, OPC Router is

both configured and projected via OPC Router Configuration

(GUI).

snap-in The dialogue left of the display

transfer Data transfer during runtime. During projection the same as

“connection”.

transfer object Source, destination or trigger of a transfer.

variable As a rule, an instance of the variable plug-in, i. e. a variable

to be used within transfers. Other variables carry special na-

mes like template variable or placeholder.

connection Combination of at least one data source, one destination and

one trigger. A connection defines how a transfer is executed:

Which data is tranferred under which condition to which de-

stination.

Images

Some of the screenshots present several numbered mouse pointers. The numbers referto the instructiosn in the text. Therefore, numbers might have been left out. The followingexample shows steps 3 to 7 of the specific chapter.

Several pop-up dialogs might be shown side by side, even if they open one afteranother, just to show the results of mouse interaction:

Page 9: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update

9

Installation/Update

OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all plug-ins in trial mode (2hours runtime). After the license key has been entered, all plug-ins licensed will rununlimited while plug-ins not licensed will be deactivated.

OPC Router Setup will neither install database servers nor OPC servers to connectyour PLCs. These components have to be installed separately. OPC Router's purposeis only to connect those components.

System Requirements

• hardware: We strongly recommend to run server applications on adequate hard-ware (multi-core processor, 4 GB RAM min., Raid-5-HDD). Should the databaseserver run on the same system, 8 GB RAM is minimum

• Operating system: We recommend Microsoft Windows Server operating sy-stems. Client operating systems (64 bit) can also be used for test purposes.The following Windows versions are supported:

• Windows Server 2008 x64• Windows Server 2008 R2 x64• Windows Server 2012 x64• Windows Server 2012 R2 x64• Windows Server 2016 x64• Windows 7 x64• Windows 8 x64• Windows 8.1 x64• Windows 10 x64• Windows 10 IoT x64

Page 10: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update | Update from OPC Router 3.x

10

Attention: Productive operation with client operating systems: Due to tech-nical limitations, inray explicitly recommends operation with server operatingsystems.

Client operating systems, such as Windows 10, may experience unwan-ted behavior, unplanned reboots, and incomplete records due to unforeseenforced and forced upgrades. Other technical limitations, such as the limitednumber of incoming TCP / IP connections, especially in large projects, leadto downtime of connections.

Please inform yourself before installation, if an operation of the OPC routeron a client operating system meets their requirements and is compatible withthe license right of Microsoft.

• .NET 4.6 will be possibly installed automatically. We recommend that you dow-nload and install Microsoft manually in Microsoft .NET 4.6.1 before the update.Background are .NET updates required by Windows, which were not always of-fered automatically, and need sometimes longer time and may need several re-starts. This is not within the control of inray. Downtime is kept as low as possi-ble if you uninstall the old versions after a successful installation of .NET 4.6.1.Preinstalled on Windows Server 2016 and Windows 10.

• accessible OPC Server to communicate with PLCs (OPC DA 4.0, UA, XML)• accessible database server (MS SQL, Oracle, MySQL and all others via ODBC.

MS Access and writing/reading XML files supported as well)• for connection to Oracle databases: installed Oracle instant client (ODAC)• SAP plug-in supports SAP systems 4.0b or newer, log-on-pad has to be instal-

led.

Update from OPC Router 3.x

OPC Router versions 3 and 4 may run on the same computer and connect the samecomponents without problems. Projects of version 3.x (.ort files) can be opened in Rou-ter 3 configuration GUI and thus be converted into the new format (.rcf).

Important: After conversion, the connections are present in both router 3 and rou-ter 4. Then both services can not run simultaneously on the productive system,because each transfer would be duplicated, including all SPS handshakes.

Note: The converter has been developed very carefully. However, due to the count-less possibilities of OPC Router projects, we can't take any warranty for convertedprojects being able to run under OPC Router 3. We recommend to treat convertedprojects like new projects and test them carefully.

Page 11: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update | Update from OPC Router 3.x

11

Installation, Environment

1. Backup your system.2. Install OPC Router 4 according to the manual. If at hand, use your deployment

or QA system.3. Configure the OPC Router service according to your old system. This refers

especially to the user context, under which the Router service is running. Thusyou ensure, that OPC Router service is granted access rights to distributed sy-stems. In your computer's service administration, you find Router 3.x as in-rayOPCRouter and Router 4.x as OPCRouter4Service. A manual might befound in chapter network settings.

Conversion

The OPC router 4 configuration is stored in a provide database. The converter readsthe data from the RCF file (OPC router 3 configuration) and and saves it in the database.

1. Copy your Router-3-project (.rcf file) and work with this copy.2. Open Router 4 configuration. Chose “File” and “Import OPC router 4 project”.3. To open the converter, press “OK”.4. In the converter, select the RCF file. You have the following options:

Ignore existing ob-

jects

Objects already created in the OPC router 4 remain un-

affected. If objects in the RCF file have the same name

but other properties (e.g. credentials), they are not app-

lied

Overwrite existing

oblects

Overwrites any existing objects that have the same na-

me in the RCF file and router 4

Delete all objects

before converting

Deletes all objects present in the Router 4 database

Rebuild the database

before converting

Restores the entire router 4 database. An existing router

4 configuration is thus completely deleted

5. Then, select “Start Convert”.

When reinstalling the user context remains.

Test and Deploy Project

• Check whether the converter has generated errors or warnings.• For OPC-UA, DB and SAP access data, use the button “Check connection” wi-

thin the plug-in configuration.• Take a look at the single connections to see whether they seen “right”.• In the Router's Settings you can enforce logging for all transfers and adjust the

log level to “Warning” and “Error”. Add “Trace” if an error occurs (for short timeonly, as log files will be huge)

Page 12: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update | Installation

12

• Save and build the project.

Start OPC Router and test the project within your QA environment. The Status Windowdelivers a quick overview on the transfers.

If you haven't got any deployment or QA environment and thus are forced to convertdirectly into your productive system, please consider suitable tests. If you follow thesteps above, Router 3 is still working. Please note, that data transfers will be executedtwice if both Router versions are running. Stop Router 3 before starting Router 4. Moni-tor Router 4 carefully via Status Window. If errors occur, stop Router 4 and restart Rou-ter 3 to keep your productive system working (while you remove the cause for the error).

Installation

Important: Before installing, check whether all system requirements are met.Read the security guidelines and follow the manual carefully.

OPC Router Setup installs all components needed and configures as follows:

• Windows Service, starting automatically, meaning the runtime service executingdata transfers will be started with the startup of the system. Immediately afterthe installation, the router service does not run because no configuration has yetbeen carried out. After the configuration (and after each update), start the ser-vice once manually via the button in the router configuration.

Installation

Attention: Do not remove your OPC Router 3.x. Please read the update manualfrom OPC router 3 to 4

1. Backup your system.2. OPC Router Setup might update or install Windows components. Therefore, quit

all running programs.3. Check whether system requirements are met.4. Execute setup.exe on your instal

Attention: If .NET 4.6 installation is performed, Windows will require a re-boot. You may, however, install .NET 4.6 prior to installing OPC Router ma-nually. OPC Router installation on a computer with .NET 4.6 already runningwill not require a reboot.

Page 13: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update | Installation

13

lation source.5. Follow the setup routine.

After setup is completed you can configure OPC Router.

Update

Updating from a 4.x to a newer 4.x version means removing the old version and installthe new version. Your project files remain unaffected.

We recommend to test a new version within your deployment or QA environment.Thus you ensure that your project file is compatible with the new version. As a rule,OPC Router 4 automatically adjusts project files to new versions (not for updates fromversion 3 to 4).

Attention: Do not remove your OPC Router 3.x. Please read the update manualfrom OPC router 3 to 4

1. Backup your system.2. OPC Router Setup might update or install Windows components. Therefore, quit

all running programs.3. Check under which user the OPC Router service runs, and remember.4. Remove OPC Router 4.x via control panel. Project files remain unaffected5. Check whether system requirements are met.6. Execute setup.exe on your installation source.7. Follow the setup routine.8. Check the user context of the service. If necessary, reconfigure according to

step 3.9. Open the OPC Router configuration.

10. Turn the project productively.11. Restart OPC Router Service.

Update OPC Router to .NET 4.6

The OPC Router versions require the installation of .NET Framework 4.6 on the ser-ver. .NET 4.6 is a Windows component and requires some Windows updates, whichunfortunately are not always offered automatically by Microsoft. Some of these updatesare quite extensive and can take several hours. There are several restarts of the servernecessary:

The following updates are needed in this order:

• KB2919442• clearcompressionflag.exe• KB2919355

Page 14: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Installation/Update | Installation

14

• KB2932046• KB2959977• KB2937592• KB2938439• KB2934018

If the installation of .NET 4.6 fails, it may have other causes. However, the absenceof KB2919355 and the following updates was the only one that was manifested in ourtests. We recommend the following procedure:

1. From the control panel, verify that the above updates are installed.

• If so, install .NET 4.6 manually. If the installation fails, follow the help linksuggested in the installer.

• If not, search support.microsoft.com for the update KB2919355. Youwill find detailed instructions there. Remember to run KB2919442 andclearcompressionflag.exe before.

2. Then install your OPC router version.

Page 15: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 OPC Router Configuration

15

OPC Router Configuration

The OPC router 4 configuration contains the configuration, the possibility of productiveswitching and the status display at runtime.

You will also find there

• OPC router converter, which converts OPC router 3 projects• OPC router service Status, which executes the data transfers as a run-time

component.

Configuration is being started via start menu (Programs – inray – OPC Router).OPC Router Configuration executes all steps of bringing OPC Router into service,

including licensing:

1. Configuration of plug-ins needed, e. g. access data of accessible OPC and da-tabase servers, definition of variables (Chose plug-in in project configurationtree, left-hand side, then edit on corresponding tab).

2. Projection (of connections): Which data is to be transferred when wherefromwhere? (Create and open connections in left-hand side project configuration,chose transfer objects on right-hand side toolbox, edit on corresponding tab)

3. Productive switching of the whole project or individual connections.4. Start service – if service has been running (default), restart is executed automa-

tically (button).5. Monitoring and error diagnostics left over the snap-in directory on button “Sta-

tus”.

The following chapters describe the steps in detail. Please note that only licensed plug-ins are accessible.

The entire project is stored in local databases (MS SQL Local-DB), including thetransfer protocol.

Remember: Project backup: If the entire computer (VM, disk backup) is not backedup, the program directory of the router where the database files are located shouldbe backed up.

OPC Router Service is the runtime component, working in the background as a Win-dows service and executing the data transfers. The service must be restarted afterchanges to plug-in configurations, individual connections can also be productive withoutrestarting. Individual configuration regular is only necessary for use in systems withwindows authentication.

Page 16: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Run on 64-bit environments

16

Run on 64-bit environments

The OPC router setup will automatically set up the service for the 64-bit architecture.

Important: If you provide 64-bit drivers for connection of external systems (e. g.SAP systems, OLE-DB driver) only in a 32-bit version, you must configure therouter service manually.

1. Go to “Service” in the top menu bar.2. Under menu “Service”, select “Registry”.3. Force the entry to “Register with: 32 bits”.4. Restart the OPC router.

Page 17: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Licensing

17

Licensing

Without license each inray software is executable for two hours after installation. Youcan test all standard modules in trial mode. After entering the license key the licensedmodules a usable only.

If you need a longer demo license, this can be issued by our sales department, e.g.for a 30-day demo license. Please contact our sales department.

The licensing occurs by a particular program, the inray license manager. You startthe license manager either via the Start menu (program - inray) or with correspondingbuttons in the programs (FAS configuration, OPC router with “Options” – “Licensing”,FAS-inMOVE assistant). The license manager shows all inray licenses at these system.Have the necessary data ready for licensing.

1. Open the license manager.2. Choose “Add” to enter a new license.3. Enter the company name, system ID and license key you got from inray or your

reseller. Input fields are case sensitive. If you enter a second or further license,the key has to be issued for exactly the same name and system ID:

Page 18: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Licensing

18

4. Save with “OK”. The license manager will be shown the successful licensing inthe overview:

5. Restart your software.

Future system extensions are licensed for your specific customer name and systemID. Then simply enter the new license key.

We recommend the additional conclusion of a Maintenance License in order to beable to use the support of the company inray Industriesoftware GmbH optimally. Weoffer you support during normal business hours or, if booked accordingly, a round-the-clock service. If you have signed a Maintenance License for your licensed modules (FullLicense), then the SupportEndDate shows the date, how long you can use the support.During this time, upgrades to a new major version are also possible. (If a MaintenanceLicense is concluded, a major upgrade from FAS 3.8x to FAS 3.9x, for example, ispossible if the upgrade has appeared before the expiry of your contract. The releasedate applies.) Without the Maintenace License only upgrades within one version arepossible (e.g. FAS v3.8.5001.52 to FAS v 3.8.5007.60) or bugfixes can be loaded.

Page 19: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 OPC Router Settings

19

OPC Router Settings

The following options can be set by opening “Settings” in the project configuration:

Runtime

Cycle time Internal cycle time in milliseconds. This interval is used e. g.

to check whether trigger conditions apply. Set a shorter inter-

val if necessary for your project.

Maximum number of

threads

Select the maximum number of threads.

Size of ring buffer Select the needed size of ring buffer.

Transfer break in case

of errors

Transfer pause in seconds in case of error.

Connection time-out Time (in s) that the connection may take before a connection

error is returned.

Notification Manager

Storage time for

events

Time range in which the data are kept.

Storage time for

transfered values

Time range in which the data are kept in case of faults.

Log transferred values Activate if transferred values are to be recorded

Size of ring buffer Select the needed size of ring buffer.

Maximum log size for

transferred values

(GB)

Specification of the maximum log size for transferred values

in GB. Setting how far the OPC router is allowed to fill the

status databases. We recommend 8 or 9 GB for a LocalDB

database.

Maximum log size for

events (GB)

Specify the maximum log size for events in GB.

Maximum log size at

escalation level 1

(bytes / min)

Specification of the log size at escalation level 1 in bytes /

min. Setting when connections are considered too data in-

tensive. If connections transmit more bytes per minute than

set, they will be identified as the "spam connection" and will

be disabled first in case of memory problems. For this pur-

pose, the number of transfers is not directly relevant, but the

amount of data transferred.

Page 20: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 OPC Router Settings

20

Log output

Log all transfers Writes all transfers to log file. This option overrides deactiva-

tion of logging in single connections.

Zip log files This setting affects only the log files of the service. At the

change of the day, the service automatically compresses the

log file of the last day into a zip file. The associated text file

will be deleted afterwards. Depending on the project, the re-

quired hard disk space can be significantly reduced.

Error Logs errors. Recommended during normal operation.

Warning Logs warnings. Recommend during normal operation.

Trace Detailed logging to trace errors. Should be deactivated du-

ring normal operation.

Debug Logs debug information for developers. Should be deactiva-

ted during normal operation.

Log folder Folder for log files (default: <OPC Router-Program

folder>\LogDir).

You can log the Router's activities in several levels. During normal operations, we re-commend to log warnings and errors. The log file remains small, and if an error occurs,you have got detailed information. If an error occurs, activated “Trace” to log more in-formation to find the error's cause. Open the log file with right-click on the router's trayicon, then “Open log file”.

Every time an OPC Router process is started, it issues a message with its currentversion.

Language of Configuration

Use menu “Extras – Select language” to switch the language. You have to restart OPCrouter Configuration to complete switching.

Page 21: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Settings notifications (alarm-mail)

21

Settings notifications (alarm-mail)

Via the menu item “Extras - Settings” you will find the notification area at the button forthe basic settings.The mail can be used for the following scenarios:

• transfer error• plug-in error, plug-in again responsive• connection error (plug-in / trigger error)• service was stopped / started

At this point, enter all the shipping information and select the areas to which the notifi-cation applies in the list of events. You can also give a name for the notification via thesettings. Click on the pen button. To rename an existing notification, click the plus sign.With the On / Off-ToggleSwitch you activate the notification or deactivate it.

Einstellungen

consolidation interval The amount of time before a message is sent.

Tiemspan which is used

until a message gets

send

The length of time in which you can send. Events outside of

this range are collected and sent later. Enter a start time and

an end time and, if necessary, activate a weekday by acti-

vating an appropriate checkbox.

E-Mail sender (mail

server)

Select a mail server as sender from the drop-down menu. To

add a mail server click on the button with the plus sign and

make the settings. To edit or delete a mail server, select the

appropriate buttons.

Receiver At this point, enter the recipients who should receive this no-

tification.

Page 22: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Settings notifications (alarm-mail)

22

E-mail sender name

Name Give the e-mail notification a name.

SMTP-Server

Server Name of the server.

Port Port on the server, which is used for the mail traffic.

Use Secure Socket

Layer benutzen (SSL)

Uses SSL encryption. The server must support this, the ap-

propriate port must be set.

Windows authentifica-

tion

Alternatively, uses the user under which the router service is

running (default: “system”).

Username User name for logging on to the server (SMTP or NT authen-

tication).

Password Password to log in to the server (SMTP or NT authenticati-

on).

Domain Domain to which the user is registered. (For login to the ser-

ver via NT authentication)

E-Mail settings

Sender Enter the sender e-mail address. The sender must have the

format of a mail address ([email protected]).

Subject Enter a subject for your notification. Max 255 characters are

possible.

Header Extended entry of a header possible.

Language Select a language from the drop-down menu.

Time zone Select a time zone from the drop-down menu.

Send as HTML Activate the checkbox if you want to send the notification in

HTML format.

Enthaltene Reports

Add PDF attachment Activate the checkbox if you want to send a PDF file.

Add CSV attachment Activate the checkbox if you want to send a CSV file.

Add XLSX attachment Activate the checkbox if you want to send a XLSX file

The “Test” button allows you to verify that the server connection is working.Confirm your entries with “OK”.

Page 23: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Settings redundancy

23

Settings redundancy

Via the menu item Extras - Settings you will find the redundancy area at button for thebasic settings. This way, the OPC router can be protected against failures.

You can configure a master host name in this area and test the connection. Thereis a “master” and a “slave”. The slave starts in standby mode and monitors the master.Each OPC router is automatically a master. Here only the port in the firewall must bereleased. For a slave only IP / DNS of the master has to be configured. If the connectionleaves from the client to the master, the connections are switched to active and beginto transfer. This is shown in green in the status display. If the client can reconnect tothe master, the connections switch back to standby. This is shown in blue in the statusdisplay.

The state changes due to the redundancy are logged. A log entry is created when theredundancy becomes active (master has failed) or becomes inactive again (master isreachable again).

Attention: SAP® triggers and ThingWorx® triggers can be problematic in redun-dancy operation with identical user data. There are problems because the plug-insare also initialized in the secondary system and want to access the same user da-ta, which can lead to errors in the assignment of sessions with SAP® and Thing-Worx® connections.

Page 24: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration

24

Plug-in Configuration

OPC DA Server Plug-in

OPC plug-in connects OPC Router to all accessible OPC Servers.If an OPC Server runs on a different computer, ...

• ... DCOM configuration has to be adjusted for OPC DA connections.

Operation is standard:

1. Open plug-in by double-click “OPC DA servers”. The list of created OPCconnections is displayed.

2. Chose “Add” or double-click an existing entry to edit.3. Specify access data. (chapter “Properties of OPC access data”).4. Confirm with “OK”.

The OPC server can now be used to define a connection.

Properties of OPC DA access dataThe following properties have to be specified for each set of OPC access data:

OPC DA Access Data

Name This set’s name. The name will be shown in projection. Se-

lect a name you will recognize!

Host/IP IP or host name of OPC Server’s computer.

OPC Server OPC Servers accessible on computer specified under Host/

IP. Select by drop-down

Update rate The update rate is the rate where the OPC server updates its

data. Most OPC servers have an internal data memory and

use the update rate to update the values in this memory. Ho-

wever, it depends on the OPC server which update rate is

used. In the KepServer there is for example the setting Scan

Mode. In the properties of the device you can set which scan

rate should be used by the server and to what extent the up-

date rate of the client is taken into account.

Dead band The Dead Band property ensures that no transfer takes

place from the OPC server to the client as long as the value

does not exceed a certain threshold. This can be used to reli-

Page 25: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | OPC DA Server Plug-in

25

eve the network. This function is optional and does not have

to be implemented by all OPC servers.

Access path Access path on OPC Server

Extended Properties

Transfer OPC null va-

lues

Invalid OPC values will be transferred as well, e. g. as NULL

into databases.

Define types manually Define data types of OPC items manually to notify the OPC

Server what type is expected.

Activate Redundancy The redundancy is activated if the primary server is not

available and (optional) if the primary server's life can not be

read or assumes the value.

Use Access Path to simplify projection: If an access path is specified, you only haveto enter the OPC Items’ names later on.

Just define a set of access data for each PLC to connect. In your OPC Server, definean access path to each PLC. This access path has to be entered here.

If you want to connect different PLCs with identical items, you can use this alterna-tive in combination with templates. Just define the OPC access data as variable within

Page 26: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | OPC UA Server Plug-in

26

your template. Specify the set of access data when creating the connection from thetemplate.

OPC UA Server Plug-in

OPC plug-in connects OPC Router to all accessible OPC Servers.If an OPC Server runs on a different computer, ...

• ... for OPC UA the router have to be approve as “Trusted Client”, if an appropria-te safety level is set on the OPC server

Operation is standard:

1. Open plug-in by double-click “OPC UA servers”. The list of created OPCconnections is displayed.

2. Chose “Add new set as access data” or double-click an existing entry to edit.3. Specify access data. (chapter “Properties of OPC access data”).4. Use the “Check connection” button to initialize a connection. If a corresponding

safety level is set on the OPC server, the connection will fail. You must then re-lease the OPC router on the OPC server as a trustworthy client. Reinitialize yourOPC server, if necessary. Test again to verify successful connection setup.

5. Confirm with “OK”.

The OPC server can now be used to define a connection.

Properties of OPC DA access dataThe following properties have to be specified for each set of OPC access data:

OPC UA Access Data

Name This set’s name. The name will be shown in projection. Se-

lect a name you will recognize!

Client certificate Select a client certificate from the drop-down menu. Using

the plus sign, you can add another certificate, using the mi-

nus sign to remove one. Another button allows you to display

the properties of an existing certificate.

Trusted server certi-

ficates

Select which server certificates to accept.

Endpoint OPC-Server’s address (protocol: opc.tcp, http or https)

Page 27: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | OPC UA Server Plug-in

27

Note: If encryption is used, the endpoint must bespecified exactly as it is stored in the server'scertificate. For example, if the certificate contains“Server.domain.local”, the endpoint must also beaddressed in this way, and not, for example, via theIP. Then the certificate is rejected by the OPC ser-ver.

Sample Rate Sample rate (ms) used by OPC Server to refresh values. Set

“0” to use smallest update rate.

Timeout Time (ms) allowed to establish before a connection error is

thrown.

Anonymous log-on Activate if your OPC Server allows anonymous connections.

If not, deactivate and provide user credentials.

User User name to log on OPC Server (not: Windows Server)

Password Password to log on OPC Server (not: Windows Server)

Highest security level Activate to use highest security level provided by your OPC

Server. If connection problems occur, deactivate and set se-

curity options manually.

Mode “None”, “Sign” or “SignAndEncrypt”.

Encryption Encryption process. Use highest encryption provided by your

OPC Server.

Redundance server Activate to specify a redundancy OPC server. Redundancy

is activated if the primary server cannot be reached and (op-

tionally) if the life item of the primary server cannot be read

or assumes the value “0”. Then enter the redundancy server

Page 28: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

28

and, if required, an object (item) on the selected redundancy

server.

Property Access Path is not available with OPC UA. If you want to connect severalPLCs with identical data points, project a connection template and define “Access Path”as template variable. This might be a real path if your OPC Server provides strings asnode IDs or the namespace’s ID. You’ll have to configure an individuals namespace foreach PLC. The data point IDs have to be identical.

Use the “Check connection” button to check in advance if your data connectionsare working.

Database-Plug-in

The database plug-in connects OPC Router to as many database servers as you canreach. The database specific clients are required on the OPC Router’s computer and

Page 29: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

29

have to be installed manually (e. g. MS SQL Server Native Client, MySQL ODBC driveretc).

Defining access data:

1. Open plug-in by clicking “Database Servers” in the project configuration’s plug-in list.

2. Chose “Add” or double-click an existing entry to edit.3. Specify access data. (chapter “Properties of DB access data”).4. Click on button “Check connection” to verify the OPC Router is getting access

to database server and if access data are correct. This is to exclude one typicalsource of errors.

5. Confirm with “OK”.

The database server can now be used to define a connection.

Properties of Database Access DataThe following properties have to be specified for each set of database access data:

Name This set’s name. The name will be shown in projection. Se-

lect a name you will recognize!

Type Type of database server, select via drop-down:

• MS SQL Server

• XML_File

• My SQL

• My SQL 5

• MS Access

• Oracle

• OLE_DB

• ODBC

Page 30: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

30

• dBASE

• SQLite

OLE DB or ODBC drivers for other database servers will be

available at the server’s manufacturer or vendor. Install ac-

cording to manufacturer’s manual. OLE DB drivers are re-

commended if available.

Properties not applicable for a specific type of server are deactivated. Please refer todatabase server’s manual for server-side configuration. Please contact your databaseadministrator to get the correct setting for the properties. The picture shows connectionto MS SQL Server after a successful test.

Options for MS SQL Servers

Host/IP Name of MS SQL Server (named pipe or <IP>:<Port>,

specifying a port number enforces communication via TCP/

IP.

Port Selection of the port for the database connection. If necessa-

ry, the port can be changed.

Database Database on server to be used.

Windows authentication Activate to use Windows authentication instead of User na-

me and Password. Local accounts, DCOM users an Win-

dows domain users (NT authentication) are supported.

To use Windows authentication, the user under which

the OPC Router service is running needs access rights to the

database server. By default, this is the system user. To be

able to define connection, the user under which OPC Rou-

ter Configuration is running, needs those rights (by default:

Page 31: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

31

User logged-on the Windows System). In this case, “Check

connection” is valid only for the configuration. Observer care-

fully if transfers are executed correctly!

User User name to log on MS SQL Server

Password Password to log on MS SQL Server

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Connection time-out Time (seconds) that the Router may need to establish

connection.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for XML files

The XML file must exist.

File Select file via “...”

Please note that the file’s structure must be readable, e. g.:

<measurement> <temperature> <ID>1</ID> <time>2012-01-31T12:00:00</time> <value>5</value> </temperature> <temperature> <ID>2</ID> <time>2012-01-31T12:05:00</time> <value>4</value> </temperature> <pressure> <ID>1</ID> <time>2012-01-31T12:00:00</time> <value>1200</value> </pressure> <pressure> <ID>2</ID> <time>2012-01-31T12:05:00</time> <value>4</value> </pressure></measurement>

Page 32: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

32

Speaking in database terms, this means, we have got a database measurement con-taining tables temperature and pressure, each containing columns ID, time andvalue. Each table in this file has got two records. The XML elements must not containattributes!

From this file, you will be able to read data. Pleas note that a column ID has to bepart of each table.

To write data to an XML file, each table needs a primary key. This can be realizedwith an XML schema (XSD = XML Schema Definition). This XSD file is referenced inthe root element of your XML file. The following example shows the reference to anXSD file stored in the same location as the XML file.

<measurement xmlns="measurement.xsd"> ...</measurement>

The referenced file measurement.xsd contains the definition:

<?xml version="1.0" encoding="utf-8"?><xs:schema id="measurement" targetNamespace="measurement.xsd" xmlns:mstns="measurement.xsd" xmlns="measurement.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">

<xs:element name="temperature" msprop:Generator_UserTableName="temperature"> <xs:complexType> <xs:sequence> <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" type="xs:int" /> <xs:element name="time" msdata:Caption="Zeit" type="xs:dateTime" minOccurs="0" /> <xs:element name="value" msdata:Caption="Wert" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element>

<xs:element name="pressure" msprop:Generator_UserTableName="pressure"> <xs:complexType> <xs:sequence> <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" type="xs:int" /> <xs:element name="time" msdata:Caption="Zeit" type="xs:dateTime" minOccurs="0" /> <xs:element name="value" msdata:Caption="Wert" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element>

<xs:element name="indexes" msdata:IsDataSet="true"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element ref="temperature" /> <xs:element ref="pressure" /> </xs:choice> </xs:complexType> <xs:key msdata:PrimaryKey="true" msdata:ConstraintName="temperatureID" name="temperatureID"> <xs:selector xpath=".//temperature" /> <xs:field xpath="ID" />

Page 33: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

33

</xs:key> <xs:key msdata:PrimaryKey="true" msdata:ConstraintName="pressureID" name="pressureID"> <xs:selector xpath=".//pressure" /> <xs:field xpath="ID" /> </xs:key> </xs:element>

</xs:schema>

The first two elements define the tables’ layout, the third element the indexes. Relationscould be realized as well. Please not that each table has to have at least one recordwith a valid ID so that the auto increment function works correctly (IDs of new recordsare set automatically.

Important: In the Router’s plug-in configuration, you specify the XML file, not theschema (XSD). The XSD file is only referenced from the XML file as shown above.

Options for MySQL/MySQL-5 Servers

Host/IP IP address of MySQL server.

Port Selection of the port for the database connection. If necessa-

ry, the port can be changed.

Database Database on server to be used.

User User name to log on MySQL

Password Password to log on MySQL

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for MS Access

File Choose Access file via button “...” In addition to the .mdb

format .accdb files are also supported.

Page 34: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

34

Database Name of “database” to be used

User User name (if file is protected)

Password Password (if file is protected)

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for Oracle

To connect to Oracle servers, the Oracle client has to be installed.

TNS name TNS name of Oracle configuration

Port Selection of the port for the database connection. If necessa-

ry, the port can be changed.

Schema Oracle schema

Windows authentication Activate to use Windows authentication instead of User na-

me and Password. Local accounts, DCOM users an Win-

dows domain users (NT authentication) are supported.

To use Windows authentication, the user under which

the OPC Router service is running needs access rights to the

database server. By default, this is the system user. To be

able to define connection, the user under which OPC Rou-

ter Configuration is running, needs those rights (by default:

User logged-on the Windows System). In this case, “Check

connection” is valid only for the configuration. Observer care-

fully if transfers are executed correctly!

User User name to log on Oracle

Password Password to log on Oracle

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

Page 35: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

35

need to increase the value for the individual connections that

trigger long queries.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for OLE DB Providers

OLE DB connections need a connection string. The OLE DB provider needed has tobe installed and must be active.

Connection string Select a connection string from the drop-down menu.

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Connection time-out Time (seconds) that may take to establish a connection to

the database.

Parallel Connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for ODBC drivers

The ODBC driver needed must be installed and active.

ODBC entry Select configured ODBC driver.

User User name to log on database

Password Password to log on database

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

Page 36: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Database-Plug-in

36

need to increase the value for the individual connections that

trigger long queries.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for dBASE

Directory Select an appropriate directory from the drop-down menu.

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Options for SQLite

File Select an appropriate file from the drop-down menu.

Password Password to log on database

Command time-out Time (seconds) that the Router waits for an SQL command

to terminate. Increase if your projects involve commands of

long duration (e. g. stored procedures). Note that you also

need to increase the value for the individual connections that

trigger long queries.

Connection time-out Time (seconds) that the Router may need to establish

connection.

Parallel connections Number of connections that the Router may establish paral-

lely. The more connections the faster the Router the slower

probably the database. Ask your database administrator how

Page 37: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in for SAP Systems

37

many connections the Router may establish. This depends

on your project’s scale, of course.

Polling interval Distance at which the database is queried.

Plug-in for SAP Systems

SAP plug-in connects OPC router to all reachable SAP systems (4.0b or higher) viaIDoc, BAPI or RFC. Supported are all current SAP systems (e. g. NetWeaver, ECC 6,R/3 ab 4.0b ...). Prerequisite are either the SAP log-on pad or library librfc32.dllinstalled on the computer hosting OPC router. The library has to be stored at \Win-dows\System32. If the program is to run in 32-bit mode on 64 bit OS, the 32-versionof the DLL has to be in. \Windows\SYSWOW64 .

To use Netweaver, the SAP GUI must be installed. SAP files have not be deliveredby inray Industriesoftware GmbH. Therefore you need a current SAP account (status2018).

Defining access data:

1. Open plug-in by clicking “SAP systems” in the project configuration’s plug-in list.2. Chose “Add” or double-click an existing entry to edit.3. Specify access data. (chapter Properties of SAP access data).4. Click on button “Check connection” to verify the OPC Router is getting access to

the server and if access data are correct. This is to exclude one typical sourceof errors.

5. Confirm with “OK”.

The SAP server can now be used to define a connection.

Note: In any case, use the switchboard “Test” to check the connection and preventruntime errors. Note that changes are accepted only after confirmation with “OK”.

Properties of SAP Access DataThe following properties have to be specified for each set of SAP access data:

Name This set’s name. The name will be shown in projection. Se-

lect a name you will recognize!

Login method Select the desired login method.

User User name to log onto SAP system.

Password Password to log onto SAP system.

Client SAP client (company code).

Page 38: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in for SAP Systems

38

Language Enter the language you want to use here. For example, “de”

for German, “en” for English etc.

Direct log-in

Host/IP Server (Name or IP) with SAP system. Explicit log-on is re-

quired (no load balancing).

System number Number of SAP system.

Load balancing

Message server Name or IP of SAP message server

Log-on group Log-on group (of SAP system)

System number Number of SAP system

Register RFC Trigger as

Unicode Register RFC triggers as unicode

Non-Unicode Register RFC triggers as non-unicode

IDocHandling

IDocHandling Select when you want to create an empty IDoc or use a tem-

plate from the SAP system.

IDoc culture Selection of the IDoc language (Culture) German or English

to prevent a crash if an instance in the SAP plug-in contains

an invalid IDoc language. The date notation for example is

different: First February in German 01.02.2018, in English

02.01.2018

Page 39: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in for SAP Systems

39

You can use the button “Test” to check whether your connection is successful.

If you have selected Secure Network Communications (SNC) at Login method, pleasemake the SNC settings below:

SNC Einstellungen

Name of SNC partner Entry the SNC partner.

Security level Selection of the security level from the drop-down menu e.g.

Maximum or Standard.

Authentication method Selection between NTLM Authentification or Kerberos5 Au-

thentication.

Configuring the Port

By default, OPC Router uses port “33<System-Nummer>” to communicate with theSAP server, e. g.. “3301”, if System-No = 01. If your SAPO system uses a different portand SAP GUI is not installed, you have to adjust the port Wenn das SAP-System einenanderen Port benutzt und das SAP-GUI nicht installiert ist, muss der Port angepasstwerden:

1. Backup file C:\Windows\System32\drivers\etc\services.2. Open file C:\Windows\System32\drivers\etc\services with a text edi-

tor (not the backup).

Page 40: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in for Rest connection

40

3. Add (or change) “sapgw00”, whereas the port has to have format “XX00” e. g.“3600”.

sapgw00 <Portnummer>/tcp

4. Save the file.

OPC Router will use that specific port.

Plug-in for Rest connection

The Rest plug-in allows you to submit queries from web services and generate map-pings from them.

The operation is standard:

1. Open the plug-in by duoble-click on “Rest connection” at menu “Plug-ins”2. Choose “Add new set of access data” or double-click an existing entry.3. Make the necessary settings (see section “Properties of Rest connection”).4. Confirm with “OK”.

The remaining connection is now available for configuring a connection.With button “Test” you can check the connection.

Properties of Rest connectionsYou can set the following properties in the configuration of the Rest plug-in

Name Any name where this connection appears in the connection

configuration.

Host-URL URL the web service to be connected.

OpenAPI-Path URL, the programming interface API. The API transfer object

sends the response data by means of the remaining trigger.

Authentification If you need to log in to the web service, select the desired ty-

pe here. You will receive this information from the administra-

tor of the web service.

Http-Header Fields for transferring the important htttp parameters.

Page 41: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in for Rest connection

41

Timeout (s) Time (in seconds) that the connection may take before a

connection error is returned.

Trusted Certificates Selection which certificates of the OPC router the user

should trust.

• Alle: Every certificate is accepted.

• Router: Connection is allowed if the certificate is at therouter certificate management and trusted.

• Windows: Connection is allowed if the certificate isfound in the Windows certificate store.

Certificate Selection of a client certificate from the drop-down list sent

by the OPC router. You can use the plus sign to add another

certificate and the minus sign to remove one. Another button

allows you to display the properties of an existing certificate.

Page 42: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | ERP Webservice Plug-in

42

ERP Webservice Plug-in

Via ERP plug-in, you connect to all systems providing a webservice (WSDL) interface.

Defining access data:

1. Open plug-in by clicking “ERP web services” at the plug-in-menu.2. Chose “Add new set of access data” or double-click an existing entry to edit.3. Specify access data. (chapter “Properties of ERP access data”).4. Confirm with “OK”.

This set of access data can now be used to define a connection.With the button “Test” you can check your connection.

Properties of ERP access dataSet the following properties in the ERP plug-in configuration:

Name Any name under which this web service appears in the

connection configuration. Select a name you will recognize!

WSDL-URL URL of the WSDL file.

Protocol Selection of a transmission protocol from the drop-down me-

nu.

Log-in If you need to log in to the web service, select the desired ty-

pe here. The details are available from the administrator of

Page 43: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | ERP Webservice Plug-in

43

the web service / ERP system. Depending on this property,

you can make additional settings:

• No authentication: no authentication required, web ser-vice freely accessible.

• Basic authentication: Login with username / password.

• in web service method: login via a web service me-thod. Selection and setting via the button “Log-in para-meters”

• Windows authentication: Login with Windows (domain)users. When using Integrated Security, makesure that the user context under which the service isrunning is authorized. The computer with the web ser-vice must be a member of the domain, not necessarilyat the computer with the OPC router.

User User name to log on web service (at basic and NTLM au-

thentication)

Password Password to log on web service (at basic and NTLM authen-

tication)

Windows authentication When enabled, the user data where the router service is run-

ning.

Authentication in Method

If you use the policy “in web service method”, please set log-in parameters via button“Log-in parameters”.

Page 44: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Mqtt Connectivity Plug-in

44

Mqtt Connectivity Plug-in

The Mqtt machine-to-machine messaging protocol allows telemetry data to be trans-ferred between devices.You can use the Mqtt plug-in to generate queries from message log connections.This operation is standard:

1. Open the plug-in by double-clicking on “Mqtt” at the Plug-ins menu.2. Choose “Add new set of access data ”or double-click on an existing entry.3. Make the necessary settings (see section “Properties of Mqtt conections”).4. Confirm with “OK”.

The Mqtt connection is now available for configuring a connection.Use the “Test connection” button to check your connection.

Properties of Mqtt ConnectionsYou set the following properties in the configuration of the Mqtt plug-in:

Name Assign a unique name to the Mqtt connection.

Brokeranbindung Enter the address of the broker.

Port Port on the server used for the Mqtt connection

SSL Uses SSL encryption. The server must support this, the cor-

responding Port must be set.

Continuous session Activate if a persistent connection is desired. Missed messa-

ges are sent afterwards.

Client ID Display of the Client ID. The button “Create new Client ID”

creates a new ID.

Create new Client ID Creates a new Client ID that is displayed in the Client ID

field.

Username User name for logging in to the server.

Password Password for logging in to the server.

Certificate Selection of a client certificate from the drop-down list, which

the OPC Router also sends.

MQTT version Select the Mqtt protocol version from the drop-down menu.

Quality of Service ty-

pe

Selection the Standard Quality of Service:

• 0 = at most once

• 1 = at least once

• 2 = exactly one

Wait for transfer Activate if you want to wait for the transfer by default.

Page 45: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Mqtt Connectivity Plug-in

45

Tab: First will

Activate first will Activate checkbox to activate the “First will” checkbox. Activi-

ty when establishing a connection.

Topic Specifies which topic the first will to look at.

Payload Specifies which user data is to be transmitted during commu-

nication.

Quality of Service Selection the Quality of Service:

• 0 = at most once

• 1 = at least once

• 2 = exactly one

Hold Activate if you want the broker has to hold the data.

Tab: Last will

Activate last will Activate checkbox to activate the last will. Activity before a

connection termination.

Topic Specifies which topic the load should look at.

Payload Specifies which user data has to be transmitted during com-

munication.

Quality of Service Selection the Quality of Service:

• 0 = at most once

• 1 = at least once

• 2 = exactly one

Hold Activate if you want the broker has to hold the data.

Page 46: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Telegram Bot-Plug-in

46

Send last will when

clearing connection

Activate if the last will to be sent even when the connection is

terminated.

Telegram Bot-Plug-in

The operation is standard:

1. Open the plug-in by double-clicking on “Telegram Bot” in the “Plug-ins” menu.2. Choose “Add” or double-click an existing entry.3. Make the necessary settings (see section “Properties of Telegram Bots”).4. Confirm with “OK”.

You can now set up telegram bots.

Properties of Telegram Bot ConnectionsYou set the following properties in the configuration of the Telegram Bot plug-in:

Name Assign an free unique name for your connection.

Page 47: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Telegram Bot-Plug-in

47

Abschnitt: Plug in

Bot access token The Access Token is provided by the “BotFather”:

1. Go to the Telegram program and select BotFather fromthe contacts.

2. Ask for a new bot with the command /newbot.

3. The BotFather will now ask you for a name for yourbot. This name can be defined by you..

4. The BotFather then asks for a user name. This mustalways end with _bot. e. g. Temperature_bot

5. If the name is not yet occupied, the BotFather will sendyou a confirmation and the AccessToken, which youcan copy into the properties at the Plug in area.

6. Enter the other properties and confirm your entries with“OK”.

Maximum file size The maximum file size indicates (in MB) how large received

files may be before the transfer is aborted automatically.

The BotFather was made to administrate your Telegram bots. With the BotFatheryou can create, edit or delete bots. If you already created a bot, the BotFather can tellyou the AccessToken. You can ask the BotFather for your AccessToken whenever youwant. The account, which has created the bot, is the inalienable owner of the bot. Thissection is for information, you do not need to enter anything in this area.

Abschnitt: BotFather

Help text If you want to show users automatic suggestions of possible

commands, proceed as follows:

1. Send “/setcommands” by the botholder to the BotFa-ther.

2. Send @BotUsername to the BotFather.

3. Copy the help text from the “BotFather” secti-on in the Telegram plug-in of your OPC router andsend it to the BotFather.

4. Repeat the process after adding, deleting or changingtelegram triggers.

Telegram Bots are always displayed publicly and can be accessed by any Telegramuser. Internal authentication filters out unauthenticated users before triggers are initia-ted.Users can be authenticated manually after writing to the bot (/start) or by authenticatingthemselves with a previously generated confirmation code.

Authentication method Select the desired authentication method:

Page 48: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Telegram Bot-Plug-in

48

• Authentication method “None”: Telegram bots are al-ways public and everyone can send request to the bot.No further settings need to be made.

• Authentication method “Intern”: The internal user au-thentication filters unauthorized users before they usesany trigger. Users can get authorized manually after arequest (/start) or they can send an authorization codewhich was already generated.

Note: Messages can only be sent to userswho have already sent at least one messageto the bot. Messages to be sent to all will besent to all registered users (even those whoare not authenticated). However, a maximumof 30 messages per second may be sent (Li-mit Telegram API).

Abschnitt: Bekannte Benutzer für Authentifizierungsmethode Intern

Known users List of known users. You can remove a user from the list

using the “Delete user” button. You can use the “Deny per-

mission” or “Allow permission” buttons to deny or allow per-

missions to known users.

Abschnitt Bestätigungsschlüssel für Authentifizierungsmethode Intern

Registration key Displays the known registration keys. Use the “Delete regi-

stration code” and “Create validation code” buttons to remo-

ve registration keys from the list or add new ones.

Page 49: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in Thingworx®

49

Confirm your entries with “OK”.

Folgende Edit Bots sind hilfreich:

• /setname - change a bot's name• /setdescription - change bot description• /setabouttext - change bot about info• /setuserpic - change bot profile photo• /setcommands - change the list of commands• /deletebot - delete a bot

Plug-in Thingworx®

Only active "Things" are displayed in the OPC Router Tree. Inactive things, on the otherhand, are not browser-enabled and would cause internal server errors.The data types INFOTABLE and LONG are not supported by the plug-in.This operation is standard:

1. Open the plug-in by double-clicking on “Thingworx®” in the “Plug-ins” menu.2. Choose “Add” or double-click an existing entry.3. Make the necessary settings (see section “Properties of Thingworx® connecti-

ons”).4. Confirm with “OK”.

You can now make connections to your Thingworx® system.

Properties of ThingWorx® connectionsYou set the following properties in the configuration of the ThingWorx® plug-in:

Page 50: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in Thingworx®

50

URI Enter the URI for recognizing the ThingWorx® resource, e.g.

ws://127.0.0.1:8080/ThingWorx/WS.

Application Key An “Application Key” can be created via the ThingWorxCom-

poser at the tabs “Security” and“ Application Keys”.

Connection interval Enter an interval in which the connection is to take place.

Timeout Time that the connection setup may take before a connection

error is returned.

Enable encryption Activate if the connection is to be encrypted.

Certificates

Server certificates Select a server certificate from the drop-down menu. Only

connections to servers with this certificate are established.

The plus sign allows you to add another certificate, the minus

sign removes one. Another button allows you to display the

properties of an existing certificate.

CLient certificates Select a client certificate from the drop-down menu, which

the OPC Router will send as well. The plus sign allows you

to add another certificate, the minus sign removes one. Ano-

ther button allows you to display the properties of an existing

certificate.

Accept self signed

certificates

Activate the checkbox if self-signed certificates should be al-

lowed.

Click the “Check connection” button to check if your connection is successful.

Page 51: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Mail server plug-in

51

Mail server plug-in

The e-mail plug-in connects the OPC router to a random number of accessible mailserver. You just have to state the login information for the mail (outbox) server. Detailsto mailing are projected later in the connection.

As far as a firewall is between the OPC router and the mail server, please checkfthe authorization.

The mail server plug-in regularly supports SMTP- and NT athentification, SSL isoptional.

The regular handling:

1. Open the plug-in via doubleclicking on “E-mail servers” at the plug-in-menu.2. Choose “Add new set of access data ” or double click on the existing entry.3. Do the needed settings (see part “Properties of the Mailserver Link”).4. With “Sen test mail” you can send a mail, to test the settings. Another window

pops up. Fill in an email address and click “Test”. The process log is shown inthe dialouge, if sending fails, you can gain further information from the “ErrorMessage”. Confirm with “OK”.

5. Confirm with “OK”.

The Mail server is ready to be used in connection projection.

Properties of Mail-Server-LinksThe following properties are to be set in the configuration of the E-Mail-Plug-in:

Name Random name, under which this mail-server is shown in the

connection projection.

Host/IP IP-address or hostname of the mail-server

Port Port on the server, which is used for the mail traffic (stan-

dard: 25, for SSL: 465 ).

Page 52: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Euromap-77-plug-in

52

Domain Domain, on which the User is registrated (for logging in on a

mailserver with NT-authentification).

User Username for logging in to the mail server (SMTP- or NT-au-

thentification).

Password Password for logging in to the mail server (SMTP-or NT-au-

thentification).

Windows authentication Uses alternatively the user, under which the router service

runs (Standard: “System”).

Use Secure Sockets

Layer (SSL)

Uses SSL encoding. The mail server needs to support this,

the needed Port needs to be set up.

With the button “Send test mail” you can check your entries.

Euromap-77-plug-in

The Euromap 77 is a standard for injection molding machines based on the OPC stan-dard. Injection molding machines that support this standard can be connected with theOPC router.

Creating the Euromap connection

1. Open the plug-in “Euromap 77 connections” by double click at the plug-in menu.2. Please select “Create new profile” or double click on an available entry to

change the connection.3. Please define the settings now (see section “Properties of Euromap connecti-

ons”). Select an available command or create a new command set with the but-tons. If you change a command set, the changes apply to all existing connecti-ons using this set.

Page 53: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Euromap-77-plug-in

53

4. Confirm with “OK”.

The Euromap connection will be available for projection of connections now.

Properties of Euromap-77 connectionsPlease define the following properties to configure set of Euromap-77 connections:

Name Any name where this connection appears in the connection

configuration. Choose a name that is clearly recognizable for

you!

Client certificate Select a client certificate from the drop-down menu. You can

use the plus sign to add another certificate and the minus

sign to remove one. Another button allows you to display the

properties of an existing certificate.

Authentication Select authentication from the identity verification drop-down

menu.

Use highest security

level

Activate the checkbox if you want to use the highest safety

level and make the entries accordingly

Login credentials If you have selected “Username and password” at authenti-

cation, entries are required in this area.

Security settings If you have not enabled the highest levels of security, then

security settings will be required in this area:

• MessageSecurityMode

• SecurityPolicy

If unencrypted communication is required, the clientcertificate “Without” and MessageSecurityMode “None”must be selected.

Create certificate

Application name Assign an application name for the certificate.

Organization Enter an organization as needed.

Organization unit If necessary, enter an addition to the organization. For exam-

ple, a place or hall of the organization.

Application URI Enter the application URI.

DNS name Enter the DNS name of your server.

Applicant Enter the applicant.

Runtime Enter the duration in minutes.

Page 54: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Euromap 63 Plug-in

54

Confirm your entries with “Create”. You can now select the client certificate in theprofile properties.

Euromap 63 Plug-in

Euromap 63 is a standard for injection molding machines. Injection molding machinesthat support this standard can be connected in the OPC router.

Creating the Euromap connection

1. Open the plug-in by double-clicking on “Euromap 63” at the Plug-ins menu.2. Choose the “Add new instance” button or double-click on an existing entry to

change a connection.3. Make the necessary settings (see section “Properties of Euromap63 connecti-

ons”). Select an existing entry for editing or create a new one with the buttons. Ifyou change an entry, this change applies OPC router-wide.

4. Confirm with “OK”

The Euromap connection is now available for project planning a connection.

Properties of Euromap 63 connectionsYou can set the following profile properties in the configuration of the Euromap 63connection:

Name Any name where this connection appears in the connecti-

on project planning. Choose a name that you can recognize

clearly!

Page 55: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Euromap 63 Plug-in

55

Workdir Select the path of your Euromap63 connection from the file

explorer. The working path is the path in which the OPC rou-

ter finds or stores the files that are exchanged during a trans-

fer. This is the file path in which the OPC Router and the Eu-

romap machine exchange their data.

Archive Select the archive area for your Euromapp63 connection

from the file explorer. The completed queries are stored in

the archive.

Session No Assign a session number.

Timeout (s) Time (in s) that the connection setup may take before a

connection error is returned.

Confirm your entries with “OK”.

Note: The request file is deleted by the machine software after processing.

Use the tab “Commands” to define the procedure for your Euromap63 connection. Entera unique name here as well.

Page 56: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Charm Plug-in

56

Charm Plug-in

Charm devices send results to a defined port on the computer using the OPC router.The OPC router monitors this port and accepts the messages (results of measurements(inhibitor, microtoxins, etc.).

No connections are configured in this plug-in. The port to which the Charm devicesends is set directly in the trigger.

Basically, a separate port must be created for each Charm device type. Recommen-ded procedure: All charm devices of one type are sent to the same port. In the OPCrouter a single connection is created. In addition to the results, the OPC router alsotransmits information about the sending Charm device to the database. The logic ofhow the results are processed is in the database (or another transfer destination).

However, if you want to create a separate connection for each Charm device, aseparate port must also be available for each device.

Timeout When a Charm device establishes a connection, it has the ti-

me entered in milliseconds to send all data to the OPC rou-

ter. Requires the Charm device longer, the connection is dis-

connected from the OPC router.

Maximal message length When connecting the Charm device to the OPC router, da-

ta is sent. If more than the allowed characters are transfer-

red, the OPC router disconnects the connection and sees the

message as faulty.

Properties of Charm access dataThe following properties are set in the Charm plug-in configuration for each set of Charmaccess data

Name This set’s name. The name will be shown in projection. Se-

lect a name you will recognize!

Page 57: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Windows Printer Plug-In

57

Port Port on this computer (hosting OPC Router) to which the

specific Charm devices will send data.

Windows Printer Plug-In

With the printer plug-in you can compile document templates within the OPC router,which are filled with values during run time and which can be printed with a printerinstalled on the local compter or in network. The following steps are to be done: ,

• Create the document template in the plug-in configuration• Selection of the printer and filling in the values to the template variables in the

connection projection

Creating the document template

1. Open the plug-in via double cklicking on “Print templates” at the plug-in-menu.2. Choose “Add document template” or double click on the existing headword, to

change a template.3. Fill in a name for the document template.4. Create the template with the integrated designer (see part “The designer for do-

cument templates”).5. Close the editor with the button “Close Window” on the windows title bar. Con-

firm the save request.

The document template can be used for projecting a connection now.

Interactive Printers

The OPC router runs ? as Windows application non stop in the background of the server.An interaction with the user is not planed. That means, that printers, which need user

Page 58: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Windows Printer Plug-In

58

feed (e. g. PDF output, XPS output with “Save As... -Dialouge” can´t be used: In thiscase the user would have to make the feed with every print initialised by the router.

Depending on the Windows version state displays of the printer (status of ink/ to-ner) react differently as well, when called by a service. Test your projecting carefully.If necessary allow interaction between service and desktop in the service administrati-on, to make user feeds possible. This is explicit recommended just for testing, not forproducing:

1. Open the service administration with “System Control - Administration - Ser-vices”.

2. Open the OPC router via double click.3. Activate the property “ Allow Data Transfer Between Service And Desktop” on

the tab “Log In”.4. Confirm with “OK”.5. Restart the service.

If you should test your label design e. g. with Windows XPS Writer, you shouldn´t savethe XPS data in the suggested directory, but choose one directly on the root (e. g. C:\Label Testing), this avoids access conflicts.

The document template designerWith the template designer

• you define the size of a document,• you define the template variables with standard values,• you place the elements “Text”, “Image”, “Frame” and “Barcode”. Elements from

the type “Text” and “Barcode” can be seized with template variables.

Define document size

You can define the document size either independetly, or you choose from the printersselection. The second option is especially usefull, when you allready know what printeryou`ll use. On the other hand, you don´t fix on a printer by choosing the second option, toe. g. set up a DIN standard with Microsofts XPS printer. Stating the size is in millimeters.

1. So choose the option “User Defined Size” or “Supported Size”.

• User Defined Size: Fill in the document size.• Supported Size: Choose a printer and document size.

2. Confirm with “OK”.3. If necessary, select “Landscape” by “Settings”.

Page 59: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Windows Printer Plug-In

59

Define Template Variables

Template variables are filled during run time, e. g. from the controlling or batch- andtask data from the data base. At this point, you define the needed placeholder and statestandard values, if wanted. The values can be printed as text or barcodes.

1. Choose the button “New Placeholder”.2. Assign a name and confirm with “OK”.3. The template variable is shown in the list. Assign a standard value, if wanted.4. Repeat the steps 1 to 3 for all needed placeholders.5. If you want to remove a variable, click on the name in the list and delete or rena-

me it.

Place Elements

From the following elements can be chosen:

• Text: Free text and placeholder in combination. Size and position of the frame,font -type, -size and -colour are to be setted.

• Frame: A frame of free size and position. Frame colour, -type and -width are tobe setted as well as the fill in colour.

• Barcode: Free definable Barcode. Size and position, encryption, content (text,numbers and placeholders) are to be setted.

• Image: Image data in free position and size, to be chosen from the data system.

1. Choose the button “New Element” and the type in the opening list.2. The element will be placed in the upper left corner. Slide it to the desired positi-

on with the mouse or state the coordinates exactly in the propertiy menu.3. Define the size of the element. To do this, click on the element frame and drag it

to the desired size, or state the size exactly in the property menu.4. Define the other properties.

Tip: With “Fill In Placeholder” (Text and Barcode) you fill in a defined templatevariable to the relevant place. Don´t change the syntax.

Tip: In the colour definition you can assign besides the value for red, green andblue, the value “alpha”, to set up lucency (0 = invisible, 255 = not translucent, fortext and frames).

Test print, save and close

• Use the button “Save”, to save the template.• With “Print” you´ll start a test print on an installed printer.

Page 60: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Printer Plug-Ins

60

• Use the button “Close”, to close the designer and go back to the router configu-ration.

Changing existing templates

Via double cklicking an entry in the plug-in configuration you can change the chosentemplate at all times.

Attention: Don´t change variable names and don´t delete template variables,which allready are used in the connection projection. The router can´t use place-holders manipulated like that and gives out a defective label (e. g. with standardvalue).

Printer Plug-Ins

With the printer plug-in you can compile document templates within the OPC router,which are filled with values during run time and which can be printed with a printerinstalled on the local compter or in network.

The following printer plug-ins are available next to the Windows printer plug-in:

• Domino printer plug-in• Plug-in for generic printers• Wolke printer plug-in• Zebra printer plug-in

The following steps are to be done:

• Create the document template in the plug-in configuration• Selection of the printer and filling in the values to the template variables in the

connection projection

Creating the document template

1. Open the corresponding printer plug-in (Domino, Zebra, Wolke, generic printer)in the area “Print templates” uin the plug-in-menu.

2. Choose “Add new label” or double click on the existing headword, to change atemplate.

3. Enter a name for the print template and enter a comment if necessary. To submita cloud printer label, you must also enter the label name.

4. Determine the data for the print template.5. Confirm your entries with “OK”.

The document template can be used for projecting a connection now.

Page 61: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Printer Plug-Ins

61

Domino and Zebra Printer Plug-in: The fields replace the strings in the {} beforethe label is sent to the printer. Either the default value from the table is specified or aconnection e.g. read out via a script.

Plug-in generic printer: When configuring, either the default value from the table isspecified or a connection is made. E.g. read out via a script

Define printer templates

Template variables become dynamic or static at run-time with values, e.g. from thePLC or batch and order data from the database filled. At this point, you define therequired placeholders and, if desired, assign default values.

1. Assign names in the table for the label fields. Simply click on the next free line.To delete fields, go to the corresponding line and right-click to delete a line.

2. If necessary, give your label fields a default value.3. Define your label printing by the fields in the print template. Here you have the

option to drag & drop individual fields into the print template. You can also right-click the boxes and select “Add label field” or select the field, place your cursorin the correct place in your print template and click the “Insert Field” button.

4. Confirm your entry with “OK”.

Page 62: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Script Plug-in

62

To delete a print template, select it in the list and go to the button “Delete Label”at the top.

In order to give a new print name a new name, mark it in the list and click on the“Rename Label” button at the top.With button “Insert control character” you can also insert control characters forDomino-, Zebra and generic printers in the label description. The control charactersare highlighted in black.

Script Plug-in

The script plug-in allows you to freely define transfer and trigger objects with your ownC # code. In this respect, the plug-in configuration differs from the other plug-ins: Afterassigning the name and type, open a code editor to edit the script.

At code-editor

• create assembly references• define input and output parameters• you already find the basic methods you can program• there are tools for OPC access and writing log messages

The script plug-in allows you to describe complex issues in the transfer object andtriggers; For example, to perform conversions or to trigger complex database queries.

At the top of the menu bar you will find the “Rename script” button (blank sheet withpen) to change the previous name of your script.

Note: In larger application scenarios, the router will be part of an overall strategy,eg. For example, where code carrying business logic is deposited. Even with smal-ler projects, it makes sense to consider whether z. B. Conversions in the router orstored procedures in the database are made.

1. Open the plug-in by double-clicking “Script” at the plug-in menu. You receive thelist of transfer object scripts and trigger scripts on two tabs.

Page 63: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Script Plug-in

63

2. Choose “Add script” to create a new script and specify name and type. Dou-ble-click on an existing entry to open the script in the script editor.

3. Program your script (see below). Remember to compile and save.

Transfer objects and triggers are then available for connection configuration.

Transfer Object ScriptWhen you create a new script of type transfer object, there are three predefined me-thods available:

Methoden im Transferobjekt

Method Description

Initialize The method is called once when the OPC router is started.

Write The method is called after another transfer object has written data to this

transfer object. So it is the code that is executed when this object serves

as the destination of a data transfer.

Read The method is called before another transfer object reads data from this

transfer object. So it's the code that gets executed when that object serves

as the source of a data transfer.

You use the “Settings - Edit parameters” menu to create the parameters and variables.You can set the following properties for the parameters:

Eigenschaften von Parametern

Name Name of parameter

Array Yes | No

Determines if the parameter is an array. You can use an array as output

parameter for B. as a source for an SQL insert.

Type of pa-

rameter

Data type

Direction of

parameter

• Input: Input parameters. In connection configuration, this parameter canserve as the destination of a data transfer.

• Output: Output parameters. In connection configuration, this parametercan serve as the source of a data transfer.

• Both: The parameter is both input and output parameters.

• None: Variable that is not visible to the connection designer and is usedonly within the script.

Trigger ScriptWhen you create a new script of type “Trigger”, there are three predefined methodsavailable:

Page 64: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Script Plug-in

64

Methoden im Transferobjekt

Method Description

Initialize The method is called once when the OPC router is started. Here you spe-

cify at least the “query interval”, the interval in which it is checked whether

the trigger condition is correct.

CheckTrigger Method in which the trigger condition is stored. It is called cyclically in the

“query interval” (see above). The method returns back true or false. At

true the data transfer is triggered.

ResetTrigger The method is called after successful data transfer. The parameter is auto-

matically transferred (bool transferError) (true = transfer error). In

this method, an error handling can also be programmed.

Use the “Settings - Edit parameters” menu to set the parameters. The script trigger onlyknows input parameters, so you can not specify a direction here.

The parameter value is defined in the connection configuration. It is not dynamic atruntime. If you need actual values at runtime, you would need to program correspon-ding OPC accesses or database queries in the trigger. The input parameters make itpossible to use the same script in different connections, which basically require differentproperties (table names, access paths, etc.).

The Script Editor

Page 65: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Script Plug-in

65

In addition to standard operating functions (copy, paste, cut, undo, save), the editoroffers some special functions:

• Menu “File – Save externally”: Saves the script as an XML file with header da-ta, code, and parameter definitions. Opening such XML files and thus importingscripts is also possible.

• Menu “Settings – Assembly references”: Enter here used assemblies.• Menu “Settings – Edit parameter”: Here you create required parameters and va-

riables (s. Transferobjekte und Trigger).• Menu “Settings – Edit comment”: The comment is displayed in the script list of

the plug-in.• “F6” key compiles and tests the program for errors.

The right-hand part of the window contains a graphic programming aid for OPC access,variables from the OPC router configuration, log messages and parameters.

• Double-click an entry and the prepared line of code will be inserted. Entries canbe written as a string (in quotation marks) or as a predefined variable.

OpcAccess.Read

Reads the value of an OPC item.

Object <myValue> = OpcAccess.Read("<ItemPath>", "<OPCServerName>")

• Return: Object• ItemPath: Access path and name of the item• OPCServerName: Name of the OPC connection in the router project

OpcAccess.ReadMultiple

Reads out the value of several OPC items.

List<string> <lItemNames> = new List<string> ();

<lItemNames>.Add ("<ItemPath.ItemName1>");<lItemNames>.Add ("<ItemPath.ItemName2>");...

Dictionary<string,object> <MyValues> = OpcAccess.ReadMultiple(<lItemNames>, "<OPCServerName>");

• Return: Dictionary <string>• lItemNames: Access paths and names of the items as a list• OPCServerName: Name of the OPC connection in the router project

OpcAccess.Write

Writes a value to an OPC item.

Page 66: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Script Plug-in

66

OpcAccess.Write ("<ItemPath>", <objValue>, "<OPCServerName>")

• Return: none• ItemPath: Access path and name of the item• objValue: value to be written• OPCServerName: Name of the OPC connection in the router project

OpcAccess.WriteMultiple

Writes several values into several OPC items.

Dictionary<string,object> <dicItemsToWrite> = new Dictionary<string,object> ();<dicItemsToWrite>.Add("<ItemPath.ItemName1>", <Value1>);<dicItemsToWrite>.Add("<ItemPath.ItemName2>", <Value2>);...OpcAccess.WriteMultiple(<dicItemsToWrite>, "<OPCServerName>")

• Return: none• dicItemsToWrite: Dictionary with items and values• OPCServerName: Name of the OPC connection in the router project

OpcAccess.Browse

Offers the possibility to perform a browse (object search) for OPC DA and UA connec-tions.

ItemPath: Access path and name of the itemServerName: Name of the OPC connection in the router project

Various queries are at your disposal:

OpcAccess.Browse(ItemPath, ServerName).Select(e => e.DisplayName).ToArray()

• Return: Specifies the names of the tags from this OPC path.

OpcAccess.Browse(ItemPath, ServerName).Select(e => e.NodeKind.ToString()).ToArray()

• Return: The type of tags from this OPC path.

OpcAccess.Browse(ItemPath, ServerName).Select(e => e.Identifier).ToArray()

• Return: The name of the tags with full path.

OpcAccess.Browse(ItemPath, ServerName).Select(e => e.HasChildren).ToArray()

• Return: If the tags still have child objects.

Page 67: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Variable plug-in

67

VariablesAccess.Read

Reads out the value of a variable of the OPC router project. What is meant here are onlyvariables created via the variable plug-in, ie no placeholders in templates, mail objectsor similar. If the variable does not exist, NULL is returned.

Object <myValue> = VariablesAccess.Read("<VariableName>")

• Return: Object• VariableName: Variable name in the OPC router project

VariablesAccess.Write

Assigns a value to a tag of the OPC router project. What is meant here are only variablescreated via the variable plug-in, ie no placeholders in templates, mail objects or similar.If the variable does not exist, it will be recreated.

VariablesAccess.Write("<VariableName>", Value)

• Return: none• VariableName: Variable name in the OPC router project• Value: Value assigned, Object

Log

Schreibt eine Nachricht in die Logdatei

Log("<strMessage>", MessageType.<LogLevel>)

• Return: none• strMessage: message to be written• LogLevel: to be written log level. If the corresponding log level is deactivated,

it will not be recorded either. MessageType.All logs in any case, regardless ofthe router configuration.

Variable plug-in

With the variable plug-in you can define any number of variables with name, type, andinitial value. Of course, at runtime you can write values in the variables and triggerthem again. In addition, some system variables are available that you can use in yourconfiguration.

The use of variables thus lends itself to fixed, repeatedly required values that arenot stored in a database or also to cache values that can not or should not be stored

Page 68: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Scanner-Plug-in

68

in a database. In complex projects, variables can also be used to provide values inmultiple connections.

The operation is standard:

1. Open the plug-in by double-clicking on “Variables” at the plug-in menu2. Select “Add new variable” or double-click an existing entry.3. Make the necessary settings in the dialog:

Name Name of the variable, appears in the configuration. The

variable name must be unique.

Type Select the appropriate data type. The data type is import-

ant to know the type beyond doubt, e.g. to distinguish a

1 as a number from a 1 as a byte. Typeless is also possi-

ble, the variable can then be filled arbitrarily.

Value Initial value of the variable. In connection configuration,

you can read out this value and of course change it. You

can also enter the value DB-NULL to output NULL va-

lues in the transfer object.

4. Confirm with “OK”.

The variable is now available for configuring a connection.

Scanner-Plug-in

The following scanner devices can currently be connected:

Page 69: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Scanner-Plug-in

69

• Barcode-Reader

Properties of scanner connectionsYou can set the following properties in the configuration of the scanner plug-in for abarcode reader:

Name Any name where this device appears in the connection confi-

guration.

COM Port Enter the COM port for communication with the barcode rea-

der.

Connection settings serial Barcode reader

Baud rate Select a baud rate. Specifies how often a signal in a commu-

nication channel changes state.

Data bits Specify how many bits of data to transfer.

Parity Select a parity from the drop-down menu. For example,

Even, Mark, Space.

Stop bits Specify how many stop bits are needed.

Flow control Select how the data flow should be controlled. Eg. software,

hardware

Connection settings Tcp Barcode reader

IP Enter the IP of your Tcp barcode scanner.

Page 70: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in RFID Reader

70

Port Enter the port of your Tcp barcode scanner.

Plug-in RFID Reader

This operation is standard:

1. Open the plug-in by double-clicking on “RFID Reader” in the “Plug-ins” menu.2. Choose “Add” or double-click an existing entry.3. Make the necessary settings (see section “Properties of RFID Reader connecti-

ons”).4. Confirm with “OK”.

You can now make connections with your RFID reader.

Properties of RFID Reader connectionsThe following properties are set in the configuration of the RFID Reader plug-in:

Name Any name where this connection appears in the connection

project planning. Choose a name that you can recognize uni-

quely!

Client certificate Select a client certificate from the drop-down menu. Using

the plus sign, you can add another certificate, using the mi-

nus sign to remove one. Another button allows you to display

the properties of an existing certificate.

Page 71: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in RFID Reader

71

Authentication process Select an authentication from the Identity Verification drop-

down menu. If you select Username, you must enter Userna-

me and Password at Registration information.

Endpoint Enter an endpoint for your connection opc.tpc://

RFID-Reader name Select your RFID Reader from the drop-down menu.

Scan mode Selection of scan mode between “Scan manually”, “Scan in

regular interval” or “Scan in background”.

Scan interval (ms) Enter the scan interval in milliseconds.

Trigger if minimum si-

gnal strength is rea-

ched

Only trigger the scan if the signal strength is sufficient.

Signal strength (RSSI) Tags with a lower signal strength during scanning are igno-

red by the OPC router.

Trigger if an RFID tag

was not captured for a

defined time.

Specifies how long a tag must be outside the reading field

before the OPC Router triggers another transfer for this tag.

Hibernation interval

(ms)

Period where a RFID tag is not to be recorded.

Highest security level Activate if the highest security level has to be used.

Registration information

Username Enter a username to authenticate yourself.

Password Enter a password to authenticate yourself.

Security settings

Security mode No Security = “None”, Signing = “Sign”, Signing and Encryp-

ting with “SignAndEncrypt”.

Encryption Encryption methods to choose from. Set the highest method

available on the OPC server.

Page 72: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Plug-in Configuration | Plug-in RFID Reader

72

Use the “Check connection” button to check whether your connection to the RFIDReader is successful.

Page 73: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting)

73

Defining Connections (Projecting)

After having configured all plug-ins needed, you can start defining connections. Asonly one Router project can be loaded as runtime configuration, you want to projectall connections within one single project file. You may, however, sort the connectionsinto different folders (=connection group) (similar to Windows Explorer). Every singleconnection or connection group can be activated or deactivated so that it is executed(or not executed) during runtime.

Important: We recommend to backup a productive configuration before editing.Thus, you can revert to a running project should any error occur after editing.

Creating and Managing Connections

To create a connection, go to the Snap-in area and select the connections snap-in:

1. Go to the “New Connections” button.2. Insert a name. The name has to be unique within the project.3. Confirm with “Enter”.

The connection has been created and opened in main window. Existing connectionscan be opened by double-click in the project configuration tree.

Note: Right-clicking on Local Service will also bring you to the Settings area.

Page 74: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Activate/Deactivate Connections

74

Creating Connection Groups

A connection group combines several connections. Groups can be nested as required,e. g. like folders in Windows Explorer. (De)activation of a group (de)activates everysingle connection of that particular group. You can, however, e. g. deactivate a groupand reactivate single connections within that group afterward.

To create a connection group, go to the connection snap-in

1. Go to the connection button “New folder”.2. Insert a name. The name has to be unique within the project.3. Confirm with “Enter”.

Manage Connections and Connection Groups

You can copy, paste, move, rename or delete connections and connection groups, si-milar to Windows Explorer. However, only one object can be edited at once. Selectionof multiple elements is not possible.

1. Select the connection (group) to be edited.2. Choose the desired action

• from the menu “Connections”• from the connection’s context menu (right mouse click)

3. The following actions are possible:

• Copy: You can create connection groups, connections, template instances,templates with the right mouse button “Copy” and “Paste”.

• Delete: After selecting the right mouse click on the connection, go to theaction “Delete” and confirm with “Enter”.

• Rename: After having selected “Rename” enter a new name and confirmwith “Enter”.

• Move: Move by copying the element and delete the original afterward ordrag & drop with mouse.

If you right-click a parent folder in the tree structure and select “Expand All” or“Collapse All” from the menu, all subfolders and their connections are displayed orhidden.

Activate/Deactivate Connections

It is required to save all connections in one single project file. You can, however, deac-tivate connections or connection groups within this file.

Activate/Deactivate Connections

1. Go to the Snap-in bar “Go productive”.

Page 75: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Project Connections

75

2. Select all connections and / or connection groups that you want to activate byselecting a checkmark next to the connections / connection groups.

3. Click on button “Go productive”. .

Activate/Deactivate Connection Groups

1. Go to the Snap-in bar “Connections”.2. Right-click on the connections you want to activate / deactivate.

This command de/activates all connections and subgroups of this group. You can openthe connection group and reactivate single connections or subgroups if necessary.If you right-click on the folder of your connections, you can activate or deactivateall connections in your folder at once via the menu with the properties “Activate allconnections” or “Deactivate all connections”.

Project Connections

A connection contains three transfer objects at least: a source, a destination and a trig-ger that triggers the transfer should its conditions occur. You can define a free numberof sources and destinations which can be accessed in multiple steps. You can defineseveral triggers as will. Triggers might be linked with AND or OR, triggering either if allconditions occur or if at least one condition occurs.

The transfer objects may be found in the right-hand toolbox.Right mouse-click on a transfer objects with in project allows editing, copying, pa-

sting, cutting, deleting. Right mouse-click on a connection arrow allows defining thestep order.

Note: To project a connection, all plug-ins needed have to be configured.

1. Create a new connection.2. Give your connection a suitable name.3. Choose the transfer object you want to define as source from the toolbox

“Transfer Objects” (e. g. “OPC UA/DA”if you want to read data from an OPCServer).

4. Place the source in the connection (main window) per drag and drop.5. Open the transfer object with double-click.6. Set the properties. The properties of the transfer objects are explained in the

next chapters.

a. Selection of the OPC connection.b. Alternatively: Enter data points’ name or open the tag browser.c. Transfer data points to the transfer object by double-clicking.

Page 76: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Project Connections

76

7. Confirm with “OK”.

8. Project a destination, e. g. a database transfer object.

a. Choose the DB transfer object from toolbox “Transfer Objects”.b. Place it within projection area.c. Open transfer object with double-click.d. Choose a set of DB access data.e. Choose a type for this transfer object. If database servers as destination,

that would be either INSERT or UPDATE. Choose INSERT in this case.f. Choose the table you want to write to.

g. Choose the columns you want to write to. Sort with “Up” and “Down” tokeep the overview in the configuration.

h. Confirm with “OK”.

Page 77: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Project Connections

77

9. Drag connections arrows between transfer object items of the source and of thedestination. Click onto the source’s item, hold mouse button down, drag overdestination item. Drop by releasing mouse button. Finished!

10. Configure a trigger:

a. Choose a trigger from the toolbox.b. Place it within projection area.c. Open with double-click.d. Configure the trigger.

Page 78: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

78

Sources and Destinations

Transfer Object “OPC” (DA/UA)OPC servers and thus PLCs are available both as source and destination of data trans-fers. The OCP server’s set of access data has to be specified within plug-in configura-tion. Create a OPC transfer object as described above..

Double-click on transfer object to assign the properties:

OPC access data Select a set of OPC access data. Dependent on plug-in con-

figuration, OPC Router will recognize DA/UA connections.

Page 79: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

79

CAUTION: If you are using FAS-inMOVE and if youare configuring OPC Router manually as well, donot select an OPC set of access data with prefix[FiMx] when projecting manually. These access da-ta belong to FAS-inMOVE and might be changedor deleted from there. Create a new set of accessdata within plug-in configuration instead.

OPC items Enter OPC items needed. Use the Tag Browser to browse

items.

Note: IF within OPC access data Define typesmanually is activated, use the drop-down to spe-cify the data type that is expected.

Node ID Enter Node ID of UA items needed. Use the Tag Browser to

browse items.

Quality string OPC quality as string will be available as transfer element

Quality ID OPC quality as integer will be available as transfer element.

Within the item’s list, select several items by holding mouse button down (“Ctrl + a” willselect all). Selected items can be copied to clipboard and inserted (“Ctrl + c”, “Ctrl + v”).

Note: OPC DA: You may either enter tags/aliases from OPC server or addressdata blocks in PLC directly. Just keep in mind to specify the correct Access Pathin your Plug-in Configuration .

Using the Tag Browser

Using the button “Tag Browser”, you will open another dialog to browse and select OPCitems. The dialog is not modal, you can switch between transfer object and browser.

Enter a search string (OPC DA only) to hide the tree view and show all items mat-ching the search term.

1. Select the row for the new item.2. Open the Tag Browser3. Assign Item by double-click.

Page 80: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

80

Read Quality Values

With properties Quality string and Quality ID, the OPC quality values areavailable and can e. g. be transferred and stored together with the value.

String ID/Integer

Timeout -3

NotInitialized -2

NotSpecified -1

bad 0

badConfigurationError 4

badNotConnected 8

badDeviceFailure 12

badSensorFailure 16

badLastKnownValue 20

badCommFailure 24

badOutOfService 28

badWaitingForInitialData 32

uncertain 64

uncertainLastUsableValue 68

uncertainSensorNotAccurate 80

uncertainEUExceeded 84

uncertainSubNormal 88

good 192

goodLocalOverride 216

Transfer Object “Database”Databases are available both as source and destination of data transfers. The databaseset of access data has to be specified within plug-in configuration. Create a DB transferobject as described above.

Configure the object’s properties by double click:

DB access data Select one of the configured sets of access data

Type Select: Queries one or more rows from a table or a view.

You have to define filter and sorting criteria as well. Thus, the

transfer object will work as datasource.

Page 81: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

81

Insert: Inserts a new row into a table. Thus, the transfer ob-

ject will work as destination. For a database insert, incomple-

te arrays are padded. For example: If a single entry from a ti-

mestamp and several entries from an array should be read

into a database, so the time stamp for the individual varia-

bles of the array can be done. The timestamp is therefore

automatically used multiple times, until all variables have be-

en read. Therefore, applies: An insert always determines the

highest InsertCount. Entrys with smaller count are then ex-

panded by a factor of X, so that the values in the table are fil-

led up. Also selectable for views.

Update: Updates one or several rows within a table. You ha-

ve to define filter criteria as well. Thus, the transfer object will

work as destination. Also selectable for views.

Delete: Deletes one or several rows within a table. You have

to define filter criteria as well. Also selectable for views.

Stored procedure: Executes a stored procedure as soon as

trigger conditions are met. Define parameter values (as de-

stination) and use return values as source.

Important: If Type is set to “Stored Procedure”, OPC Router will execute thisProcedure immediately, submitting default parameters (string = NULL, int = 0 etc.).Thus, OPC Router detects the structure of the result set. Procedure will be rolledback. This means, that the Stored Procedure called must be transaction safe andmust not return errors on default parameters.

Tab General (all types)

Table (View, Stored

Procedure)

Table, View or Stored Procedure this object refers to.

Note: Table has to have a primary key. Tables wi-thout primary key are not supported.

Available columns/Co-

lumns used

(View/Table operations)

Available columns: Columns available in table or view, but

not assigned to this object yet.

Columns used: Columns assigned to this object and thus

shown as items within this objects (to be used as source or

destination).

This distinction is made to keep the layout well-arranged, e.

g. imagine you only need one out of 30 columns. So only this

one column is shown in the connection layout.

Page 82: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

82

Move columns by double click onto their names or by the

buttons provided (after having selected the columns). But-

tons “Up” and “Down” will sort the columns (again, this is to

keep the layout well-arranged)

Stored Procedure: The lists show input and return parame-

ters.

Tab Filter (Select, Update, Delete)

Filter Shows filters and filter groups. From this tree, the SQL state-

ment is constructed. Filter values can be inserted dynami-

cally during runtime. Use Variables/Constant values to insert

constant filter criteria.

Use Add-buttons to add filters or groups. Delete will remove

the selected entry.

Edit filter/filter

group

Entries are shown dependent on selected entry.

Junction: Defines whether filters are linked with AND or OR.

Column: Column to be filteredRelational operator to compare values

Preview Preview of SQL Statement, e. g. WHERE (UtcTimeStamp

> ?) AND (Value = ?) .

Here, all rows would be selected with a TimeStamp newer

than the filter and with a value equal to the filter.

The values of the filter criteria have to be inserted during

runtime. Thus you can provide e. g. values of OPC items or

other tables as criteria. If the filter should be static, simply

project a constant value object and transfer its value into the

filter.

After confirming with “OK”, you will see filter criteria as elements (items) of this transferobjects. Draw connection arrows from any source to assign values during runtime. Withtime filters, relative filter criteria like “-1d” (=yesterday) are allowed.

Tab Query (Select)

Sorting by column Column with sorting criteria.

Sorting order Ascending/Descending

Do not change records Transferred records will not be changed.

Mark transferred re-

cords

(only with select from table)

In the column specified below, for every row transferred suc-

cessfully, a “1” is inserted, a “2” if an error occurred.

Column to mark (only with select from table)

Page 83: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

83

Column to mark transferred rows. Default value set by data-

base should be “0”

Delete transferred re-

cords

only with select from table)

Transferred rows will be deleted.

CAUTION: Rows in database table will be deleted without

recover possibility.

Cancel transfer (with

empty result)

If the result set is empty, the transfer is canceled.

Log error (with empty

result)

If the result set is empty, the transfer is canceled and an error

is logged in log file and status monitor.

Limit number of re-

cords

Transfers only the specified number of rows/records. Be sure

to have you result set sorted correctly.

Example: If only the newest record is to be transferred, then

sorting column should be e. g. a “UtcTimeStamp” with

Sorting order“Descending”, the number of records

limited to “1”.

Transfer only with da-

ta change

If set, the result set is read with OPC Router start and trans-

ferred only after having changed (plus trigger conditions met)

Note: If Type is set to “Update”, the transfer object will provide the number of rowsupdated as source.

Select always with filter

Use SQLSelect only with filters (WHERE clause) so as not to load the whole tableinto memory. In conjunction with transfer marks, you filter z. B. after <Transferflg><> 1

Mark transferred records

Mark transferred records. In your tables, keep columns in which the OPC routercan mark transferred data records (“Transfer flag” not transferred, transferred, transfererror). The transfer flag columns should be set to the default value of “0” and shouldnot be allowed to assume NULL, so that a correct assignment to the three status arealways guaranteed.

Index transfer flagTo improve performance, the transfer flag column should be indexed as follows:

• If the OPC router should filter after transfer flag = 0:

CREATE NONCLUSTERED INDEX [IX_TransferTable_Transferflag] ON [dbo].[TransferTable]

Page 84: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

84

( [Transferflag] ASC)WHERE ([Transferflag]=(0))GO

• If the OPC router should filter aftre transfer flag <>1:

CREATE NONCLUSTERED INDEX [IX_TransferTable_Transferflag] ON [dbo].[TransferTable]( [Transferflag] ASC)WHERE ([Transferflag]<>(1))GO

Sort select results

Sort the table in ascending order after the transfer flag. This way, the untransferredrecords are transferred first; erroneous individual transfers are only attempted again atthe end of the transfer. For performance optimization, filtering can be done after thetransfer flag column (transfer flag = 0 or = 2). A correspondingly filtered index can becreated in the database for this purpose.

Transfer Object “SAP-RFC”SAP RFC can be used both as source or destination. A set of SAP access data has tobe specified within the plug-in configuration. The transfer object is created as describeabove.Open transfer object by double click and configure as follows:

Tab General

SAP access data Select SAP set of access data.

Function Group Select one of the function groups available.

Function Group/Search Enter a search string (*=place holder) and click “Filter” to ...

Function Group/Selec-

tion

... show only those groups matching you search term. Select

here!

Function Select one of the functions available in your Function

Group.

Function/Search Enter a search string (*=place holder) and click “Filter” to ...

Function Group/Selec-

tion

... show only those functions matching you search term. Se-

lect here!

Registerkarte: Parameter

Parameters available Select the required parameters by setting the checkmarks

accordingly. You can also take whole categories (see below).

Parameters are categorized:

Page 85: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

85

• Import: Data transfer into SAP system• Export: Data transfer from SAP system• Change: Data transfer into SAP system and return of changed values .

Categories may contain sub-categories, e. g. “Table” containing data tables.

Transfer Object “SAP-BAPI”SAP BAPI can be used both as source or destination. A set of SAP access data has tobe specified within the plug-in configuration. The transfer object is created as describedabove.

Open transfer object by double click and configure as follows:

Tab Settings

SAP access data Select SAP set of access data.

Business Object Select Business Object.

Method Select one of Business Object’s methods.

Page 86: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

86

Object keys used Object keys define an object positively and are added auto-

matically. Required if method depends on instance.

Registerkarte: Parameters

Please specify a func-

tion

Select the required parameters by setting the appropriate

check mark. You can also take whole categories if you place

the checkmark accordingly.

Note: The specified table must have a primary key.Tables without primary keys are not supported.

Parameters are categorized:

• Import: Data transfer into SAP system• Export: Data transfer from SAP system• Change: Data transfer into SAP system and return of changed values .

Categories may contain sub-categories, e. g. “Table” containing data tables.

Transfer Object “SAP-IDoc”SAP-IDocs (Intermediate Documents) can be used both as source or destination. A setof SAP access data has to be specified within the plug-in configuration. The transferobject is created as described above. The transfer object can send Idocs, the Idoctrigger can receive Idocs.

Open transfer object by double click and configure as follows:

Page 87: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

87

Tab: Settings

SAP access data Select SAP set of access data.

IDoc Type Select an IDoc type provided by your SAP system

IDoc Enhancement Class enhancement of IDoc.

Creation • Apply plug-in configuration: It selectswhat was selected in the SAP-plug-in by IDochandling.

• Create empty IDoc: When an IDoc is loadedfrom SAP, the IDoc is sent, but the existing ele-ments are emptied and only their own changesare sent.

• Use template from SAP system: The loa-ded IDoc from SAP is used but edited with itsown values.

Registerkarte: Parameters

Please mark the segments you want to read or write.

You might write several records at once to the IDoc; the segments needed will be crea-ted as required. The other way round, the IDoc might deliver several records at once.

Transfer Object “ERP Webservice”Webservices are both available as destination (input parameters) or source (outputparameters). Create an ERP object as described above.

Double-click on transfer object to set the following properties:

Page 88: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

88

ERP access data Select one of the configured web service sets of access da-

ta.

Method Select the method to be called.

Wsdl URL dynamical Enable to pass the URL dynamically at runtime. However,

the method and the parameters must be identical.

Timeout Time (in ms) that the connection may take before a connecti-

on error is returned.

All input and output parameters of the webservice can be used.

Parameter of Type “Array”

Parameters of type “Array” offer two possibilities:

• Activate the property Size of array dynamic to read all elements withinthe array.

• Limit the number of elements read by defining an number of nodes. The numberof nodes corresponds to the number of elements reads. Attention: The webser-vice, not the OPC Router defines which elements are delivered.

a. Leave property Size of array dynamic deactivated.b. Select the array.c. Click on “Add node”. These nodes appear within the array.d. Add as many nodes as desired.

Remove a node by selecting it and click on “Remove node”.

Nested classes with parameters do not support dynamic parameters. Do you still wantto use nested classes so must be defined before how many elements the array hassince all nodes have to be created by themselves.

Data type “Integer”

The type “integer” represents by XSD-standard an infinite number that can only bestored as a string. If an integer has to be passed, the web service must use the “int”data type, which is read out correctly.

Page 89: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

89

Transfer Object “Mqtt”To enable a connection proceed as follows.

After double-clicking the transfer object, set the following properties:

Broker connection Select a configured broker connection from the drop-down

menu.

Quality of Service Selection how often the query should be executed.

Payload data type Selection of the data type Byte Array or String.

Payload encoding Selection of the encoding for the Mqtt query.

Topic Enter the topic.

Hold When activated, the query result remains visible until a new

one is generated.

Dynamic topic Activate if different topics are required. Topic can be defined

variably via Input.

Confirm your entries with “OK”.

Page 90: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

90

Transfer Object “Telegram”Create a telegram object within the connection as described.

Set the following properties after double-clicking the object:

Connection Select your telegram connection from the drop-down menu.

Receiver Select the receiver for receiving the telegram from the drop-

down menu.

Message type Select the message type with which the message of the tele-

gram is to be transmitted, e.g. text message or voice messa-

ge.

Page 91: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

91

Transfer Object “ThingWorx®”Create a ThingWorx® transfer object within the connection as described. You can createa ThingWorx® Service Transfer Object or a ThingWorx® Property Transfer Object. Youcan use the Service Transfer Object to have a service run by a Thing.

After double-clicking on the transfer object, set the following properties and confirm yourentries with “OK”:

Thing Select your Thing from the drop-down menu.

Service Select the ThingWorx® service from the drop-down menu.

With the property transfer object properties of a thing can be addressed. For example,values can be written into a Thing. Select your Thing and select the required properties.

Page 92: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

92

Only properties that are not write-protected can be selected. Confirm your selectionwith “OK”.

Page 93: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

93

Transfer Object “E-Mail”An e-mail object is a possible transfer destination. The needed e-mail (SMTP) serverhas to be configured as plug in instance. Create a mail transfer object as explainedwithin the connection.

Set up the following properties after double clicking the transfer object:

E-mail set of access

data

Here the SMTP server are available as configured instances

of the OPC plug in.

Number of recipients Enter the number of receivers here. The transfer object will

create that number of elements, which are filled from you du-

ring run time with e mail adresses e. g. from variables or a

Page 94: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

94

data base table. With a dynamic data base filter you can figu-

re the receivers flexible.

Sender Adresser of the e-mail, has to be in format of an e mail

adress ([email protected]).

Subject Subject line in the e mail. You can also create placeholders

for a dynamic subject line in the subject. Create a new place-

holder and then add [%PlaceholderName%] to the subject of

the email.

Number of attachments Provides a corresponding number of file path / name ele-

ments in the transfer object, which you can either dynamical-

ly fill via a constant object or at runtime. This file(s) will then

be sent as attachments

Text as HTML Gives out the mail in HTML format.

Send mails individual-

ly

An e-mail is sent to each recipient individually, so that the

individual recipient cannot see to whom the e-mail was still

sent. Even if an e-mail address does not work, all other reci-

pients can still receive their message.

Content Text in the e-mail. Fill in Placeholders via drag & drop,

which are filled from you during runtime.

Placeholder Define any variables, which are filled from you during run-

time, e. g. with process values or messages. Create a new

placeholder with “New”. Mark a placeholder and add it to the

text with “Add”. You can also add via double click or drag &

drop.

Transfer Object “Printer”The print starts with triggering. The template is set up in the transfer object; printer andvariable content are to be set up during runtime. Create a printer transfer object withinthe connection as explained.

Domino printer

Set the following properties after double clicking the transfer object for Domino prin-ter:

Label Document template, created in the Plug in Configuration

Static printer selec-

tion

• activated: The printer is set up during creating time andis not be changed during run time.

• deactivated: The printers name has to be defined du-ring run time (from variable, data base or similar).

IP Enter the IP address of your static printer.

Page 95: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

95

Port Enter the port of your static printer.

The transfer object gives you all placeholders from the document template. Are thesetemplate variables not be filled in the transfer object, the router uses the standard valuefrom the template.

Should you call the printer dynamically, please pay attention to the correct spellingof the printers name- it has to be equal to name given in Windows.

Generic printer

Set the following properties after double clicking the transfer object for generic prin-ter:

Label Document template, created in the Plug in Configuration

Static printer selec-

tion

• activated: The printer is set up during creating time andis not be changed during run time.

• deactivated: The printers name has to be defined du-ring run time (from variable, data base or similar).

IP Enter the IP address of your static printer.

Port Enter the port of your static printer.

The transfer object gives you all placeholders from the document template. Are thesetemplate variables not be filled in the transfer object, the router uses the standard valuefrom the template.

Should you call the printer dynamically, please pay attention to the correct spellingof the printers name- it has to be equal to name given in Windows.

Windows printer

Set the following properties after double clicking the transfer object for generic prin-ter:

Document Document template, created in the Plug in Configuration

Specify number of co-

pies

It can now be set to request multiple copies for one-sided

documents.Only 1 (!) print job is sent for this! Whether the

document is printed single-sided or double-sided must be

specified in the printer driver. So labels can be printed on the

front and back side if necessary.

Static printer • activated: The printer is set up during creating time andis not be changed during run time.

• deactivated: The printers name has to be defined du-ring run time (from variable, data base or similar).

Parallel printing Activate this option if you want to print on different printers

parallel.

Page 96: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

96

Printer Enter the port of your static printer.

The transfer object gives you all placeholders from the document template. Are thesetemplate variables not be filled in the transfer object, the router uses the standard valuefrom the template.

Should you call the printer dynamically, please pay attention to the correct spellingof the printers name- it has to be equal to name given in Windows.

Wolke printer

Set the following properties after double clicking the transfer object for Wolke printer:

Label Document template, created in the Plug in Configuration

Static printer selec-

tion

• activated: The printer is set up during creating time andis not be changed during run time.

• deactivated: The printers name has to be defined du-ring run time (from variable, data base or similar).

IP Enter the IP address of your static printer.

Port Enter the port of your static printer.

The transfer object gives you all placeholders from the document template. Are thesetemplate variables not be filled in the transfer object, the router uses the standard valuefrom the template.

Should you call the printer dynamically, please pay attention to the correct spellingof the printers name- it has to be equal to name given in Windows.

Zebra printer

Set the following properties after double clicking the transfer object for Zebra printer:

Label Document template, created in the Plug in Configuration

Static printer selec-

tion

• activated: The printer is set up during creating time andis not be changed during run time.

• deactivated: The printers name has to be defined du-ring run time (from variable, data base or similar).

IP Enter the IP address of your static printer.

Port Enter the port of your static printer.

The transfer object gives you all placeholders from the document template. Are thesetemplate variables not be filled in the transfer object, the router uses the standard valuefrom the template.

Should you call the printer dynamically, please pay attention to the correct spellingof the printers name- it has to be equal to name given in Windows.

Page 97: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

97

Transfer Object “Excel”Excel transfer objects can be used as source and destination. You can write data indefined boxes or read the out. You can also write several data sets from the data baseinto several lines in the Excel table. A plug in configuration is not necessary, you canproject the transfer object as explaineddirectly in the connection.

Set the following properties after double clicking the transfer object:

Section: File

File Dynamic | Static

You can define the file to be worked on at this point. Then

choose the option “Static” and use the button“...”, to select

the file.

If the filename is to be found dynamically during runtime (e.

g. from a data base, a variable or a script), choose “Dyna-

mic” here. This way, you can connect a data source to the fi-

lename within the connection.

Note in any case, that the filepath is to be processed in the

Windows system. With the button “...” you gain the correct

path ! (e. g. C:\Documents and Settings\<User>\Own

files instead of \Own files)

Action Edit File | Create File

“Edit File” refreshes an existing file. Is the file not existing,

you can either create it new or abort the transfer. The option

“Throw Error” includes breaking up the transfer.

“Create new File” creates a new file in any case. This one

can be empty or basing on a template (XLT respectively XL-

TX). For selecting the template please note the same as

mentioned under File.

Section: Cells

Spread Sheet Dynamic | Static

The name of the spread sheet can also be found either the

dynamic or the static way. If no name for the table is given,

the OPC Router writes the data into Table1. State “Dyna-

mic”, to connect a data source to the tables name within the

connection.

Cells Here state the cells in the usual format “Column/Line”, e. g.

A1.

The following writing modes are available

Update Cell: Overwrites the chosen cell with a new value.

Page 98: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

98

Insert Cell: Adds a new cell to the chosen position. All other

cells are moved down.

Append Cell: Finds the first empty cell under the chosen po-

sition and fills in the content. This option can be used to, e. g.

write the result of an SQL Select (means several data sets)

into the table.

Section: Archiving

Archiving Activate, to save the Excel file in the state is has before

transferring. Note: If transfers are triggered every second, an

archive file is created every second, too. This option is ob-

viously smarter used, if for example a daily statistic is nee-

ded. The archive files name includes date and time of the ar-

chiving (not: the creation of the original file).

Archive Folder Dynamic | Static

The notes given under File are to be mentioned here, too –

but here you just state one folder, no filename.

Page 99: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

99

Transfer Object “Euromap 77”An Euromap object is available to you as transfer source and destination The requiredprofile must be configured as a plug-in instance. Create a transfer object within theconnection as axplained.After double-clicking on the transfer object, set the following properties:

Profil Here the profiles are available as configured instances of the

Euromap77 plug-in. Select a profile from the drop-down list.

Endpoint Select an endpoint from the drop-down list. With the button

“Test” you can check if your connection works

Machine Select a machine from the drop-down list. In the list below

you will now get a selection list with all possible informati-

on of this machine. Activate the areas that are necessary for

Page 100: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

100

your configuration. Now you can use this selected informati-

on as transfer information.

Transfer Object “Euromap 63”An Euromap object is available as a transfer source and destination. The required profilemust be configured as a plug-in instance. Create a transfer object within the connectionas described.Set the following properties after double-clicking on the transfer object:

Instance Select the desired Euromap63 instance from the drop-down

menu.

Page 101: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

101

Command Select the required command for your instance. Use the

“Edit” and “Add” buttons to edit the command selection.

Confirm your selection with“OK”.

Transfer Object “File”File transfer objects can move files and make file contents available. File paths can beselected from a database or as a constant. You can directly transfer object within theconnection as explained projektieren.

After double-clicking on the transfer object, set the following properties:

Tab: Source

Dynamic or Static Dynamic or static source path selection. For static source

path, select the file name to read the file content.

Page 102: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

102

Abort on file not

found

Enable to abort the transfer without error message if no file is

found.

Encoding Character encoding can be selected. The default is UTF8.

Tab: Target

Move file after trans-

fer

Activate this property and select a folder to save the file in

the state before the transfer operation. Attention: If trans-

fers are triggered every second, a new archive file is crea-

ted every second. This option is therefore more suitable if,

for example, daily statistics are created. The file name of

the archive file contains the date and time of archiving (not

the creation date of the original application file). Format:

yyMMdd_hhhmmss_fileName.

Dynamic or Static Dynamic or static target path. For static target path, select

the file name to read the file content.

Transfer Object “Skript”You use the self-programmed scripts in the data transfer with the transfer object “script”.The scripts must be of the transfer object type in the Plug-in-configuration.

Create a script transfer object within the connection as explained.After double-clicking on the transfer object, set the following properties:

Data Source Available scripts to choose from.

The input and output parameters of the script are now available to you as elements ofthe transfer object.

Page 103: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

103

Transfer Object “Variables”Self-defined variables are available to you both as sources and as targets, system varia-bles as source. The required variables must be configured as plug-in instances. Createa variable transfer object within the connection as ecplained.

After double-clicking on the transfer object, set the following properties:

Tab: General (all types)

Available varia-

bles/Variables used

Available variables: existing, not yet used variables.

Columns used: Variables that are displayed as elements

(items) of the transfer object and are therefore available for

transfers.

This distinction primarily serves the overview in the configu-

ration area – for example, if only one variable of 30 existing

is needed for the connection.

Page 104: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

104

Move the columns by double-clicking on the column name

or via the button “<” and “>” (after marking the column). “<<”

and “>>” move all columns.

Transfer Object “Static”Constants are available as a data source for fast configuration of “static” values. Incontrast to variables, constant objects only apply within the connection in which theyare configured. Constant objects can only be set at design time, not changed at runtime.

If a value is too long, you will be asked if you want to cut off this value. If you click“Yes”, the value is truncated to the maximum length of 255 characters. If you click “No”,the dialog remains open and you can select a new value.

Create a constant transfer object within the connection as explained.

After double-clicking on the transfer object, set the following properties:

Value Any value

Type (after click on “Ex-

pand”)

(ptional) Data type

Page 105: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

105

Transfer Object “Calculator”You can use all available (numerical) values as input for calculations. You then use theresults as a data source in the further transfer. Create a computer transfer object withinthe connection as explained.

After double-clicking on the transfer object, set the following properties:

1. Use the button “New” to add as many placeholders as your formula requires.These placeholders are filled later with values of OPC items, from database ta-bles, from variables ...

2. Compose the formula.

• The placeholders are simply entered or accepted by double-clicking.• Use the normal mathematical symbols for connection (+-*/()).• Functions apply to the immediately following placeholder, otherwise please

set brackets (e.g. sqrt(A+B) = Square root of the sum of A and B).• Rounding functions: Via the “Round up” or “Round down” button (rounds

up to whole numbers)• Concatenate function = concatenate strings: The values must be marked

with "" in the formula e.g. CONCATENATE("A","B").• Additional functions via the button “Further”.

3. Use the “Test” button to open another dialog. Enter values for the placeholdershere and check the formula.

4. If all right, confirm both dialogues with “OK”.

Page 106: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

106

The computer transfer object is now available in the connection. Connect variables,OPC items, database fields, etc. with the placeholders and use the result as a datasource.

Transfer Object “Text replace”The “Text replace” transfer object is used to transfer texts using connections in orderto combine values and texts.

After double-clicking the transfer object, set the following properties:

Output Choose between SingleText and Array:

• Output “Array”: Depending on the length of the largestinput array, the same number of strings is created inthe output array.

• Output “SingleText”: Regardless of the amount of da-ta entered, only 1 string is output at a time. The data issummarized accordingly.

Text Enter your text here. You can enter placeholders by dou-

ble-clicking on the corresponding entry in the placeholder list

to the right.

Placeholder At this point, enter a new placeholder using the plus sign or

edit a selected placeholder using the corresponding button.

Use the red cross to remove a placeholder.

Define placeholder

Name Enter a unique name for the placeholder.

Data type Specify the data type of the placeholder, for example, String,

DateTime.

Default Value Enter a default value if required.

Preview The preview shows you the form in which a value will be dis-

played.

Format Selection of a format for the data types Int64, Float or Date-

Time,

Page 107: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

107

Culture Select the culture to get the corresponding spelling. For ex-

ample, commas or dots are set differently depending on the

selected culture.

Transfer Object “JSON”With the JSON transfer object as a simple data exchange format, you can evaluate,change or create formatted texts or data in JSON. Create a JSON transfer object withinthe connection as described. A plug-in configuration is not necessary. You can configurethe transfer object directly within the connection as described. The JSON expressionis “JSONPath”.

Here you will find an overview of the most important JSONPath syntax elementscompared to the XPath elements:

XPath JSONPath Description

/ $ The parent object/element

. @ Element in current context

/ .or [] Specification for child elements

// .. Recursive descent

Page 108: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

108

* * Placeholder. All objects/elements regardless of their

name are selected.

[] [] Subscript operator for element collections.

[] ?() Executes a filter (script) expression.

A date display should be written as follows:

2012-04-23T18:25:43.511Z

After double-clicking on the transfer object, set the following properties:

JSON Items Enter the JSON items directly or select entries from the

JSON tree. The names of the items can be freely assigned

and serve as help during project planning. The items can be

written and read during a transfer. To delete an entry, place

the cursor next to the field to be deleted and press the dele-

te key. If you are still in edit mode, click on the escape key to

end editing and then delete.

Page 109: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

109

JSON Parameters If necessary, enter additional parameters for default values

here. During the transfer, the placeholder “{parameter}” is re-

placed by the given value ($.some[0].value). If nothing was

passed, the default value is used.

JSON Tree The JSON Tree is the standard JSON document during a

transfer. This can be read and written to. Click on the “Edit”

button and enter your tree structure. Confirm the JSON Edi-

tor entries with “OK”. Now select an entry and right-click on

“Create Expression”. The entry now appears at the top of the

JSON Items list.

A tree structure is defined in the editor of the JSON tree as follows:

{ "key":"value", "some":[{"name":"eins","value":1},{"name":"zwei","value":2},{"name":"drei","value":3}] }

The expression $.some[?(@.name == 'two')] selects {"name": "two", "value":2}. Yourtree structure would look like this after confirming with “OK”:

You have the possibility to describe arrays that contain an object array as content.Example: Describing the array properties up to n times. The actual array had only 2

entries, but n entries corresponding to the highest count are created within the array.

Page 110: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

110

Arrays can also be further nested. The example below shows how to filter values fromdifferent arrays. In the example you want to get the object in the array at “fields” withthe key “content” and all other information.

JSON document:

{"fields": [ { "content": [ {"name":"one","value":1}, {"name":"two","value":2}, {"name":"three","value":3} ] }, { "content": [ {"name":"eleven","value":11}, {"name":"twelve","value":12}, {"name":"thirteen","value":13} ] } ]}

Output from the item with the expression $.fields[?(@..*.name=='two')]:

{ "content": [ {"name":"one","value":1}, {"name":"two","value":2}, {"name":"three","value":3} ] }

Reason: The element from the array at “fields” in which the value “two” is for a childat the key “name”.

Transfer Object “XML” (XPath queries)XML transfer objects are available as sources and destinations. XPath queries allowelements to be extracted from XML files or written to XML files. A plug-in configurationis not necessary, you can directly configure the transfer object within the connectionas described.

After double-clicking on the transfer object, set the following properties:

Page 111: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

111

Section: X-Path Elements

Name Name where the query appears in the transfer object.

X-Path Expression Valid X-Path query, in the simplest case the path to the node

(see below).

XML Mode Indicates if only the content of the query result or the

enclosing tag will be output (e.g. Heinrich Mann or

<author>Heinrich Mann</author>. When writing to

the object (Create XML), only content must always be speci-

fied because the structure is already established. By writing

at the object (create XML), only content must always be spe-

cified because the structure is already established.

Section: Namespaces and Prefixes

Prefixes Unique prefix

Namespace Namespace

When importing the XML code at design time, all existing namespaces are entered. Usethe checkbox to mark the namespace that should be used as the default for the XPathqueries. If a standard is defined, formulate the X-Path queries without a prefix, this willbe added automatically. In the source code, you have to specify the prefixes always,.

Section: XML Code

The multiline field is for entering XML code. At design time

you can use it to check your X-Path expressions. Then you

can delete the code if you dynamically pass the XML code at

runtime (transfer object as source) or first generate (transfer

object as destination). Of course, you can also leave static

code here if that meets your requirement.

XML documents as source

As a transfer source, the XML object extracts content from XML code based on theconfigured X-Path queries.

• The XML code is either set statically at design time or submit at run time to theelement “XML”.

• The results are read from the X-Path query elements.

For example, the following code is supplied from a file:

<?xml version="1.0"?><catalog> <book id="bk101"> <author>J.R.R. Tolkien</author>

Page 112: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

112

<title>The Hobbit</title> </book> <book id="bk102"> <author>Joanne K. Rowling</author> <title>Harry Potter and the Philosopher's Stone</title> </book> </catalog>

Then two X-Path expressions would supply the author and title of the books:

• Name: “Author”, X-Path expression “/catalog/book/author”• Name: “Title”, X-Path expression “/catalog/book/title”

On the Internet you will find different documentations about the possibilities of X-Path,these are just the simplest (e.g. by http://www.w3schools.com/xsl/xpath_syntax.asp ;Restriction: Any nodes must be initiated with “//”).

For this example, the configuration looks like this:

1. The path and name of the file are transferred from a constant object to the filetransfer object. The name could also be determined dynamically from a databa-se.

2. The file transfer object transfers the contents of the XML file to the XML elementin the XML object. At design time no code was deposited here, only the two des-cribed X-Path expressions.

3. The query results are written to an Excel file. Every other data destination is justconceivable (e.g. database INSERTS). Since several lines are expected, thewrite mode is “attache rows” in the Excel object.

XML document as destination

As a transfer target, the XML object creates XML code based on the configured X-Pathqueries.

Page 113: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

113

• The XML code can be transferred further, e.g. to a database. To create an XMLfile, a script would be required.

For example, it comes from a table:

Author Title

J.R.R. Tolkien The Hobbit

Joanne K. Rowling Harry Potter and the Philosopher's Stone

From this, an XML file with the known structure is to be generated.

• Name: “Author”, X-Path expression “/catalog/book/author”• Name: “Title”, X-Path expression “/catalog/book/title”

For this example, you need two staggered XML objects. The first one will transformthe result set into individual XML elements, the second will group the elements into onedocument:

1. The data records have to be written by query from a database and transferred tothe X-Path elements of the first XML transfer object.

2. The XML object generates the XML code. The XML object contains the well-known X-Path expressions:

• Name: “Author”, X-Path expression “book/author”• Name: “Title”, X-Path expression “book/title”

as well as the basic structure

<book> <author></author> <title></title> </book>

Important is the property XML output = “Multiple XML documents”, so that eachrecord from the database becomes its own element.The structure could also be passed dynamically at runtime. E.g. from a text fileor from a database.

3. The code is passed from the XML element to the X-Path element of the secondXML transfer object. This object contains only the XML declaration and the rootelement:

<?xml version="1.0"?>

Page 114: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

114

<catalog></catalog>

With the X-Path query / catalog and the property XML output “One XML do-cument”

4. The code can be transferred further. Here, a script transfer object is used tocreate a file. File path (type: string) and XML content (type: array, string) arepassed as input parameters:

public override void Write() { StringBuilder stb = new StringBuilder(); stb.AppendLine("<?xml version=\"1.0\"?>"); foreach(string xml in XMLContent) { stb.AppendLine(xml.Substring(xml.IndexOf("?>")+2)); } System.IO.File.WriteAllText(FilePath, stb.ToString()); }

Transfer Object “Note”In extensive projects, especially when several colleagues work together, the commenton the connection is quickly no longer sufficient to keep track.

Use the object “Note” to attach one or more detailed comments to a connection, e.g.a documentation for the configuration. To view or edit the note, double-click on yournote transfer object. In this way, you also provide extensive comments clearly.

Times are given in the e-mail and in the PDF file as system time, but in CSV as UTC.The note can not be used as a data source or destination.Create a Note object within the connection as explained.

Page 115: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

115

After double-clicking on the object, set the following properties:

Enter note any text

Transfer Object “Rest”Web service components can be combined with the remainder transfer object. Createa remainder transfer object within the connection as described.

After double-clicking on the transfer object, set the following properties:

Page 116: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Sources and Destinations

116

Connection Hostname of the web service.

Define dynamic host

URL

Enable if hostname changes. You can also use the Test but-

ton to check the dynamic host.

URL-Endpoint Enter the address for the endpoint and select an entry from

the drop-down menu.

Method Select a method for the connection from the drop-down list.

Format Select the format for the connection from the drop-down list.

e.g. Json or Xml

Request parameters Determine the parameters for the request of the connection.

Response parameters Determine the parameters for the response of the connecti-

on.

Test About button “Test” determine if the connection is made. If

you have checked the “Dynamic host” checkbox, this button

opens a text field in which you can further define the URL

endpoint in the “Host address” field. Check your entry with

“Send”.

Attention: Please take care when entering the URL on uppercase and lowercaseletters. The URLs are Case sensitive!

Transfer Object “RFID Reader”RFID reader transfer objects can synchronize scans, read tags, write, lock, destroy orcreate passwords. You can directly configure the transfer object within the connectionas described.

Page 117: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

117

After double-clicking the transfer object, select an instance from the drop-down menu.

Trigger Objects

So-called trigger objects, triggers for short, execute the data transfer if their conditionsare met. Each connection needs at least one trigger. Each trigger contains one con-dition that has to be met to execute the transfer of that specific connection. Complexconditions can be programmed with a script trigger (C#).Trigger objects are projected as described above, but not connected with arrows.

Page 118: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

118

Trigger Object “Database”The database trigger monitors query results and triggers the transfer on change. Thetrigger defines a select query. If the result of this query changes, the trigger triggersa transfer.

The individual properties are:

DB-Connection The configured instances of the DB plug-in are available he-

re.

Registerkarte: Allgemein (alle Typen)

Table Table being monitored.

Page 119: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

119

Note: The specified table must have a primary key.Tables without a primary key are not supported.

Available columns All available columns that have not yet been selected for the

panel “Used fields”. Select the columns to monitor.

Used fields All already selected fields. Use the arrows between “Availa-

ble columns” and “Used fields” to add or remove fields.

Triggern at OPC Router

start

At router start it will be trigger.

Registerkarte: Filter (Abfragen, Aktualisieren, Löschen)

Filter Displays filters and filter groups graphically. The SQL state-

ment is constructed from this tree at runtime. You must enter

the values here, unlike the DB transfer object.

Use the buttons to add filter criteria (“Add filter”) and grouped

filter criteria (“Add filter group”) to individual filter criteria. “De-

lete” deletes the selected criterion.

Important: The filter set here must clearly specify adata record in the “table”, which is then monitored.

Edit filter The possible entries change depending on which element is

selected at “Filter”.

Column: Column to filter on.Relational operator for the comparison of values.

Value, after being filtered.

Preview Preview the SQL statement.

Page 120: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

120

Trigger Object “Time”The time trigger triggers data transfers at variably intervals in a time-controlled interval.If a transfer is to be carried out once a day, you can also specify a fixed time.

The individual properties are:

Option: Periodic

transfer

The transfer will be triggered at the specified interval.

Transfer interval The interval at which the transfer is triggered. If start de-

lay = 0, the first transfer after router start will not be trigge-

red until the interval has elapsed. Default always as an in-

teger, no decimal places. As units therefore milliseconds,

seconds, minutes or hours are to be selected. The router

always calculates the new interval after the end of the last

Page 121: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

121

transfer, so that at setting “1 s” a transfer will not be trigge-

red every second, but 1 second after the end of the previous

transfer.

Start delay Start delay after which the interval count starts after the rou-

ter has started. The first transfer thus takes place after elap-

se of start delay + transmission interval. Default always as an

integer, no decimal places. As units therefore milliseconds,

seconds, minutes or hours are to be selected.

Option: Point in time The transfer will be triggered once a day at the set time.

Point in time Time at which the transfer is triggered.

Trigger Object “Cron”The cron trigger triggers scheduled transfers. In the property mask, you can arrangethe appointments as needed. For advanced users, however, a manual input is alsopossible.

The individual properties are:

Expression Display of timed transfers after selection of properties. Here

is also the possibility of manual input. After entering, confirm

with the “Apply” button.

Description Display of the expression in text form. The display changes

automatically when the selection and entries are changed.

Page 122: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

122

Here you can choose between different expression propo-

sals.

Active After selecting an area (second, minute, hour, day, month,

weekday, year), activate the checkbox to activate the trigger.

Which areas are activated is shown in the tab by an asterisk

*. You can define specific details by simply entering a num-

ber. For example, if 5 is entered for specific hours, then the

transfer will only be triggered directly at 5 o'clock. Several

specific inputs can be separated by a comma.

Trigger Object “Data Change”Data change trigger executes transfers with a changing OPC value. You might specifytolerances and time intervals as to optimize the number of transfers – forced transfer,even if no change is made, or limitation of transfers with many data changes.

OPC access data Select a set of OPC access data. Dependent on plug-in con-

figuration, OPC Router will recognize DA/UA connections.

Page 123: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

123

Trigger item Item whose change will execute the transfer. Browse items

with tag browser (“...” button). OPC UA node IDs are registe-

red in background.

Use the extended button to define further properties

At most every Minimum interval in which transfer will be executed even if

no data change has occurred. Integers only, unit from millise-

conds to hours.

At least every If data change frequently the number of transfers can be li-

mit. An entry means, e. g. Transfer every second maximum

even if data changes more frequently. Integers only. Units

from milliseconds to hours.

Trigger at ... diffe-

rence (%)

Transfer will only execute if data changes by this difference.

Trigger at ... diffe-

rence (absolute)

Transfer will only execute if data changes by this difference.

Trigger at each data

change

Default. Overrides tolerance settings.

Tip: To set conditions for relative and absolute tolerance, project two data changetriggers linked with AND or OR.

Data length and limit value triggers for analog values

You can set the data length and limit value triggers if you want to transmit a single analogvalue. Trigger item and transfer item are identical. The transfer starts immediately afterthe trigger condition has occurred.

Enter a search string (OPC DA only) to hide the tree view and show all items mat-chingthe search term. Contains the OPC transfer object other items to be transferred,values can be transferred which do not belong together.

Page 124: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

124

Trigger Object “Threshold Trigger”Threshold trigger executes a data transfer with off-limit condition (of OPC value)

The properties are:

OPC access data Select a set of OPC access data. Dependent on plug-in con-

figuration, OPC Router will recognize DA/UA connections.

OPC item Item whose off-limit condition will execute the transfer. Brow-

se items with tag browser (“...” button). OPC UA node IDs

are registered in background.

Threshold Absolute value.

Trigger if item Set if threshold has to be under- or overrun.

Hysteresis If the trigger has executed the transfer once, it might be re-

quired that the trigger is re-released only if the OPC item’s

value is clearly different from threshold value. If this is the

case, please specify the difference between OPC item and

threshold with which the trigger is set active again.

Example: The threshold is 20 °C, to be triggered when over-

run. Temperature varies between 19 and 21 degrees, but on-

ly the first overrun has to be transferred. Hysteresis could be

set to 18 degrees absolute value. Thus, the trigger will only

Page 125: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

125

release after the temperature has fallen below 18 (after ha-

ving overrun 20).

Tip: If the connection should be triggered permanently on off-limit condition, sethysteresis absolute value to the maximum value the item can take. Thus, it will trig-ger in OPC Routers cycle time interval as long as it is in off-limit condition. Combinewith a data change trigger linked with AND to only trigger data changes above thelimit. In the example above, the temperature will not exceed 100 degrees, then withthreshold = 20 and trigger reset from 100 absolute value the trigger would alwaystrigger when the temperature is between 20 and 100 degrees, in the frequencyof the cycle time of the router (settings). You could limit this with an AND-linkeddatachange trigger to record only the data changes above the threshold.

Data length and limit value triggers for analog values

You can set the data length and limit value triggers if you want to transmit a single analogvalue. Trigger item and transfer item are identical. The transfer starts immediately afterthe trigger condition has occurred.

Enter a search string (OPC DA only) to hide the tree view and show all items mat-ching the search term. Contains the OPC transfer object other items to be transferred,values can be transferred which do not belong together.

Trigger Object “Bit”The bit trigger triggers the data transfer when the assigned logical data point takes avalue 1. If the assigned data point is not a logical data point, the trigger triggers when

Page 126: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

126

the data point takes a different value as NULL. You can also send a reply and a faultmessage to two additional data points if the transfer is incorrect.

OPC access data OPC connection which the relevant data point is reached.

OPC item OPC data point that triggers the transfer as soon as it assu-

mes a value other than 0. Use the button “... ” to open the

tag browser (see below) for the interactive selection of an

item. For OPC UA connections, the node ID is managed in

the background.

Reset bit Resets the OPC item to zero after the transfer. Should usual-

ly be disabled because a bit should only be written from one

side. Instead, use the answer bit to tell the controller that

the transfer has completed.

Answer bit active Sends one bit to another data point in response that the

transfer has completed.

Page 127: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

127

OPC item OPC data point to which the response is sent. It must be a

logical (bit) data point that has state “0” or “1”. Use the but-

ton “...” to open the tag browser (see below) for the interacti-

ve selection of an item.

Reset answer bit after After the set time, the response bit is reset.

Error bit active Sends a bit to another data point if the data transfer was faul-

ty.

OPC item OPC item (bit) that is set with transfer errors. It must be a lo-

gical (bit) data point that has state “0” or “1”. Use the button

“...” to open the tag browser (see below) for the interactive

selection of an item.

Waiting for failing

edge

If you don't want the OPC router to trigger continuously when

the bit is active, activate this checkbox. This causes the OPC

Router to trigger only once when the bit is active and then

wait for a "falling edge" before triggering again.

Bit and message triggers for OPC telegrams

Bit and message triggers are used for OPC telegrams if you want to read severalrelated items. The OPC router waits for another read cycle before the items are readout in the OPC transfer object to ensure that the PLC could write all values. On the SPSside the trigger should be written to the end.

Bit trigger always with response bit

Always use the bit trigger with response bit. If the data point in the PLC changestwice within a read cycle, the OPC router does not notice this. The PLC must reactaccordingly to the missing response of the router. Standard praxis: A bit may only writtenfrom one side, the PLC resets the trigger data point after receiving the response. TheOPC router resets the response data point after a set time period.

Page 128: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

128

Trigger Object “Message”The message trigger triggers the data transfer if the assigned numeric data point is 1higher. You can also send an answer and, if the transfer is incorrect, an error messageto two other data points.

OPC access data Select a set of OPC access data. Dependent on plug-in con-

figuration, OPC Router will recognize DA/UA connections.

OPC item Item whose increase will execute the transfer. Browse items

with tag browser (“...” button). OPC UA node IDs are registe-

red in background.

Write answer Will transfer OPC item’s value (or set a bit) to another item

as confirmation that the transfer executes.

OPC item OPC item the answer is send to. It must be a logical (bit) da-

ta point that has state “0” or “1”. Use the button “...” to open

the tag browser (see below) for the interactive selection of an

item.

Write error bit Activate to set a bit with transfer errors.

OPC item OPC item (bit) that is set with transfer errors. It must be a lo-

gical (bit) data point that has state “0” or “1”. Use the button

“...” to open the tag browser (see below) for the interactive

selection of an item.

Trigger with start Release trigger once with OPC Router start.

Page 129: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

129

Bit and message triggers for OPC telegrams

Bit and message triggers are used for OPC telegrams if you want to read severalrelated items. The OPC router waits for another read cycle before the items are readout in the OPC transfer object to ensure that the PLC could write all values. On the SPSside the trigger should be written to the end.

Message trigger values

Record the value of the message trigger. This allows you to track whether recordshave not been transferred or duplicated. On the PLC side, the data point for the mes-sage trigger for new data is to be increased by the value 1.

Trigger Object “RFC”With RFC trigger, SAP systems can trigger data transfers. Within SAP system, in tran-saction SM59 the corresponding entry has to be made.

Properties are:

SAP access data Set of SAP access data.

Program ID Program ID used by SAP system to call destination, identical

with program ID of transaction SM59.

Gateway Service Gateway Service of SAP system

Page 130: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

130

Function Function defined within SAP system that triggers this

connection.

Time-out Time span after which OPC Router will send time-out to SAP

system if task has not been finished

return parameters

TRANSFER_OK • 1 = OK: Successful transfer of the connection

• 2 = Aborted: The transfer was aborted from a typetransfer object, for example, if no data was containedin a table for a database transfer object.

• 3 = Error: An error occurred during the execution of thetransfer. The request must be resent later and must notbe marked as closed by the connected system.

Important:Program ID and function have to be written in CAPITALS. SAP call is set:

Call function ’<FUNCTION>‘ destination ’<SAP-DESTINATION>‘.

The combination of host, gateway and program ID has to be unique. The programID itself can be used multiple times - but only with different gateways / hosts.

You can also use the RFC trigger to create ITAB or STRUCTURE as parameters.Create the inputs and outputs accordingly by selecting the respective type, assigninga name, and choosing Edit to access the editor for the individual fields. Nesting is notpossible.

Example

RFC-Trigger Properties:

SAP access data <SAP access data>

Program ID INRAYTRIGGER

Gateway Service Gateway Service of SAP system, e. g. 3302

Function TRIGGERFUNCTION

Corresponding SAP properties, SM59:

Destination OPCROUTER

Connection Type T TCP/IP

Activation Type Registered Server Program

Program ID INRAYTRIGGER

Page 131: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

131

Gateway-Host (no entry!)

Gateway-Service (no entry!)

By calling this function from within SAP system, SAP system will trigger OPC Router:

Call function ’TRIGGERFUNCTION‘ destination ’OPCROUTER‘.

Trigger Object “IDoc”The IDoc trigger will be used if the OPC Router should receive an IDoc from the SAPsystem. SAP system will trigger the transfer through this object. SAP configuration isdescribed as overview. Please consult you SAP manual.

Properties are:

SAP access data Set of SAP access data.

IDoc type Type of IDoc the Trigger listens. Must be the same as in cor-

responding tranfer object.

IDoc Enhancement Class extension of the IDocs.

Page 132: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

132

Program ID Program ID used by SAP system to call destination, identical

with program ID of transaction SM59.

Gateway Service Gateway Service of SAP system

Important:Program ID and function have to be written in CAPITALS. The combination of

host, gateway and program ID has to be unique. From version 3.1.1.5 you can usethe program ID several times provided gateway-service and/or hosts differ.

Example

IDoc Trigger Settings:

SAP access data <SAP access data>

IDoc Type PROCESSORDER

Program ID INRAYTRIGGER

Gateway Service Gateway Service of SAP system, e. g. 3302

Logical System within SAP transaction BD54:

LogSystem OPCRIDOC01

Description OPC Router with IDoc listener

Corresponding SAP Settings, SM59:

Destination OPCROUTER

Connection Type T TCP/IP

Activation Type Registered Server Program

Program ID INRAYTRIGGER

Gateway host (no entry!)

Gateway service (no entry!)

Communication Port in transaction WE21:

(Type) Transactional RFC

Port e.g. IDOCPORT

Version (select appropriated IDoc version)

RFC destination OPCROUTER

Page 133: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

133

Partner profile in transaction WE20

(Partner type) LS (Logical System)

Partner no. OPCRIDOC01

Outbound parameters in WE20:

Receiver Port IDOCPORT

Outpout mode Transfer IDoc immed.

IDoc Type/Basic type PROCESSORDER

Cancel processing af-

ter syntax error

(activated)

For testing, via WE19 an IDoc can be send manually providing partner no. and Port.Errors might be found in WE07. Function to call is IDOC_INBOUND_ASYNCHRONOS(as of 4.0), resp. INBOUND_IDOC_PROCESS (before 3.x).

Trigger Object “Mqtt-Trigger”In the property mask you can set the binding parameters for your Mqtt query:

The individual properties are:

Broker connection Select a configured broker connection from the drop-down

menu.

Quality of Service Selection how often the query should be executed.

Wait for transfer Select whether and in what form to wait for the transfer.

Page 134: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

134

Payload data type Selection of the data type Byte Array or String.

Payload encoding Selection of the encoding for the Mqtt query.

Topic Enter the topic.

Trigger Object “Telegram”With the telegram trigger it is possible to query messages via a command.

Set the following properties after double-clicking the trigger object:

Connection Select a connection from the drop-down menu.

Command Type a command <Command>

Help text Here you can enter a help text for the command, which will

be displayed later in the notification.

Message type Select a message type from the drop-down menu, e.g. Text

message, Voice message...The message type “Any file” can

be sent any file format (text, images, videos, etc.).

Authentication requi-

red

Activate the checkbox if you want to allow only authorized

users to receive the messages.

Authorized users Select allowed users from the drop-down menu.

Page 135: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

135

User filter Here you have the possibility to enter a filter to select specific

users.

You can receive any form of a file with the Telegram trigger. To send a file from theOPC Router to Telegram, you need the Telegram Transfer Object. To send a file tothe OPC Router, e.g. an image, you have to enter the trigger command as description.However, the file name of the image is not sent and you have to give the file a newname if you want to save the file.

Example Telegram Connection

In our small example the boiler temperature is queried. The data is collected by theOPC router and can be queried via telegram.

To display the boiler temperature on a remote web-enabled device, proceed as follows:

1. Go to the link of your bot that you received together with the AccessToken fromBotFather.

2. Enter the command /start.3. If you click on /help, the BotFather gives you all possible commands.4. Select the command /BoilerTemperature.5. The boiler temperature and the help text will then be displayed on your device.

Page 136: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

136

Trigger Object “ThingWorx®”With the ThingWorx®-Service-Trigger it is possible to create own services in the OPCRouter. If this service is accessed via a service transfer object, for example, the connec-tion is triggered and returns a result to the service transfer object.

Set the following properties after double-clicking the trigger object:

Thing Select your Thing from the drop-down menu.

Return value Select the data type for the return value from the drop-down

menu.

Service name Select the ThingWorx® service from the drop-down menu.

Trigger Object “Script”The script trigger triggers a data transfer if the CheckTrigger method returns true. Inthe script trigger, the programmer can define input parameters that must be set here,in the connection configuration (with value or template variable). They can not be filleddynamically at runtime. Meintest du Benötigt der Script-Trigger dynamische Werte, so

Page 137: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

137

sind diese im Trigger selbst zu ermitteln? If the script trigger requires dynamic values,these must be determined in the trigger itself (e.g. with OpcAccess.Read). Script trig-gers can also be used with variables in templates and transferred to instances. Atten-tion: No values can be output in the initialization area. The parameters are reset therebefore the transfer. Conversion from the OPC Router 3.x can be carried out includingvariables and values.

The individual properties are:

Script Trigger script being executed.

Script parameters Input parameters defined in the script. All parameters must

be provided with a value or a template variable.

Trigger Object “Euromap77”The Euromap77 trigger triggers the data transfer when the temperature value changesof a data point. The following trigger applications are available:

• Temperature datachange trigger: Monitors temperature changes within the se-lected injection molding machine.

Page 138: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

138

• Temperature deviation: To monitor temperature-threshold violations of the selec-ted injection molding machine.

The individual properties are:

Profil Here the profiles are available as configured instances of the

Euromap77 plug-in. Select a profile from the drop-down list.

Destination Select an endpoint from the drop-down list. The “Check” but-

ton allows you to verify that your connection is working.

Machine Select a machine from the drop-down list. In the list below

you will now get a selection list with all possible informati-

on of this machine. Activate the areas that are necessary for

your configuration. You can now use this selected informati-

on as transfer information.

By selecting the temperature zone type “InjectionUnit” or “Mould” and selecting theappropriate temperature monitoring, you specify the following properties:

Features temperature datachange trigger

At most every Time interval in which data is transferred in any case, even if

the value of the data point has not changed. Default always

Page 139: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

139

as an integer, no decimal places. As units therefore millise-

conds, seconds, minutes or hours are to be selected.

At least every If the value of the data point changes frequently, the trans-

fer number can be limited over an interval. The entry thus

means: It is at most e.g. transmitted every second, even if

the value changes more often

Default always as an integer, no decimal places. As units

therefore milliseconds, seconds, minutes or hours are to be

selected

Trigger at ... diffe-

rence (%)

The transfer is only triggered if the value of the data point

changes by this entry (relative).

Trigger at ... diffe-

rence (absolute)

The transfer is only triggered if the value of the data point

changes by this entry (absolute).

Trigger at each data

change

Default setting, sets trigger at ... difference

override.

Features temperature deviation

Trigger if Low-Devia-

tion-Temperature 1 de-

ceeds

When activated, the temperature is only triggered when fal-

ling below the low deviation.

Trigger if High-De-

viation-Temperature 1

exeeds

When activated, the temperature is triggered only when the

highest deviation is exceeded.

Trigger Object “Charm”The Charm trigger releases a transfer when new data are presented by the Charmdevice observed. In contrast to the OPC Router 3, which provided the transfer object

Page 140: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

140

and trigger separately, both functions are now combined in the Charm trigger object -the trigger is also the data source.

Properties are:

Device type Type of Charm-Reader. The devices “EZ”, “EZ-M” and “EZ-

M2” are predefined. However, you have the option of defining

additional device types via an XML-file

Type of message By default, “Message received” is set. When switching to

“Heartbeat received”, an internal device in the background

receives a message.

Port Port on this machine (with the OPC router) to which the

Charm device sends the data.

Basically, a separate port must be created for eachCharm device type. Recommended Action: All Charmdevices of one type send to the same port. A singleconnection is created in the OPC router for this purpose.

Page 141: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

141

In addition to the results, the OPC router also transmitsthe information about the sending Charm device to thedatabase. The logic of how the results are processedresides in the database (or other transfer destination).

However, if a separate connection is to be createdfor each Charm device, a separate port must also beavailable for each device.

Available fields/

Fields used

From the available fields, select the fields you want to use for

your connection. Use the arrows to transfer or remove your

selection.

Transfer error with

faulty messages

Activate to trigger a transfer error in case of erroneous mes-

sages. Deactivate to ignore erroneous messages (e.g. to in-

tercept faulty messages with the charm-error-trigger in ano-

ther connection, see there).

Confirm your entries with “OK”.In addition to the message fields selected from the available fields, additional infor-

mation about the message received is automatically output (message information). At“message information”, the complete message, the IP address of the Charm device,the time stamp and a numbering of several consecutive messages are output.

News information

Complete message The Complete Message of the Charm device.

Client address IP address of the Charm device.

Message index For multiple concurrent messages, the OPC Router will num-

ber each message.

Timestamp (UTC) Timestamp of message (UTC).

Note: In the Charm device, the IP address of the computer with the OPC routermust be announced together with the port number set here. That's where the charmdevice has to send its data. The OPC router then transmits the data record byrecord.

Fields of predefined Charm device types

Name EZ EZ-M

EZ-M2

Description

Answer X X Numerical test result including unit where necessary

Assay X X sample type

Page 142: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

142

ChannelNum-

ber

X X X EZ channel number

CommodityNa-

me

X X Raw material / article

controlLINE X X X Intensity of the Control Line

CurrentCom-

moditySelec-

tIndex

X

CurrentDilu-

tionSelect-

Index

X

CurrentMa-

trixSelect-

Index

X

CurrentTest-

SelectIndex

X

Date X X X Date of the test

DE_Name X X

Dirt X X X Degree of contamination of the lens

FailCode X X X Error code on failed test

Flow X X X Flow value (Correct application of the milk on the test strip)

Interpreta-

tion

X X X Interpretation of test result (positive, negative, etc.)

InterpString X (Interpretation in newer firmware)

LotNumber X X LOT number (as entered on the unit)

MatrixNumber X Matrix number of the test result

Mode X X X Mode of the Charm device

OperatorID X X Operator ID (as entered on the device)

Ratio X X Ratio of Extraction Solvent to Extraction

Remmisions X X

Result X X X Test result (positive, negative, invalid)

RFID X

SampleID X X X Test ID (as entered on the device)

StructVersi-

on

X X X

testLINE X X X Intensity of the test line

Page 143: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

143

TestOutput-

Name

X X X

TestTempera-

ture

X X X Incubator temperature at test time

TestType X

Time X X X Time of the test

TipBlue X X Displays value “Blue” when the test color is identified

TipGreen X X Displays value “Green” when the test color is identified

TipRed X X Displays value “Red” when the test color is identified

UnitSN X X X

XLine X X X Intensity of the X Line

YLine X X X Intensity of the Y Line

ZLine X X X Intensity of the Z Line

Trigger Object “Charm-Error”The charm error trigger triggers a data transfer in the event of a faulty telegram. Sincethe charm trigger works faster than the error trigger, the property of the trigger triggerfor the corresponding port / device must be disabled. Then, in afurther connection controlled by the charm error trigger, information about erroneousmessages can be treated separately, e.g. a separate database table.

Page 144: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

144

The individual properties are:

Device type Type of charm reader.

Port Port on this machine (with the OPC router) to which the

Charm device sends its data.

Confirm your entries with “OK”.

Note: In the Charm device, the IP address of the computer with the OPC routermust be announced together with the port number set here. That's where the charmdevice has to send the data. The OPC router then transmits the data record byrecord.

Page 145: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

145

Trigger Object “Scanner”Currently a trigger for the barcode reader is available.

The individual properties are:

Instance Select an instance from the drop-down menu for the barcode

reader whose scan product you want to use.

Values Select the value to be read, in this case “Barcode”.

Page 146: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

146

Trigger Object “RFID Reader”Scan asynchronous trigger of the RFID reader to trigger asynchronous scans. Selectan instance from the drop-down menu after double-clicking.

Page 147: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Trigger Objects

147

Trigger Object “Rest-Trigger”The Rest trigger provides residual API endpoints. You can define the incoming andoutgoing parameters in the properties mask:

The individual properties are:

Rest API Plug-in Selection of a Rest connection from the drop-down menu.

Endpoint Address of the OPC server (protocol: opc.tcp, http or https)

Http Method Selecting the Http method from the drop-down menu.

Request parameters Determine the parameters for the connection request.

Response parameters Determine the parameters for the connection response.

Page 148: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Working with templates

148

Working with templates

Many congenial connections are at best be projected with the template function. A ty-pical example is the collection of dial count in a database, wich e. g. only differ by OPCitem and the ID of the collection of data. With templates you work as follows:

1. You create a template using the snap-in “Templates”, in which you configure allimmutable parts of the connection. At the adjustable parts define template varia-bles. That can be OPC items, names or columns of tables, names of access da-ta, constants or just parts of these names. The examples

Note: To avoid errors in the configuration, the template variables are type-sa-fe. A combination of multiple template variables or template variables withcharacters (e.g.. g_atDBDataBlock[{Variable})] is only in type “string”possible.

in the following parts illustrate your possibilities.2. From this template you create connections by going to the snap-in “Connecti-

ons” and selecting the button “Create instance”.

• Either you create a single instance after another. You only fill in the valueof the template variables and you are done.

• Or you have a list of template variables and their values created in a CSVdata. In that case you only have to import the CSV data. The OPC Router4 offers a simple table editor to create the list without external program.

3. Make instances productive..

Page 149: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Working with templates

149

Create TemplatesThe following example assumes that OPC Server and data base are correctly connec-ted. In this example the tags within the OPC Server are projected custom-fit, so thatonly one template variable is necessary, to collect the data.

1. In the snap-in “Templates”, select the “New template” button or right-click on anexisting entry and select there “New template”.

2. Name it, e. g. like here “Wago Channel”.3. Define the connection properties for the template. The Properties will be applied

for all instances.4. Project the connection. In this example we want to collect data from a Wago

controller The OPC Server is projected to name the items (tags) identically andto put them into different access paths. This path is to be created as templatevariable. So you have to place an OPC transfer object in the template and openit via double click. It opens a window for editing template variables at the sametime.

5. Create a template variable Channel. To do that, click “Add” in the template varia-ble dialouge and state Name (“Channel”) and Type (“Integer”).

6. Fill in the properties

OPC Access Data <Name of the Access Data from the Plug-In

Configuration>

OPC-Items g_atDBDataBlock[{Channel}].rRealData

First insert the template variable via drag & drop. It is integrated into the transferobject with the correct syntax. Then add the static string.

7. Close the OPC transfer object.8. Project a data base transfer object for recording. At this point a table

TBL_Values is to be used for collecting. The test series is defined by the fieldConfigID, the time stamp is given from the data base.

Page 150: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Working with templates

150

DB-Access Data <Name Of the Access Data From the Plug-In

Configuration>

Type Insert

Table TBL_DataChangePerformance

Used Columns ConfigID, Value

9. Project a constant value with the value Channel. The constant must be of typeAuto, so that at runtime the string can be converted to an integer (the ConfigIDcolumn is expected to do so).

10. Connect the constant value to the ConfigID and the item with the value.11. Project a Bit Trigger, to start the transfer. Activate either reset bit or insert a re-

sponse bit, depending on the PLC program.

OPC-Item g_atDBDataBlock[{Channel}].tHandshakeBits.xTrigger

With this the template is ready. You can sort templates to groups just like normal connec-tions.

Handling template variables in objects

Template variables can be added

• via the “Add” button in the object dialogs.• via the buttons with the blue plus sign next to the individual fields. This creates

and enters a new variable of the correct type.

The button with the red minus sign removes the template variables from the fields.Existing template variables are drag & drop into the corresponding field.

Template variables with OPC-UA

Please note for the projection:

• If the OPC data access is a template variable itself, the router can´t recognizethe specification. It only states the property Item. If you create a connectionfrom the template and the OPC data access is a OPC-UA data access, the No-de ID must be stated under Item.

• Are the data accesses from OPC-Triggers (Bit, Datachange, Message, Grenz-wert) template variables, the Node ID has to be stated as well, while creating aconnection from the template.

Create templates from connections

You can generate a template from a connection:

1. In the snap-in pane, select a connection.2. Right-click to select “Create template from connection”.

Page 151: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Working with templates

151

3. Give the new template a unique name and confirm with “OK”.4. If you activate the “Open template directly” checkbox at the bottom of the win-

dow, the template will be opened after it has been created.

Creating InstancesTo use the template for the data transfer, you have to create instances, thus actualconnections.

1. Select in the snap-in-menu “Templates” and choose “Create Instance”.2. Name the template, e. g. “Aquisition_Ch1”3. Select the desired template.4. Select the desired storage location.5. Within the connection you can´t change anything, you just have to state the va-

lue for the variables. In this case everything is done by entering “1”. So just putin the “1” and close the connection.

6. Create a connection for channel 2, 3, 4, 5 ... the same way.7. Make the instances productive.

The instances have been created, the data points are named correctly. The “Edit” buttonallows you to subsequently change the values of the template variables. You can alsooverride some connection settings.

Page 152: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Working with templates

152

Attention: For template variables with relative time specifications (eg intervals inthe time trigger), the time unit must also be written (ms, s, m, h, d, month, year).

Note: If you change the template later, the instances will be adjusted.

If a template has been selected and you select “New instance” the name “New in-stance” is preset and varibles and template displayed.

Creating Instances from CSV DataIf you want to create many links from a template, you can

• import a prepared Excel or CSV file• or create a corresponding table in the OPC router itself

Please note, that the names of the template variables have to be the same in CSVdata and router template, and that in CSV data columns are seperated with a semicolon“;” . The CSV data is structured as follows:

InstanceName Variable1 Variable2 ...

Connection Group.Connection Name1 Value Value Value

Connection Name2 Value Value Value

Connection Group.Sub Group1.Connection Name3 Value Value Value

... Value Value Value

There are the following time-offsets:

• 1ms for milliseconds• 1s for seconds• 1m for minutes• 1h for hours• 1d for days

There must be no space between the number and the unit.Stating a Connection Group is optional. You can spread the connections like this toseveral groups and sub groups.

1. In the “Templates” or “Connections” snap-in, select the “Create Instance” drop-down button and then “Create Multiple Instances”.

2. Select the template to use3. Select the destination folder.4. Enter the values or open your CSV file.5. Determine whether existing connections will be retained or over-written.

Page 153: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Export OPC Router 4 project

153

6. Select the “Create instance” button.7. Make the new instances productive.

Note: If you change the template later, all instances will be adjusted.

Export OPC Router 4 project

You open the “Export OPC Router 4 project” function in the menu bar under “File”.

Page 154: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Export OPC Router 4 project

154

Select a file to export to and select all the connections and connections you wantto export. If you select templates and connections, the corresponding structures areautomatically selected as well.

Confirm your selection with “OK”.

Page 155: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Import OPC Router 4 project

155

Import OPC Router 4 project

You open the “Import OPC Router 4 project” function in the menu bar under “File”.

Select a file to import and resolve the conflicts of the bindings in the opening mask.Only connections in the conflict list are displayed, connections are automatically rena-med and a consecutive number is added. In order to solve conflicts, you have the op-portunity to eliminate all conflicts together in the mask that opens. Depending on whichbutton you select, the appropriate selection is made for all conflicts. Of course you cancontinue to make individual decisions for individual connections, the respective buttonthen "overwrites" each time previously selected option:

• Select “Keep all” if you want to use the application you are currently using.• Choose “Rename all” if you want to keep your existing connection and want

to receive the imported connection in parallel. Select a name for it until the redcircle with the cross disappears.

Page 156: User Guide OPC Router 4 - Logitek · OPC Router Setup will install OPC Router including configuration GUI, Windows Ser-vice, OPC Router Status (runtime supervision) including all

OPC Router 4.9 Defining Connections (Projecting) | Import OPC Router 4 project

156

• Choose “Replace all” if your existing connection is to be replaced by the impor-ted connection.

Confirm your selection with “OK”.