Can I import the externally developed dll file to WinCC OA?

Find and share HowTos to various installations / configurations!
8 posts • Page 1 of 1
BongBongV
Posts:16
Joined: Thu Sep 24, 2020 10:41 am

Can I import the externally developed dll file to WinCC OA?

Post by BongBongV »

I'm going to make the developed program in dll format and import it inside WinCCOA, is it possible?

After making that program into a dll,
[ui]
CtrlDLL = "Test"

I wonder if I can use it in this format.



Unexpected state, The Ctrl Extension D:\GIT_PROJECT\SCRIPT\NEW_PLATFORM\NEW_PLATFORM\bin\CreateDLL.dll is not compatible with the current library version 318000 of WinCC OA.
It might be from version <= 3.6, or a needed external library could not be loaded. (See also previous error message)


How can I get you to refer to an external library?

If externally developed dll can be used, is there a license condition required to use it?

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Can I import the externally developed dll file to WinCC OA?

Post by kilianvp »

You have to create a Ctrl Extension if you want use your functions inside a CTRL Script. You have to use the offical WinCC OA C++ API. Or you write a foreign function interface (FFI) for CONTROL and load a DLL.

BongBongV
Posts:16
Joined: Thu Sep 24, 2020 10:41 am

Re: Can I import the externally developed dll file to WinCC OA?

Post by BongBongV »

Thank you for your answer.

How can I make FFI(foreign function interface) between WinCC OA's CTRL and C++?
Do you have an example?

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Can I import the externally developed dll file to WinCC OA?

Post by gschijndel »

An example can be found on github. It is called CtrlFFI. But perhaps there is a fork, which is a better starting point.

BongBongV
Posts:16
Joined: Thu Sep 24, 2020 10:41 am

Re: Can I import the externally developed dll file to WinCC OA?

Post by BongBongV »

Thank you, Have a good day.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Can I import the externally developed dll file to WinCC OA?

Post by kilianvp »

It's my fork. I'll update it to cmake soon.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Can I import the externally developed dll file to WinCC OA?

Post by gschijndel »

It would be nice if ETM includes this in the product or at least have it compiled available.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Can I import the externally developed dll file to WinCC OA?

Post by kilianvp »

Yes

8 posts • Page 1 of 1