Your first twin from scratch
Import a model, create a variable, bind it, simulate, the complete loop in 15 minutes.
You'll build the smallest possible twin, one part moving under one variable, touching every core concept once. No CAD file is required for the mechanics; a selected model-less object can still be positioned with its transform gizmo.
1. New project
Toolbar → New. Name it First Twin. You start in Idle mode with an empty scene.
2. Create an object
Objects tab → add a Simple object, name it Slider. Optionally import a model for it, or continue without visible geometry; the mechanics are identical. Select a model-less object from the Objects panel whenever you need its transform gizmo.
3. Create the driver variable
Variables tab → add a variable Slider_Position. On its Simulation tab:
- Mode: Function
- Function: MasterTime, minimum
0, maximum200, speed50
That's a sawtooth ramp: 0→200 units in 4 seconds, repeating.
4. Bind it
Back in Objects, select Slider → Variable Bindings → set Position X to Slider_Position.
5. Simulate
Switch the mode to Simulation. Keep the model-less slider selected to watch its transform gizmo sweep along X and snap back. You've closed the loop: variable computed each tick → object reads it → scene moves.
6. Make the motion physical
The snap-back is ugly. Replace it with a there-and-back profile:
- Motion tab → new cam, master range
0…360. - Segment 1: Poly5, master
0→180, slave0→200, zero start/end velocity and acceleration. - Segment 2: Poly5, master
180→360, slave200→0, same boundary conditions. - Edit
Slider_Position: change the MasterTime maximum to360, speed90. Add a second variableSlider_Smooth, mode Motion Cam, your cam + masterSlider_Position. - Rebind the object's Position X to
Slider_Smooth.
Simulate again, the slider now glides out and back with proper accelerations. Open the cam visualizer to see the curves you just created.
7. Save
Save (projects are explicitly saved). Done, you've used objects, variables, functions, cams and bindings.
Where next
- Give the machine a sequence: state machines
- Give the slider a runtime visual with your CAD
- Drive it from a PLC: connect to PLCSIM