This example is adapted from:, I have added it just in case the link gets broken. OpcGroupNames.SyncWrite(6, ref ItemServerHandles, ref ItemServerReadValues, out ItemServerErrors)
#Kepserverex v5 driver#
ItemServerWriteValues.SetValue("Test Op 3", 6) Kepware KEPServerEX (version V.0 U) with Modicon Modbus Driver Suite Acromag Model 914MB Quad DC Voltage Input (Modbus/RS485) Acromag Model 983EN-4012 12 Tandem Digital Input/Output (Modbus TCP/IP) This application note is a supplement to the information found in Kepware’s KEPServerEX and Modbus Driver help documentation. ItemServerWriteValues.SetValue("Test Op 2", 5) ItemServerWriteValues.SetValue("Test Op 1", 4) Learn Kepware's recommendations for optimizing server connections, using helpful tools for quick deployment, and maintaining server performance over time. This is a Control Engineering 2011 Engineers Choice (EC) Award winner. KEPServerEX is an interoperability software server connecting disparate systems and interfaces. Write some values into the server for those tags.Īrray ItemServerWriteValues = Array.CreateInstance(typeof(object), 7) EC: KEPServerEX v5 Software - connectivity, integration software: Kepware Technologies, KEPServerEX v5. OpcGroupNames.SyncRead((short), 6, ref ItemServerHandles, out ItemServerReadValues, out ItemServerErrors, out a, out b) Ĭonsole.WriteLine((string)ItemServerReadValues.GetValue(4)) Ĭonsole.WriteLine((string)ItemServerReadValues.GetValue(5)) Ĭonsole.WriteLine((string)ItemServerReadValues.GetValue(6))
Read the values from the server for those tags.Īrray ItemServerReadValues = Array.CreateInstance(typeof(string), 10) (6, ref OPCItemIDs, ref ClientHandles, out ItemServerHandles, out ItemServerErrors, RequestedDataTypes, AccessPaths) This webinar describes best practices for optimizing communications with Allen-Bradley devices using KEPServerEX version 5.
#Kepserverex v5 install#
Installing KEPServerEX V6 on a Clean Machine This scenario is applicable for users who do not have KEPServerEX V5 installed and want to install KEPServerEX V6. There are three different installation scenarios based on the machine history. OPCServer ConnectedOpc = new OPCServer() Īrray OPCItemIDs = Array.CreateInstance(typeof(string), 10) Īrray ItemServerHandles = Array.CreateInstance(typeof(Int32), 10) Īrray ItemServerErrors = Array.CreateInstance(typeof(Int32), 10) Īrray ClientHandles = Array.CreateInstance(typeof(Int32), 10) Īrray RequestedDataTypes = Array.CreateInstance(typeof(Int16), 10) Īrray AccessPaths = Array.CreateInstance(typeof(string), 10) ĬonnectedOpc.Connect("5", "") This document is a guide for installing and licensing KEPServerEX V6. I'm adding an explample to read and write values: // set up some variables The second parameter is the OPC Server node and can be left String.Empty.įrom Reflector: public virtual extern void Connect( string ProgID, object Node) OPCAutomation.OPCServer _OPCServer = new OPCAutomation.OPCServer()