• Home
  • User Manual
  • Tutorials
  • Updates
Search Results for

    Show / Hide Table of Contents
    • Welcome to twin
    • Getting Started
      • Install and uninstall twin
      • Install and uninstall a licence
      • Start twin
    • Simulation Component Library
      • Automation
        • ScriptComponent
        • Sequence
      • BitManipulator
        • BitsToBytesConverter
        • BytesToBitsConverter
        • EndiannessChanger
      • BooleanOperations
        • BooleanFunction
        • Invert
        • InputSwitch
      • ControlPanel
        • ControlPanel
      • Conveyor
        • Conveyor
        • VacuumConveyor
      • Debug
        • Counter
      • DataManipulator
        • DataReader
        • DataTypeConverter
        • DataWriter
      • FMU
        • FMU
      • Gripper
        • KinematicGripper
        • ObjectCoupler
        • VacuumGripper
      • HardwareConnector
        • PLCConnector
        • RobotControllerConnector
      • Math
        • Gain
        • LinearFunction
        • LowPassFilter
        • NumberComparer
        • Sum
      • Motor
        • FCControlledMotor
        • ServoMotor
      • Movers
        • BoolToSignedDirection
        • DynamicCylinder
        • DynamicRotationMover
        • DynamicTranslationMover
        • KinematicCylinder
        • KinematicPathMover
        • KinematicRotationMover
        • KinematicTranslationMover
      • ObjectManipulator
        • Colorizer
        • Object3DCutter
        • VisiblityChanger
      • Sensors
        • AngleLimitSwitch
        • CollisionObserver
        • DistanceSensor
        • DynamicObjectDetector
        • LightBarrier
        • PositionLimitSwitch
        • PositionTracker
      • Sinks
        • FileLogger
        • CollisionSink
        • RaySink
      • Sources
        • BoolConstant
        • BoxSource
        • DoubleConstant
        • Object3DFileSource
        • Object3DSource
        • RandomBoolean
        • RandomNumber
        • SinusGenerator
        • SphereSource
        • StringConstant
      • Timers
        • IntervalTrigger
        • TOF
        • TON
    • Collision Detection
      • What is essential for collision detection?
      • Where can I find the mesh simplifiers?
      • Which mesh simplification methods are available?
    • twin Mirror
      • Install the twin Mirror
      • Embed the twin Mirror into your HMI
      • React on user-events
      • Manipulate 3D objects
      • Add labels and buttons
    • Video Guides
      • How to install twin
      • How to organize projects
      • How to import CAD files
      • How to handle 3D objects
      • How to activate physics in your simulation
      • How to simulate conveyor systems
      • How to simulate cylinders
      • How to simulate axis systems and portals
      • How to simulate sensors
      • How to simulate grippers
      • How to create program sequences
      • How to connect to PLCs
      • How to simulate robots
      • How to model complex mechanical motion systems
      • How to debug and analyse signals in twin

    BytesToBitsConverter

    This simulation component converts bytes to bits.

    BytesToBitsConverter

    When to use

    Use this simulation component if you need to convert bytes to single bits. This is very practical, for example, to read out the entire word from PLC's and then access the individual bits quickly.

    How to use

    Add this simulation component from the simulation component library. Define the InputDataType property for the Input. Depending on the InputDataType the necessary output bits will be created (e.g. an input of type DWORD is represented by 32 output bits). The output bits represent the unsigned input value.

    Parameters

    InputDataType

    Indicates the target input data type.

    Protocol Description
    WORD An input data type of 2 unsigned bytes is represented by 16 output bits.
    DWORD An input data type of 4 unsigned bytes is represented by 32 input bits.

    Inputs

    Input

    An Input which type is defined by the InputDataType property. The output bits represent this value.

    Outputs

    BIT_X

    Depending on the InputDataType property the necessary output bits are created which represent the unsigned input value.

    Example

    In this example, an unsigned, 16-bit input value of 5 is represented by the output bits. In this case, the first and third bits are set.

    BytesToBits Example

    Further Information

    For more details visit the Video Guides section, where you can find a video guide demonstrating this topic under Connect to MotoSim.

    In This Article
    Back to top Copyright © Eberle Automatische Systeme GmbH & Co KG