MHJ-SoftwareMHJ WikiOnline manuals PLC-Lab 3D Studio v1

Tutorial 1

10 min readUpdated 2026-06-01

This page is relevant for ✅Studio ❌Player

Introduction

Information

In this tutorial, you will learn step-by-step how to dynamize a static 3D model by adding Skills. Using a provided 3D CAD file, you will learn how to assign capabilities to various components to create a realistic simulation. You only need PLC-Lab 3D Studio for this tutorial. The cylinder rod is extended directly via a switch—no PLC program is required for this setup.

What is a Skill?

A Skill is a capability or behavior assigned to a 3D object. Skills are divided into the categories Sensors, Actuators, and Miscellaneous. A 3D object can be equipped with several different skills—however, the same skill cannot be applied multiple times to the same object. By using skills, a static CAD model is transformed into a digital twin with interactive properties.

Important

Core Workflow of PLC-Lab 3D Studio: Object names should be adjusted in the CAD software beforehand to enable automatic skill assignment.
Example – Signal Lamp: A 3D object is intended to function as a signal lamp that lights up red when the symbol MotorProtection is true. To achieve this, the object name "part.2223" is renamed to:
"part.2223 {Lamp} {red} MotorProtection" Upon loading, PLC-Lab 3D Studio automatically recognizes the {Lamp} skill, configures it correctly (color: red), and assigns it to the MotorProtection operand.
In this way, simple objects like lamps, switches, or colliders are already fully pre-configured and do not need to be manually adjusted in the Studio. 👉 This method significantly accelerates the creation of the digital twin. For more complex skills (e.g., drives), you should avoid specifying operands in the object name, as they might otherwise be automatically applied to unsuitable properties.

The 3D Model in this Tutorial

Tutorial 1 - Blender
Image: Tutorial 1, CAD design in Blender.

The image shows a mechanical chute construction (4). A Creator (2) generates metal and plastic cubes that fall onto a platform below and stack there. Using a cylinder (3) operated by a switch (6), a stacked cube can be pushed onto the chute. The cube slides down and is removed from the scene upon reaching the Destroyer (5).

Object Tree in the CAD System:

Tutorial 1 - Blender
Image: Tutorial 1, object tree in Blender.

Here you can see the objects that have already been assigned skills. For example, the first object "Boden" (Floor) is assigned the {Collider} skill so that cubes do not fall through the base plate.

Information

All 3D objects whose names contain terms in curly braces can be configured in 3D Studio. If the term is a known skill name, the skill is automatically added with default values. If the term is unknown, the skill can be assigned manually in the Studio.

Skills Used

The following skills are used for the chute:

Skill Skill Type Description
{Creator} Other Creates copies of 3D objects upon a specific event. In this example, it generates metal and plastic cubes that fall and stack. Note: The objects to be generated must be arranged as child objects of the Creator in the CAD drawing.
{Destroyer} Other Removes objects generated by the Creator.
{Collider} Other Turns an object into a solid body that is calculated realistically by the physics engine. Essential for walls, floors, etc., to handle collisions correctly.
{2-Point-Drive} Actuator Linear drive with two positions (Minimum/Maximum) that moves the cylinder rod.
{Lamp} Actuator Simulates a signal lamp with a selectable color.
{Player} Other Grants physical properties (e.g., gravity) to an object. Ideal for transported or processed workpieces.
{SwitchOrButton} Sensor Allows for the implementation of switches or buttons to control inputs.
{Hide} Other Makes an object invisible in the simulation, e.g., during Run mode.

Step 1: Create a Folder

Create a new folder on your hard drive, e.g., "Tutorial1-3D-Studio".
All files for the digital twin will be stored in this folder.

Step 2: Download CAD File and Symbols

Download the following files for this tutorial:

File Description Download Link
CAD File 3D model of the tutorial CAD file for Tutorial 1
Symbol File Contains I/O for the simulation Symbol file for Tutorial 1

Copy both files into the folder you created. The symbol file must be named station0.symbols.csv.

Note

For your own projects, you will create these files yourself. The symbol file can either be created manually in CSV format (Address;SymbolName;DataType;Comment) or imported from automation systems like TIA Portal (XML) or Simatic Manager (ASC).

Step 3: Open the CAD File in Studio

Start PLC-Lab 3D Studio and open the CAD file using the CAD button in the top left.
The 3D model will now be displayed:

Tutorial 1 - Model after import
Image: View after loading the file.

Align the camera so that the model is centered. How to navigate in 3D space

Then press Shift + 1 to save this view to Slot 1. You can return to this camera position at any time by pressing 1. Additional views can be saved to slots 2 through 9.

Tutorial 1 - Camera position set
Image: View after setting the camera position. Slot 1 is defined.

On the left, you will see the Tags window, where you can monitor and force inputs and outputs (symbols). In this tutorial, we use flags (memory bits) since no PLC program is required.

Step 4: Add and Configure Skills

Open the Skill Manager via the Skills button (1). The Skill Manager will then be visible on the left (2):

Tutorial 1 - Skill-Manager
Image: PLC-Lab 3D Studio. The Skill Manager (2) is visible on the left.

In the Skill Manager, you can assign, remove, and configure skills for 3D objects from the CAD file—recognizable by the curly braces in their names.

Information

In the CAD file, most skills have already been correctly named and inserted. This means many objects are already equipped with the appropriate capabilities.

Examples:

  • An object name containing the text {Collider} automatically results in the assignment of the skill of the same name, preventing cubes from falling through the object.
  • Since the {Creator} skill is also already present, cubes can already be generated.

