NOTE: This
document shows how to set up a simple two-master to one-slave Modbus
configuration using the Digi One RealPort IA. Although this
document deals with Modbus., the
Digi One RealPort IA provides support for various other IA protocols such as
DF1, Compoway/F, FINS, and Hostlink. Please
consult Digi documentation for details on which protocols provide multi-master
support.
Modbus Master-Slave Relationship:
First, in Modbus, each master
has a corresponding slave:
In some cases a device can act
as a master. For example a PLC
could be a slave to another master PLC. Modbus/TCP
maintains this relationship. If two
device servers are used to tunnel Modbus over Ethernet, the following
relationship applies:
Notice that a master always
communicates to a slave.
What is Multimaster and why would I need it?
The diagrams above show a
single master to single slave relationship.
Digi’s multi-master implementation allows two (or more) host devices, or
masters, to communicate with one or more slaves at the same time.
Generally when one host is connected to a device, the port is locked and must be
disconnected before another host can communicate with the device.
Digi’s multi-master
configuration allows
the device server to act like a traffic cop by allowing traffic from multiple
hosts to communicate with the slave device.
This is a special feature not found in other product lines.
FOR EXAMPLE: When
monitoring a PLC using HMI software, which requests data periodically through
the Digi One IA, the PLC program occasionally needs to be updated. Often an
engineer in a different area does the update. Now, the PLC configuration can be
updated without needing to take down the connection to the HMI software.
How does Multimaster work?
Let’s first take a look at a
sample multi-master setup:
The Digi One IA slave
understands how to “queue” queries and responses in the correct order.
This is the order taken in the diagram above:
1.
PC sends a query (#1) to the PLC.
2.
Digi One IA accepts and forwards query #1 to the PLC
3.
HMI Panel sends a query (#2) to the PLC.
4.
Digi One IA holds the query #2 from the HMI Panel.
5.
PLC responds to query #1 from the PC.
6.
Digi One IA returns response #1 to the PC.
7.
Digi One IA releases query #2 and forwards it to the PLC.
8.
PLC responds to query #2 from the HMI.
9.
Digi One IA returns response #2 to the HMI.
Using Digi One IA as Either Master and/or Slave:
Unlike the PC shown above,
some masters may not have Modbus/TCP or even Ethernet capabilities.
A Digi One IA can be used as a Master in this case as shown in the
diagram above.
The HMI Panel (which could be
any Modbus serial master device) has a serial port, but not Ethernet.
In this case a Digi device server is used to “convert” serial to
Ethernet. If both (or all) masters are Ethernet based, the slave setup is
still identical to this example.
You
now have an idea how multi-master works. Let’s
take it a step further with a real example using the diagram above.
Setup the Digi Device Servers:
This example steps though
setting up the Digi One IA in a simple multi-master configuration.
NOTE: Refer to the Digi
Configuration and Administration Guide for more details.
First, you must assign the
Digi devices IP addresses. There
are several ways to accomplish this:
- Digi
Port Authority Remote
- DHCP
or RARP
- ARP/Ping
- Command
line via the serial port
Digi Port Authority Remote
comes on the Access Resource CD. It's
discovery tool is the easiest way to assign the Digi One IA an IP address.
Digi Port Authority Remote is also a great tool for troubleshooting
and diagnostics. To assign an IP
address:
- Load
Digi Port Authority Remote from the Access Resource CD or it can be downloaded from
http://supportold.digi.com
- Start
Digi Port Authority Remote by going to Start>Programs>Digi>Digi
Port Authority Remote.
- Make
sure ADDP is selected as the Discovery Protocol.
- Click
Discover.
- One
of two things will happen next, depending on configuration:
- If
the Digi One IA cannot find a DHCP server and the unit has never been
used, which means the Digi should have an IP of 0.0.0.0., a box indicating
that an IP Address has not been assigned to the Digi One IA device will appear.
At this time you can assign an IP address, subnet mask and default
gateway.

- Digi
Port Authority Remote will discover all configured Digi devices on the
local network and list their IP addresses as in the window below:

From this screen you can select the
appropriate device and then click Configure to open a browser
window for further configuration or you can select Monitor to
monitor the device.
Configuring the Slave (PLC) Side (10.10.11.48):
3.
Select Setup Wizards > Industrial Protocols > Next.
Configuring the Digi One IA Master Unit:
Test the Units:
Multimaster – Multi-slave Configuration:
Slave Configuration:
Digi One IA Master Configuration: