Modbus Server Setup

Adding a Modbus Server

Acquire™ can pass information from the flowcomputers to other Modbus devices using a Modbus server.

To setup a modbus server:

  • Select 'Modbus Servers' from the 'Config' menu.

This will bring up the list of configured Modbus servers:

Modbus Server

To add a new modbus server:

  • Click the 'Add' button

This will display the settings screen for the Modbus server:

Adding a Modbus Server

Specify the fields as follows (using the TCP protocol):

Field Description
Location This is the name used to identify the Modbus server.
Protocol The Modbus server can be set to run either using Modbus TCP or Modbus Serial. The protocol selected will affect some of the other parameters that appear on this screen.
Mode The mode selects between using Modbus RTU or Modbus ASCII. Profile always uses Modbus TCP for Ethernet connections.
Slave ID This is the slave address that the Modbus server will use.
Server Mode  
IP Address This is the IP address that the Modbus server will respond on. The IP address entered must be one of the server`s own allocated IP addresses. Alternatively if there is only one Modbus server on the system you can use the local host address 127.0.0.1
Port This is the port that the Modbus server is connected to
Timeout (secs) This is the time in seconds that Acquire™ will wait for an incoming request. If a request does not occur in this time, the server will disconnect the connection.
Streams This is the amount streams the Modbus server will have.
Skip Blanks This check box skips the blank addresses within the Modbus map, e.g, the modbus map consists of sequential addresses of 1001, 1002 and 1005, and if 3 addresses are being requested or written to starting from address 1001, modbus server will skip the blanks between 1002 and 1005 and serve the data of 1001, 1002 and 1005.

Adding a Modbus Server

With the Serial Port protocol selected, Specify the fields as follows:

Field Description
Location This is the name used to identify the Modbus server.
Protocol The Modbus server can be set to run either using Modbus TCP or Modbus Serial. The protocol selected will affect some of the other parameters that appear on this screen.
Mode The mode selects between using Modbus RTU or Modbus ASCII. Acquire™ always uses Modbus TCP for Ethernet connections.
Slave ID This is the slave address that the Modbus server will use.
Server Mode  
IP Address This is the IP address that the Modbus server will respond on. The IP address entered must be one of the server`s own allocated IP addresses. Alternatively if there is only one Modbus server on the system you can use the local host address 127.0.0.1
Serial Port This is the serial port that the Modbus server is connected to
Speed The baud rate at which the Modbus server runs at
Data Bits This is the data bits that the connection will use. The default value is 8.
Stop Bits This is the stop bits that the connection will use. The default value is 1.
Parity This is the parity that the connection will use. The default value is None.

Once the communication details have been set up, the Modbus map must be created. To add the Modbus map:

  • Click the 'Add' button

The Modbus map editor dialog appears.

Field Description
Address This is the Modbus address of the field as used by the Modbus server.
Field Name This is the name of the field in the flowcomputer.
Field Type The mode selects between using Modbus RTU or Modbus ASCII. Profile always uses Modbus TCP for Ethernet connections.
No. of Bits Number of Bits for the message format
No. of Registers Number of registers stored for a field
Signed Signed format (default is "unsigned")
Reverse Byte Order Message format is in reverse byte order
Reverse Register Order Message format is in reverse register order
Source RTU Retrieve modbus fields map from the selected RTU
Source Field Modbus fields from the source RTU

To add the field to the Modbus map:

  • Click the 'Save' button

To add the field to the Modbus map and proceed with adding the next:

  • Click the 'Save and Next' button

To delete the field from the Modbus map:

  • Highlight the appropriate field then click the 'Delete' button

To cancel the field entry and return to Profile:

  • Click the 'Cancel' button