
Explore basics of simulation for machines and plants using CoDeSys, build general purpose components, expand built-in visualization and user interfaces, and practice simulating complex systems through guided exercises.
Learn the basics of simulation in plc programming, replacing real machinery with interface-matched models and selecting the appropriate complexity to build modular components that simulate simple and complex systems.
Learn how Hungarian notation in CoDeSys plc programming uses type and scope prefixes to name variables and functions, with examples for local, input, output, global, and constant variables.
Set up a simulation project, create a get cycle time function block in structured text, and use a state machine to compute cycle time in seconds for PLC simulations.
Learn to implement a linear movement simulation function block in structured text, covering initialization, cycle time handling, velocity-based position updates, limits, and a reset method with a piston example.
Learn to create a piston visualization that animates linear movement by linking a position variable to the x-axis with absolute movement, display the position, and visualize sensor states.
Develop a rotation movement simulation function block that uses angular velocity and position, handles rollover between 0 and 360 degrees, and supports clockwise or counterclockwise motion for endless rotation.
Visualize rotation movement in CoDeSys by linking the function block to a visualization, showing the lever position around the center of rotation and comparing interior rotation with standard rotation.
Modify the rotation movement simulation by introducing a customizable rollover value via a user input, defaulting to 360, preserving existing behavior.
Create a tank container simulation function block in CoDeSys that tracks current fuel level, capacity, and full/empty states using fill and empty rates and external set methods.
Create a tank visualization for the container simulation, using a frame and a height-adjusting liquid rectangle that reflects the fill level and shows full or empty indicators.
Add sensors to the simulation by defining constant activation thresholds and long real variables for sensor positions, using absolute distance checks to trigger booleans for flexible, quick sensor integration.
Filling station simulation part 1: combine container and movement components to fill products with liquid and move them away, with visualization, actuators, and sensors.
Build and simulate a filling station in CoDeSys, implementing initialization and cycle time, linear movement for piston and product, and automated product generation and filling.
Learn to build a conveyor belt simulation in CoDeSys by creating a new project, importing simulation components, and visualizing moving products with frames and function blocks.
Develop a CoDeSys conveyor belt simulation by cycling arrays of function blocks and booleans to move, add, and remove products, with visualization and overlap prevention.
Turn a basic conveyor simulation into a modular CoDeSys functional block, enabling stacking instead of disappearing, and configurable forward and backward movement with removal rules.
Evolve a conveyor simulation into a modular function block in codeSys, defining inputs, outputs, and methods to add, remove, and sensor-check products along the path.
Learn what a simulation is and how it works, create modular components to simulate basic motion, and apply them to more complex PLC simulations using CoDeSys.
Explore additional courses on Codesys basics, PLC Open Standard motion control, and industrial digital twins to deepen your understanding of PLC programming and industrial automation.
Simulation is becoming a core concept in automation, with many companies providing simulation systems and digital twins to recreate your own system, in order to be able to develop PLC control code that acts on a virtual clone of the real system.
In this course, you will learn some basics principles on how to create a simple simulation of your system directly on your PLC.
We will start by the developing some general-purpose basic components, that will allow us to simulate some basics systems. After that, we will use these components to simulate more complex systems in guided exercises and lessons.
In this course, we will use the Structured Text language in the CoDeSys environment and we will expand the built-in CoDeSys visualization tools that can help you to create helpful graphical visualizations, for our simulations.
You don't need a real PLC to access this course, because we will use CoDeSys Simulation mode, that can run directly on your PC.
I've used this simulation knowledge and tools in my previous courses and many students asked me insights on how they works. If you want to know how they work and how to create your own, this is the course for you!
As a PLC Software Engineer, the world is moving towards simulation and digital twins, and these are some skills that will become more and more important over the next years!