realvirtual.io
  • Building Digital Twins with Unity and realvirtual.io
  • Basics
    • Installation
    • Demo Model
      • Old Demo Model
    • Editor User Interface
      • Hierarchy Window
      • 3D Views
      • Quick Edit
      • Move Pivot Points (Pro)
      • Selection Window (Pro)
      • Material Window (Pro)
      • Measurement (Pro)
      • Kinematic Tool (Pro)
      • Model Checker
    • Runtime UI
      • Group Manager
      • Debug Console
      • Responsiveness
      • Runtime Persistence
    • Importing and exporting
    • Folder structure
    • Tutorial
    • Physics
    • CAD import (Pro)
      • CADLink (Pro)
      • CAD Checker (Pro)
      • CAD Updater (Pro)
    • Reusable Components (Prefabs)
    • Cadenas parts4cad
    • Publishing the Digital Twin
    • Revision management
  • News
  • Login & Download Updates (Pro)
  • Components & Scripts
    • Realvirtual
      • Environment Controller
    • MU, Source and Sink
      • Source
      • Sink
    • Motion and Kinematic
      • Drive
      • Kinematic
      • Group
      • Joint
      • CAM
      • TransportSurface
      • Guided Transport
      • Drive behavior
      • Chain
      • Chain element
      • Motion for developers
    • Sensors
      • Sensor
      • Measure
      • MeasureRaycast
    • Picking and Placing MUs
      • Grip
      • Gripper
      • Fixer
      • Pattern
    • Changing MUs
      • MaterialChanger
      • PartChanger
      • Cutter
    • Scene Interaction
      • 3D Buttons
      • Screen Overlay Buttons
      • Scene Selectables
      • Lamp
      • Interact3D
      • UI components
      • HMI components (Pro)
        • Start your own HMI
        • HMI Tab
        • HMI DropDown
        • HMI Puschbutton
        • HMI Switch
        • HMI Value
        • HMI Text
        • HMI Slider
        • HMI Message
        • HMI Marker
      • ModelZoo (Pro)
    • Interfaces
      • Interface Tools
        • Signal Manager
        • Signal Importer Exporter
        • Signal Catcher
        • OnValueChangedReconnect
      • Signal Importer / Exporter
      • ABB RobotStudio (Pro)
      • Denso Robotics (Pro)
      • EthernetIP (Pro)
      • Fanuc (Pro)
      • FMI
      • Igus Rebel
      • MQTT (Pro)
      • Modbus (Pro)
      • OPCUA (Pro)
      • PLCSIM Advanced (Pro)
      • RoboDK (Pro)
      • RFSuite (Pro)
      • SEW SimInterface (Pro)
      • Siemens Simit Interface (Pro)
      • Simit Shared Memory (Pro)
      • Simulink (Pro)
      • S7 TCP
      • TwinCAT (Pro)
      • TwinCAT HMI (Pro)
      • UDP (Pro)
      • Universal Robots (Pro)
      • Wandelbots Nova (Pro)
      • Websocket (Pro)
      • Windmod Y200 (Pro)
      • Custom Interfaces
    • Performance Tools
      • Combine Meshes (Pro)
      • Create Prefab (Pro)
      • Hierarchy Cleanup (Pro)
      • Mesh Optimizer (Pro)
      • Performance Optimizer (Pro)
    • Defining Logic
      • Unity Scripting
      • Behavior Graph
      • Logicsteps
      • Unity Visual Scripting
      • Recorder
    • Robot Inverse Kinematics (Pro)
    • Volume Tracking (Pro)
  • Multiplayer (Pro)
  • Extensions
    • ModelZoo
      • Beckhoff TwinCAT
      • Siemens S7
      • Denso Cobotta 1300
      • Wandelbots Nova Fanuc CRX
      • Universal Robots UR10
      • Fanuc Roboguide
    • realvirtual.io AIBuilder
      • realvirtual.io AI Builder Overview
      • Generate AI Training Data
      • AI Training
      • Testing AI in a Digital Twin
      • Deploying the AI
    • realvirtual.io Simulation
      • Conveyor Library
      • Path System
        • Path finding
        • Line
        • Curve
        • Workstation
        • Catcher
        • Pathmover
    • realvirtual.io Industrial Metaverse
      • Setup Guide
      • VR Modules
      • AR Modules
      • Multiuser
    • AGX Physics
    • VR Builder
    • CMC ViewR
  • Advanced Topics
    • Render Pipelines
    • Mixed Reality with Meta Quest3
    • Upgrade Guide
      • Upgrade to 2022
    • Open Digital Twin Interface
    • Usefull Addons
    • Improving Performance
    • Supported Platforms
    • Compiler Defines
    • For Developers
      • Important Classes and Interfaces
      • Assembly Definitions
      • Starting your development
      • Class documentation
      • realvirtual Init Sequence
      • realvirtualBehavior Lifetime Methods
      • Testing
    • Newtonsoft JSON
    • Troubleshooting
  • Release Notes
  • AI Digital Twin Assistant (GPT4)
  • License Conditions
