UA-Java-Legacy | OPC Foundation as legacy support | SDK library
kandi X-RAY | UA-Java-Legacy Summary
kandi X-RAY | UA-Java-Legacy Summary
The OPC Foundation will continue maintenance of the .NET Stack which is based on .NET Standard. It can be found here. The OPC Foundation has formally released the Unified Architecture Java Stack and Sample Code to the community.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a GUID from the input field name .
- Send a secure message .
- Returns a BrowsePath target for the given starting node
- Runs the HTTP POST .
- Get the variant contents .
- Generate a X509 certificate .
- Sends a request to the secure channel .
- Build the PSHA .
- Adds a chunk to the message builder .
- Handles getEndpoints request .
UA-Java-Legacy Key Features
UA-Java-Legacy Examples and Code Snippets
Community Discussions
Trending Discussions on UA-Java-Legacy
QUESTION
I am trying to connect to an OPC server of a Siemens S7 1200 PLC. For this I used the Matrikon application That is configured on my local machine. With the JeasyOPC library I can make the connection, so it is like this:
JOpc jopc = new JOpc("localhost","Matrikon.OPC.SiemensPLC.1","JOPC1");
JOpc.coInitialize();
But this library can only be used in Windows and has problems when compiling binaries in 64.
So I have tried with OPC Foundation UA JAVA Legacy and I would like to make the same connection, however in the examples we ask for many more things:
...
ANSWER
Answered 2019-Feb-01 at 11:44Okay. I answer to myself. After many searches I have found my error: There are two types of OPC: DA and UA.
The first of all (the DA) is to which I could connect with:
JOpc jopc = new JOpc ("localhost", "Matrikon.OPC.SiemensPLC.1", "JOPC1");
This version of the protocol is the one used historicaménte windows, uses COM libraries and can only be implemented under a Windows computer.
The second, the OPC UA, is the new implementation and connects like this:
String url = "opc.tcp: // localhost: 102 /"; // ServerExample1
This version is already compatible with Windows, Linux and any system that is capable of running the libria.
The problem was that, in my case, the S7 1200 only uses OPC DA, which made the UA option unfeasible for me if it did not use a compatible gateway.
I hope this information will help someone who is in my situation.
Greetings.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install UA-Java-Legacy
You can use UA-Java-Legacy like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the UA-Java-Legacy component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page