How Can We Help?

Quick start: Build a digital twin scene

You are here:
< All Topics

This chapter will guide you through the basic process of building a simple digital twin scene using templates and models from the Virtual Factory DLC in FactVerse Designer. Through the following examples, you will understand the key steps in creating digital twin scenes.

Additionally, we encourage you to visit the FactVerse Hands-on Lab for a deeper understanding of digital twin scene construction, experiencing richer materials and critical business instances to enhance your operational capabilities and quickly optimize workflows.

Basic steps to set up a digital twin scene:

1. Create Digital Twin Templates:

a) In the Virtual Factory DLC, you can use preset templates to quickly start building scenes. Preset templates are already included in the DLC, and this step can be skipped.

b) If you need to create custom digital twin templates, you can refer to the guide in the section related to Create digital twin templates.

2. Create Digital Twins: Using FactVerse Designer, create the necessary digital twins.

3. Configure Scene Layout and Connection:

a) Arrange the positions and layouts of digital twins, ensuring they collaborate within the scene.

b) Configure connection relationships between digital twins to achieve the direction of products or logistics.

4. Configure Logical Operations:

a) Perform attribute configurations for digital twins to ensure they accurately simulate behaviors in actual factories.

b) Use the behavior tree editing tool to define the interactive behaviors and actions of digital twins.

5. Play and Review:

a) Run the configured digital twin scene and play it through FactVerse Designer.

b) During playback, check the interaction of digital twins and the layout of the scene to ensure that the simulation meets expectations.

This section will guide you on how to create the following digital twins using templates from the Virtual Factory DLC:

    • A flat roller conveyor
    • A source
    • An Automated Guided Vehicle (AGV)
    • A queue

To create these digital twins using templates from the Virtual Factory DLC, follow these steps:

1. In FactVerse Designer, click on the New button located below the Scene section on the left side of the homepage to open the Scene Editor.

2. Click the Save button   in the toolbar to save the scene. Name the scene as “Simple Scene Demo”.

3. Create a flat roller conveyor:

a). Click in the Digital Twin tab of Resources to open the New Digital Twin window.

b). In the New Digital Twin window, fill in the digital twin information.

    • Digital Twin Name: “Conveyor 1”
    • Digital Twin Template: Choose the flat roller conveyor template from the Virtual Factory DLC, for example: Public directory/<Virtual Factory DLC>/Flat roller conveyor.
    • Storage Location: “Private”

4. Create a source:

a). Click in the Digital Twin tab of the Resources pane to open the New Digital Twin window.

b). In the New Digital Twin window, fill in the following digital twin information:

5. Create a queue:

a). Click in the Digital Twin tab of the Resources pane to open the New Digital Twin window.

b). In the New Digital Twin window, fill in the following digital twin information:

    • Digital Twin Name: “Queue 1”
    • Digital Twin Template: Choose the queue template from the Virtual Factory DLC, for example: Public directory/<Virtual Factory DLC>/Queue.
    • Storage Location: “Private”.

5. Create an AGV:

a). Click in the Digital Twin tab of the Resources pane to open the New Digital Twin window.

b). In the New Digital Twin window, fill in the following digital twin information:

    • Digital Twin Name: “AGV 1”
    • Digital Twin Template: Choose the AGV template from the Virtual Factory DLC, for example: Public directory/<Virtual Factory DLC>/AGV.
    • Storage Location: “Private”

6. Drag and drop “Source 1,” “Conveyor 1,” “Queue 1,” and “AGV 1” into the scene.

8. Click the Save button  on the Toolbar to save the scene.

Adjust the length and height of “Conveyor 1”

You can adjust the length and height of the conveyor belt using the conveyor belt editing tool to suit your requirements. Here are the steps to adjust it:

1. In the Scene Area, select “Conveyor 1” and click on Edit.

2. In the editing mode, you can use the conveyor editing tool to stretch the conveyor, adjusting its length, and also modify the conveyor height.

a). Stretching the conveyor: In editing mode, click on one endpoint of the length adjustment line (red) of the conveyor editing tool, then hold down the left mouse button and drag the mouse to adjust the conveyor length.

b). Adjusting conveyor height: In editing mode, click on the height adjustment line (green) endpoint of the conveyor editing tool, then hold down the left mouse button and move the mouse up or down to adjust the conveyor height.

3. Once you finish adjusting, click the End edit button to exit the conveyor editing mode.

