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
  • Defining CAMs
  • File Types Supported:
  • Public Properties
Edit on GitHub
  1. Components & Scripts
  2. Motion and Kinematic

CAM

PreviousJointNextTransportSurface

Last updated 18 days ago

A CAM (Camshaft) is a connection mechanism between a master Drive and a slave Drive, often used in packaging machinery and other automation systems. CAMs allow the slave drive to move in relation to the master drive according to a predefined CAM profile. This is particularly useful for controlling complex motion profiles in automated systems.

You can watch this tutorial video to learn more about CAMs:

Defining CAMs

CAM profiles can be defined and imported into Unity through various file types. The CAM component supports both Excel and CSV formats for defining these profiles.

File Types Supported:

  • Excel: .xlsx files.

  • CSV: .csv files.

Public Properties

MasterDrive The master drive to which the slave drive is attached. The slave drive's position will be determined by the master drive's position according to the CAM profile.

MasterDriveAxisScale A scale factor applied to the master drive position to get the value used in the CAM curve.

MasterDriveAxisOffset An offset added to the master drive position to determine the value used in the CAM curve.

CAMAxisScale The scale factor for the CAM axis. It scales the values of the CAM curve.

CAMAxisOffset An offset added to the values of the CAM curve to determine the position applied to the CAM (slave) axis.

ExcelSheet Name of the Excel sheet used when importing CAM data from an Excel file.

ExcelFile Path to the Excel file used for importing CAM data.

CamDefintion A text asset containing the CAM definition. This asset is a table with optional headers and columns describing the master axis position and the slave axis position.

UseColumnNames Indicates whether column names are used to define the data to import.

MasterColumn The name of the column in the text asset that contains the master axis position.

SlaveColumn The name of the column in the text asset that contains the slave axis position.

UseColumnNumbers Indicates whether column numbers are used to define the data to import.

MasterColumnNum The column number (starting with 1) that contains the master axis position in the text asset.

SlaveColumnNum The column number (starting with 1) that contains the slave axis position in the text asset.

CamDefinitionWithHeader Indicates whether the first line of the text asset is a header.

ImportOnStart Indicates whether the CAM data should be imported automatically when the simulation starts.

IsContinous Indicates whether the CAM should continue as an offset based on the last CAM position, useful for continuous movements like transport chains.

Usage Instructions

  1. Select CAM File: Choose the CAM profile file using the ExcelFile or CamDefintion property, depending on whether you are using Excel or CSV.

  2. Set Scaling and Offsets: Adjust the MasterDriveAxisScale, MasterDriveAxisOffset, CAMAxisScale, and CAMAxisOffset properties to fit your application's requirements.

  3. Import CAM Profile: Use the ImportOnStart property to automatically import the CAM profile when the simulation starts.

  4. Configure Continuous Mode: Enable IsContinous if the CAM profile should operate continuously. Adjust ContinousOffset as needed.

Please check the for more information about the properties and methods of this component.

© 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.

Realvirtual.io Class Reference
https://realvirtual.io
https://youtu.be/nPNgIWcwDAM