Simple Write
Home Product
Details Free 
Demo Pricing &
Ordering Related
Products Support About Us

Please use our Code Center to obtain source-code and example projects/solutions:

http://codecenter.softwaretoolbox.com

 

Simple Write Example

The following example builds upon the Tutorial - Getting started with Delphi.

Writing to a Single Tag:

Place the following code within the Button click event handler as follows:

var
       strPC, strOPC, strTag, strAccess: string;
       intValue: integer;

begin
     strPC := '';
     strOPC := 'OPCLabs.KitServer.2';
     strTag := 'Simulation.Register_I4';
     strAccess := '';
     intValue := 10;

 try
       EasyDA1.WriteItemValue(
           strPC,
           strOPC,
           strTag,
           strAccess,
           intValue);

       form1.Caption := 'Wrote value';
  except
  end;
end
;

Copyright Software Toolbox, Inc., 1996-2004, All Rights Reserved Worldwide.
148A East Charles Street, Matthews, North Carolina, USA 28105
Phone: 704-849-2773 or 1-888-665-3678 (US), Fax: 704-849-6388
sales@softwaretoolbox.com | support@softwaretoolbox.com