TiVCLComponent.OnNewOPCData

TiVCLComponent See Also

Occurs when data from an attached OPC server is sent to the control.

type TIndexObjectEvent = procedure(Index: Integer) of object;

property OnNewOPCData : TIndexObjectEvent;

Description

Use OnNewOPCData to specify actions to perform whevever new OPC data is sent to the control. This event is in contrast to the standard events on the component (for example, the OnPositionChange event for controls that have a Position property tied to an OPC Server) which only fire when OPC data changes the property on the component.

The OnNewOPCData event will fire everytime OPC data is received by the component, regardless or whether the data is different than previously received values.

Note: for the Plot Pack components, the Index refers to the Channel Index. For all other components, the Index refers to the OPC Item that has been added to the control.

Contents | Index | Previous | Next