public class PLCClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
PLCClient.TagDataCallback |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(String userName,
String passWord) |
Object |
convertVariant(org.jinterop.dcom.core.JIVariant itemValue) |
void |
disconnect() |
Map<String,String> |
dumpTree(org.openscada.opc.lib.da.browser.Branch branch) |
org.openscada.opc.lib.da.Group |
getGroup(String tagGroupName) |
org.openscada.opc.lib.da.Item |
getItem(org.openscada.opc.lib.da.Group tagGroup,
String tagItemName) |
org.openscada.opc.lib.da.browser.TreeBrowser |
getTreeBrowser() |
boolean |
isConnected() |
Object |
readValue(org.openscada.opc.lib.da.Item tagItem) |
Object |
readValue(org.openscada.opc.lib.da.Item tagItem,
boolean fromDevice) |
org.jinterop.dcom.core.JIVariant |
readValueAndType(org.openscada.opc.lib.da.Item tagItem,
boolean fromDevice) |
void |
removeTagsListener(org.openscada.opc.lib.da.AccessBase access,
List<Tag> tags) |
org.openscada.opc.lib.da.AccessBase |
startTagListener(List<Tag> tags,
int period,
PLCClient.TagDataCallback dataCallback) |
protected boolean |
valueChanged(String itemName,
Object newValue) |
protected void |
writeErrorLog(String logMessage) |
protected void |
writeLog(String logMessage) |
Integer |
writeValue(org.openscada.opc.lib.da.Item tagItem,
Object writeValue) |
public boolean isConnected()
public org.openscada.opc.lib.da.AccessBase startTagListener(List<Tag> tags, int period, PLCClient.TagDataCallback dataCallback) throws Exception
Exceptionpublic void removeTagsListener(org.openscada.opc.lib.da.AccessBase access,
List<Tag> tags)
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIExceptionpublic org.openscada.opc.lib.da.Group getGroup(String tagGroupName)
public org.openscada.opc.lib.da.Item getItem(org.openscada.opc.lib.da.Group tagGroup,
String tagItemName)
public org.openscada.opc.lib.da.browser.TreeBrowser getTreeBrowser()
public Integer writeValue(org.openscada.opc.lib.da.Item tagItem, Object writeValue) throws Exception
Exceptionpublic Object readValue(org.openscada.opc.lib.da.Item tagItem) throws Exception
Exceptionpublic Object readValue(org.openscada.opc.lib.da.Item tagItem, boolean fromDevice) throws Exception
Exceptionpublic org.jinterop.dcom.core.JIVariant readValueAndType(org.openscada.opc.lib.da.Item tagItem,
boolean fromDevice)
throws Exception
Exceptionpublic Object convertVariant(org.jinterop.dcom.core.JIVariant itemValue) throws Exception
Exceptionprotected void writeLog(String logMessage)
protected void writeErrorLog(String logMessage)
Copyright © 2019. All rights reserved.