BASIC EXAMPLES
The basic examples below will help you to configure your Arduino IDE for FLEXBOOL products and to use the basic PLC functionalities like reading/controling the FLEXBOOL inputs and ouputs, using the SD card, Real Time Clock, UPS battery charger and PLC communication with other devices.
FLEXBOOL FIRST STEPS
The short video describes the main FLEXBOOL features and explains the first steps to use the PLC, such as setting up the Arduino IDE for FLEXBOOL programming and basic PLC setup. The example code runs a PLC demo program, which checks the PLC hardware, displays a sample page on the PLC display, and runs a test sequence for the panel LED indicators.
FLEXBOOL INPUTS EXAMPLE
The example illustrates reading of Flexbool analog and digital inputs. It is based on Flexbool PLC Model 3, but can be used with any other Flexbool family controller with a different Input-Output configuration. Once the code is uploaded to the PLC, you can open the serial monitor and observe the printed PLC Input values.
CASE STUDIES
Our CASE STUDIES chapter contains a set of open source examples for monitoring, control and automation projects in various sectors and industries. It covers FLEXBOOL PLC applications such as touchscreen panel operation, remote monitoring and control via popular user interfaces, examples of various communication protocols, web servers stored on an SD card, and others. The chapter is constantly updated with new projects and use cases.
FLEXBOOL PLC & Nextion Touchscreen Display Example
When your system is based on a Siemens PLC as a main controller, you can extend its I/O, by using any FLEXBOOL controller as an I/O extender. In this example we will use FLEXBOOL 3 as an I/O extender of Siemens Logo controller thus adding 40 protected and factory calibrated inputs, as well as 32 outputs and integrated UPS battery charger, monitored and controlled via Modbus TCP (see FLEXBOOL PLC page for detailed I/O specifications).
FLEXBOOL PLC & SD Card Hosted Web Server Example
The example illustrates building of User interface, stored on the FLEXBOOL SD Memory Card and accessible from any computer in the network. It can be used as a basis for development of various control & monitoring systems where the control position is located far from the PLC installation panel, or few control positions must be arranged and used simultaneously from different locations.
FLEXBOOL PLC & Modbus Communication
The example demonstrates operation of FLEXBOOL PLC as a Modbus slave (server) device and allows control and monitoring all PLC Inputs/Outputs as well as UPS Battery charging parameters via the Modbus TCP protocol. It provides easy integration of all PLC functionalities in SCADA or any other visualization platform, that supports Modbus TCP protocol. The example can be easy modified to suit your specific project requirements.
FLEXBOOL PLC as I/O Extender of SIEMENS LOGO
When your system is based on Siemens PLC as a main controller you can easily extend its I/O support, by using any FLEXBOOL controller as an I/O extender.
In this example we will use FLEXBOOL model 3 as an I/O extender of SIEMENS LOGO 8 controller, thus adding 72 protected, and factory calibrated Inputs/Outputs, as well as an integrated UPS battery charger, all monitored and controlled via Modbus TCP.
You can build your program using the Siemens Soft Comfort ladder SW and make user interface by Siemens LWE. The same approach can be used with FLEXBOOL 2 and Lite models.
In this example we will use FLEXBOOL model 3 as an I/O extender of SIEMENS LOGO 8 controller, thus adding 72 protected, and factory calibrated Inputs/Outputs, as well as an integrated UPS battery charger, all monitored and controlled via Modbus TCP.
You can build your program using the Siemens Soft Comfort ladder SW and make user interface by Siemens LWE. The same approach can be used with FLEXBOOL 2 and Lite models.
FLEXBOOL PLC & Iridi GUI (Modbus)
The example demonstrates integration of FLEXBOOL PLC as Modbus slave (server) device into Iridi Pro GUI environment. The Iridi visualization project includes pages for control and monitoring of all PLC inputs and outputs, power supply and charging parameters, as well as some information pages for the terminals wiring. The project can be used as a starting point and modified to fulfil the integrator’s specific requirements.
FLEXBOOL PLC & MQTT Communication
MQTT is a publish/subscribe protocol designed for connecting IoT devices. Unlike HTTP’s request/response paradigm, MQTT operates in an event-driven manner, allowing messages to be pushed to clients. This architectural approach enables highly scalable solutions by decoupling data producers and data consumers, eliminating dependencies between them. Two key components to establish MQTT connection for publishing and subscribing of the messages are MQTT Clients and MQTT Broker.
FLEXBOOL PLC & NodeRED Dashboard Example (MQTT)
The example will allow you to create a MQTT based NodeRED dashboard for control and monitoring of various process parameters, analytics and interactive visualization. It shows arranging of different kind of gauges, charts, graphs, and alerts that can provide the system user with an overall picture of the system's status and detailed information about the processes being monitored. The ability to monitor in real time, can help the system user to easily analyze and troubleshoot problems in the monitored system.
SHORT CODE EXAMPLES
The short code examples below can be used as a quick guide for PLC I/O processing, SD card usage, real time clock, UPS battery charger, PLC display, panel buttons, indicators, and communication with other devices via RS485, UART, Ethernet, WiFi, Bluetooth, etc.