Skip to end of banner
Go to start of banner

Modbus Over RS485 Cut Trough

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

The Cut Trough via Modbus Over RS485 allows you to get data and even set it depending on the data types.

(warning) 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.

(warning) 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.

Get Parameters

  1. 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.

2. In order to obtain the parameters that you require from the smart battery, 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 smart battery's configuration settings.

Code Part

Parameter

Notes

Example

1

Smart battery's physical ID

Two digits only

1 >> 01

(warning) The image is only for illustration purposes; please do not separate the numbers with spaces

2

Register command number

Two digits only

4 >> 04


3



Register address number

Four digits only

1 >> 0001

(warning) It is necessary to convert the addresses from decimal to hexadecimal format.

Decimal to Hexadecimal converter

4

Amount of Registers

Four digits only

1 >> 0001

3. To get the smart battery's data about this specific register, click "Send

4. 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

TBA

  • No labels