Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Accessing Tags from an assembly (dll)
PostPosted: Thu Nov 20, 2014 3:30 am 

Joined: Mon Apr 08, 2013 11:50 am
Posts: 13

Offline
I have an iX project that uses an assembly (dll) to communicate with an external device. To do this I need values from the PLC, which are in some Tags.


Is there someway to access these Tags from the assembly/dll?

I need both read and write access.

// Anders


 Profile  
 
 Post subject: Re: Accessing Tags from an assembly (dll)
PostPosted: Fri Jan 23, 2015 8:55 am 

Joined: Thu Nov 14, 2013 12:14 pm
Posts: 14

Offline
If you know the functions within the dll you can import them into your application using;

[DllImport("coredll.dll")]
private extern static uint SetSystemTime(ref SYSTEMTIME lpSystemTime);

SetSystemTime is now your function to call the SYSTEMTIME function in the coredll.dll.

This only works if the dll is documented so you know what the functions are inside it.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: