News:

SMF - Just Installed!

Main Menu

Machine simulator tank level animation

Started by Nicolascote, December 17, 2025, 10:53:20 PM

Previous topic - Next topic

Nicolascote

Hi everybody, 8)

I am designing a machine simulator with multiple tanks, and I would like to know the basic method to create a water level animation inside the tanks.

At the moment, my tanks fill up using simulated variables only, but I would like to add a visual representation of the water inside the tanks, including the water level movement and color.

The goal is to visually show the water rising and falling in each tank according to the simulation logic.

Any advice or examples on how to implement this kind of animation would be appreciated.

Thank you.

EasyPLC_Master

Hi!
One of the options you can use to simulate filling a container is to use a cylinder to increase the scale, giving the impression that the container is being filled with liquid.

You can use the example used in scene 16 Ink Mixer, there you'll see that the containers are filled with liquid. A UDC is used, which is called BarrilPlastic.udc.

If you open the UDC with the UDC Editor, you'll be able to see how it's composed, if you open its script code you will have access to the code that manages it; you can use it in the same way or use it as a basis for your own.