TiOPCItem.Data

TiOPCItem

Use Data to get or set the current data for the OPC Item.

property
Data : OleVariant;

Description

Use Data to get or set the current data for the OPC Item. The current value of the item that was last received from the OPC server will be contained in this property. To send data to the server, simply set the property equal to some value.

Note: After setting this property to a value, the data will still be sent to the OPC Server regardless of whether or not it was different than the previous value.

Example

Delphi

iComponent.OPCItem[0].Data := 5.5;

Value := iComponent.OPCItem[0].Data;

C++ Builder

iComponent-OPCItem[0]->Data = 5.5;

Value = iComponent-OPCItem[0]->Data;

Contents | Index | Previous | Next