In WorkStation, you can add a representation of any physical Modbus device in a serial or TCP network. All devices use the same device icon and are created in the same way, regardless of network type.
Modbus device types can include programmable logic controllers, meters, and any device that conforms to the Modbus standard. All devices on a Modbus network must be configured with common Modbus network parameters, such as the transmission mode and baud rate, and a unique address. You must match these parameters in WorkStation when setting up the system.
Data in Modbus devices is held in registers. Each register has its own address in memory, which can be accessed by the Modbus client device for read/write purposes. Modbus registers are typically grouped in the address ranges shown in the following diagram:
action_zoom_plus_stroke
Figure:
Registers in a Modbus device
Note:
The address ranges for the different register types in Modbus devices typically start as shown in the diagram above. However, in the EcoStruxure Building Operation software, the use of function codes enables you to specify the start address of each range as 1.
You can find a Modbus map of registers within a particular Modbus device in the manufacturer’s datasheet for that device.
Discrete Output Coils
A ‘coil’ is the Modbus term used for the discrete output value of a single bit (On or Off). A coil can be written to and read from by the Modbus client device.
Discrete Input Status
A discrete input status is the value (On or Off) of a single bit at an input. A discrete input status is read-only.
Input Registers
An input register is a read-only register that is two bytes wide (16-bit) and can be used for various purposes.
Holding Registers
Internal values in a Modbus device are stored in holding registers and can be written to and read from by the Modbus client device. These registers are two bytes wide (16-bit) and can be used for various purposes.
Device Identification
All Modbus devices that support the Modbus Read Device Identification protocol automatically display basic device identification information in the device properties:
Product code
Product revision
Device identification is enabled by default. When the device comes online, a special set of registers within the device is automatically read by the client device, and the device identification text is displayed in the relevant device property fields. Before the first reading of the device identification registers by the client device, the device properties are set to Null. If the device does not support the Modbus Read Device Identification protocol, the identification property fields are blank following the read by the client device. If you do not want device identification to be active you can disable it by configuring
Device identification
property to
Disabled
.
The client device reads the device identification registers once, at each power up (using function code 43). However, you can force the client device to refresh the server device identification information (if the server device supports this), for example after a device disconnection or a communications problem.
Device Communications Configuration
In the EcoStruxure BMS, the client device must poll a server device on the network to establish if the device is available for communications. A Modbus message has several essential components, such as:
Poll Interval: Inhibit, 1, 2, 5, 10, 15, 20, and 30
action_zoom_plus_stroke
Figure:
Modbus device settings
Details of all of the communication parameters are available in the device’s documentation. When the correct parameters are entered, the device is
Online
as indicated by the
Status
property.
Device Address
The device address is the address used by the client device in a query message to identify a server device on the network. You must ensure that this address is the same as the address available in the device.
If using a TCP network, you must also specify the IP address or DNS name of the device. To use a DNS name as the IP address there must be a DNS server on the network to resolve the name to the IP address.
Poll Register
The poll register number you enter can be any valid Modbus register address. The register address is polled by the EcoStruxure BMS server when no other address is being polled, to determine if the device is online. Providing that a valid reference is received from the device, the device status is displayed as Online even if an error or exception code is received from the device.
Poll Code
The poll code you enter is the function code to read any register in the device to determine if the device is online. All available poll codes are therefore read only codes. The poll code operates in the same way as the function code used when configuring a Modbus point.
Poll Interval
The poll interval is the amount of time between polls when the selected device is polled to determine if it is online. The default interval is 10 seconds, and can also be set to Inhibit, in which case Online/Offline detection is disabled.
Note:
Inhibit is used to prevent alarms when doing offline engineering; you must remember to remove the Inhibit function during normal operation.