Finish the project
In this chapter, we automatically generate the workpieces at defined intervals, adjust the frequency to generate them, and clean up the simulation components to keep the project organized.
Create interval trigger
We add one IntervalTrigger simulation component for each type and link them to the respective source: one for the long workpiece and one for the short one.
The long workpiece should be triggered every 5 seconds, and the short one every 3 seconds. Additionally, we add the BooleanFunction simulation component to allow manual generation of the workpieces via the control panel as well.
Enable the sequence
Now we extend the process with a manual release. The sequence may only be started when the release is active.
Cleaning up the simulation components
To keep the project organized, we now create a group for the simulation components. Groups can be used for each area, which helps maintain clarity and structure within the project.
Summary
Congratulations, you programmed your first machine with twin! Did you expect it to be this easy?
As mentioned in the very beginning, this was a very basic tutorial with many simplifications which would make no sense in real life.
Nevertheless you learned the basics like:
- Using sequences within twin
- Linking the simulation components together
- Making manual tests
- Work with interval triggers
- Cleaning up the project by simulation component groups
What next
You are now ready to start building your own machine! Import the model and search through the simulation component library to add the functionality you need.
Tip
Just look for the sensors you need, e.g. a light barrier or a distance sensor. You will be surprised how easy you can build great things 😉