Description: Connects to an OPC DA server and synchronously writes one item.
Calling convention: CIP_OPC_WriteItem("OPCServerName": String, "OPCItemName": String, Value: Variant): String
Parameters:
OPCServerName: OPC DA server name.
OPCItemName: fully qualified item name.
Value: value sent to the item.
Returns: The item's ValueStr after the write, initially Variant NULL until successful. Connection, conversion 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 and write permission for the item.
Example:
WrittenText := CIP_OPC_WriteItem("Matrikon.OPC.Simulation.1", "Bucket Brigade.Int1", 42);