Powered by GitBook
On this page
  • Drive_Cylinder
  • Drive_Simple
  • Drive_DestinationMotor
  • Drive_FollowPosition
  • Drive_Gear
  • Drive_ContinousDestination
  • Drive_Speed
  • Drive_ErraticPosition
  • Drive_Sequence
Edit on GitHub
  1. Components & Scripts
  2. Motion and Kinematic

Drive behavior

PreviousGuided TransportNextChain

Last updated 18 days ago

he Drive Behavior provides a detailed behavior to a . This gives the flexibility to model all variety of ways to move objects. In realvirtual.io a few standard Drive Behaviors are included and you can extend them based on the components you are using in real life. Here is a list of the included Drive Behaviors. All Drive Behaviors are named with a prefix Drive_ from better clarification.

This tutorial explains the relation between Signals and Behavior Models:

Drive_Cylinder

This is the model of a simple cylinder movement. The cylinder is defined by a maximum (MaxPos) and minimum (MinPos) position in millimeters in relation to a zero position. The speed of the cylinder to move in and out is defined by the time in seconds TimeOut and TimeIn.

It is also possible to define two sensors, to stop the cylinder at its Max or Min positions. The cylinder can be controlled manually by setting the booleans under Behavior Signals. Under PLC IOs PLC signals can be connected to the cylinder.

Drive_Simple

The Simple Drive is only controlled by boolean values. It can be controlled to drive forward and backward. This is the property window of the simple drive:

Drive_DestinationMotor

The Destination Motor is a drive, that is controlled by target positions and target speeds. After setting the target speed and target position, the movement can be started by a boolean Signal StartDrive. After the drive reaches its target position the Signal IsAtDestination is set high.

Drive_FollowPosition

This is the behavior model of a drive, where the drive exactly follows the current provided position of the PLC. This is especially useful for connecting motion controllers and robot controllers to realvirtual.io.

Drive_Gear

This behavior model is useful for connecting two drives together. The master drive will control the position of the drive that the gear is attached to. This is useful for two gripper fingers where only one is controlled by a pneumatic model and the second one follows correspondingly. The formula for the position of a gear controlled drive is: CurrentPosition = MasterDrive.CurrentPosition x GearFactor + Offset.

Drive_ContinousDestination

This drive is continuously trying to follow the given destination with the given speed. Unlike Drive_FollowPosition, this Drive is not following exactly the given position because it might need some time to reach the destination. You don’t need to set a start signal to start to drive like with Drive_DestinationMotor. This drive is always starting to drive to a different destination as soon as the SignalDestination is changed. Please note, that you need to turn on UseAccelearation in the connected drive to use acceleration values. This Drive is specially useful for users who are reusing Simit models which are connected to NX Mechatronics Concept Designer. In NX Mechatronics Concept Designer this type of Drive is called PositionControl.

Drive_Speed

Drive_Speed is controlling a drive by a speed. You can’t controll directly the position. The drive is always driving in the given speed. Positive speed values means forward direction. Negative speed values means backward direction. Please note, that the smooth acceleration is not working with this drive. If you want to stop the drive the speed needs to be set to zero. This Drive is specially useful for users who are reusing Simit models which are connected to NX Mechatronics Concept Designer. In NX Mechatronics Concept Designer this type of Drive is called SpeedControl.

Drive_ErraticPosition

This drive is only for test purposes. It is moves constantly to random positions between MinPos and MaxPos.

Drive_Sequence

Starting a sequence step

The Drive_Sequence behavior allows to define simple sequences of motions. Each step in the sequence can set the Drive speed and the Drive Destination. The step is starting automatically after the step before. If a PLCSignal is defined in Wait For Signal the Step is not started before the Signal is set to true.

Ending a sequence step

In Wait After Step a time in seconds can be defined which should be waited after the drive is at its destination and before the next step is started. The Finished Signal is optionally and can be used to start external processes or Drive_Sequences. This signal is set to true as soon as the step is finished

We recommend to not use DriveSequence any more and to use the new LogicStep visual programming which is simpler and gives you more flexibility. Please check .

© 2025 realvirtual GmbH - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.

LogicSteps
https://realvirtual.io
Drive
for more information on methods and properties.
Please see the Class Reference