Adding Modbus Devices Through Webpages
Presentation
Modbus TCP/IP and Modbus-SL devices can be added to or removed from the EcoStruxure Panel Server system through the Panel Server webpages.
Discovery of Modbus TCP/IP Devices With a Selective List
In the 502
(see Ethernet Communication) and the
default unit ID is 255
(see Modbus Gateway Function).
During device discovery the Panel Server uses, in priority order:
-
A custom device model, if applicable (the most recently modified custom device model if more than one apply)
-
A built-in model
Result: The Discovery result table shows the following information for each device discovered on the Modbus TCP/IP network:
-
Picture (built-in device models)
-
Device name
-
IP address
-
Port
-
Unit ID
The device is displayed in the Modbus devices section.
Manual Addition of Modbus TCP/IP Devices
In the
webpage, in the section, enter the following information for each device:-
IP address
-
Port
-
Unit ID
-
Device
Result: Once the device is discovered, it is displayed in the Modbus devices section.
To manually add a Modbus TCP/IP device applying a custom device model from the drop-down list, select
then:-
Type the values for
-
IP address
-
Port
-
Unit ID
-
-
Select the custom device model name in Device.
Discovery of Modbus-SL Devices With a Selective List
In the
webpage, in the section, enter the list of Modbus addresses (1–254) for which the devices must be discovered.During device discovery the Panel Server uses, in priority order:
-
A custom device model, if applicable (the most recently modified custom device model if more than one apply)
-
A built-in model
Result: The table shows the following information for each device discovered on the Modbus-SL network:
-
Picture
-
Device name
-
Virtual server ID (Server ID)
The device is displayed in the Modbus devices section.
Manual Addition of Modbus-SL Devices
In the
webpage, enter the physical server ID of the device to be added and select the device type.Result: Once the device is discovered, it is displayed in the Modbus devices section.
To manually add a Modbus Serial device applying a custom device model from the drop-down list, select
then:-
Type the value for Physical server ID.
-
Select the custom device model name in Device.
Addition of Modbus-SL Devices Connected to a Child Panel Server Gateway
To add Modbus-SL devices connected to a child/downstream Panel Server (see example), navigate to .
Enter:
-
The IP address of the child/downstream Panel Server
-
The virtual server ID of the Modbus device in Unit ID
-
The Modbus device type
Result: Once the device is discovered, it is displayed in the Modbus devices section.
Modbus Registers Read
To troubleshoot the addition of Modbus devices, navigate to the webpage Read registers button.
. Fill in the Modbus device identification parameters described in the following table and click theResult: A table is displayed containing the list of register numbers and the register content in the selected format.
Parameter | Availability by device | Description | |
---|---|---|---|
Device Type |
Modbus Serial |
Modbus TCP/IP |
Select from the list either Modbus Serial or Modbus TCP/IP. Other parameters displayed depend on the device type selected. |
Device ID |
✔ |
- |
Enter the virtual device ID you want to read registers from. Value range 1–254. |
IP address |
- |
✔ |
Enter the address of the TCP network. |
Port |
- |
✔ |
Enter the port of the device |
Unit ID |
- |
✔ |
Enter the ID of the device. Value range 1–255. |
Function code |
✔ |
✔ |
Select from the list the Modbus function to use to read the registers of the identified device:
|
Starting register |
✔ |
✔ |
Enter the number of the first register to be read. For function codes FC01 and FC02, use the following calculation to specify the bit number: (Register number - 1) * 16 + (bit offset+1) where offset is the bit order (from 0 to 15) |
Number of registers |
✔ |
✔ |
Enter the total number of consecutive registers to be read. |
Result format |
✔ |
✔ |
For function codes FC03 and FC04, select from the list the format to display the results:
The result of function codes FC01 and FC02 is 1 when true and 0 when false. |