4. Click the save button in the toolbar to save the scene.

Add a new node to “Conveyor 1”

To add a new node to ” Conveyor 1″, follow these steps:

1. Select “Conveyor 1” and click on the Edit button to enter the editing mode.

2. In the Scene Area, double-click the mouse on a blank space to add a new node to the conveyor. If you need to delete a node, click on the Delete node option to remove the end section of the conveyor.

3. Once you finish adding the node, click the End Edit button to exit the editing mode for the conveyor belt.

4. Click the save button in the toolbar to save the scene.

Connect the input and output ports of the digital twins

In the virtual factory scene, to enable the transportation of goods between digital twins on the production line, it is necessary to connect the input and output ports of the digital twins.

This section will connect the following input and output ports:

    • Output port of “Source 1” () and input port of “Conveyor 1” ()
    • Output port of “Conveyor 1” () and input port of “AGV 1” ()
    • Output port of “AGV 1” () and input port of “Queue 1” ()

Note: There is no need to connect the input and output ports of the same digital twin.

Follow the steps below to connect the input and output ports:

1. Click on the output port of “Source 1” () in the scene, then click on Connect.

2. Move the mouse over the input port of “Conveyor 1” () and left click to finish a connection between the output port of “Source 1” () and the input port of “Conveyor 1” ().

3. Repeat the same process to connect the following input and output ports:

    • Output port of “Conveyor 1” () and input port of “AGV 1” ()
    • Output port of “AGV 1” () and input port of “Queue 1” ()

4. Click the save button in the toolbar to save the scene.

Configure main function of “Source 1”

In this section, we will explain how to set the main function of ” Source 1″ to enable simulation of the production process in your virtual factory scene. Follow these steps to set the main function of ” Source 1″:

1. In the Scene Area, select “Source 1”.

2. In the Attribute Pane, locate the identifier for generating digital twins under the Main Function, and click the edit button next to it. In the opened template list, select a product template from the DLC. This way, the source will produce specific items based on this template.

3. In the Attribute Pane, modify the Time interval for generating digital twins for ” Source 1″ (i.e., the time interval for the source to produce items). You can set the time interval to an appropriate value to simulate the production pace in an actual factory.

4. Click the save button  in the toolbar to save the scene.

Modify the speed of “Conveyor 1”

In this section, we will adjust the speed of “Conveyor 1” to “5” meters per second, allowing the conveyor to operate at a faster pace during the simulation.

1. In the Scene Area, click to select “Conveyor 1.”

2. In the Attribute Pane, modify the value of the Conveyor Speed to “5.”

3. Click the save button in the toolbar to save the scene.

Create a travel path for “AGV1”

Creating a travel path for “AGV1” allows it to move according to the defined route. Follow these steps to create a travel path for the AGV:

1. Click on the path map button in the toolbar to open the path planning interface.

2. Click on the build button  in the toolbar to enter build mode.

3. Click on three different positions in the Scene Area to create three path points for the AGV:

    • point0: Pick Up point
    • point1: Delivery point
    • point2: Charge point

4. Click on the select button  in the toolbar to enter select mode.

5. Select the connecting line between point0 and point1 and set the connection direction to bidirectional ↔.

6. Select the connecting line between point1 and point2 and set the connection direction to bidirectional ↔.

7. Click on the < button to exit the path planning interface, return to the Scene Editor interface, and a prompt window to save the path will appear.

8. In the prompt window, click on the YES button to save the path.

9. Click the save button in the toolbar to save the scene.

Set the main function of “AGV 1”

Setting the main function of “AGV1” ensures that it follows the predefined path and executes tasks based on the set parameters. Follow these steps to set the main function of “AGV 1”:

1. In the Scene Area, select “AGV 1.”

2. In the Attribute Pane, make the following modifications:

a). Change PickUp Point to the previously set path point name, e.g., point0.

b). Change Delivery Point to the previously set path point name, e.g., point1.

c). Change Charge Point to the previously set path point name, e.g., point2.

d). Set the Maximum load to “6” (indicating that it can carry up to 4 items).

e). Loading and Unloading Time to “1” (representing the time taken to load or unload goods, which is 1 second).

3. Click the save button in the toolbar to save the scene.

Configure the attribute of the queue

Configure the attributes of the queue, including the maximum load of goods and the interval settings for goods storage.

To preview the scene and see its effects, click on the play button located in the top-right corner of the Scene Editor interface.

Table of Contents