Trio - Modbus TCP Client

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 they will be Holding Registers numbers either 0 to 9998 or 40001 to 49999.

The open command is like this.
MODBUS(open_modbus, mb_slot, 192, 168, 0, 250, 502, mb_handle, 3)

Look at the examples in the MODBUS command in Trio BASIC Help.

Note a Modbus Server in the Trio Motion Coordinator does NOT use the MODBUS command, only the client uses it.
    • Related Articles

    • 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 ...
    • AN-326 Connecting to TCP/UDP client

      It is possible to open one or more communication channels with remote devices using the TCP and UDP protocols via the controller’s main Ethernet port. This document explain and provide example of doing this
    • Ethernet Modbus TCP VR mapping, ETHERNET function

      Q. I want to compile the existing project and the compiler says it has problems with the ETHERNET command. A. I can see the MC403 which does not work has 2.0268 which is relatively old. The controller that does work has a different firmware version. ...
    • Ethernet IP between controllers

      No, it is not possible to set up EthernetIP between Motion Coordinators because our EthernetIP can only be the server side and we have no Client (Scanner) function. There are other protocols which can be used, for example Modbus TCP/IP can be set up ...
    • AN-366 MODBUS TCP response time

      When planning a network and the communication links between devices, the available response time is often needed to allow the system designer to work out how much data can be transferred.  This document lists the results of some timing tests on ...