Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Schneider Electric
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

Building a model in discrete events mode

Digital Twin

This knowledge base is addressing usage of software Experior, Machine Expert Twin and future Automation Expert Twin. These softwares are used to create smaller instances of digital twins for use in industrial automation, warehouse management, design & engineering with more..

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Digital Twin
  • Building a model in discrete events mode
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close

Related Forums

  • Intelligent Devices Forum

Previous Next
Contributors
  • Kasper.Vestrup
    Kasper.Vestrup

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Digital Twin
Start a Topic
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
0 Likes
71 Views

Link copied. Please paste this link to share this article on your social media post.

Trying to translate this page to your language?
Select your language from the translate dropdown in the upper right. arrow
Translate to: English
  • (Français) French
  • (Deutsche) German
  • (Italiano) Italian
  • (Português) Portuguese
  • (Русский) Russian
  • (Español) Spanish

Building a model in discrete events mode

Kasper.Vestrup Explorer
‎2026-01-14 05:10 AM

These articles will go through building a basic routing model and coding a simple controller in the Discrete Events mode of Experior.

 

Building the Model

 
  • Open Experior using the config shortcut
  • Select the options as shown below when the start-up screen appears
Model2.png

 

  • The screenshot below shows the final layout of the model
  • Note the positions of the action points and their names
Model1a-1024x460.png

 

  • To begin select the Track catalog by clicking the tab
  • Then click and drag a Straight into the construction area
  • Adjust the length of the straight by either clicking and dragging from one of the endpoints or by selecting the straight and in the Properties window scroll down and adjust the value in the Length field
  • As a note, tracks, by default, run from the red point to the blue point, so when attaching additional items opposite coloured points must be snapped together to ensure the model flows correctly
  • Add the rest of the components, re-sizing as necessary
  • To join the components together move them together so the the blue and red connection points merge, while holding down CTRL to snap the two components together
  • To merge components to make diverters, simply drag one component over the other until both highlight, then hold the CTRL key to snap them together
Model14-1024x270.png

 

  • To add an Action point right click on the component on which you want the Action point and selecting Insert Action point and then click Action point
  • The Action point is represented by an X, initially in the center of the track
Model4.png
Model5.png

 

  • The Action point can be moved and modified by selecting it and editing the properties
  • The ones needing to be changed as part of this exercise are outlined

 

Model6.png

 

  • You can add more than one Action point to a component
  • Use the Distance property to ensure they are spaced apart correctly
  • It is recommended to add them and position them one at a time so they don’t end up on top of each other
  • Add a feeder to the first straight, by selecting the straight, right clicking and selecting Insert Feeder
  • The properties for the Feeder should be as below
  • As with the Action point, the properties that need changing are outlined in red
Model19.png

 

  • Once the model is built and all action points are added and named as in the initial picture, click the Routes tab and it should look like the one below
Model7a-1024x840.png

 

Creating the Controller

  • Within Experior a simple controller can be programmed to dictate the actions of loads when they reach certain action points on the route
  • The code has been included below in its entirety with comments to provide guidance in what the code is actually doing
  • First, open the controller tab in Experior. It’s located on the same pane as the Model Construction area.
Advanced10.png
 
  • Copy the code below and paste it into the Controller pane so that it overwrites the default lines already present
public class Main
{
//This line is autogenerated as part of the model.
public void Arrived(INode node, Load load)
{
//If the Actionpoint is named CHECK then
if (node.Name == “CHECK”)
{
//Generate a random number from 1 to 5 & if the number equals 3…
if (Experior.Core.Environment.Random.Next(1, 5) == 3)
//…move the load to Actionpoint REJECT1…
load.MoveTo(“REJECT1”);
else
//…if the number is not equal to 3 move the load to Actionpoint ROUTE1
load.MoveTo(“ROUTE1”);
}
 
//If the Actionpoint is named REJECT1 then…
if (node.Name == “REJECT1”)
{
//…remove the load from the model/system
load.Dispose();
}
 
//If the Actionpoint is named ROUTE1 then…
if (node.Name == “ROUTE1”)
{
//Generate a random number from 1 to 5 & if the number equals 3…
if (Experior.Core.Environment.Random.Next(1, 5) == 3)
//…move the load to Actionpoint INSPECT1…
load.MoveTo(“INSPECT1”);
else
//…if the number is not equal to 3 move the load to Actionpoint INSPECT2
load.MoveTo(“INSPECT2”);
}
 
//If the Actionpoint is named INSPECT1 then…
if (node.Name == “INSPECT1”)
{
//…move the load to Actionpoint ROUTE2
load.MoveTo(“ROUTE2”);
}
 
//If the Actionpoint is named INSPECT2 then…
if (node.Name == “INSPECT2”)
{
//…move the load to Actionpoint ROUTE2
load.MoveTo(“ROUTE2”);
}
 
//If the Actionpoint is named ROUTE2 then…
if (node.Name == “ROUTE2”)
{
//Generate a random number from 1 to 5 & if the number equals 3…
if (Experior.Core.Environment.Random.Next(1, 5) == 3)
//…move the load to Actionpoint REJECT2…
load.MoveTo(“REJECT2”);
else
//…if the number is not equal to 3 move the load to Actionpoint PACK
load.MoveTo(“PACK”);
}
 
//If the Actionpoint is named REJECT2 then…
if (node.Name == “REJECT2”)
{
//…remove the load from the model/system
load.Dispose();
}
 
//If the Actionpoint is named PACK then…
if (node.Name == “PACK”)
{
//…remove the load from the model/system
load.Dispose();
}
}
}
 
  • What the code basically does is randomly determine where loads should go if the Action point has more than one destination
  • More advanced controllers can be scripted using Visual Studio. This topic is covered here: Build a Controller
  • When the code has been entered into Experior, press the Compile button to compile the script
Compile.png

 

  • Now when the model runs loads, it will act according to the Controller code

 

Running the Simulation

 

  • Introduce loads to the system by selecting the feeder and pressing the Space bar
  • Next, under the Model menu, press the Running Man button so that it turns blue
Model3.png
  • Finally press the Play button to run the model
Labels (2)
Labels:
  • Exp-6 User Guides
  • Experior 6

Link copied. Please paste this link to share this article on your social media post.

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore