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 15 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

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

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

Decimal to Hexadecimal converter

Example

1

Inverter physical ID

Convert the inverter physical ID to Hexadecimal and write it in 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

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

  1. Complete all the steps in this article and proceed to the next step once you have read the parameters.

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

Code Part

Parameter

Notes

Example

1

Inverter physical ID

The physical ID of the inverter should remain unchanged

 

2

Register command number

The register command number should be changed to 06 (always)

03 >> 06

3

Register address number

The register agrees number should remain unchanged

4

Amount of Registers

Change the amount of registers parameter to the value that you wish to set in Hexadecimal and write it in four digits only.

0003 >> 0007

3. Click “Send”

  • No labels