This is a driver to expose data to an OPC server instance. The OPC Plugin is designed to work with the Generic Driver output.
This driver only supports JSON input, any other input is discarded.
By default this driver listens to 127.0.0.1 : 51234. (Port number can be changed in the registry.)
If remote access is needed the host must allow DCOM access: run (WIN+R) DCOMcnfg
Make sure to access and launch Allow Local and Remote Access to ALL groups.
Also check Defaults:
*Server plugin might not show in this list. Will only be shown if driver is online.
Also add these Firewall rules:
Port: TCP 135 "DCOM inbound"
- C:\Windows\System32\OPCEnum.exe <OR> C:\Windows\SysWOW64\OPCEnum.exe
- <Qinsy installation folder>\OpcClassicServer.exe
To configure the OPC plugin with Qinsy the driver must be added to the template and a Generic Driver *.xml must be created.
The driver can be found under Output Systems -> OPC Server Plugin.
The OPC Plugin is designed to work with the Generic Driver output and should have the same port number as the Generic Output driver
Subsequently you have to add a Network - Generic Output driver with default settings 127.0.0.1 : 51234.
Generic Layout editor
To receive data with OPC a output driver *.xml should be created in the Generic Layout Editor. It is important that the driver is outputting in JSON format so it can be read into an OPC server:
To select data which has to be outputted by the Generic Driver consult out knowledge base Generic Layout Editor
In online mode Qinsy will open a Generic Output to UDP 51234 window, in here the .xml should be added:
The saved *.xml will automatically be recognized when saved in the directory C:\Users\Public\Documents\QPS\Qinsy\Drivers\Definitions\Output.
If you have multiple *.xml files select the correct one and go to the next menu:
In the Output Message Wizard you can change the output settings.
Check if the Output Type is still JSON and select finish:
In the main Generic Output window the .xml file is shown with the the data which is outputted by the driver:
Driver can be started without Qinsy:
Only use this to register and unregister the plugin. this is mostly used for testing purposes and not used for online
- Open a Cmd with admin rights
- Go to Qinsy install folder ( cd "<path>")
- Run DrvOpcServerHandler.exe - standalone
Settings are now written to a configuration file in Public Documents
example of configuration. Do not change <Server> tag
- time in milliseconds
- Changing this value will change the time it will take for the driver to consider the received output as old data. ( Not Updating)
- time in milliseconds
- Changing this value will change the time it will take for the driver to consider the received output as bad quality. (As in Timeout.)
- time in seconds
- number of seconds the plugin will wait for configuration. After the time expires the plugin will use the last configuration