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