The PLCnext CLI (PLCnext Command Line Interface) provides the entire toolchain for C++ programming on the PLCnext Technology platform as well as a template system for creating projects. Based on the templates, you can develop your applications. Use the PLCnext CLI to unpack and manage the SDKs. CMake is contained as the build environment and each SDK has its own configuration. A parser integrated in PLCnext CLI creates the metadata required for PLCnext Technology. The LibraryBuilder contained in PLCnext CLI creates a PLCnext Engineer library from the project. For convinience you can also use on of our IDE plugins. They are part of the release version or can also be found here on GitHub for Visual Studio and Eclipse.
If you want the latest release version, you can download it from the the PLCnext Technology controller download area. For more information and first steps with PLCnext Technology please visit our PLCnext Community.
If you want to adapt the PLCnext CLI to your needs or just work with the newest features and fixes. The following steps describe how to build a fully functional PLCnext CLI locally on your machine.
- CMake as an archive
- Engineering Library Builder extracted from the latest [PLCnext CLI Installation] (https://www.phoenixcontact.com/qr/2404267/softw "PLCnext CLI Setup download page")
dotnet build src -p:PlcNextToolName=plcncli
- Extract cmake to
src/PlcNext/bin/Debug/netcoreapp3.0/cmake
so that thebin
folder can be found directly insrc/PlcNext/bin/Debug/netcoreapp3.0/cmake
- Extract the Engineering Library Builder to
src/PlcNext/bin/Debug/netcoreapp3.0/library-builder
- Edit the
src/PlcNext/bin/Debug/netcoreapp3.0/file-names.xml
file to look like:
<?xml version="1.0" encoding="utf-8" ?>
<names>
<application path="plcncli"></application>
<EngineeringLibraryBuilder path="library-builder/EngineeringLibraryBuilder"></EngineeringLibraryBuilder>
<cmake path="cmake/bin/cmake"></cmake>
</names>
- Use
src/PlcNext/bin/Debug/netcoreapp3.0/plcncli
e.g. but add it to the path environment variable
Currently not supported. We are working on a process for contribution.
You can give feedback to this project in different ways:
- Ask a question in our Forum.
- Request a new feature via GitHub Issues.
- Vote for Popular Feature Requests.
- File a bug in GitHub Issues.
Copyright (c) Phoenix Contact Gmbh & Co KG. All rights reserved. Licensed under the Apache-2.0 License.