Nirtec Studio Forum

General Category => General discussion => Topic started by: JSJ Controls on September 12, 2025, 05:32:04 PM

Title: Connecting an element to an existing machine
Post by: JSJ Controls on September 12, 2025, 05:32:04 PM
I am trying to connect a dynamic element (element model: mechanical: squad2) to an existing machine. ( palletizer system: automatic box palletizer: turntable). I need the element to move with the turntable so that when it reaches an inductive sensor I can the know what position the turn table is in. I have tried changing some parameters with no luck. Please help.
Title: Re: Connecting an element to an existing machine
Post by: EasyPLC_Master on September 15, 2025, 08:20:12 AM
You can do in this way:

1) The turntable has the Transf property, which returns information about the table's position and rotation. Then you can create a link between the dynamic component and the table so they move as if they were connected:

void Link(Transform t) -> links or parents the component with the passed component Transform object.

void UnLink() -> unlinks/deparent the component from their parent.

Title: Re: Connecting an element to an existing machine
Post by: JSJ Controls on September 17, 2025, 04:18:32 AM
I do not understand.
Title: Re: Connecting an element to an existing machine
Post by: jpardos on February 13, 2026, 06:39:52 AM
Ahí lo tienes solucionado:
https://youtube.com/playlist?list=PLJXyo7mBMyqAX5gpF0MCYxzvDF4ji5hNx&si=8DK40_x38m9XcdQT

Espero te sirva.
Saludos