diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest01.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest01.java index 425945a..bae52ec 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest01.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest01.java @@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc; import javafish.clients.opc.JOpc; /** - * 连接到OPC Server, 每隔200毫秒查看一次状态,1秒钟之后关闭连接 + * 杩炴帴鍒癘PC Server, 姣忛殧200姣鏌ョ湅涓娆$姸鎬侊紝1绉掗挓涔嬪悗鍏抽棴杩炴帴 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest02.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest02.java index 34d4128..44fd7c3 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest02.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest02.java @@ -6,7 +6,7 @@ import javafish.clients.opc.component.OpcItem; import javafish.clients.opc.exception.CoInitializeException; /** - * 连接到OPC Server, 并添加一个Group,在Group下添加一个Item + * 杩炴帴鍒癘PC Server, 骞舵坊鍔犱竴涓狦roup锛屽湪Group涓嬫坊鍔犱竴涓狪tem * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest03.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest03.java index 62f0138..4757276 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest03.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest03.java @@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc; import javafish.clients.opc.browser.JOpcBrowser; /** - * 查找某Server下的所有OPC server连接 + * 鏌ユ壘鏌怱erver涓嬬殑鎵鏈塐PC server杩炴帴 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest04.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest04.java index 4e4a112..c34a8e5 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest04.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest04.java @@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc; import javafish.clients.opc.browser.JOpcBrowser; /** - * 通过OPC名字查找所有Branch + * 閫氳繃OPC鍚嶅瓧鏌ユ壘鎵鏈塀ranch * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest05.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest05.java index fa3cdd6..cbfaccb 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest05.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest05.java @@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc; import javafish.clients.opc.browser.JOpcBrowser; /** - * 通过Branch名字查找所有Item + * 閫氳繃Branch鍚嶅瓧鏌ユ壘鎵鏈塈tem * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest06.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest06.java index c8a7d90..a6643f5 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest06.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest06.java @@ -5,7 +5,7 @@ import javafish.clients.opc.component.OpcGroup; import javafish.clients.opc.component.OpcItem; /** - * 同步读取Group + * 鍚屾璇诲彇Group * * @author Freud * @@ -44,11 +44,11 @@ public class JeasyopcTest06 { int cycles = 30; int acycle = 0; /** - * 设置读取30次 + * 璁剧疆璇诲彇30娆 */ while (acycle++ < cycles) { /** - * 设置每2秒钟读取一次 + * 璁剧疆姣2绉掗挓璇诲彇涓娆 */ synchronized (JeasyopcTest06.class) { JeasyopcTest06.class.wait(2000); diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest07.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest07.java index 09cebf3..95cd531 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest07.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest07.java @@ -7,7 +7,7 @@ import javafish.clients.opc.component.OpcItem; import javafish.clients.opc.variant.Variant; /** - * 同步读取Item值 + * 鍚屾璇诲彇Item鍊 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest08.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest08.java index d4a98cd..1de57f5 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest08.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest08.java @@ -7,7 +7,7 @@ import javafish.clients.opc.variant.Variant; import javafish.clients.opc.variant.VariantList; /** - * 同步读写Item值 + * 鍚屾璇诲啓Item鍊 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest09.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest09.java index 9fd0c8b..9723324 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest09.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest09.java @@ -5,7 +5,7 @@ import javafish.clients.opc.component.OpcGroup; import javafish.clients.opc.component.OpcItem; /** - * 异步读写Item值 + * 寮傛璇诲啓Item鍊 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest10.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest10.java index e2fdad1..2dec0f7 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest10.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest10.java @@ -6,7 +6,7 @@ import javafish.clients.opc.component.OpcGroup; import javafish.clients.opc.component.OpcItem; /** - * 异步10和异步20读取 + * 寮傛10鍜屽紓姝20璇诲彇 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest11.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest11.java index cbae8d6..b4234b6 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest11.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest11.java @@ -8,7 +8,7 @@ import javafish.clients.opc.component.OpcGroup; import javafish.clients.opc.component.OpcItem; /** - * 异步订阅式读取 + * 寮傛璁㈤槄寮忚鍙 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest12.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest12.java index 4b21575..9624165 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest12.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest12.java @@ -4,7 +4,7 @@ import javafish.clients.opc.component.OpcGroup; import javafish.clients.opc.component.OpcItem; /** - * Group克隆 + * Group鍏嬮殕 * * @author Freud * diff --git a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest13.java b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest13.java index 6973dcf..3029e4f 100644 --- a/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest13.java +++ b/OPC_Client_Jeasyopc/src/main/java/com/freud/opc/jeasyopc/JeasyopcTest13.java @@ -9,7 +9,7 @@ import javafish.clients.opc.exception.SynchReadException; import javafish.clients.opc.variant.Variant; /** - * 空值示例 + * 绌哄肩ず渚 * * @author Freud * diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest1.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest1.java index 5e0e5d3..ea62321 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest1.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest1.java @@ -17,7 +17,7 @@ import org.openscada.opc.dcom.da.OPCSERVERSTATUS; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * 获取Server的Status信息 中文 + * 鑾峰彇Server鐨凷tatus淇℃伅 涓枃 * * @author Freud * diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest2.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest2.java index df79c54..2b25b87 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest2.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest2.java @@ -23,7 +23,7 @@ import org.openscada.opc.dcom.da.impl.OPCBrowseServerAddressSpace; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * 遍历OPC连接下的所有Group和Item + * 閬嶅巻OPC杩炴帴涓嬬殑鎵鏈塆roup鍜孖tem * * @author Freud * @@ -34,7 +34,7 @@ public class DCOMTest2 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -50,19 +50,19 @@ public class DCOMTest2 { final OPCBrowseServerAddressSpace serverBrowser = server.getBrowser(); /** - * Flat形式获取所有Item信息 + * Flat褰㈠紡鑾峰彇鎵鏈塈tem淇℃伅 */ browseFlat(serverBrowser); /** - * 获取所有的Group和Item信息 + * 鑾峰彇鎵鏈夌殑Group鍜孖tem淇℃伅 */ browseTree(serverBrowser); } /** - * Tree形式获取所有Group和Item的信息 + * Tree褰㈠紡鑾峰彇鎵鏈塆roup鍜孖tem鐨勪俊鎭 */ private static void browseTree(final OPCBrowseServerAddressSpace browser) throws IllegalArgumentException, UnknownHostException, JIException { @@ -108,7 +108,7 @@ public class DCOMTest2 { } /** - * Flat形式获取Item的信息 + * Flat褰㈠紡鑾峰彇Item鐨勪俊鎭 */ private static void browseFlat(final OPCBrowseServerAddressSpace browser) throws JIException, IllegalArgumentException, UnknownHostException { diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest3.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest3.java index 05b1f21..b80bc77 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest3.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest3.java @@ -20,7 +20,7 @@ import org.openscada.opc.dcom.da.impl.OPCGroupStateMgt; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * 通过Scope遍历OPC连接下的所有Group信息 + * 閫氳繃Scope閬嶅巻OPC杩炴帴涓嬬殑鎵鏈塆roup淇℃伅 * * @author Freud * @@ -31,7 +31,7 @@ public class DCOMTest3 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -46,7 +46,7 @@ public class DCOMTest3 { OPCServer server = new OPCServer(serverObject); /** - * 添加一个Group的信息 + * 娣诲姞涓涓狦roup鐨勪俊鎭 */ OPCGroupStateMgt group = server.addGroup("test", true, 100, 1234, 60, 0.0f, 1033); @@ -60,7 +60,7 @@ public class DCOMTest3 { } /** - * 通过Scope查找并遍历Groups的信息 + * 閫氳繃Scope鏌ユ壘骞堕亶鍘咷roups鐨勪俊鎭 * * @param server * @param scope diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest4.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest4.java index bd414d4..f03667f 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest4.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest4.java @@ -34,7 +34,7 @@ import org.openscada.opc.dcom.da.impl.OPCServer; import org.openscada.opc.dcom.da.impl.OPCSyncIO; /** - * 同步读取Item + * 鍚屾璇诲彇Item * * @author Freud * @@ -45,7 +45,7 @@ public class DCOMTest4 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -60,7 +60,7 @@ public class DCOMTest4 { OPCServer server = new OPCServer(serverObject); /** - * 添加一个Group的信息 + * 娣诲姞涓涓狦roup鐨勪俊鎭 */ OPCGroupStateMgt group = server.addGroup("test", true, 100, 1234, 60, 0.0f, 1033); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest5.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest5.java index 4874471..1008c2b 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest5.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest5.java @@ -25,7 +25,7 @@ import org.openscada.opc.dcom.da.impl.OPCItemProperties; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * 获取指定Item的Properties + * 鑾峰彇鎸囧畾Item鐨凱roperties * * @author Freud * @@ -38,7 +38,7 @@ public class DCOMTest5 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -53,7 +53,7 @@ public class DCOMTest5 { OPCServer server = new OPCServer(serverObject); /** - * 添加一个Group的信息 + * 娣诲姞涓涓狦roup鐨勪俊鎭 */ OPCGroupStateMgt group = server.addGroup("test", true, 100, 1234, 60, 0.0f, 1033); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest6.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest6.java index 649ca9e..175d104 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest6.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest6.java @@ -19,7 +19,7 @@ import org.openscada.opc.dcom.da.impl.OPCItemIO; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * Query指定的Item + * Query鎸囧畾鐨処tem * * @author Freud * @@ -30,7 +30,7 @@ public class DCOMTest6 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -45,7 +45,7 @@ public class DCOMTest6 { OPCServer server = new OPCServer(serverObject); /** - * 添加一个Group的信息 + * 娣诲姞涓涓狦roup鐨勪俊鎭 */ OPCGroupStateMgt group = server.addGroup("test", true, 100, 1234, 60, 0.0f, 1033); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest7.java b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest7.java index 08d838a..757263d 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest7.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/dcom/utgard/cases/DCOMTest7.java @@ -34,7 +34,7 @@ import org.openscada.opc.dcom.da.impl.OPCItemMgt; import org.openscada.opc.dcom.da.impl.OPCServer; /** - * 异步读取Item + * 寮傛璇诲彇Item * * @author Freud * @@ -46,7 +46,7 @@ public class DCOMTest7 { JISystem.setAutoRegisteration(true); /** - * Session获取 + * Session鑾峰彇 */ JISession _session = JISession.createSession( getEntryValue(CONFIG_DOMAIN), getEntryValue(CONFIG_USERNAME), @@ -61,7 +61,7 @@ public class DCOMTest7 { OPCServer server = new OPCServer(serverObject); /** - * 添加一个Group的信息 + * 娣诲姞涓涓狦roup鐨勪俊鎭 */ OPCGroupStateMgt group = server.addGroup("test", true, 100, 1234, 60, 0.0f, 1033); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/BaseConfiguration.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/BaseConfiguration.java index 2bb090e..a3f4a63 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/BaseConfiguration.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/BaseConfiguration.java @@ -6,7 +6,7 @@ import java.util.Properties; import org.openscada.opc.lib.common.ConnectionInformation; /** - * 配置文件工具类 + * 閰嶇疆鏂囦欢宸ュ叿绫 * * @author Freud * @@ -26,7 +26,7 @@ public final class BaseConfiguration { private final static String CONFIG_FILE_NAME = "config.properties"; /** - * 加载配置文件 + * 鍔犺浇閰嶇疆鏂囦欢 */ static { ci = new ConnectionInformation(); @@ -40,7 +40,7 @@ public final class BaseConfiguration { } /** - * 通过名字获得配置的值 + * 閫氳繃鍚嶅瓧鑾峰緱閰嶇疆鐨勫 * * @param name * @return @@ -50,7 +50,7 @@ public final class BaseConfiguration { } /** - * 获得包含ClsId的连接信息 + * 鑾峰緱鍖呭惈ClsId鐨勮繛鎺ヤ俊鎭 * * @return */ @@ -62,7 +62,7 @@ public final class BaseConfiguration { } /** - * 获得包含ProgId的连接信息 + * 鑾峰緱鍖呭惈ProgId鐨勮繛鎺ヤ俊鎭 * * @return */ @@ -74,7 +74,7 @@ public final class BaseConfiguration { } /** - * 获得基础的连接信息 + * 鑾峰緱鍩虹鐨勮繛鎺ヤ俊鎭 */ private static void getConnectionInfomation() { ci.setHost(prop.getProperty(CONFIG_HOST)); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest2.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest2.java index c80323a..34a405d 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest2.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest2.java @@ -29,16 +29,16 @@ public class OPCTest2 { server.connect(); - /** 获得OPC连接下所有的Group和Item */ + /** 鑾峰緱OPC杩炴帴涓嬫墍鏈夌殑Group鍜孖tem */ dumpTree(server.getTreeBrowser().browse(), 0); - /** 获得OPC下所有的Item */ + /** 鑾峰緱OPC涓嬫墍鏈夌殑Item */ dumpFlat(server.getFlatBrowser()); server.disconnect(); } /** - * 遍历Flat结构的所有Item值 + * 閬嶅巻Flat缁撴瀯鐨勬墍鏈塈tem鍊 * * @param browser * @throws IllegalArgumentException @@ -53,7 +53,7 @@ public class OPCTest2 { } /** - * 遍历Tree结构 + * 閬嶅巻Tree缁撴瀯 * * @param branch * @param level @@ -78,7 +78,7 @@ public class OPCTest2 { } /** - * 打印Item + * 鎵撳嵃Item * * @param leaf */ @@ -88,7 +88,7 @@ public class OPCTest2 { } /** - * 打印Group + * 鎵撳嵃Group * * @param branch */ diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest3.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest3.java index 0b8a5a7..4bd4274 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest3.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest3.java @@ -12,7 +12,7 @@ import org.openscada.opc.lib.da.Server; import com.freud.opc.utgard.BaseConfiguration; /** - * 同步读取某个点位的值 + * 鍚屾璇诲彇鏌愪釜鐐逛綅鐨勫 * * @author Freud * diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest4.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest4.java index ebb3a93..a3a6f90 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest4.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest4.java @@ -12,17 +12,17 @@ import org.openscada.opc.lib.da.SyncAccess; import com.freud.opc.utgard.BaseConfiguration; /** - * 同步Access,读取某个点的变化值 + * 寮傛璇诲彇鐐逛綅鐨勪俊鎭紝璇诲彇鏌愪釜鐐圭殑鍙樺寲鍊 * * @author Freud * */ public class OPCTest4 { - /** 间隔时间 */ + /** 闂撮殧鏃堕棿 */ private static final int PERIOD = 100; - /** 休眠时间 */ + /** 浼戠湢鏃堕棿 */ private static final int SLEEP = 2000; public static void main(String[] args) throws Exception { @@ -34,12 +34,12 @@ public class OPCTest4 { server.connect(); /** - * 其中100单位为毫秒,为每次从OPC获取刷新的间隔时间 + * 鍏朵腑100鍗曚綅涓烘绉掞紝涓烘瘡娆′粠OPC鑾峰彇鍒锋柊鐨勯棿闅旀椂闂 */ AccessBase access = new SyncAccess(server, PERIOD); /** - * 定时每隔间隔时间获取一次值 + * 瀹氭椂姣忛殧闂撮殧鏃堕棿鑾峰彇涓娆″ */ access.addItem("Random.Real5", new DataCallback() { private int i; @@ -50,12 +50,12 @@ public class OPCTest4 { } }); - /** 开始监听 */ + /** 寮濮嬬洃鍚 */ access.bind(); - /** 当前线程休眠时间单位:毫秒 */ + /** 褰撳墠绾跨▼浼戠湢鏃堕棿鍗曚綅锛氭绉 */ Thread.sleep(SLEEP); - /** 监听 结束 */ + /** 鐩戝惉 缁撴潫 */ access.unbind(); server.dispose(); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest5.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest5.java index 0a6c705..a6806cb 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest5.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest5.java @@ -12,17 +12,17 @@ import org.openscada.opc.lib.da.Server; import com.freud.opc.utgard.BaseConfiguration; /** - * 异步Access,订阅读取点位的值,并且只有值有变化的时候才会触发CallBack函数 + * 寮傛Access锛岃闃呰鍙栫偣浣嶇殑鍊,骞朵笖鍙湁鍊兼湁鍙樺寲鐨勬椂鍊欐墠浼氳Е鍙慍allBack鍑芥暟 * * @author Freud * */ public class OPCTest5 { - /** 间隔时间 */ + /** 闂撮殧鏃堕棿 */ private static final int PERIOD = 100; - /** 休眠时间 */ + /** 浼戠湢鏃堕棿 */ private static final int SLEEP = 2000; public static void main(String[] args) throws Exception { @@ -34,12 +34,12 @@ public class OPCTest5 { server.connect(); /** - * 其中100单位为毫秒,为每次从OPC获取刷新的间隔时间 + * 鍏朵腑100鍗曚綅涓烘绉掞紝涓烘瘡娆′粠OPC鑾峰彇鍒锋柊鐨勯棿闅旀椂闂 */ AccessBase access = new Async20Access(server, PERIOD, false); /** - * 只有Item的值有变化的时候才会触发CallBack函数 + * 鍙湁Item鐨勫兼湁鍙樺寲鐨勬椂鍊欐墠浼氳Е鍙慍allBack鍑芥暟 */ access.addItem("Random.Real5", new DataCallback() { @@ -51,12 +51,12 @@ public class OPCTest5 { } }); - /** 开始监听 */ + /** 寮濮嬬洃鍚 */ access.bind(); - /** 当前线程休眠时间单位:毫秒 */ + /** 褰撳墠绾跨▼浼戠湢鏃堕棿鍗曚綅锛氭绉 */ Thread.sleep(SLEEP); - /** 监听 结束 */ + /** 鐩戝惉 缁撴潫 */ access.unbind(); server.dispose(); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest6.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest6.java index 593877d..d8e04da 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest6.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest6.java @@ -13,17 +13,17 @@ import org.openscada.opc.lib.da.SyncAccess; import com.freud.opc.utgard.BaseConfiguration; /** - * 如果Connection Break掉了,会自动重新连接 + * 濡傛灉Connection Break鎺変簡锛屼細鑷姩閲嶆柊杩炴帴 * * @author Freud * */ public class OPCTest6 { - /** 间隔时间 */ + /** 闂撮殧鏃堕棿 */ private static final int PERIOD = 100; - /** 休眠时间 */ + /** 浼戠湢鏃堕棿 */ private static final int SLEEP = 2000; public static void main(String[] args) throws Exception { @@ -37,12 +37,12 @@ public class OPCTest6 { controller.connect(); /** - * 其中100单位为毫秒,为每次从OPC获取刷新的间隔时间 + * 鍏朵腑100鍗曚綅涓烘绉掞紝涓烘瘡娆′粠OPC鑾峰彇鍒锋柊鐨勯棿闅旀椂闂 */ AccessBase access = new SyncAccess(server, PERIOD); /** - * 定时每隔间隔时间获取一次值 + * 瀹氭椂姣忛殧闂撮殧鏃堕棿鑾峰彇涓娆″ */ access.addItem("Random.Real5", new DataCallback() { private int i; @@ -53,12 +53,12 @@ public class OPCTest6 { } }); - /** 开始监听 */ + /** 寮濮嬬洃鍚 */ access.bind(); - /** 当前线程休眠时间单位:毫秒 */ + /** 褰撳墠绾跨▼浼戠湢鏃堕棿鍗曚綅锛氭绉 */ Thread.sleep(SLEEP); - /** 监听结束 */ + /** 鐩戝惉缁撴潫 */ access.unbind(); controller.disconnect(); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest7.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest7.java index 9bb6aff..46068a1 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest7.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest7.java @@ -12,7 +12,7 @@ import org.openscada.opc.lib.da.Server; import com.freud.opc.utgard.BaseConfiguration; /** - * 同步写入某个点位的值 + * 鍚屾鍐欏叆鏌愪釜鐐逛綅鐨勫 * * @author Freud * @@ -30,16 +30,16 @@ public class OPCTest7 { Group group = server.addGroup(); Item item = group.addItem("Square Waves.Real4"); - /** 构造写入数据 */ + /** 鏋勯犲啓鍏ユ暟鎹 */ final Float[] integerData = new Float[] { 1202f, 1203f, 1204f }; final JIArray array = new JIArray(integerData, false); final JIVariant value = new JIVariant(array); - /** 同步写入 */ + /** 鍚屾鍐欏叆 */ item.write(value); Thread.sleep(2000); - /** Dump出item的值 */ + /** Dump鍑篿tem鐨勫 */ dumpItem(item); server.dispose(); diff --git a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest8.java b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest8.java index aa8b7ad..5cfdf38 100644 --- a/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest8.java +++ b/OPC_Client_Utgard/src/main/java/com/freud/opc/utgard/cases/OPCTest8.java @@ -11,7 +11,7 @@ import org.openscada.opc.lib.da.Server; import com.freud.opc.utgard.BaseConfiguration; /** - * 异步写入 + * 寮傛鍐欏叆 * * @author Freud * @@ -27,18 +27,18 @@ public class OPCTest8 { server.connect(); - /** 构造写入数据 */ + /** 鏋勯犲啓鍏ユ暟鎹 */ final Float[] integerData = new Float[] { 1202f, 1203f, 1204f }; final JIArray array = new JIArray(integerData, false); final JIVariant value = new JIVariant(array); final Item item = server.addGroup().addItem("Square Waves.Real4"); - /** 同步写入 */ + /** 鍚屾鍐欏叆 */ item.write(value); Thread.sleep(2000); - /** Dump出item的值 */ + /** Dump鍑篿tem鐨勫 */ dumpItem(item); server.dispose();