system.opc
OPC Functionsβ
The following functions allow you to read, write, and browse OPC servers.
ποΈ browse
Allows browsing of the OPC servers in the runtime, returning a list of tags.
ποΈ browseServer
When called from a Vision Client, Perspective Session, or the Designer, returns a list of OPCBrowseElement objects for the given server. Otherwise, returns a list of PyOPCTagEx objects.
ποΈ browseSimple
Allows browsing of OPC servers in the runtime returning a list of tags.
ποΈ getServers
Returns a list of server names.
ποΈ getServerState
Retrieves the current state of the given OPC server connection.
ποΈ isServerEnabled
Checks if an OPC server connection is enabled or disabled.
ποΈ readValue
Reads a single value directly from an OPC server connection.
ποΈ readValues
This function is equivalent to the system.opc.readValue function, except that it can operate in bulk.
ποΈ writeValue
Writes a value directly through an OPC server connection synchronously.
ποΈ writeValues
This function is a bulk version of system.opc.writeValue.
ποΈ setServerEnabled
Enables or disables an OPC server connection.