Skip to content

Material Flow

Material flow in a twin uses a few components that work together:

  1. A Source creates a part called an MU (movable unit) and drops it onto the conveyor below.
  2. A Transport Surface carries the part at the speed of its drive.
  3. A Sensor along the way switches its signal while a part is inside it.
  4. A Transport Stopper or a Zone stops the part, or a gripper takes it.
  5. A Sink removes the part at the end.

The Laser Welding Assembly Station and the Layout Planner Demo use all of them.

A Transport Surface carries parts across the node’s geometry at the speed of a Drive on the same node or a node above it. The drive turns the belt instead of moving its own node.

SettingWhat it does
TransportDirectionThe direction parts travel in
RadialCarries parts around the drive axis instead of along it, for turntables
Accumulate / MinGapParts queue up behind each other without overlapping; MinGap keeps a gap in mm
VerticalReachHow far above its top in mm the surface still takes over a part; 0 uses the default of 100 mm. A horizontal, straight surface also sets the part down. A part released higher stays in mid-air, where Drop Detection can report it
DriveReferenceThe drive to use when it is not on this node or above it, for example a conveyor on a lift
AnimateSurface / TextureScaleMoves the belt texture so the conveyor visibly runs
TextureScrollAxisTexture direction the print runs in: Auto follows the transport direction, U or V forces it
TextureTilingU / TextureTilingVRepeats the print more often along U or V (Unity texture zoom)
TextureOffsetU / TextureOffsetVShifts the print; a reset returns to this position
ScrollMaterialNameOnly the material with this name runs; empty = every textured material of the surface
StaticFaceAxisFaces facing along this axis keep a still print, for example the end faces of a foil roll. See Bag Forming

The main conveyor Belt_Main of the Laser Welding Assembly Station: a Drive (LinearX, 200 mm/s), the Transport Surface with Accumulate switched on, and a Simple behaviour whose Forward and Backward slots are linked to PLC signals

A Source creates parts by copying a node. By default, it copies its own node. Give this node the part geometry. The original node is hidden while its copies run.

Use ThisObjectAsMU to select another node to copy. The MU component marks a node as a part template.

SettingWhat it does
AutomaticGeneration / GenerateIfDistanceCreates the next part once the last one has moved this far (mm) away
Interval / StartIntervalCreates a part every few seconds instead, after a start delay. 0 switches it off
LimitNumber / MaxNumberMUsStops after a number of parts
PlaceOnTransportSurfaceDrops new parts onto the conveyor below the source
DestinationAttaches each new part to this node: it starts at the source and then moves with the node, for example an axis
MassMass of each part in kg, for physics
CollisionRoleForMUsThe collision role every new part gets

Signals: SourceGenerate creates one part on a rising edge; SourceGenerateOnDistance switches automatic generation on and off.

A Sink removes parts that reach it. It acts on its footprint seen from above, at any height, and does not remove parts held by a gripper. DeleteOnlyTag limits it to parts with a given tag.

A Sensor reports whether a part is inside it. By default it detects parts only. For distance readings, see Ray Sensors. In UseRaycast mode the ray also hits machine colliders on the layers the sensor accepts, so a light barrier can be blocked by machine geometry. A part that LimitSensorToTag rejects does not block the ray.

SettingWhat it does
UseRaycast / RayCastLengthDetects along a ray (a light barrier) instead of inside the node’s bounds; length in mm
LimitSensorToTagDetects only parts with this tag or name
ShowGizmoDraws the detection area. Detection keeps working when it is hidden

Signals: SensorOccupied is true while a part is detected. SensorNotOccupied is true while no part is detected. A sensor node without geometry needs a Box Collider to give it a size.

A MUDataWriter or BarcodeReader on the same node uses this sensor automatically; see MU data.

A light-barrier sensor: UseRaycast with a 300 mm ray along Z, SensorOccupied linked to a PLC input

A Transport Stopper stops parts where they touch its box on an accumulating conveyor. Move it out of the way to release the parts, using a drive such as a cylinder. It does not stop the conveyor itself. Center and Size set the box in mm.

With Push switched on, the stopper no longer only holds parts back: it pushes every free part its box moves into, along its horizontal motion. Use it for a dog on a chain or a pusher on a slide, where the part must follow the moving element flush instead of waiting for a conveyor.

  • Cascade - a pushed part pushes the parts touching it ahead, so a whole row moves together.
  • Contact - the push ends as soon as the box drops below the part, for example when a dog turns down at the end of its run.
  • Not pushed - parts held by a gripper, parts under physics control and the stopper’s own carrier are left alone.
  • Obstacle - the pusher cannot be held. If it presses a part into a fixed obstacle (a stopper without Push or a blocking Zone), the part overlaps it and the Problems panel shows an entry.

