This project is depricated and will not be maintained anymore. Please use our gRPC services (https://www.plcnext.help/te/Service_Components/gRPC_Introduction.htm) to access PLCnext RSC services via Java.
There are a few Makers Blog posts with examples of how to use these gRPC services:
• Command-line gRPC client
• C# gRPC client
• python gRPC client
It is possible to write a gRPC client in Java, and there are examples of this general concept on the gRPC website: https://grpc.io/docs/languages/java/basics/
This project is a GUI showcasing some of the functionalities exposed by PLCnext controllers, that can be used remotely. This is a simple eclipse project which can be interpreted by most Java IDEs. The only prerequisite is that you have a JDK java 10 or higher. Maybe the most useful feature of this app besides it´s demonstrational value is the ability to monitor and write to Global Data Space Variables on the PLC without using PLCnext Engineer. In case you want to read more about the functionality provided by this application, you can read the community article.
To get this project running, clone this repository into a folder on your local machine and download the PLCnext Java RSC API. The libraries in that package need to be placed into the libs folder like in the picture.
Then Import the project into your Java IDE, build and run the application. If you want to configure default credentials for the login screen, you can edit the config.txt file under src/main/resources.
If you need some more instructions on how to use this applications you might want to have a look at the community article linked above.
- Ask a question in our Forum.
- File a bug in GitHub Issues.
Copyright (c) Phoenix Contact Gmbh & Co KG. All rights reserved.
Licensed under the MIT License.