1-axis linear module with a servo drive

By moving the 'POSITION' slider, you can change the position of the 'AXIS_1' coordinate system in the Y axis.
Attached to this system is a 3D model of a linear module block ('wozek.STL').
By moving the 'SPEED%' slider, we change the speed of the block from 0% to 100% of the maximum speed set at the MAX VEL input.
In limit positions, the limit switches are activated, from which the signal is available on the MAX_Limit and MIN_Limit outputs of the 'linear module' block.
The IN POSITION output is active when the block position is equal to the position set at the DEMAND POS input.

After downloading and opening the project file, first run the simulation in the 3D visualization window, and then on the function block diagram:


Download the project file
Description of the linear module model function block and link to download the function block itself.