Connect WinnCC OA to Java

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
joao.matos
Posts:4
Joined: Mon Oct 31, 2016 2:40 pm

Connect WinnCC OA to Java

Post by joao.matos »

First I'm new to WinCC OA.

I want to know if it's possible to connect wincc OA to Java, so I can read/set values etc..
If its possible how I can do it?

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Connect WinnCC OA to Java

Post by vogler »

There is no official Java API for WinCC OA.

Once a time I built a Java API:
http://www.winccoa.at/wordpress/?p=722
(there is a download link, but it is an old version)

With that you can implement a Java program which connects to WinCC OA directly & natively - the WinCC OA native (C++) libs are used in Java by JNI.

Another option would be to exchange information by coupling Java and OA loosely - e.g. by Webservices, Http/JSON or XMLRPC... it depends on your business needs...

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Connect WinnCC OA to Java

Post by fmulder »

I believe that 3.15 will introduce the option to integrate java widgets in the UI. We've seen demos of it on the previous user day.
The other option is to implement a C++ controll DLL and implement some kind of tcp/ip based protocol.

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Connect WinnCC OA to Java

Post by vogler »

regarding "widgets in the UI" - this is JavaScript - not Java!

joao.matos
Posts:4
Joined: Mon Oct 31, 2016 2:40 pm

Re: Connect WinnCC OA to Java

Post by joao.matos »

Thank you very much for the replies.

@Andreas Vogler: I would like to try using the Java API that you mentioned. However, since as you said it is an old version, is there an updated one that I could use, or should I just stick with that one?

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Connect WinnCC OA to Java

Post by vogler »

I think I will not find time to package an update (in next days). Give that version a try, if you have questions or if you need help, send me an eMail: andreas.vogler@etm.at

CyaNn
Posts:97
Joined: Tue Nov 23, 2010 9:48 am

Re: Connect WinnCC OA to Java

Post by CyaNn »

Hello Andrea,

Writing a driver in Java is a great stuff.
Do you plan to make your library, officially supported by WinCC ? Ans why not packaged with it ?

I am really interested by this feature. Actually I am writing my drivers and other extensions in C++ and have to face a lots of compatibility issues between Win & Linux. At Skyguide, we also planned to connect WinCC to SOA based ESB for monitoring stuffs. It should be awesome to doing it directly from Java.

Many thanks in advance for your answer.
Yann

7 posts • Page 1 of 1