Skip to content
Eugen Iofciu Vasile edited this page Feb 12, 2024 · 3 revisions

What is FluidPyPLC and how does it work ? 🔍

FluidPyPLC is a Python package that will help with solving and testing: pneumatic or hydraulic circuits, plc' sequences. The logic behind this project is a method that I used to solve FluidSim circuits' sequences like for example "A+/B+/B-/A-", that technically it creates 2 blocks:

  • 1. The limit switch a1 will block the actuator B, because B does a positive and a negative stroke while a1 is active;
  • 2. The limit switch b0 will block the actuator A, because A does a positive and a negative stroke while b0 is active;

Having this in mind, there are a few methods to solve this problem:

  • 1. Cascade;
  • 2. Relay memories;
  • 3. PLC;

See more about these methods in the Methods' wiki page.

What did I use❓

I used a mix of the Relay memories method and the PLC method. Let me explain the following section.

Sequence Submitter

The Sequence Submitter module allows users to submit sequences for execution to the PLC.

Sequence Handler

The Sequence Handler module serves as the core of FluidPyPLC's functionality, managing sequences and their execution. It consists of:

  • Groups: Organizational units that contain related sequences.
  • Blocks: Individual sequences within a group.
  • Activations: Events or triggers that initiate the execution of specific sequences.

Installation

To install FluidPyPLC, follow these steps:

  1. Install the package using pip:
pip install fluidpyplc
  1. Set the working directory, this will create 2 folders inside the chosen directory, "Plots" and "plc":
fluidpy --folder <path_to_your_working_directory>

Clone this wiki locally