Skip to main content

reComputer R1000 with fuxa to use modbus RTU/TCP

Introduction

FUXA is a web-based Process Visualization (SCADA/HMI/Dashboard) software. With FUXA you can create modern process visualizations with individual designs for your machines and real-time data display.It supports Modbus RTU/TCP, Siemens S7 Protocol, OPC-UA, BACnet IP, MQTT, and other protocols.

This article mainly introduces how to use fuxa for ModbusRTU/TCP communication.

Getting Start

Before you start this project, you may need to prepare your hardware and software in advance as described here.

Hardware Preparation

reComputer R1000

Software Preparation

  • Using modbusmechanic on W10 PC.You can also use other modbus testing tools
  • Using fuxa on reComputer R1000.You can refer to the following steps to install fuxa on reComputer R1000
      ## You need to have installed Node Version 14 || 16 || 18.
    wget https://nodejs.org/dist/v18.20.3/node-v18.20.3-linux-arm64.tar.xz
    tar -xf node-v18.20.3-linux-arm64.tar.xz
    cd node-v18.20.3-linux-arm64
    sudo cp -R * /usr/local/
    node -v
    npm -v
    ## Next install FUXA from npm
    sudo npm install -g --unsafe-perm @frangoteam/fuxa
    sudo fuxa
  • Regarding how to use the modbus function of reComputer R1000, you can refer to this wiki.

Hardware Configuration

For ModbustRTU, we used an rs485 to USB module to connect the reComuputer R1000 with the W10 pc.

pir

For ModbusTCP, we use Ethernet cables to connect the W10 PC and reComputer R1000 to a switch to ensure that they are on the same network segment.

pir

ModbusRTU communication steps

Step 1:Open ModbusMechanic on Win10 PC, select the corresponding serial port and baud rate, then click Tools in the upper right corner, select Start Slave Simulator, then select RTU, enter slave ID, and then you can set the slave In the data field of the machine, we added three coils and a Holding Register for subsequent reading from the Modbus host.

Step 2:In fuxa, click the + button in the lower right corner, enter the module name, select modbusRTU for Type, select SeriaPort for Connection options, then select the serial port number you need to use and set the corresponding baud rate and other parameters, and finally click OK.

Step 3:After that, we enter the Devices settings page and click the + button in the upper left corner to set the data fields we need to read. We set the corresponding parameters and click OK to see that fuxa has successfully obtained Modbus slave data.

ModbusTCP communication steps

Step 1:Open ModbusMechanic in Win10 PC, then click Tools in the upper right corner, select Start Slave Simulator, then select TCP, enter slave ID, and you can set the data field of the slave. We added two The coil has a holding register for subsequent reading from the Modbus host

Step 2:Click the + button in the lower right corner of fuxa, enter the module name, select modbusTCP for Type, select TcpPort for Connection options, select the IP address of the slave machine for Slave IP and port, the default port number is 502, then enter Slave ID, and finally click OK.

Step 3:After that, we enter the Devices settings page and click the + button in the upper left corner to set the data fields we need to read. We set the corresponding parameters and click OK to see that fuxa has successfully obtained Modbus slave data.

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...