Description: Connects to an OPC DA server, synchronously reads one item and returns its text value.
Calling convention: CIP_OPC_ReadItem("OPCServerName": String, "OPCItemName": String): String
Parameters:
OPCServerName: OPC DA server name.
OPCItemName: fully qualified item name.
Returns: The item's ValueStr, initially Variant NULL until a successful read. Connection and OPC errors propagate as exceptions.
Availability: Not registered: creation of the OPC MathParser module is currently commented out. The implementation requires the Windows OPC DA components.
Example:
ItemText := CIP_OPC_ReadItem("Matrikon.OPC.Simulation.1", "Random.Int1");