1. Introduction
Chaotic nonlinear systems have been drawing increasing attention and have become one of the most prominent scientific topics. Because of their numerous and vital applications in a wide range of fields, they are now significantly important in modern engineering and physics [
1]. They seem disorganized and may be distinguished by their unpredictable behavior. Their behavior initially appears random, but in fact, it follows a precise and complex evolution. These systems are extremely sensitive to changes in the initial states, where even little modifications to the initial conditions can have a significant effect on the final evolution of the chaotic flow. This phenomenon is known commonly as the butterfly effect. For engineers and scientists working with real-world industrial systems, this sensitivity can be a critical challenge and at the same time a powerful tool, depending on how its handled [
2].
The wide range of applications for chaotic nonlinear systems makes their research essential. They cover a wide range of topics, including physics, data encryption, engineering, medicine, and the way our hearts beat. In particular, chaotic systems are used in medicine to investigate biological patterns like heart rhythms [
3] and neural activity [
4]. On the other hand, chaotic models are used in engineering applications to improve the functionality of technology and design sophisticated control methods [
5]. Additionally, these systems have demonstrated effectiveness in the advancement of modern encryption methods, providing high degrees of data transmission security [
6,
7]. It is also worth noting that, while these applications are compelling, real-world implementation often involves trade-offs between complexity, cost, and stability. Modern tools and computational software offer tremendous opportunities to study chaotic systems and explore their future applications.
The realization of chaotic systems initially relied on discrete components such as comparators, diodes, capacitors, and operational amplifiers. These analog circuits elements provide a way to generate chaotic dynamics by emulating nonlinear system behavior. However, such implementations were inherently limited by their low-frequency response, which restricted their application in high-speed systems [
8]. Moreover, analog components are susceptible to noise, aging, and environmental factors, which can lead to inconsistencies in system performance over time. Due to the previously discussed issues, recently, many chaotic systems have been implemented using digital element circuitry.
The usage of digital components has revolutionized the realization and implementation of nonlinear chaotic models, where digital platforms offer significant advantages, including high-speed operation, precise control, and reconfigurability. Additionally, digital implementations are less affected by environmental variations and provide greater stability, unlike analog systems circuitry. Moreover, they enable the design and simulation of complex chaotic systems with higher accuracy, rendering them suitable for applications such as secure communications, random number generation, and encryption algorithms. The flexibility and scalability of digital framework designs allow researchers to test various chaotic models and adapt systems as needed, paving the way for advancements in fields like cryptography and nonlinear dynamics studies [
9].
The study in [
10] explores a novel 3D chaotic mechanical jerk and details an FPGA-based implementation of the system, where discrete equations derived through numerical methods are synthesized. By optimizing hardware through pipeline operations, the FPGA design achieves efficient resource utilization. The work in [
11] enhances a chaotic system build using a memristive and the inclusion of a transcendental nonlinearities using fractional-order mathematical derivation. The FPGA implementation focuses on integrating a reconfigurable coordinate rotation digital computer (CORDIC) for trigonometric and hyperbolic function calculation and realizes the fractional-order operators through the Grünwald–Letnikov (GL) definition. The system was realized on the Artix-7 FPGA kit, providing a high throughput of 0.396 Gbit/s. The researcher in [
12] introduced a six-dimensional chaotic memristor system with hidden attractors. Simulations on a DSP platform validated its accuracy, highlighting its potential for secure communication and image encryption applications. A four-dimensional chaotic system with rich dynamics, including attractor coexistence, was implemented using DSP chip F28335. The continuous system was discretized using the Runge–Kutta method and implemented efficiently. A DAC8552 converted digital outputs analog signals for visualization, with experimental results aligning with simulations. The system shows promise for secure communication and image encryption [
13].
While most existing research focuses on FPGAs and DSPs, PLCs (programmable logic controllers) offer unique advantages, such as their robustness, ease of integration into industrial environments, and widespread use in automation. PLC devices can be considered the backbone of the modern industrial automation. They were originally developed to replace traditional relay-based automatic control systems. But due to their modular design, real-time processing capabilities, and ability to integrate with industrial networks and their easy integration to a wide range of sensors and actuators, PLCs became very crucial for industrial applications [
14]. Moreover, the computational power and flexibility of PLC devices can be employed to precisely realize, implement, and control chaotic systems in a powerful way. Chemical processing facilities can use PLC-based chaotic control mechanisms to manage sensitive reactions and achieve peak performance even when external factors like temperature and pressure fluctuate. Another significant application of PLCs lies in robotics, motion control, and ball mill [
15]. For instance, chaotic trajectories can be utilized to navigate complex environments, avoiding obstacles and optimizing paths in real time [
16]. Energy usage and load balancing are common challenges for industrial operations. Therefore, another area where PLCs and chaotic systems work remarkably well together is energy management. The PLC implementation of chaotic-based algorithms can be used to optimize energy distribution by avoiding waste and dynamically adapting to shifting demands. Significant cost savings result from this, and it also supports international initiatives to lower carbon emissions and advance sustainable practices [
17]. The Industrial Internet of Things (IIoT) provides global connectivity between components in different locations and technological advancement that leads to the implementation of Industry 4.0 [
18]. Chaotic systems provide robust signal transmission, while PLCs ensure seamless integration with other IIoT platforms, enabling predictive maintenance and real-time decision-making. PLCs can seamlessly integrate power line communication systems with other industrial automation networks, such as SCADA or IoT-based frameworks. This enables centralized control and monitoring of the communication system while maintaining data security and integrity.
This paper introduces an experimental implementation of the V-shape/Heart-shape chaotic system. It gets its name from the fact that this chaotic dynamical model displays two different typologies of strange attractors based on the values of its parameters. Numerical methods are used to investigate both dynamical behaviors in these two cases. This paper’s second goal is to make use of an industrial-type PLC, the XEC-DN32H device from the LS XGB family, to implement the differential equation of the presented chaotic model. The programmable hardware allows the experimental characterization of the system dynamics with a reconfigurable and rapid experimental setup. Studying chaotic systems using PLCs would also provide valuable insights into their practical utility in real-world scenarios. Unlike FPGAs and DSPs, PLCs are already integrated into many industrial operations, which could simplify the adoption of chaos-based solutions. Furthermore, such research could expand the functionality of PLCs beyond their traditional role in deterministic control systems, enabling industries to benefit from the unique properties of chaos, such as sensitivity to initial conditions and pseudo-random behavior. The novelty of this work lies in demonstrating that chaotic systems can be successfully implemented on PLC hardware, highlighting the potential of PLCs not only as control devices but also as platforms for advanced computational and security-related applications. This underexplored direction opens promising opportunities for innovation, particularly in industrial networking environments such as SCADA and IIoT systems, where PLCs are already essential components. By highlighting this perspective, our study not only presents a novel implementation but also opens a promising pathway for future research and applications. The remaining parts of this paper are organized as follows. In
Section 2, the dynamic properties of the proposed V/Heart-shape chaotic system are analyzed, highlighting its nonlinear characteristics and parameter-dependent behaviors.
Section 3 describes the detailed methodology for realizing the chaotic system using a high-performance programmable logic controller (PLC) device. The design employs the usage of user-defined function blocks programmed in ST language.
Section 4 discusses the experimental results obtained from both simulation and real-time hardware testing, demonstrating the system’s ability to generate complex self-excited attractors. Finally,
Section 5 concludes the paper by summarizing the key findings and outlining potential directions for future research.
2. Dynamic Properties of the V/Heart-Shape Chaotic System
The primary step in integrating chaotic systems with PLCs is developing a mathematical model that accurately represents the system’s dynamics. This section introduces the V/Heart-shape chaotic system, which is a multi-scroll attractor. The multi-scroll attractor is proven to have better properties, like having higher entropy for random number generation, compared to normal attractors. The dimensionless state equations of the presented V/Heart-shape chaotic model are given as follows [
19]:
where
is the additive coefficient, and
is the limiting coefficient.
and
are system parameters.
is the introduced piecewise nonlinear staircase function used to generate the multi-scrolls, and the number of scrolls of the attractor is
. Parameters
and
in (
2) control the scrolls’ diameter and height characteristics, respectively.
To thoroughly explore the dynamics of the presented chaotic system, we will investigate it under two distinct sets of parameters. Initially, we will analyze the system when parameter is set to 1. This specific configuration will allow us to observe the baseline behavior and inherent chaotic properties of the system. Subsequently, we will modify parameter to 2 and repeat the analysis. This change is expected to alter the system’s behavior, potentially leading to different dynamical features. By evaluating the results from the two parameter sets, the aim is to understand how varying control parameter influences the chaotic nature of the system. Such comparative analysis will highlight the sensitivity of the system to parameter changes and provide insights into its stability and bifurcation behavior. Through this thorough analysis, a deeper understanding of the underlying mechanisms driving the chaotic behavior and the impact of parameter variations on the system’s dynamics can be gained.
Figure 1 shows the V-shape self-excited adjacent parabolic loop attractor. This strange attractor generated from the presented chaotic system with
scrolls, when
and the initial values are selected as
. A family of interconnected Heart-shape self-excited attractors are produced by setting parameter
, as shown in
Figure 2 with
and initial condition
.
To analyze the employed chaotic system dynamical behavior, various state-of-the-art nonlinear analysis tools can be utilized, each serving a distinct purpose. Bicoherence is a powerful tool that measures quadratic phase coupling between different frequency components of a signal, helping to identify nonlinear interactions even in noisy data. This is particularly useful in distinguishing chaotic behavior from quasi-periodic phenomena. Power spectral density (PSD), on the other hand, analyzes the frequency content of a signal. In chaotic systems, PSD typically reveals a broadband spectrum, indicating a wide range of frequencies, which helps differentiate chaotic signals from noise and periodic signals. The PSD and bicoherence of system (
1) with system parameters
and
are given in
Figure 3 and
Figure 4, respectively. These figures indicate the broadband nature and the nonlinearity strength of the suggested chaotic system.
A Poincaré map is another essential and important tool that can be used to reduce the phase space dimension of a dynamical system by considering a cross-section in its phase space. This technique aids in visualizing the long-term behavior of a system and identifying periodic orbits, fixed points, and chaotic regions in a straightforward manner [
20]. Bifurcation diagrams provide insights into how the qualitative behavior of a system changes as a parameter varies. These diagrams are crucial for identifying transitions between periodic and chaotic states, thereby understanding the stability and dynamics of the system. Lyapunov exponents measure the rate of separation of infinitesimally close trajectories within the system. Positive Lyapunov exponents are indicative of chaos, reflecting the system’s sensitivity to initial conditions, which is a hallmark of chaotic behavior. Together, these tools offer a comprehensive framework for analyzing, predicting, and potentially controlling chaotic systems, thus providing a deep understanding of their intricate dynamics.
Poincaré maps for both the
and
cases, projected onto the
plane, are depicted in
Figure 5 and
Figure 6, respectively. To analyze and verify the chaotic behavior of the system, for both cases, the intersections of the system trajectories with the
plane provide a sequence of points that form the Poincaré map. In both contexts of
and
, the maps may reveal chaotic behavior where the points are organized in regular patterns, such as distinct clusters or closed curves.
The bifurcation diagram of the system for control parameter
, as depicted in
Figure 7 and
Figure 8, provides a clear visualization of the system’s dynamic behavior as parameter
is increased. With the initial conditions set at
for the initial iteration, and reinitializing to the last values of the state variables, the plots show how the system evolves under forward continuation. The plots reveal a complex dynamic, characterized by transitions between different states. Notably, there are regions where the plot exhibits a dense, seemingly random pattern, indicating the presence of chaotic behavior. Thus, the bifurcation plot not only confirms the existence of chaos but also highlights the intricate structure of the system’s phase space under varying parameter conditions.
The analysis of system (
1)’s dynamics through the Lyapunov exponents and bifurcation diagram reveals a strong correlation between the two tools in identifying chaotic regions. Lyapunov exponents quantify the rate of separation of infinitesimally close trajectories in a dynamical system, providing a direct measure of the system’s sensitivity to initial conditions. In particular, a positive Lyapunov exponent indicates exponential divergence of nearby trajectories, which is a intrinsic feature of chaotic dynamics behavior.
When comparing the plot of the Lyapunov exponents with the bifurcation diagram, regions of chaotic behavior correspond to those where the largest Lyapunov exponent becomes positive. In the bifurcation diagram, chaotic regions are typically characterized by dense, irregular distributions of points, indicating a loss of periodicity. The Lyapunov exponent plot complements this by quantitatively confirming these chaotic regions; positive exponents are observed precisely in the parameter ranges where the bifurcation diagram suggests chaotic dynamics.
This alignment is not coincidental but rather a reflection of the underlying nonlinear dynamics of the system. While the bifurcation diagram provides a qualitative visualization of the transitions in system behavior as the control parameter varies, the Lyapunov exponent plot offers a quantitative measure of the stability or instability of those behaviors. These two methods, when combined, can offer an in-depth understanding of the dynamics of the system. This duality emphasizes how crucial it is to combine the two methods when validating and interpreting complicated dynamical behaviors. Strong evidence of chaos is provided by the occurrence of positive Lyapunov exponents in particular parameter ranges, which supports the inferences made from the bifurcation diagram. This methodical approach demonstrates the strength of integrating qualitative and quantitative techniques for the analysis of nonlinear dynamical systems.
Lyapunov exponents (LEs) for the V/Heart shape system are derived using A. Wolfs’ method [
21] for 10,000 s to check the chaotic state of the system for different system parameter values.
Figure 9 shows the Lyapunov exponent (LE) spectrum for the system parameter in the range
, and it is clear that for
, the largest exponent remains positive, which is a conclusive indicator of chaotic dynamics within this parameter range. Positive Lyapunov exponents imply that small perturbations in the initial conditions grow exponentially over time, leading to sensitive dependence on initial conditions—a hallmark of chaos.
Spectral entropy (SE) is an important tool in studying chaotic systems because it provides a quantitative measure of the system’s complexity. In chaotic states, the spectrum spreads over a wide frequency range, producing higher SE. This makes SE a useful tool for detecting transitions from order to chaos and evaluating the degree of unpredictability in the system. Furthermore, SE serves as a valuable feature in applications such as random sequence generation and the classification of nonlinear dynamical behaviors. It can be briefly defined as follows [
22]:
In Equation (
3),
is the chaotic sequence generated by the second variable of the presented V/Heart-shape model after removing the DC component, and
is the corresponding discrete Fourier transform of
. Using Paserval’s theorem, the power spectrum at any particular frequency can be calculated using the first half of the discrete sequence
as it has a symmetrical property:
and the total power spectrum can be described as
Then, the probability of the relative power spectrum
can be written as
through the combination of Equations (
4) and (
5). Spectral entropy, according to the Shannon entropy principle, is equal to the sum of
. The final value of the spectral entropy approach to
is well known; therefore, the normalized spectral entropy can be obtained as follows (
6):
The aforementioned derivation shows that a larger SE value suggests a more complex oscillation for a single chaotic system; conversely, a smaller SE value indicates a more obvious oscillation for a single chaotic system. As a result, we think that various SE values ought to correlate with various chaotic system states.
As presented in
Figure 10, the SE complexity values of system (
1) fluctuate around high values for
, which is low for
. Therefore, the result in
Figure 10 is consistent with the bifurcation diagram in
Figure 8 and that of the Lyapunov exponents in
Figure 9.
Important measures indicate the usefulness of the proposed chaotic system for use in encryption algorithms such as histogram and autocorrelation analysis.
Figure 11 shows the histogram plot of the generated chaotic sequence from the presented V/Heart-shape model (
1), which is non-uniformly distributed and can lead to low contrast. And in security applications, it may provide clues for cryptanalysis. To further enhance the security of the generated sequence, the histogram equalization procedure is used. Histogram equalization is a technique used to enhance the sequence contrast by redistributing the values to create a more uniform, or “flatter,” histogram. The proposed histogram equalization procedure is given as follows [
23,
24]:
where
is a large number, chosen to be
in this paper, and
is selected to be 250. The histogram and autocorrelation plots for the new generated sequence are given in
Figure 12 and
Figure 13, respectively. The two figures show that the presented chaotic system behaves similar to random time-series, which is useful for chaotic encryption application in industrial fields.
4. Implementation Results
The proposed realization of a chaotic system using a PLC platform was experimentally validated through a structured series of software simulations and hardware-based tests. In this work, the three state variables of the chaotic system were implemented as user-defined function blocks (UDFBs), enabling modular and reusable code within the XG5000 version 4.78 programming environment. As illustrated in
Figure 15, these UDFBs encapsulate the system’s nonlinear differential equations, allowing for the precise and scalable execution of the chaotic dynamics on the XEC-DN32H. This modular design not only enables real-time execution of the chaotic system on industrial-grade hardware but also facilitates scalable implementation for more complex dynamical models.
To rigorously validate the correctness and dynamic behavior of the embedded chaotic system, the PLC code was thoroughly tested within the XG5000 software version 4.78 simulation environment. The simulation outputs, presented in
Figure 16 and
Figure 17, illustrate the state variable trajectories and their corresponding two-dimensional phase portraits for system parameters
and
, respectively, at an integration step size equal to
, which provides a suitable balance between numerical accuracy and computational feasibility for the PLC platform. These phase portraits reveal the qualitative behavior of the system’s attractors, confirming the successful reproduction of expected chaotic oscillations. The traces demonstrate the system’s sensitivity to initial conditions and parameter variations—hallmarks of chaotic behavior—thereby validating the computational accuracy of the PLC implementation before hardware deployment.
Subsequent experimental validation was conducted using the physical setup shown in
Figure 18, where the XEC-DN32H PLC, equipped with the XBF-DV04A analogue output module, was interfaced with a digital oscilloscope. This setup enabled real-time monitoring of the chaotic signals generated by the PLC. When the system parameter was set to
and mapping parameters were set as
and
, the experimental results shown in
Figure 19 exhibit a distinct V-shaped self-excited attractor with adjacent parabolic loops, forming a two-scroll chaotic pattern. The attractor’s geometric structure closely matches the simulated phase portrait, indicating a high degree of fidelity between the software simulation and physical system behavior.
Furthermore, by modifying the system parameter to
and mapping parameters to
and
, the chaotic system exhibits a transition in its attractor topology. As shown in
Figure 20, the oscilloscope captures a complex family of interconnected heart-shaped loops, corresponding to a three-scroll self-excited attractor. This evolution in the attractor’s geometry with respect to the system parameter illustrates the system’s nonlinear response and parameter sensitivity, consistent with theoretical expectations derived from bifurcation and phase space analysis. These experimental observations validate the dynamic richness and controllability of the implemented chaotic system.
The strong agreement between the experimental and simulated results underscores the accuracy and fidelity of the implemented model. The phase portraits and state trajectories captured by the oscilloscope not only replicate the expected dynamical features but also provide empirical evidence of the system’s nonlinear oscillatory regime. Moreover, these observations corroborate the theoretical analysis of the chaotic system, which predicts the emergence of multiple-scroll attractors under a varying bifurcation control parameter. The experimentally observed topological patterns align with the mathematical formulations, demonstrating that the proposed system exhibits structurally rich dynamics that are both self-excited and parameter-dependent.
In conclusion, the congruence between simulation and hardware-based experimental results confirms the validity and practicality of deploying chaotic systems using PLC platforms. This research substantiates that real-time chaotic behavior, including multi-scroll attractors and complex self-excited dynamics, can be faithfully reproduced within an industrial control environment. These results not only reinforce the theoretical underpinnings of the system’s nonlinear dynamics but also open avenues for leveraging chaos in real-world applications such as secure communications, random number generation, and intelligent control in IIoT systems.
5. Conclusions
In conclusion, this study successfully explores the nonlinear dynamics and practical implementation of a V/Heart-shape chaotic system. The system was designed and realized using an industrial-grade programmable logic controller (PLC) with structured text (ST) language, ensuring reliable hardware execution. Through the application of nonlinear analysis tools, such as bifurcation diagrams, Lyapunov exponents, and phase portraits, the intricate dynamical behaviors of the system were comprehensively analyzed. The versatility of the proposed system was demonstrated through two case studies involving parameter variations, which revealed distinct phenomena including self-excited, hidden, and coexisting attractors. The results of simulations of the chaotic dynamics closely matched experimental results obtained from laboratory hardware implementations, underscoring the system’s accuracy and practicality. These findings emphasize the significant potential of the proposed chaotic system for a wide range of applications, including secure communications, advanced industrial systems, and dynamic system analyses. As a direction for future work, we propose the realization of chaotic systems using programmable logic controllers (PLCs) as a means to enhance edge computing capabilities within IIoT environments. The intrinsic properties of chaotic systems—such as high sensitivity to initial conditions and pseudo-random behavior—can be harnessed for advanced functionalities, including secure data encryption, real-time anomaly detection, and robust sensor data validation. Implementing these systems on PLCs, which serve as industrial edge devices, facilitates decentralized processing and decision-making closer to the physical layer. This reduces reliance on cloud computing resources, minimizes network latency, and increases system resilience—key requirements for time-critical IIoT applications such as predictive maintenance, smart manufacturing, and autonomous process control. Additionally, the integration of these PLC-based chaotic modules with IIoT middleware—such as edge gateways, digital twins, and industrial protocols like OPC UA and MQTT—will be explored to ensure seamless data flow and interoperability across distributed cyber-physical systems.