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 Help with using modbus RTU with Sim tools

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Radioactive_pickle1, Apr 15, 2025.

  1. Radioactive_pickle1

    Radioactive_pickle1 New Member

    Joined:
    Mar 4, 2025
    Messages:
    4
    Balance:
    40Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    hi, I’m trying to figure out how to connect my T3DL motor drivers to Sim tools but they don’t support simple serial instead they use modbus RTU which I don’t know how to get SIM tools to communicate with my motor driver.

    I was planning on using an Arduino to communicate between the computer and the motor driver, but I am open to switching to something else if that turns out to be a better option.

    Edit: I found out that my driver has a (step/dir) control port that I can use to which might be easier than the modbus.
    Last edited: Apr 15, 2025
  2. Aerosmith

    Aerosmith Active Member

    Joined:
    May 30, 2024
    Messages:
    407
    Occupation:
    self employed
    Location:
    Germany
    Balance:
    2,385Coins
    Ratings:
    +243 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Modbus is typically used for point-to-point movement commands like for a pick&place machine or a robot where the destination position is known in advance and the timing and trajectory doesn't matter exactly. You can send a position command to each axis one after another and get back a "position match" message back when all axes have reached the destination. The servo drive has an internal motion planner that handles acceleration and decelleration ramps.

    Real time and simultanous movement is better implemented with step&direction signals or analogue speed command. You'd need a very high data rate to do this with any kind of digital communication interface (at least 1Mbd). There are systems that support it (EtherCAT for example) but they are very complicated and therefore not very common in the DIY area.

    However, Modbus can be very useful to transfer configuration and diagnosis data.
    • Informative Informative x 1
  3. Joe Cortexian

    Joe Cortexian Active Member Gold Contributor

    Joined:
    Sep 8, 2021
    Messages:
    148
    Balance:
    887Coins
    Ratings:
    +32 / 0 / -0
    My Motion Simulator:
    3DOF
    Typically at the speeds we want to run at you need to pulse in the 500khz range. The Uno and Leonardo have three PWM timers that could be used for the pulse signals. Controlling the frequency is a bit tedious and there are a limited number of frequencies.

    The Teensy has 16 independent frequency generators which use the TI FlexPWM hardware. Downside is that it is 3.3v.

    You can also buy a Thanos controller if you just want it to work.
    • Informative Informative x 1