Utilizing all the described function blocks the full system simulation is created. The system starts by having both the abbe flo controllers reading their inputs and processing it. Then they send their commands to the correct inputs of the solenoids blocks  and pump blocks.

The output of these blocks are sendt to the Simulator. On the simulator a few variables are assigned to the inputs which are utlized for starting, stopping or reseting the simulator.  From the simulator the required outputs are routed back into the abbe flo controllers. The outputs which are meant for system visualiztion of the simulator are connected to variables meant for visualization. Shown below is the CFC of the system

The design of the visualizer is based on trying to give an accurate representation of the real system. Where the position of each valve and box is placed approximatly close to where they would be physically.

Additionally, since this is going to be used as a replacement of the real system locally, A sequential function chart (SFC) is utilized to switch between these two. In th SFC there is a variable which controls if the real system or the simulator is utilized. With the real system a MQTT_parsing block is utilized to first get the MQTT data before executing the real systems program. The Lighting is ran seperatly since it is not dependent on any of the function blocks from the CFC. Shown below is the SFC

  • No labels