Asc 150 Modbus Server User Manual 4189341366 Uk
Asc 150 Modbus Server User Manual 4189341366 Uk
4189341366A
Modbus server
User manual
1. General information
1.1 ASC Modbus server................................................................................................................................................................................................................... 3
1.2 Software version.........................................................................................................................................................................................................................3
1.3 Disclaimer....................................................................................................................................................................................................................................... 3
2. Hardware information
2.1 Communication............................................................................................................................................................................................................................4
2.1.1 ASC Solar communication..............................................................................................................................................................................................4
2.1.2 ASC Storage communication.......................................................................................................................................................................................5
2.2 Connections for Modbus server.......................................................................................................................................................................................5
2.3 Wiring................................................................................................................................................................................................................................................5
2.4 Configuring Modbus connections.................................................................................................................................................................................. 5
2.4.1 RS-485.....................................................................................................................................................................................................................................5
2.4.2 Modbus server TCP connection...............................................................................................................................................................................6
3. Data tables
3.1 Configurable area (read only) (function code 04h).............................................................................................................................................. 7
3.1.1 Modbus configurator.........................................................................................................................................................................................................7
3.2 Reference tables........................................................................................................................................................................................................................ 8
3.3 Data type.........................................................................................................................................................................................................................................8
3.4 Data format....................................................................................................................................................................................................................................8
3.5 Data scaling...................................................................................................................................................................................................................................9
4. Parameter setting
4.1 Introduction................................................................................................................................................................................................................................. 10
4.2 Address areas........................................................................................................................................................................................................................... 10
4.2.1 Read coil (Function code 01).....................................................................................................................................................................................10
4.2.2 Read discrete inputs (Function code 02).......................................................................................................................................................... 10
4.2.3 Read holding registers (Function code 03)......................................................................................................................................................10
4.2.4 Read input registers (Function code 04)........................................................................................................................................................... 11
4.2.5 Write single/multiple coils (Function code 05/15)......................................................................................................................................... 11
4.2.6 Write single/multiple holding registers (Function code 06/16).............................................................................................................. 11
4.3 Modbus addresses and examples for parameters............................................................................................................................................. 12
4.3.1 Examples for commissioning.....................................................................................................................................................................................13
More information
See the ASC 150 Modbus server tables (an Excel spreadsheet) for all the Modbus server addresses.
NOTE The ASC Modbus client is described in the ASC 150 Modbus client User manual.
1.3 Disclaimer
DEIF A/S reserves the right to change any of the contents of this document without prior notice.
The English version of this document always contains the most recent and up-to-date information about the product. DEIF
does not take responsibility for the accuracy of translations, and translations might not be updated at the same time as the
English document. If there is a discrepancy, the English version prevails.
2.1 Communication
2.1.1 ASC Solar communication
Modbus TCP
Modbus RTU Data
logger
Switch
Server
ASC Solar
Client
The ASC can communicate over Modbus as the client and/or server device. The ASC can communicate with the PV system
using Modbus TCP or Modbus RTU. The ASC reads from power meters or genset controllers using Modbus RTU.
Modbus TCP
Modbus RTU Data
logger
Switch
Server
ASC Storage
Client
The ASC can communicate over Modbus as the client and/or server device. The ASC can communicate with the ESS using
Modbus TCP and/or Modbus RTU. * The ASC reads from power meters or genset controllers using Modbus RTU.
2.3 Wiring
More information
See the Installation instructions for wiring information.
9600 Baud
19200 Baud
7512 or 7522 Ext. comm.speed[1 or 2] 9600 Baud Communication speed for RS-485 [1 or 2]
38400 Baud
115200 Baud
OFF
7516 or 7526 Enable OFF Communication error for RS-485 [1 or 2]
ON
You can use the utility software to see (or set up) the controller. On the Ethernet setting (TCP/IP) page, open Network
parameters.
Alternatively, use the display: Settings > Communication > Ethernet setup
The Modbus configurator lets the user select which data should be available in the first 500 Modbus addresses for Modbus
function 04.
Profibus users often use this function to select the data they can use. That is why the first address range is called Profibus.
This first address range is shared by Profibus and Modbus users, as they share the same data.
To open the Modbus configurator, select Modbus Configurator from the left toolbar in the utility software.
Using the Modbus configuration, you can configure Modbus addresses 0 to 499 to any of the Modbus addresses from 500
to 1999, as shown below.
The window has four different columns that are described below:
Range: Each Modbus range contains 100 Modbus addresses (63 for the Profibus range). In the screenshot above, the
Modbus address range 0 to 99 is selected.
REG: The information in the specific address REG is duplicated from the Modbus address configured in Value. The number
changes when another range is selected (0 to 499).
Value: The Modbus address (500 to 1999) of the information that will be copied to the corresponding REG Modbus
address.
Description: Free text for the user to fill in. The text is only saved in the parameter file. In the screenshot, Modbus address
000 duplicates the information of Modbus address 501, which displays the PV voltage between L1 and L2, as the
description shows.
NOTE The popup window has its own dedicated Read/write and Copy description buttons, which must be used for
manual configuration.
For the screenshot, to check what is assigned to Modbus address 001, look up Modbus address 502 in the
Modbus server tables, under Input register (04).
502 is an AC measurement, with function name PV/ESS voltage L2-L3. Therefore, reading Modbus address 001
from the input register (04) returns the PV/ESS voltage L2-L3.
The number in brackets refers to the Modbus function code (as a decimal value) for the information, and corresponds to the
sheet names in the spreadsheet.
The PV active power reference is INT32s data, with data format ABCD, in Modbus address 46000 under Holding
register (03;06;16).
For each Modbus address, the scaling is given in the Modbus server tables.
Scaling example
The Modbus address for battery frequency (holding register 0x03, 46342) has a scaling of 2. When the frequency
is read from the controller using Modbus, the Modbus register returns 5000. The actual frequency is:
To write a new frequency of 60.00 Hz using Modbus, the value to write to the register is:
4.1 Introduction
Modbus communication can read parameter data from the controller and write parameter data to the controller. The
parameter Modbus addresses are not listed in the Modbus tables. The Modbus address for a parameter is calculated by
adding an offset to the first number in the address area. The offset is the parameter Address in the Utility Software (USW).
Modbus communication can also read and write alarm data for IOs and CIOs. The IO Modbus addresses are not listed in the
Modbus tables. The IO Modbus addresses are also calculated by adding an offset to the first number in the address area.
This chapter lists the address areas, and gives examples of Modbus address calculations.
Reads the ON/OFF status of discrete output coils. The controller returns 0 (FALSE) when the coil is not activated, and 1
(TRUE) when the coil is activated.
Enable 2000-3999
Reads the ON/OFF status of discrete input contacts. The controller returns 0 (FALSE) when the discrete input is not
activated, and 1 (TRUE) when the discrete input is activated.
Reads the data value contained in the holding registers. The data can be signed integers (16 or 32 bit) or boolean values.
The controller returns the value stored in the holding register. Note that you need the scaling to interpret the value
correctly.
Output A 10000-11999
Output B 12000-13999
Enable 16000-17999
Inhibit 18000-19999
Reads the data value contained in the input registers. The data can be signed integers (16- or 32-bit) or boolean values.
The controller returns the value stored in the input register. Note that you need the scaling to interpret the value correctly.
Change the ON/OFF status of a single or multiple discrete output coils. Write 0 (FALSE) to deactivate the coil, or 1 (TRUE) to
activate the coil.
Enable 2000-3999
Change the value of a single or multiple holding registers. The data can be signed integers (16 or 32 bit) or boolean values.
When writing values to holding registers, you need to use the correct scaling and data type.
Output A 10000-11999
Output B 12000-13999
Enable 16000-17999
Inhibit 18000-19999
Alarm example
Acknowledge alarm
In this example an over-voltage 1 alarm is active and unacknowledged. First we will check if the alarm is already
acknowledged, then acknowledge the alarm using Modbus.
1. The parameter number for the over-voltage 1 alarm is 1150. Find the parameter in the USW in the Parameters
tab and note the Address value for the parameter (12 for over-voltage 1).
• The parameter numbers are listed in the Channel column.
2. To read if the alarm is acknowledged, go to the table in Address areas > Read discrete input (Function code
02). The address area for Alarm acknowledge starts at 6000.
3. The Modbus address to read the parameter is: Parameter Address + Address area start = 12 + 6000 = 6012.
4. Use function code 02 to read address 6012.
• For this example when the address is read, the controller returns 0 (FALSE). This means that the alarm is not
acknowledged.
5. To acknowledge the alarm, go to the table in Address areas > Write single/multiple coils (Function code
05/15). The address area for Acknowledge alarm starts at 6000.
6. The Modbus address to read the parameter is: Parameter Address + Address area start = 12 + 6000 = 6012.
7. Use function code 05 to write 1 (TRUE) to address 6012.
• The alarm is now acknowledged and reading address 6012 using function code 02 returns 1 (TRUE). This
means the alarm is acknowledged.
2. To change the nominal frequency, go to the table in Address areas > Write single/multiple holding registers
(Function code 06/16). The address area for Values used starts at 4000.
3. The Modbus address to write the new value to is: Parameter Address + Address area start = 407 + 4000 =
4407.
4. The nominal frequency has a scaling of 1. See Data scaling* for the exponential scaling formula and examples.
To write 60 Hz to the address, a value of 600 must be written to the address. Use function code 06 to write
600 to address 4407.
• Nominal frequency 1 is now 60.0 Hz. To confirm the change use function code 03 to read address 4407. The
address returns 600. (The scaling is also 1.)
NOTE * A measurement's scaling in the Modbus tables is not necessarily the same as the scaling for the corresponding
parameter. For example, the scaling for the frequency measurement is 2, while the scaling for the nominal
frequency parameter is 1.
The low supply voltage alarm parameter number is 4960 (U< aux. term. 1), and the address is 315.
1. To see the alarm timer elapsed time, go to the table in Address areas > Read input registers (Function code
04). The address area for Timers elapsed time starts at 20000.
2. The Modbus address to read the alarm timer elapsed time is: Address + Address area start = 315 + 20000 =
20315.
3. Use function code 04 to read address 20315.
4. Example: When the alarm timer elapsed time shown in the utility software is 6.6 seconds, the Modbus value is
66.
• The alarm timer elapsed time thus has a scaling of 1.
The operator wants to monitor the actual value of the supply voltage. The parameter number is 4960 (U< aux.
term. 1), and the address is 315.
1. To see the actual value, go to the table in Address areas > Read input registers (Function code 04). The
address area for Actual values starts at 22000.
2. The Modbus address to read the elapsed time is: Address + Address area start = 315 + 22000 = 22315.
3. Use function code 04 to read address 22315.
4. Example: When the actual value shown in the utility software is 24.2 V, the Modbus value is 242.
• The actual value thus has a scaling of 1.
NOTE The ASC Solar controller can still use the DEIF Open protocol even if the PV protocol selection in parameter 7561 is
not DEIF Open.
NOTE The ASC Storage controller can still use the DEIF Open protocol even if the ESS prot. selection in parameter 7561 is
not DEIF Open.