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, returns a list of OPCBrowseElement objects for the given server.
📄️ 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.