The Cut Trough via Modbus Over RS485 allows you to get data and even set it depending on the data types.
The example below illustrates how to use Modbus Over RS485 communication for a smart battery, but you may use this method for all devices connected via Modbus Over RS485.
Please note that before starting the process, you must verify whether the parameters you are interested in can be set.
Cut Trough Progress
Open the Power Center >> Connect to the Elara gateway via serial/OTA connection >> Click on “Read Configuration” >> Click on “Status” >> Click on “Configuration” tab. Now you can see all the information about the smart battery.
2. Click on the “Direct-Comm” >> Select the correct “Port” between the two ports according to the port to which the battery is connected >> Select the correct “Baud Rate” according to the battery’s baud rate.
3.This part allows you to choose whether you would like to "Get" or "Set” the parameters.
In order to “Get” or “Set” the parameters that you require from the inverter, you must enter a Modbus command in the "Data (HEX)" box. It is important to note that each Modbus command has a unique structure that will be derived from the parameters that will be taken from the inverter configuration settings.
Depending on how you write the command, you will either “get” or “set” parameters.
Code Part | Parameter | Notes It is necessary to convert the data from decimal to hexadecimal format | Example |
---|---|---|---|
1 | Inverter physical ID | Convert the inverter physical ID to Hexadecimal and write it in two digits only 1 >> 01 |
The image is only for illustration purposes; please do not separate the numbers with |
2 | Register command number | Convert the register command number to Hexadecimal and write it in two digits only 3 >> 03 | |
3 | Register address number | Convert the register address number to Hexadecimal and write it in four digits only 512 >> 0200 | |
4 | Amount of Registers | Convert the amount of registers to Hexadecimal and write it in four digits only 1 >> 0002 |
4. To get the smart battery's data about this specific register, click "Send”
5. Data will appear in a unique structure that must be translated via the smart battery configuration parameters, For example:
As you can see in the picture below, we are able to get the value of the smart battery "Temperature 2". The value that we receive from the cut trough is "301", now we need to take this value and convert it to the ratio given next to the type of register [1:10], meaning that the battery temperature is 30.1 degrees Celsius.
Set Parameters
Complete all the steps in this article and proceed to the next step once you have read the parameters.
In order to set parameters, change the “Register command number” to “06” (Always) and the “Amount of Registers” to the value that you want to set.