mirror of
https://github.com/luoyan35714/OPC_Client.git
synced 2026-04-18 00:01:30 +08:00
change the encode from gbk to utf-8
This commit is contained in:
@@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc;
|
||||
import javafish.clients.opc.JOpc;
|
||||
|
||||
/**
|
||||
* 连接到OPC Server, 每隔200毫秒查看一次状态,1秒钟之后关闭连接
|
||||
* 连接到OPC Server, 每隔200毫秒查看一次状态,1秒钟之后关闭连接
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -6,7 +6,7 @@ import javafish.clients.opc.component.OpcItem;
|
||||
import javafish.clients.opc.exception.CoInitializeException;
|
||||
|
||||
/**
|
||||
* 连接到OPC Server, 并添加一个Group,在Group下添加一个Item
|
||||
* 连接到OPC Server, 并添加一个Group,在Group下添加一个Item
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc;
|
||||
import javafish.clients.opc.browser.JOpcBrowser;
|
||||
|
||||
/**
|
||||
* ²éÕÒijServerϵÄËùÓÐOPC serverÁ¬½Ó
|
||||
* 查找某Server下的所有OPC server连接
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc;
|
||||
import javafish.clients.opc.browser.JOpcBrowser;
|
||||
|
||||
/**
|
||||
* ͨ¹ýOPCÃû×Ö²éÕÒËùÓÐBranch
|
||||
* 通过OPC名字查找所有Branch
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.freud.opc.jeasyopc;
|
||||
import javafish.clients.opc.browser.JOpcBrowser;
|
||||
|
||||
/**
|
||||
* ͨ¹ýBranchÃû×Ö²éÕÒËùÓÐItem
|
||||
* 通过Branch名字查找所有Item
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -7,7 +7,7 @@ import javafish.clients.opc.component.OpcItem;
|
||||
import javafish.clients.opc.variant.Variant;
|
||||
|
||||
/**
|
||||
* ͬ²½¶ÁÈ¡ItemÖµ
|
||||
* 同步读取Item值
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -7,7 +7,7 @@ import javafish.clients.opc.variant.Variant;
|
||||
import javafish.clients.opc.variant.VariantList;
|
||||
|
||||
/**
|
||||
* ͬ²½¶ÁдItemÖµ
|
||||
* 同步读写Item值
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -5,7 +5,7 @@ import javafish.clients.opc.component.OpcGroup;
|
||||
import javafish.clients.opc.component.OpcItem;
|
||||
|
||||
/**
|
||||
* Òì²½¶ÁдItemÖµ
|
||||
* 异步读写Item值
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -6,7 +6,7 @@ import javafish.clients.opc.component.OpcGroup;
|
||||
import javafish.clients.opc.component.OpcItem;
|
||||
|
||||
/**
|
||||
* Òì²½10ºÍÒì²½20¶ÁÈ¡
|
||||
* 异步10和异步20读取
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -8,7 +8,7 @@ import javafish.clients.opc.component.OpcGroup;
|
||||
import javafish.clients.opc.component.OpcItem;
|
||||
|
||||
/**
|
||||
* Òì²½¶©ÔÄʽ¶ÁÈ¡
|
||||
* 异步订阅式读取
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -4,7 +4,7 @@ import javafish.clients.opc.component.OpcGroup;
|
||||
import javafish.clients.opc.component.OpcItem;
|
||||
|
||||
/**
|
||||
* Group¿Ë¡
|
||||
* Group克隆
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
@@ -9,7 +9,7 @@ import javafish.clients.opc.exception.SynchReadException;
|
||||
import javafish.clients.opc.variant.Variant;
|
||||
|
||||
/**
|
||||
* ¿ÕֵʾÀý
|
||||
* 空值示例
|
||||
*
|
||||
* @author Freud
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user