Sign in to follow this  
Followers 0
pr2501

Prodave and Delphi

3 posts in this topic

With next code i'm trying to write in the Data Blok 11 into first byte. But i have no sauces. Can you help me to resolve the error. Best regards function DB_write ( dbno:Integer;dwno:Integer;var amount:Integer;var buffer):Integer;stdcall; function DB_write;external 'w95_s7m.dll' name 'db_write'; procedure Tform1.writePLC(); var ammount1: Integer; buffmy: Word; begin ammount1 := 1; buffMY:= 1 ; DB_read(11, 0, ammount1, buffmy); end;

Share this post


Link to post
Share on other sites
Maybe this: http://support.automation.siemens.com/WW/view/de/21971420 or this: http://www.plctalk.net/qanda/showpost.php?...mp;postcount=13 or this: http://www.experts-exchange.com/Programmin...Q_23117009.html or this: http://www.runmode.com/usefulstuff_files/0...rodave_unit.zip Found with google. I have no experience with Delphi or Prodave. PS: Notice how I refrained from 'sauce' jokes ! Edited by JesperMP

Share this post


Link to post
Share on other sites
Thank you With programming is always the same. It cam miss something little or big, it wont work anyway. I forget that. It's ok now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0