opc-da

Get multiple OPC values

為{幸葍}努か 提交于 2019-12-25 03:10:56
问题 Here is the code to get the multiple values from OPC Server. private void getData() { try { int count = 1; opcServer.Connect("OPCTechs.SiemensNet30DA", ""); opcGroup = opcServer.OPCGroups.Add("MP"); opcGroup.DataChange += new DIOPCGroupEvent_DataChangeEventHandler(opcGroup_DataChange); //Get First String for (int i = 40; i <= 47; i++) opcGroup.OPCItems.AddItem("D104.B" + i, count++); //Get Second String for (int i = 80; i <= 91; i++) opcGroup.OPCItems.AddItem("D104.B" + i, count++); opcGroup

Connect to kepware OPC DA using Utgard

自古美人都是妖i 提交于 2019-12-11 15:17:01
问题 I am using below code to make the connection from UTGARD to Kepware V6 OPC DA. package com.flutura.openscada.tutorial; import java.util.concurrent.Executors; import java.util.logging.Logger; import org.jinterop.dcom.common.JIException; import org.openscada.opc.lib.common.ConnectionInformation; import org.openscada.opc.lib.da.AccessBase; import org.openscada.opc.lib.da.DataCallback; import org.openscada.opc.lib.da.Item; import org.openscada.opc.lib.da.ItemState; import org.openscada.opc.lib.da

What do the different DCOM / COM security settings mean?

你离开我真会死。 提交于 2019-12-08 23:45:00
问题 Our application uses COM and DCOM extensively, and so as part of that we need to ensure that the COM security permissions are correctly set up. I know that I can access these permissions under the Component Services MMC snap in and that I can set the defaults / limits under the property pages for the Computer And that under the DCOM Config node I can drill down and set securty permissions for individual applications I also understand the relationship between the "Defaults" (what DCOM

What do the different DCOM / COM security settings mean?

淺唱寂寞╮ 提交于 2019-11-30 13:07:22
Our application uses COM and DCOM extensively, and so as part of that we need to ensure that the COM security permissions are correctly set up. I know that I can access these permissions under the Component Services MMC snap in and that I can set the defaults / limits under the property pages for the Computer And that under the DCOM Config node I can drill down and set securty permissions for individual applications I also understand the relationship between the "Defaults" (what DCOM applications will use unless permissions are expicily set on a per-application basis), "Limits" (what