PLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

 

 How to create a Blog Entry

PLCnext Technology controllers come with the SQLite database engine already installed. This database can be used by applications that require a "small, fast, self-contained, high-reliability, full-featured, SQL database engine" on the PLC.

This guide shows how to link a PLCnext Control C++ project to SQLite, and gives a simple example of how to call a SQLite function from a C++ component.

kernel parameters

To try out open source packages like Docker that require kernel parameters which are not enabled in the kernel of the standard firmware, it might be necessary to build and install an altered kernel on a PLCnext Control.

This How-To will guide you through this process. You need to get the kernel sources for the specific device and firmware version.

This package is not provided in the download-section for the device but can be ordered for a handling fee (check the procedure in the User Manual to the device).

(Click "Read more..." below the image.)

This example shows how to create PLCnext Component libraries with Visual Studio Code. The project layout should be capable of handling multiple PLCnext SDK versions and different controller targets.

The example is hosted on GitHub and can be downloaded from the GitHub repository.

This example was made with the following software:

  • Ubuntu 18.04.02 LTS as development environment.
  • Visual Studio Code version 1.32.3
  • Visual Studio Code Extensions:
    • CMake (twxs.cmake) version 0.0.17
    • CMake Tools (vector-of-bool.cmake-tools) version 1.1.3
    • C/C++ (ms-vscode.cpptools) version 0.22.1
  • PLCnext SDK 2019.0 LTS for AXC F 2152
  • PLCnext SDK 2019.3 beta bundle 1 for AXC F 2152

To be able to follow this blog, you must have alreday installe the OPC-UA inside Node-Red.

Then, it will be possible to send a mail, with a command from the PLC (xSend) including a variable message (strText).

Here are the 2 variables of the AXC F 2152 which will be used and accessible by OPC UA :

1

OPC option must be checked.

The AXC F 2152 has 512 Mb RAM. Of this the OS is using a part of it but there is still a lot which is not used. This free space could be used for a RAM drive. Unlike the SD-Card the RAM drive has no limitations in reading and writing. Therefore it could be very useful for tasks which have a lot of reading and writing, e.g. a Datalogger. The downside of the RAM drive is that everything on it is gone after a restart/reboot of the controller. So it would be a good idea to have a backup solution for the data. 

Hello PLCnext Community,

you probably already have seen awesome things within the last publication, like Node-RED, the package manager and PROFICLOUD.

All right, but all these cool IoT applications have a common need, that is right, they need to be connected to the Internet in order to function. Well, our colleague Josh Krug put together this great documentation on how to configure the AXC F 2152 for an Internet connection.

Page 5 of 8