Modbus RTU Trio slave

Modbus RTU Trio slave

We have connected many different brands of HMI to the Trio using Modbus RTU on RS232.  Typical serial communications setup below.

baudrate = 9600
ADDRESS = 1
SETCOM(baudrate, 8, 1, 2, 1, 4) ' 8 bits, one stop bit, even parity

The HMI will use Modbus function 3 to read "Holding Register" values.  The VRs are used in the Trio as Holding Registers.  Note that there is an address offset from official Modbus, so Holding Register 40001 is mapped to VR(0).  So for reading VR(100) use Holding Register 40101.

    • Related Articles

    • AN-363 MODBUS RTU connecting to Stepper Drive

      This document is a guide to users wanting to use the Motion Coordinator MC4/5/6 as a Modbus master connected to a typical slave device. The actual example used is the Moons ST stepper drive.
    • Trio - Modbus TCP Client

      The Trio firmware can open a Modbus Client port and communicate with any Modbus Server. Port number is usually 502. You need to have the document from the slave vendor that lists the register numbers in the Modbus connection of the device. Probably ...
    • Modbus RTU Holding Registers 40001 ...

      A program has this line: mb_status = MODBUS(3, -1, mbh, $04, addr, 40001, 1, 1) That is for reading the value from the server device. The syntax is value = MODBUS(3, slot, handle, modbus function code[, parameters]) 4 is Read Input Registers, so the ...
    • Trio Scara Motor & Drive Sizes

      Trio Scara Motor & Drive Sizes Drop Files to Attach
    • Modbus TCP and Ethernet IP on Flex-6-Nano

      Q. Can we run and use Modbus TCP server and Ethernet IP server on Flex-6-Nano at the same time? A. Yes you can use both in parallel. They open different "port" numbers on the Ethernet communications but have the same IP Address. For example Modbus is ...