1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Hardware Interface Plugin help

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by bigboros, Oct 17, 2012.

  1. bigboros

    bigboros New Member

    Joined:
    Jun 23, 2009
    Messages:
    2
    Location:
    Melbourne
    Balance:
    - 7Coins
    Ratings:
    +0 / 0 / -0
    Hi Guys

    First of all may I say that the creations on this site are incredible and inspirational.
    There is some great talent pooled here and I hope that I can tap off a little to kick my project along.

    My intention is to build a 3DOF motion platorm mainly for racing sims.
    I have at my disposial a bunch of indrustrial Servo motors, drives, power supplies and gear boxes sitting around and I intend to utiluse these in my simulator.

    The problem I have is my servo drives have +10V to -10V DC velocity input signal requirement. 0v being no motion (Stopped).
    I have a Galil DMC control board that provides suitable velocity signal to control the drives. All the Galil controller needs is the position commands and it takes care of all the motion.

    The Galil board is designed to have serial and ethernet communication but for some reason the serial comms is not working.
    If it was I would be able to use the USO to allow X-Sim to communicate the calculated position commands to the controller.

    So I am stuck with ethercat communication.

    I have the BBF software (Demo/time limited) and this has the ability to communicate with a Galil controller over ethernet.
    It's all seems to be working fine on Xplane and MSX but as I stated above my interest is racing sims.
    X-Sim seems full capable of doing what I wish, all I think is needed is a plugin to pass the calculated positions from X-sim to the Galil software (GalilTools)

    I've had limited exposure to C++. But from what I can work out it should be a relatively simple plugin.
    There is no PID, PWM or any calculations required, the Galil controller does all this.
    All that needs to be done is to build a string with the position commands of the actuators and then pass this through a connection to GalilTools.

    Here is a link to the GalilTools Communication Library and the command to pass the string.
    http://irtfweb.ifa.hawaii.edu/~tcs3/tcs ... ml#command

    I have looked through the examples of interface plugins provided in X-sim but am unable to work out how to access the individual position commands to allow me to build the string.

    So my question is how do I go about getting the actuator positions from X sim from within the plugin?

    I thank you in advance for you assistance.

    Boros