Center and Size set the pushing box in mm, as for a plain stopper. Every runtime copy of the node, such as the elements of a Chain, carries its own live pusher.

A pushing stopper moves parts along A dog with Push switched on moves to the right. It pushes the first part, which pushes the second part ahead of it. slide surface (still) dog, Push on part 1 part 2 the push cascades: part 1 pushes part 2
The dog moves into part 1, which moves into part 2. The surface below stays still.

A Zone is a box on a node that moves with it. It combines three effects:

  • Detect - reports whether a part is inside. SignalOccupied writes the result to a signal.
  • Block - stops conveyed parts at the box, like a stopper. SingleRelease lets exactly one part through each time the stopper is lowered.
  • Hold - takes parts inside the box off the conveyor and carries them with the node, for example on a lift.

Activation sets when the effects apply: Always, while a signal is set (Signal), or while a drive is within a position window (Axis, with AxisFrom and AxisTo). The box handles in the 3D view resize the zone; Shift snaps to 5 mm.

DetectMode decides what a stopper zone reports. With Overlap (the default) Detect is true while any part overlaps the box, so a pallet leaving the stopper stays detected for its whole length. With AtStop the zone behaves like a proximity switch at the stopper: Detect is true only while the leading face of a part stands at the stopper face, within DetectWindow millimetres. A part that has moved on, or a stopper raised again under a leaving pallet, reports false.

SettingWhat it does
DetectModeOverlap: any part overlapping the box is detected. AtStop: only a part whose leading face stands at the stopper face. AtStop needs Block and no Hold; otherwise the zone detects like Overlap and the browser console shows a warning
DetectWindowWith AtStop: how far, in mm, the leading face may have passed the stopper face and still be detected (default 20 mm)

The stopper face is taken from the zone’s start position, so lowering the stopper does not move it, and the direction of travel comes from the conveyor below the zone. Two touching parts give a short false between them as long as a part is longer than DetectWindow.

Drive Texture Scrolling moves the print of a mesh with the position of a drive. It is purely visual and carries no parts. Use it for a film web, a foil roll or a printed belt whose pattern must run with a machine axis.

Put the component on the node above the meshes whose print runs. The print follows the drive position exactly: it stops when the drive stops, and a reset returns it together with the drive.

SettingWhat it does
driveThe drive whose position moves the print. Without a drive the component does nothing and the Problems panel reports it
zoomRepeats the print more often along U (x) and V (y); multiplies the texture repeat of the material
correctionShifts the print in U and V; the print position at drive position 0
scrollSpeedX / scrollSpeedYHow far the print moves in U or V per drive unit: UV per mm on a linear drive, per degree on a rotational drive
StaticFaceAxisFaces facing along this axis keep a still print, for example the end faces of a foil roll. None scrolls every face
ScrollMaterialNameOnly the material with this name runs; empty = every textured material below the node

Unity V values are converted automatically: keep scrollSpeedY and correction as authored in Unity and the print runs in the same direction in the browser.

TransportSurface vs. DriveTextureScrolling

Section titled “TransportSurface vs. DriveTextureScrolling”
Transport SurfaceDrive Texture Scrolling
Carries parts (MUs)YesNo
Moves the printOptional (AnimateSurface)Yes, that is its only job
Driven byDrive speedDrive position
Typical useConveyors, turntablesFoil, film web, printed belt
Typical placementUnder the parts, may be invisibleOn the visible film mesh

An AGV is a vehicle that drives along the path network. It starts on the path named by PathId at StartPosition (mm) and drives at TargetSpeed (mm/s); with UseAcceleration it brakes and accelerates realistically and keeps its distance to the vehicle ahead. AllowReverse lets it back into a stub, for example to pick up a pallet. Vehicles take part in both the continuous simulation and DES.

Active takes a vehicle out of service. When it is off, the vehicle gets no orders, holds no zones, is no obstacle for the others and is hidden in the 3D view. The setting takes effect at the next Reset, not while the simulation runs, so the run starts cleanly with the fleet you chose. Switch it on again and reset to bring the vehicle back to its start position.

  • Drives - the drives behind conveyors and stoppers
  • Gripping - picking parts off a conveyor
  • Signals and Logic - sequences that wait for sensors and zones
  • Physics - parts that fall, slide and stack