Jump to content

Recommended Posts

Posted

I can't upload my model, so I'll describe it.

I have a custom object named "Turntable", with the property "RotationTime".

The turntable is used in both my top-level model, and inside a submodel.

In the top-level model, I have a DataTable named "TurntableData", with the columns:

  • EquipmentNumber (String) <Key Column>
  • RotationTime (Real)

I am passing both columns into my submodel's "TurntableData" RepeatGroup.

In the top-level model, my turntable's OnRunInitialized process contains the following SetRow node:

image.png.5402c8167c02413f427aa13b9188306f.png


However, in the submodel I'll need a different approach, since a RepeatGroup doesn't have a key column.
This is the Turntable_OnRunInitialized process in my submodel:
image.png.70bfc17a4aa5f3000031ecb4d476d919.png

At first, it seems to work. It sets the correct RotationTime for each turntable at the beginning of the simulation.
However, as soon as an entity tries to enter the turntable, it gives me this error.
image.thumb.png.34cdd2d48c951b586931771613ac1b5d.png

×
×
  • Create New...