• 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

    BoolToSignedDirection

    This simulation component converts a boolean input for positive direction and a boolean input for negative direction into a single signed direction of type Integer.

    BoolToSignedDirection

    When to use

    Use this simulation component if you have components which have a continuous signed direction as an input.

    For example, if you want to control a pneumatic cylinder with help of a PLC, as seen in the image below, the two cylinder signals of the PLCConnector simulation component are connected to the BoolToSignedDirection simulation component.

    BoolToSignedDirection as Cylinder control

    How to use

    Add this simulation component from the simulation component library. Connect the output of a signal which represents a boolean value for positive direction to the corresponding input and do the same for the signal which represents a negative direction. Connect the SignedDirection output to the simulation component which needs a continuous signed direction as an input.

    Parameters

    Inputs

    PositiveDirection

    An input indicating that the signed direction output should be 1.

    NegativeDirection

    An input indicating that the signed direction output should be -1.

    Outputs

    SignedDirection

    An output which is 1 if PositiveDirection & !NegativeDirection or -1 if !PositiveDirection & NegativeDirection and 0 otherwise.

    Example

    In this example, a pneumatic cylinder is controlled by a PLC as described and shown in the picture above.

    BoolToSignedDirection Example Properties

    If the WorkingPosition output is set to True and the BasePosition output is set to False, the BoolToSignedDirection simulation component generates 1 as a continuous positive output signal. Then the KinematicTranslationMover simulation component moves the cylinder by the input Speed to the defined upper limit.

    BoolToSignedDirection moves Workpiece with Cylinder

    Further Information

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

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