This guide explains how to set up Atmocube for Modbus connectivity.
Modbus is a serial communication protocol, used widely throughout many industries.
Known for its easy deployment and maintenance, Modbus is used widely throughout many sectors because it is relatively easy to deploy and maintain compared to other standards.
There are two Atmocube-supported Modbus realizations:
• Modbus TCP/IP runs on Ethernet cables or via Wi-Fi.
• Modbus RTU which runs typically on RS-485.
Atmocube provides Modbus TCP/IP support via Wi-Fi or the Ethernet port on the device.
Atmocube provides Modbus RTU support via the dry contact input module on the back of the device.
The Modbus feature is turned off by default. The feature can be enabled using the Atmocube configuration tool.
To enable Modbus RTU, open the configuration menu by clicking on the RS-485 tab.
Check the “Enabled” option and enter/select the details including
All parameters, except Device ID, should be the same for all Atmocubes on the RS-485 line.
To enable Modbus TCP/IP, open the configuration menu by clicking on the Modbus IP tab. Check the Enabled option and enter the Modbus IP (TCP) port. The default port number is 502. The range allowed is 0 to 65535.
Note: If you want to use Modbus on a local network without an internet connection, disable the MQTT connection by going to the MQTT tab and unchecking the Enabled option as seen below.
After Modbus has been enabled, follow the steps below to generate a configuration file:
Atmocube is ready for the Modbus connection.
Please find the example code and input register format at the link here: https://github.com/atmotube/atmocube-levoit-demo
Download and install Modbus Poll.
Open the Connection menu and choose Connect from the submenu. Configure the Modbus TCP/IP connection in the following way:
Open the Connection menu and choose Connect from the submenu. Configure the Modbus RTU connection in the following way:
Download the template file here for setup and open it by going to the File menu and choosing Open from the submenu. Or set up registers manually.
For manual setup, open the Setup menu and choose Read/Write Definition… from the submenu.
All data will be fetched in raw format:
The user manual for Modbus Poll is available here.