Page 1 of 1

Accessing Tags from an assembly (dll)

Posted: Thu Nov 20, 2014 3:30 am
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

Re: Accessing Tags from an assembly (dll)

Posted: Fri Jan 23, 2015 8:55 am
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.