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

Question About Communicaiton Protocol of Sim V3

Discussion in 'SimTools DIY Version' started by William816, Oct 11, 2024.

  1. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    I am trying to build up my own 3dof simulator by using PLC. However, there are 2 quesitons confuse me and ask your support:

    1. Normally, to communicate with PLC, it is naccessary to using Communication Protocol. e.g. modbus etc.
    So what Communication Protocol does Simtools V3 exactly used for communication?

    2. I read the broucher of Simtools V3 about interface output. If I just use the type<axis1a><axis2a><axis3a><axis4a>, does is means I will receive four numbers among 0-255. Or I will receive 4 char type string?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,351
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,021Coins
    Ratings:
    +5,139 / 18 / -0
    When selecting 8 bit output, you will get 4 chars as a string if you choose binary output, and 4 number between 0-255 all stuck together as a single sting when send as decimal.
  4. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    Thank you for the reply firstly. However, as the freshman of C++, know little about C++(mainly work on PLC programing normally). It is hard to compile API by using C++, so~~~~can I just use exist serial interface for my own simulator or it is must to custom an interface for DIY simulator?

    Lookog forward to your reply. Thanks.
  5. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    em.... I have read all related FAQ about API. It seems there is no answer about my question 1. For PLC communication, it is needed to have a "Communication Protocol". So how or where can I define the communication method in simtools? or how can I define the communication method when compile an interface?
  6. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,351
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,021Coins
    Ratings:
    +5,139 / 18 / -0
    Do you connect the PLC to the PC thru a networking cable or serial cable? And then what does a move axis command look like?
  7. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    Thanks buddy, the problem sovled. However, another problem happened. there is no motion input from game to simtools v3
  8. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,351
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,021Coins
    Ratings:
    +5,139 / 18 / -0
    The first thing to check is the interface setup for SimTools v3. Please click "Test Settings" for the interface you setup, does your simulator move as expected with the test sliders?
  9. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    problem solved after delete the game plugin and reinstall.
    • Like Like x 1
  10. William816

    William816 New Member

    Joined:
    Sep 28, 2024
    Messages:
    9
    Balance:
    48Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    is there introduction about how to estiablish the VR connection with quest 3. I tried the epic roller yesterday, ant it seems simtools not support vr. thansk.
  11. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,351
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,021Coins
    Ratings:
    +5,139 / 18 / -0
    If the game is running on the headset itself, you will need the console version of the the plugin here.
    https://simtools.us/plugin/?varname=221&color=0e97dd

    With the game running on the headset, go into the games settings, and enable telemetry with the ip address of the computer running SimTools, and the port set to 4123. Then simply double click the play button on the console plugin in SimTools and you should get data.
    Please let me know how it goes.
    yobuddy
    • Informative Informative x 1