The following skills still need to be configured in the Skill Manager:

  • Drive for the cylinder rod: {Drive-2-Point}
  • Black push button: {SwitchOrButton}
  • Physics settings of the generated cubes

Now, let's test the model using the simulation.

Step 5: Start the 3D Simulation

Select InternDevice (1) as the device, as we are working without a PLC program and only using internal variables.
Then click Run (2) to start the simulation.

Tutorial 1 - Device selection
Image: Select device and start simulation.

Add cubes by clicking on the template cubes (1) with the mouse—a new cube (2) should appear:

Tutorial 1 - Generating cubes
Image: Clicking the template cube (1) creates a new cube (2).

The cube is not yet stackable. Therefore, the associated skills must be further adjusted.

Goal:

  • Cubes should stack, not slide to the side.
  • The cylinder should extend when the black button is pressed and retract when it is released.

Further Skill Configuration

Making Cubes Stackable

We adjust the behavior of the cubes so they can only move downwards. This makes stacking possible.

Tutorial 1 - Cube configuration
Image: The yellow cube is configured to be stackable.

The simulation remains running.

Steps (see red numbers in the image):

  1. Hold the Ctrl key and click on the yellow cube on the tabletop.
  2. The properties of the {Player} skill are displayed.
  3. Activate the SetOnStart property in the PlayerConstraints section.
  4. Activate all movement constraints except CMoveY (i.e.: CRotateX, CRotateY, CRotateZ, CMoveX, CMoveZ).
Tip

When using player constraints, the Drag (motion resistance) and AngularDrag (rotational resistance) player settings should be set to 1. Otherwise, the cubes may fall too quickly and pass through the base plate. This also affects the friction of the cubes on the slide. The higher the values, the slower the cubes move. (If this problem does not occur in your simulation, you do not need to change these values.)

Note

Repeat these steps for the metal cube so that both are stackable. You can delete a produced cube by clicking on it.

Now click the yellow cube 3 times. The cubes should stack neatly on top of each other.
If this is not the case, double-check Step 6.

Note

Clicking on the generated cubes will delete them.

Configuring the Black Push Button

Tutorial 1 - Button configuration
Image: Configuration of the black round button.

Hold the Ctrl key and click the black button:

  1. Ctrl-click the button.
  2. The Address property already contains ExtendCylinder because the Blender object name included this string. If not: Type "e" or a space in the Address property → the symbol selection opens.
    → Use ↓ to select ExtendCylinder and confirm with Enter. The ExtendCylinder symbol is now entered in the Address property.
  3. Set MovementOnPressed to 3 (the button can be pressed 3 mm deep).

Enable the Tags window:

Tutorial 1 - Tags window
Image: Making the Tags window visible.

Now press the button and check in the Tags window if ExtendCylinder changes to "True" (green).

Tutorial 1 - Tags check
Image: ExtendCylinder is set to "True".

Configuring the Cylinder Rod

Tutorial 1 - Cylinder configuration
Image: Configuring the cylinder rod drive.

  1. Ctrl-click the front part of the cylinder rod.
  2. The settings appear on the right.
  3. Make the Drive-2-Point skill settings visible using the button.
  4. For ToMax: Set the operand to ExtendCylinder.
  5. DurationInSeconds: 0.5
  6. StrokeLength: 60
  7. Activate SpringReturnBehavior.

Now press the round black button configured earlier: The cylinder extends.

Stack a cube and test if the cylinder can move it.
Problem: The cylinder rod cannot move the cube because it passes right through it.

Making Cubes Movable

The cube's constraints prevent lateral movement. To allow the last generated cube to be moved by the cylinder, we lift these constraints upon contact with the platform.

Tutorial 1 - Platform configuration
Image: Platform receives a skill property that releases the cubes.

Select the platform (1) with Ctrl-click and activate the RemovePlayerConstraints property (2) in the {Collider} skill.

Remove all cubes from the platform first, then test the behavior again.
The cylinder should now be able to push the cubes down the chute.

Video: Simulation Sequence

Further Optimizations

To make the cubes slide faster:

Option 1: Reduce the friction of the chute: Change the chute's settings by expanding MaterialProperties and setting both DynamicFriction and StaticFriction to 0.0.

Option 2: Give the cube an extra push:
Equip the black block at the upper edge of the chute with the {Collider} skill and activate DirectedForceProperties. This applies a force to the cube.

Tutorial 1 - Directed Force
Image: Assigning DirectedForce to the black block via Collider.

Steps:

  1. Open the Skill window using the wrench icon.
  2. Skill filter: enter "collider".
  3. {Collider} is filtered in the list (on the right).
  4. For Object filter: enter "force" → the 3D object is filtered.
  5. Click the Add button. This adds the Collider skill to the 3D object.
  6. Adjust the Collider properties in the DirectedForceProperties section:
    • (7) Enabled: Activate
    • (8) EnableOperand: 1
    • (9) Force: 20
    • (10) Axis: Y
    • (11) Activate Hide so the object is invisible in Run mode.

Test the 3D simulation again after these changes.

Note

Configuring the skills was performed here while in the Run state. Alternatively, you can configure skills in the Stop state. In that case, you no longer need to hold the Ctrl key to select the skill object in the scene (from version V1.4.7 onwards).

Video: Tutorial 1 as a Video

Conclusion

In this tutorial, you learned how to add and configure skills. A PLC was not necessary because the cylinder was controlled directly by a button. In the next, more extensive tutorial, a conveyor belt will be controlled using a PLC program.

More information about the Skill Manager.
More information about Sensor Skills.
More information about Actuator Skills.
More information about Other Skills.