Accessing Tags from an assembly (dll)

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

Accessing Tags from an assembly (dll)

Post by andis59 »

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

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

Re: Accessing Tags from an assembly (dll)

Post by onedumbtrucker »

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.

Post Reply