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
Accessing Tags from an assembly (dll)
-
- Posts: 14
- Joined: Thu Nov 14, 2013 12:14 pm
Re: Accessing Tags from an assembly (dll)
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.
[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.