Nirtec Studio Forum

General Category => Machines Simulator => Tutorials => Topic started by: NicoK on August 14, 2025, 12:07:21 PM

Title: How to create a continuous-position linear axis/gantry as a UDC in Machines Simu
Post by: NicoK on August 14, 2025, 12:07:21 PM
Hello Nirtec Team and community,

I need to create a continuous-position linear axis/gantry as a User Defined Component (UDC).

I have seen the v3 video ("Tutorial to replicate a real machine with Machines Simulator v.3"), which explains a two-position setup, but my requirement is to move the axis to arbitrary setpoints commanded from a PLC/drive.

It would be extremely helpful if someone could share:

A sample UDC or short step-by-step showing the UDC structure for prismatic motion (carriage, limits, homing).

The motion logic for move-to-position.

How to link PLC/drive tags for position, enable, move, etc.


This would also help others in the community working on similar projects.

Many thanks in advance!
Nico

Attachments (for context):
• Linearaxis_UDC.jpg – my simplified model in Machines Simulator
• Linearaxis_real.jpg – the real component (Festo axis)
Title: Re: How to create a continuous-position linear axis/gantry as a UDC in Machines Simu
Post by: EasyPLC_Master on August 14, 2025, 08:50:42 PM
Hi Niko!

You can open the UDC located in Gantry -> VerticalStacker.

Here is used an analog PLC Input (AxisY) to manage the position of the vertical axis using the AnimationMove controller assigned to the AxisY UDC component.

See how in the UDC script code are programmed the limits for the admitted values for the axis position.

Using this example sure could be useful to develop your own continuous-position linear axis system.