anopcclientx module

filename:advantechapi.py
author:per@tordivel.no
copyright:2000-2015 Tordivel AS
license:Tordivel AS’ Scorpion Python Module License

OpcClientX ActiveX Plugin wrapper for interfacing in Scorpion Central

class anopcclientx.AnOpcClientX(opc)
t2d(t)
r2d(r)
ResponseToDict(response)

a response string is of the form ID.NAME;Result1=XXX;Result2=YYY

StrArrayToList(s, delimiter)

a string array is values separated by a delimiter

ReadItem(name)
WriteItem(name, value)
AddItem(name, address)
DeleteItem(name)
Connect()
Disconnect()
AsyncRefresh()
PropSet(name, value)
PropGet(name)
SetServerName(name)
SetRemoteServer(name)
GetRemoteServer()
GetServerName()
SetAccessPoint(name)
GetAccessPoint()
SetDelimiter(value)
GetDelimiter()
SetUpdateRate(value)
GetUpdateRate()
SetShowMonitor(value)
GetShowMonitor()
SetShowEvents(value)
GetShowEvents()
GetErrors()
GetWarnings()
GetVendorInfo()
GetServerNode()
GetClientName()
GetServerState()
SetDeadBand(value)
GetDeadBand()
SetAliveInterval(value)
GetAliveInterval()
SetReconnectInterval(value)
GetReconnectInterval()
SetMaxReconnect(value)
GetMaxReconnect()