Installation and Programming Manual - MEB3 Modbus Plus to Ethernet Bridge
Installation and Programming Manual - MEB3 Modbus Plus to Ethernet Bridge
MEB3
Installation and Programming Manual
iii
8 Modbus Serial Operation.......................................................................... 49
Slave Operation (External Master).......................................................49
Default Modbus Routing Tables.......................................................51
Auto-Fix Modbus Table....................................................................52
Front Panel Edit Modbus Route.......................................................52
Master Operation (External Slave).......................................................52
9 Legacy SY/MAX Operation......................................................................55
Translations...........................................................................................55
Modbus to SY/MAX Translations....................................................55
SY/MAX to Modbus Translations....................................................56
Error Translations.............................................................................56
SY/MAX Serial.....................................................................................57
NET-TO-NET Mode.........................................................................59
SY/MAX Ethernet.................................................................................63
SY/MAX Routing.............................................................................65
PowerLogic Serial Modes.....................................................................69
10 Hot MB+ Operation................................................................................71
Automatic Redundant Operation..........................................................71
Requirements and Restrictions.........................................................71
“Primary” Unit Configuration Procedure.........................................72
“Secondary” Unit Configuration Procedure.....................................73
Example............................................................................................ 74
Reasons for Automatic Switchover.......................................................75
Hot MB+ Statistics and Information Registers.....................................75
Serial Number...................................................................................77
MB+ Global Data............................................................................. 77
Controlled Switchover......................................................................77
11 Front Panel Operation..............................................................................78
Keypad Buttons.....................................................................................78
LCD Screen...........................................................................................78
Backlight...........................................................................................78
Operating Screens................................................................................. 78
Splash Screen....................................................................................78
Main Menu Screen........................................................................... 80
Configuration Menu.............................................................................. 80
Comms Menu Screen....................................................................... 81
Ethernet Configuration Menu...........................................................81
IP Addr Screen..................................................................................82
Subnet Mask Screen.........................................................................82
Default Gate Screen.........................................................................83
IP Source Screen...............................................................................83
Ethernet Protocol Screen.................................................................. 83
Ethernet Drop Screen......................................................................84
Modbus Route Screen.......................................................................85
Contents iv
IP Route Screen................................................................................ 86
Ethernet Mode Screen......................................................................87
Serial Port Menu...............................................................................87
Port 1 Menu......................................................................................88
Modbus Plus Drop Screen................................................................89
Display Edit Screen..........................................................................90
Status Menu Screens.............................................................................90
Stats Screen......................................................................................90
Enet Status Screen............................................................................91
MB+ Status Screen...........................................................................91
App Menu.............................................................................................92
Switch Screen...................................................................................92
Info Menu..............................................................................................93
MAC Address Screen.......................................................................93
Serial Number Screen.......................................................................94
Versions Screen................................................................................94
MB+ Drops Screen...........................................................................94
Enet Drops Screen............................................................................95
System Menu.........................................................................................96
Reboot Screen...................................................................................96
Factory Defaults Screen...................................................................96
Password Screen............................................................................... 97
12 Recommended Cables.............................................................................99
RS-232 Cables.......................................................................................99
MM1 (PC to MEB3).........................................................................99
MM2 (Modicon PLC to MEB3).......................................................99
MM3 (MEB3 to emulate a 9-pin PC port).....................................100
RS-485 Cables.....................................................................................101
MU7 (MEB3 to SY/MAX).............................................................101
MEB3 Master to 4-wire RS-485 Slaves.........................................101
MEB3 to 2-wire RS-485.................................................................102
13 Web Server............................................................................................ 105
First Access......................................................................................... 105
Login...................................................................................................106
Home................................................................................................... 112
Configuration......................................................................................112
Ethernet...........................................................................................112
IP Settings....................................................................................... 113
Ethernet Port Parameters................................................................114
Security........................................................................................... 114
Modbus Routing for Ethernet Port.................................................115
TCP Routing Table.........................................................................118
I/O Scanner..................................................................................... 120
Entries Per Socket......................................................................120
Contents v
Health Block..............................................................................121
I/O Disable Block......................................................................121
Serial Ports..........................................................................................122
Port Parameters...............................................................................122
Serial Port Modbus Routing Table.................................................123
Serial Port Auto Scan......................................................................124
Modbus Plus Port Parameters.........................................................125
Drop...........................................................................................125
On Ethernet................................................................................ 125
Prog. Channel Timeout..............................................................125
Reply Timeout...........................................................................126
Modbus Plus Global Data (MEBII Mode).....................................126
Proxy...................................................................................................127
MEBII Mode..................................................................................127
PLC Proxy Mode............................................................................ 127
Proxy Config..............................................................................128
Proxy Enable.........................................................................128
Proxy Run.............................................................................128
Routing Mode.......................................................................128
Dest IP...................................................................................128
Index.....................................................................................128
Route..................................................................................... 128
PLC Status Timeout (ms)......................................................129
Inputs Timeout (ms)..............................................................129
Comms Loss Action..............................................................129
Status Block.......................................................................... 129
PLC Status Block Addresses.................................................129
Status Freshness TICK..........................................................130
TICK Location......................................................................130
PLC TICK Address...............................................................130
Offset PLC Address..............................................................130
Enable Routing Mode or Enable IP Direct Mode.................131
Global Data................................................................................ 131
Global Data Out....................................................................131
Global Data In.......................................................................132
Specific Out............................................................................... 133
Specific In.................................................................................. 134
Statistics..............................................................................................135
Ethernet Router Stats...................................................................... 136
SY/MAX 802.3 Ethernet Nodes.....................................................138
Serial Port.......................................................................................140
Port 2 Hot Modbus Statistics..........................................................141
Modbus Plus Router.......................................................................142
MB+ Chipset..................................................................................144
Contents vi
Modbus Plus Nodes........................................................................ 145
Module Info....................................................................................146
Config Overview............................................................................ 147
Register Viewer..............................................................................147
MbTCP Logger...............................................................................149
Admin Menu....................................................................................... 151
Set Passwords.................................................................................151
Global Configuration......................................................................152
Configuration Backup....................................................................153
Configuration Restore....................................................................153
Hot Modbus Plus............................................................................154
Firmware Update............................................................................155
Reset to Factory Defaults...............................................................156
14 Utilities.................................................................................................. 159
MBP_EXTRACT.EXE.......................................................................159
Command Line Options.................................................................159
Command line Example.................................................................160
PLC Segments, Structures, and DFBs Added................................161
Configuration Structures................................................................165
QDIO_CONFIG.EXE.........................................................................166
PROXY_EXTRACT.EXE..................................................................168
Contents vii
1 Introduction
The Niobrara MEB3 is a stand-alone DIN rail mount Modbus Plus to Ethernet Bridge. It
features a redundant cable Modbus Plus (MB+) port, one (or two) 10/100BaseTX
Ethernet port, and two isolated serial ports. The MEB3 allows simultaneous pass-through
routing data messages from Modbus/TCP Ethernet, MB+, and Modbus serial between all
ports. Full support of PLC programming message pass-through is also provided on all
communication ports including Control Expert (Unity Pro), Concept, ProWORX, and
Modsoft.
LCD showing
IP Address,
MB+ Node
Keypad
Dual Cable
Modbus Plus
100BaseTX
Ethernet
24VDC
Power
100BaseTX (MEB+201
Ethernet Only)
MEB3 Manual 9
The MEB3 features at least one 100BaseTX Ethernet port that supports Modbus/TCP as
both a client and a server at the same time. The MEB3 can support up to 64 simultaneous
Modbus/TCP connections. A routing table is used to map the incoming Modbus/TCP
Destination Index (Slave Address) from an Ethernet client to a downstream route that
determines where the message is directed. This route may point to a PLC on MB+, a
slave on one of the MEB's serial ports, or even back out the Ethernet port to a different
device. The Ethernet port also supports the older SY/MAX 802.3 protocol for smoothly
integrating legacy Square D Model 650 and 450 PLCs into a Modbus/TCP system.
The MEB3+201 model includes two 100BaseTX Ethernet ports that support Rapid
Spanning Tree Protocol (RSTP) allowing the MEB3 to be used in a copper ring network
for redundant Ethernet cable connections. It may also be used in a daisy-chain Ethernet
network as well.
The Modbus Plus port supports dual-cable redundant MB+ networking but may simply
be used in a single-cable system by leaving one of the ports open. The standard 5-drop
MB+ routing structure is supported allowing full access to MB+ devices on the local
network or through Modicon Bridge Plus and Bridge Mux devices. The MEB3 MB+
port may be used in a “Proxy” mode that allows Modbus Plus messages routed to the
MEB3’s drop number to be sent across a Modbus/TCP socket to a target PLC such as an
M580.
There are two isolated serial ports on the MEB3. Each port may be selected to use its
RJ-45 connector for RS-232 or a removable 5-pin screw connector for RS-485. The
RS-485 port may operate in 4-wire RS-422, 4-wire RS-485, or 2-wire RS-485 modes
with selectable termination and bias. The two serial ports may be independently
configured for one of 18 different protocols including Modbus RTU, Modbus ASCII, and
SY/MAX. The default mode supports Modbus RTU and can dynamically switch between
being a master or a slave.
The MEB3 features a front panel backlit LCD and keypad that may be used for
configuration and troubleshooting. The IP Address, MB+ node address and most serial
port settings may be configured through this interface which may be password protected
to prevent unauthorized changes.
A built-in web server is included in the MEB3. This password protected, AJAX
Javascript enabled server allows two user levels for configuration, backup/restore,
troubleshooting, and even firmware updating – all from a standard web browser.
The MEB3 also includes a “Hot MB+” mode that allows two MEB3 units to work
together to provide an automatic fully redundant primary/standby system for high
availability systems.
Device Mounting/Removal
(1) Hook the top notch on the upper lip of the DIN rail.
(2) Rotate the MEB3 until the lower latches click tight.
(3) Use a screw driver to unclip the lower latches to remove the MEB3 from the DIN
rail.(See Figure 2.1 DIN Rail Mounting and Removal)
DIN Rail
DIN Rail (TS-35)
(TS-35)
Click
MEB3 Manual 11
Power Supply
Connect a suitable 24VDC power to the three position removable connector. The
MEB II requires a 5W minimum supply and will operate on 9-30Vdc but 24Vdc is
recommended. (See Figure 2.2 Power Supply Diagram) An external fuse is
recommended. Typical power supply wire colors are:
• Red = 24Vdc (+)
• Black = 24Vdc (-)
• Green = Earth Ground
DIN Rail
(TS-35)
Fuse
Disconnect
If a fixed address is required, make sure that the IP Source is set to Fixed, then select the
Address page. The and arrows are used to adjust the values while the and
arrows move between fields. The key is used to accept the new value.
The “Autofill IP Tables?” offers the automatic filling of the TCP client table. Each of the
The “Auto Set Default Gate?” applies the new subnet mask to the current IP Address to
preset the Default Gate.
Link/
Activity
LED
Pin 1 100MB
LED
Quantum
NOE
Ethernet
Switch
PC with
Cat5 Ethernet
Cables
The status of the Ethernet port may be inspected through the front panel LCD by
choosing “> Main > Status > Enet >”
NOTE: MEB3+101 will always show “Enet2 Link Down”.
The Ethernet port 1 defaults to “Auto” mode but may be manually set to a fixed 10BaseT
or 100BasetT with fixed Full or Half Duplex operation. Ethernet port 2 (if present) is
always “Auto”.
Daisy-Chain Operation
The MEB3+201 may have its Ethernet ports connected in a Daisy-Chain fashion.
NOTE: Communication to downstream Ethernet devices may be lost if one of the daisy-
chain units fails or loses power.
MEB3 Manual 18
4 Modbus Plus
Modbus Plus Configuration
Setting the Node Number
The Modbus Plus (MB+) node of the MEB3 may be assigned an address between 1 and
64 with a default value of 1. This address must be unique within the local MB+ network
segment. To edit the MB+ drop number choose:
“> Main > Config > Comms > Modbus+ >“
The and arrows are used to adjust the new MB+ drop. The key is used to accept
the new value.
NOTE: If the MEB3 is physically connected to the local MB+ network, it will
automatically skip MB+ drop numbers that are already in use. The drop numbers of the
Ethernet and serial ports will also be skipped if they fall within the valid MB+ range.
After selecting the new MB+ drop number, the screen will change to ask if the user
would like to AutoFix the Routing Tables. Choosing Yes will result in the Modbus
Routing Tables for the Ethernet and serial ports 1and 2 being updated to include the new
drop number of the MB+ port. If No is selected, these tables will not be updated and
many of the routes will not longer work properly – they must then be edited manually.
Next “MBP Proxy” will be prompted. “Disabled” means that the unit will be in MEBII
mode. “Enabled” puts the unit into Proxy mode and then prompts for the IP Address of
the target PLC.
Shield
Pin 1
Data A Data B
Pin 2 Pin 3
The MEB3 includes two MB+ DB9 connectors labeled “A” and “B”. (See Figure 4.3
Modbus Plus Pinout) These ports may be used in a “dual-cable” Modbus Plus network.
This does not mean that the MEB3 has two MB+ nodes, it behaves as a single MB+ node
with two physical network connectors. The dual-cable system uses redundant wiring
between nodes for added network integrity. (See Figure 4.4 Typical Dual-Cable MB+
Connection)
Cable B
Terminator on
End node Terminator on
End node
Cable A
Terminator on
End node
Terminator on
End node
Port B
Not Used
Terminator on
End node
Single-Cable
Terminator on
End node
MB 3 MB 2 MB 1
MB+ 5
MB+ 45
192.168.0.20
192.168.0.25 192.168.0.26
Modbus Plus messages from the Compact 984 will use the routes shown in the following
table to reach each target.
MB 3 MB 2 MB 1
MB+ 5
MB+ 45
Drop 90
192.168.0.20
192.168.0.25 192.168.0.26
RS-232 Ports
RX Pin 1 TX
LED LED
RX
LED
TX Pin 1
LED
The RJ-45 connectors are used for RS-232 operation. The pin configuration is shown in
Table 5.1: RJ45 RS-232 Pinout. The Niobrara MM1 cable is used to connect one of these
ports to the a standard 9-pin serial port on a PC. (See Figure 12.1.: MM1 Serial Cable)
MM1 MM2
Cable Cable
Compact 984
with 9-pin
RS-232
PC with
9-pin
RS-232
RS-485 Ports
Port 1 and 2 may be used for RS-485 (4-wire or 2-wire) and RS-422 operation. A 5-pin
removable screw terminal connector is provided. The pinout is shown in Figure 5.4
RS-485 Port.
(+)
(-) Shield
For 2-wire RS-485 operation, jumper the TX+ to RX+ to make the (+) connection, then
jumper the TX- to RX- to make the (-) connection.
NOTE: Updating firmware in a Hot MB+ must be done through the Web server.
The Primary unit must be updated first. An automatic switchover will occur as the
firmware is updated. After the completion of the update, proceed to update the
new Primary.
The MEB3 can operate as both a Modbus/TCP Server (slave to external masters) and
Client (master to external slaves) at the same time. Up to 64 simultaneous TCP/IP
connections may be made to the MEB3. These connections are dynamically split
between client and server operation.
Server Operation
The MEB3 listens for Modbus/TCP connections on the standard Modbus/TCP port
number of 502. Modbus/TCP commands or queries generated by a client are processed
by the MEB3 by examining the Destination Index (Modbus Slave Address) of the
message.
A look-up table is used to map the Destination Index to a route that tells the MEB3 where
to send the message. This table consists of a column for the Destination Index, a
translation description, and a downstream route. Some of the translation descriptions
allow for remapping of target address space data such as remapping 3x input queries to
4x outputs (with optional offsets).
The example in Figure 7.1 shows a PC connected via Ethernet to an MEB3.
The MEB3's MB+ port is set to drop 45. A Compact 984 PLC is connected to the MB+
network and has a drop of 5. A Bridge Plus is also on the MB+ network and is used to
connect to a Quantum PLC on a second MB+ network at drop 15.
A network of power meters is connected to port 2 (drop 102) of the MEB3. The three
power meters are addressed as Modbus slaves 1, 2, and 3.
Table 7.1 gives a Modbus Routing table for this example. The PC would use index 1 to
communicate with the Compact PLC. Index 2 would access the Quantum PLC. Index 3
will reach power meter #1.
NOTE: Index 0 has a route of NONE. The MEB3 will internally process incoming
Modbus/TCP messages with no route, the special index 255, or any route that doesn't
leave the MEB3. This action may result in unexpected reply data since this data is from
the MEB itself.
MEB3 Manual 37
Figure 7.1 Ethernet Modbus Routing Example
MB 3 MB 2 MB 1
Bridge Plus
MB+ 45
192.168.15.205
MB+ 15
Table 7.2: Default Ethernet Modbus Routing Table for MB+ Drop 1, Port 1 drop 101,
and Port 2 drop 102
Index Type Route
0 OTHER NONE
1 MODBUS 1,1
2 MODBUS 1,2
3 MODBUS 1,3
... MODBUS ...
63 MODBUS 1,63
64 MODBUS 1,64
65 MODBUS 101,1
66 MODBUS 101,2
67 MODBUS 101,3
68 MODBUS 101,4
... MODBUS ...
95 MODBUS 101,31
96 MODBUS 101,32
97 MODBUS 102,1
98 MODBUS 102,2
99 MODBUS 102,3
100 MODBUS 102,4
... MODBUS ...
127 MODBUS 102,31
128 MODBUS 102,32
129 OTHER NONE
Table 7.3: Ethernet Modbus Routing Table for MB+ Drop 25 after Auto-Fix
Index Type Route
0 OTHER NONE
1 MODBUS 25,1
2 MODBUS 25,2
3 MODBUS 25,3
... MODBUS ...
63 MODBUS 25,63
64 MODBUS 25,64
Pressing ENTER button on the TEST field will cause the MEB3 to generate a Modbus
opcode 03 Holding Register read of the target device. The test will report PASS or FAIL
A “Downstream Timeout” is a failure but an Error 01 (Illegal Opcode) or Error 02 (Illegal
Register) are PASS because the target device responded with the error.
Client Operation
The MEB3 may act as a Modbus/TCP Client even while simultaneous Server operations
are occurring. Modbus Plus or serial master devices may generate read or write messages
that are routed out the MEB3's Ethernet port to access remote Servers.
The MEB3 uses a look-up table to map routing drop numbers to TCP/IP addresses. This
table is called the TCP Routing Table. This table consists of a drop number, target IP
Address, and an optional Downstream Route. Messages passing through the MEB3 from
MB+ or the serial ports (or the Ethernet port itself) that are directed out the Ethernet port
are sent to the TCP Routing Table to determine the target device.
Figure 7.5 shows an MEB3 connected to a Compact 984 PLC via Modbus Plus. The
Ethernet port is set to be drop 90 and is connected to a Quantum PLC at IP Address
192.168.15.24 and an M340 PLC at 192.168.15.25 and an M580 at 192.168.15.20. The
M580 is configured in the MEB3 as the Proxy Target.
MB+ 21
MB+ 15 M580
Proxy Target
192.168.15.241 Drop 90 192.168.15.20
Quantum
Server
192.168.15.24
M340
Server
192.168.15.25
NOTE: When the MEB3's Ethernet port is in Modbus+SYMAX mode, the TCP table is
how the unit decides to connect a client message via Modbus/TCP or SY/MAX 802.3. If
the IP Address for a given drop number is 0.0.0.0 then the message is sent out as
SY/MAX 802.3 to that drop number. See Chapter ???.
The MEB3 serial ports can operate as both a Modbus Master and Slave using either
Modbus RTU and Modbus ASCII protocols. The protocol modes are labeled “Modbus
RTU” and “Modbus ASCII”. All Modbus serial modes can dynamically switch between
functioning as a Master or a Slave.
NOTE: The mode “MODBUS HOST” is a version of the RTU mode with special
message translation features.
MEB3 Manual 49
Figure 8.1 Serial Master Modbus Routing Example
MB 3 MB 2 MB 1
D PowerLogic D PowerLogic
D PowerLogic MB+ 6
Power Meter Power Meter
Power Meter
Drop 102
MB+ 5
Bridge Plus
MB+ 45
Drop 90
192.168.15.205
Modbus
Master
MB+ 15
Table 8.2: Default Serial Port Modbus Routing Table for MB+ Drop 1, Port 1 drop 101,
and Port 2 drop 102
Index Type Route for Port 1 Route for Port 2
1 MODBUS 1,1 1,1
2 MODBUS 1,2 1,2
3 MODBUS 1,3 1,3
... MODBUS ... ...
63 MODBUS 1,63 1,63
64 MODBUS 1,64 1,64
65 MODBUS NONE 101,1
66 MODBUS NONE 101,2
67 MODBUS NONE 101,3
68 MODBUS NONE 101,4
... MODBUS NONE ...
95 MODBUS NONE 101,31
96 MODBUS NONE 101,32
97 MODBUS 102,1 NONE
98 MODBUS 102,2 NONE
99 MODBUS 102,3 NONE
100 MODBUS 102,4 NONE
... MODBUS ... NONE
127 MODBUS 102,31 NONE
128 MODBUS 102,32 NONE
Pressing ENTER button on the TEST field will cause the MEB3 to generate a Modbus
opcode 03 Holding Register read of the target device. The test will report PASS or FAIL
A “Downstream Timeout” is a failure but an Error 01 (Illegal Opcode) or Error 02 (Illegal
Register) are PASS because the target device responded with the error.
The MEB3 serial and Ethernet ports can operate in a variety of modes to support legacy
Square D SY/MAX PLCs and older PowerLOGIC meters.
Translations
The MEB3 translates Modbus messages to SY/MAX (and vice versa) as each message
passes through the device. There are two possible translations that can be set by the
“Mode” setting in the Modbus Routing Table.
• Other (SY/MAX Non-Priority)
• SY/MAX Priority - Some SY/MAX devices (such as a NIM) only support
Priority messages.
NOTE: Some Modbus devices may refer to Holding Register 100 as 4x0100, 4:0100,
40100, or 4000100. The 4 at the beginning simply means it is a Holding Register.
Analog Input registers (3x) are shown as 3x0001, 3:0001, 300001, or 300001. Output
coils (0x) may be shown as 0x0025, 0:0025, 25. Input bits (1x) start with a 1 like
1x1234, 1:1234, 11234, or 101234.
NOTE: Some Modbus devices may start at register 0 instead of register 1. (This is
commonly referred as JBUS.) It may be necessary to offset each register number by 1 to
access the proper data.
NOTE: SY/MAX bit numbers are 1 to 16 with bit 1 as the least significant bit. This
manual will note bit references as Sxxxx-yy where xxx is the SY/MAX register number
and yy is the bit number. For example, register 20, bit 14 will be shown as S20-14.
MEB3 Manual 55
though they are Modbus 3x data (read only). The mapping is just like 4x registers
and is simply the target SY/MAX address.
• Coils (0x) - Modbus coils (read/write) may be mapped into SY/MAX registers.
The translation starts as SY/MAX register 1, bit 1 (S1-1) = Modbus coil 0x1. S1-
16 = 0x16. S2-1 = 0x17. The formula to determine the Modbus coil from a
SY/MAX bit is: COIL = ((REG – 1) * 16) + (BIT).
• Input Bits (1x) – Modbus discrete inputs (read only) are mapped exactly the same
as 0x coils.
Incoming Modbus commands (4x, 3x, 1x, 0x) are translated into Non-Priority SY/MAX
Read or Write messages. Coil write messages (FC05 and FC15) are translated as bit-
masked NP writes when possible to allow single SY/MAX bits to be modified.
NOTE: FC15 multiple coil write message may not be able to be processed when the bits
span multiple SY/MAX registers. The SY/MAX bit-masked NP Write message cannot
handle this type of masking operation. The MEB3 will send back a Modbus Exception
code 5 error when this condition occurs.
NOTE: A few SY/MAX end devices (NIMs for example) do not support Non-Priority
messages. In this case, select Priority
Error Translations
Modbus and SY/MAX do not share the same error messages. Table 9.1 shows the
MEB3's translations.
SY/MAX Serial
MEB3 ports 1 and 2 may be configured to SY/MAX mode to directly connect to a
SY/MAX PLC. The RS-485 port is typically used along with the MU7 (MEB3 to
SY/MAX) cable.
Default values for SY/MAX ports are 9600, EVEN, 8, 1, RS-422, and BCC.
The drop number of the SY/MAX mode port will be the last drop of an incoming route
and the first drop of an output TREAD, TWRITE, or TALARM message from the
SY/MAX PLC.
SY/MAX mode ports are full duplex and allow the PLC to be both a master and a slave at
the same time.
Figure 9.1 SY/MAX Serial Routing Example shows a SY/MAX Model 400 PLC
connected with an MU7 cable to the RS-485 port 1 of an MEB3. This port is set to
SY/MAX at drop 101.
An entry in the Ethernet Modbus Routing table must be modified to access the Model
400 PLC. For this example, Entry 1 was chosen since there wasn't a MB+ node 1 and it
would be easy to remember. The new route is shown in Table 9.2: Modbus Routing Table
for Ethernet Port. The type set to OTHER or Priority since this is not a MODBUS target.
A Modbus/TCP client such as the M340 PLC in this example would simply use
Modbus/TCP index 1 to access the SY/MAX PLC.
The Compact PLC can read and write the SY/MAX PLC using MB+ MSTR Read and
Write messages. In this example, the MSTR route would be 5.101.0.0.0 since the
message needs to go out MEB3 port 1. The remote register in the MSTR is simply the
SY/MAX target register.
The SY/MAX PLC may also use TREAD and TWRITE messages to access both the
M340 and Compact PLCs.
The route to the Compact would be 101,5,6 while the route to the M340 would be
101,90,25,1 assuming that the Ethernet port on the MEB3 is set to 90 and TCP table entry
25 has the IP Address of the M340.
MB+ 6
192.168.0.241
192.168.0.25
NET-TO-NET Mode
The MEB3 may be connected to a SY/NET network using the NET-TO-NET mode. This
mode is used to connect the MEB3 to an RS-422 port on a CRM-510 NIM, RS-422 port
on a SY/LINK (SFI-510) PC card, Niobrara SPE4, EPE5, or even MEB modules.
The following rules apply to NET-TO-NET ports:
• Both ports must be set to NET-TO-NET mode. This may involve setting DIP
switches on the NIM.
• Both ports must be set to the same SY/NET drop number. Set the MEB3 port to
match the NIM.
• Both ports must have the same baud rate, parity, data bits, stop bits, and
MB+ 6
192.168.0.241
192.168.0.25
1
7
1 1
8 9
The Modbus/TCP Ethernet routing table shows the Modbus/TCP Index values of 17, 18,
and 19 that will allow clients to access the SY/MAX PLCs.
The Compact PCL can access any of the SY/MAX processors with MSTR routes of
5.117.17 or 5.117.18 or 5.117.119. Notice that the second drop of the MSTR route is
always 117 because it is MEB3 port 1 connected to the NIM.
Any of the SY/MAX PLCs may access devices through the MEB3 with TREAD or
TWRITE messages.
MB+ 5
MB+ 6
192.168.0.241
SY/MAX Drop 21
192.168.0.25
Media
Converter
M650
Drop 22 EPE5
Drop 112
M450
Drop 24
The outbound messages to the M340 PLC have the MEB's Ethernet drop number in the
route twice. The first entry to select the MEB, the next entry to route the message back
out the Ethernet port. The drop following the second entry is the TCP Table entry of the
M340 PLC.
The MEB3 uses the entry in the TCP routing table to decide to send the message out as
Modbus/TCP (entry not 0.0.0.0) or SY/MAX 802.3 (entry is 0.0.0.0).
Port 2
4-wire RS-422
Cable
To MB+ Network
It may be desirable to have an HMI periodically poll the Primary MEB3 to read the state
of the Primary and Secondary units. The serial number of the primary unit may also be
This Global Data may be subscribed to by any PLC on the local MB+ network. Mapping
this data into a PLC allows easy access by an HMI or SCADA that is already polling the
PLC.
Controlled Switchover
It may be desired to periodically trigger a controlled switchover between the two Hot
MB+ units.
A single Modbus write of the special value 43776 (decimal) to register 8092 in the
Primary MEB3 will trigger a “Revert to Secondary” on this unit.
When this command is sent to the Primary MEB3 in a functioning Hot MB+ system, it
will trigger a Hot-Swap. That is, the Primary becomes Secondary and Secondary
becomes Primary. This command will only take effect if the Primary “sees” the
Secondary as being online and fully functional as a standby unit. If the Primary thinks
the Secondary is not able to take over as primary, this command is ignored.
LCD Screen
The MEB3 includes a high resolution LCD screen main screen to assist the user in
configuring and troubleshooting the device. Ethernet, MB+, and serial port parameters
and may be observed and modified. Statistical information is also provided through the
front panel interface.
Backlight
The LCD backlight will illuminate on any button press. The timeout for the backlight is
configured through Modbus drop 255 register 7003 and defaults to 300 seconds.
Operating Screens
Splash Screen
The main page shows the IP Address of the MEB3 and the MB+ node number and status,
and SY/MAX 8023 drop number (if enabled).
Error conditions may be displayed on the splash screen as they occur. Indications for
duplicate IP Address, duplicate SY/MAX 802.3 node, or the various Modbus Plus status
descriptions are shown.
Certain errors will flash the backlight until a key is pressed to draw attention to the
MEB3. A red LED is positioned behind the LCD and will glow red on Proxy error
conditions.
Modbus Plus
Figure 11.1: Splash Screen Node = 21
Proxy PLC in RUN
Normal Operation
Pointer
Configuration Menu
Selecting the Config item leads to the Config menu and a choice of Comms and Display.
The Comms sub-menu moves on to Ethernet, serial port, and MB+ options while the
Display sub-menu allows the user to adjust the screen contrast.
Press Enter
Then prompt for
AutoFill
Default 255.0.0.0
Press Enter
Then prompt for
Auto Set
Now 255.255.255.0 DefaultGate
Now 192.168.1.1
IP Source Screen
The MEB3 may have a fixed IP Address or use BOOTP or DHCP to have its IP settings
configured. The IP Source screen allows the user to configure the appropriate setting.
Use the UP and DOWN buttons to select the setting. DHCP and BOOTP typically
require the server to be configured for the MAC address of the MEB3's Ethernet
port.This MAC address is shown on the screen in hexadecimal (00:20:BD:0C:35:04).
Index = 001
Up/Down to edit Route Up/Down to change,
*** to delete element Enter to exit screen
IP Route Screen
The IP Routing table for the Ethernet port may be edited through the IP Route screen.
This screen shows a single entry from the table with the index on the top line. The cursor
is moved with the left and right arrows. Values are altered with the up/down buttons.
The enter button exits the screen when on the index field.
The enter button on the ZERO field causes the IP Address to be set to 0.0.0.0. This is
handy for zeroing an entry for SY/MAX 802.3 Ethernet entries.
Index = 002
Up/Down to edit Address Up/Down to change,
Left/Right to change field Enter to exit screen
Enter on “AUTO” to
Auto-fill the entry
ZERO – press Enter to
Figure 11.14:IP Route Screen zero the entire entry
The AUTO field sets the entry to the MEB's IP Address with the last octet set to match
the index.
Pressing the Enter button will prompt “Auto-Fix Routing Tables?” Selecting “Yes” will
cause the MEB3 to adjust the Modbus routing tables for both serial ports and the Ethernet
port to replace the first drop in a route that matches the “Current” drop with the “New”
drop.
If Proxy mode is disabled, then after the “Auto-Fix” prompt for enabling Proxy Mode.
• Disabled – MEBII mode is selected.
• Enabled – Proxy mode is selected.
If Proxy mode is Enabled then the user is prompted for the Target PLC IP Address. This
address is edited just like the IP Address front panel screen.
The Proxy Stat page allows the user to place the Proxy Mode into “Config” or “Run”
Stats Screen
Each port has multiple screens to give statistical counters about communication through
the port. LEFT and RIGHT arrows change between ports. UP and DOWN move between
pages for a given port. ENTER returns to the previous menu.
Switch Screen
The Switch screen allows the user to HALT or RUN the MEB3 application. The MEM
PROT setting is ignored at this time and is the same as RUN.
Versions Screen
The Versions menu gives access to the MEB3 firmware, DUCM firmware, and boot
version.
Reboot Screen
This screen allows the user to force a hardware reboot of the MEB3 without physically
removing the power.
RS-232 Cables
MM1 (PC to MEB3)
The Niobrara MM1 cable may be used to connect the MEB3 RS-232 port to a standard
PC 9-pin male port. The pinout is shown in Figure 12.1.: MM1 Serial Cable.
MEB3 Manual 99
Figure 12.2.: MM2 Serial Cable
The MEB3 uses a built-in Web server for remote configuration over the Ethernet
network. This Web server requires the use of Javascript.
First Access
In order to comply with California SB 327, the MEB3 applies a unique password to web
access each time the module is reset to factory defaults. The user may access the
password via the front panel. Use the arrow keys to navigate to Main > System >
Password. The screen will look similar to the screen below:
Note: If the user sets the IP address from the front panel before connecting to a network,
the MEB3 will first ask if the user wants to autofill the TCP table, and will then ask if the
web interface should be enabled. This eliminates the extra steps of also having to repeat
the process above.
Login
After retrieving the default password, open a browser and navigate to the IP address that
has been assigned to the MEB3. The page should appear as below:
Enter the password, then click Submit. Remember to include the dash in the password.
The following page will result:
The MEB3 Web server supports two user access levels: “User” and “Admin”. These
usernames are not changeable and are not case sensitive. “User” provides read-only
access to view the configuration of the MEB3. “Admin” provides full configuration edit
capabilities as well as backup/restore and firmware upgrade. Create passwords for these
levels, and store them. The passwords cannot be retrieved from the MEB3 by any
method. Once the passwords have been set, the screen will show as below:
Once these passwords have been configured, every subsequent login to the MEB3 will be
as follows.
If the “User” account is used and the operator attempts to modify a setting in the MEB3,
a pop-up notification will appear to announce that modifications are not allowed for this
user level. (See Figure 13.7)
AJAX
Comms Status
Menu Tree
Login User ID
The typical web page includes an AJAX status box showing the state of the Javascript
communication between the browser and the MEB3. The background of this box turns
red when comm errors are occurring.
The menu tree may has the following branches: Home, Configuration, Tools, and Admin.
NOTE: Admin is not present when logged in as “user”.
Configuration
The Configuration menu provides access to the settings for Ethernet, Port 1, Port 2, and
Modbus Plus.
Ethernet
There are pages for setting the IP Address, Ethernet Protocol, IP Security, Modbus
Routing, TCP Client Routing, and I/O Scanner.
Security
The Security page allows the user to configure the inbound access control list, or ACL.
The ACL is a list of up to 256 rules that the MEB3 uses to determine if a new incoming
TCP connection will be allowed at the time of its request. This list allows the user to
allow certain IP addresses or groups of addresses. The rules use an IP address and a mask
to create a list of connections that will be allowed. The user can also at any time disable
Figure 13.9: Offset Example shows routing table entries that use offsets. Entries 20 and
21 have the route of 90,20 which point the client back out the Ethernet port to an M580
Drop
The “Drop” number for the Modbus Plus port is restricted to be in the range of 1 through
64 inclusive and must not match any other node number on the local Modbus Plus
network. This drop number must not match the drop number of either serial port or
Ethernet port within the MEB3.
On Ethernet
The “On Ethernet” setting may be used when the Ethernet port is set for “Modbus/TCP &
SY/ENET”. With this setting set to “YES” the MB+ port becomes a virtual SY/ENET
node.
Proxy Enable
Two options for Proxy Enable are “MEBII Mode” and “PLC Proxy Mode”. Setting to
PLC Proxy Mode enables the “PLC Proxy” menu tree.
Proxy Run
• “Config” stops all Proxy Modbus Plus outputs (Global Data and Specific Output).
• “Config” allows editing of all Proxy settings.
• Modbus Plus traffic routed to the MEB3’s drop is routed to the Dest IP target in
both “Config” and “Run” modes.
• “Run” enables Global Data Outputs and Specific Outputs.
• “Run” enables writing of the PLC Status Block and TICK.
Routing Mode
“Direct to Modbus/TCP” routes incoming Modbus Plus messages that terminate in the
MEB3’s drop number to the target PLC on Modbus/TCP Ethernet at “Dest IP” using
“Index”. All Peer Cop read and write messages use this connection. Writing of the PLC
Status Block and TICK use this connection as well as the UMAS query to determine
RUN/STOP status of the target PLC.
“Route” allows the user to define a full 8 drop route to point to the target PLC using
networks other than Ethernet. For example, the target PLC could be connected to one fo
the serial ports of the MEB3. This feature would rarely be used but would be selected by
clicking on the “Enable Routing Mode” button at the bottom of the web page.
Dest IP
The “Dest IP” setting is the IP Address of the target PLC. This value is shown when
“Direct to Modbus/TCP” Routing is selected. This must be a hard-coded IPv4 address.
Index
The “Index” setting is the Modbus/TCP destination index for the target PLC. Normally
this would be set to 0 or 255 if the target is the CPU’s Ethernet port or NOC. Valid values
are 0-255. This value is shown when “Direct to Modbus/TCP” Routing is selected.
Route
The “Route” setting is the comma separated route to the target PLC when “Route”
Routing mode is selected. The route may be up to 8 drops.
Status Block
The status block is a group of 12 16-bit integers that provide a bit-map of the online
status of the Global Inputs, Specific Outputs, and Specific Inputs. Bit 0 of word 0 is the
status of Global Input for Node 1. A bit value of 1 indicates that the Node data is healthy.
The status block is disabled by default.
TICK Location
The TICK work may be “Attached to Status Struct” as the 13 th word of the block or it
may be “Separately Located”. It is recommended that TICK be attached to the Health
Block Structure if possible to minimize the number of messages to be written to the target
PLC.
Global Data
The Global Data page of the Proxy Settings is used to configure both Global Data Output
(Publish) and Global Data Input (Subscribe). These settings may only be modified while
the Proxy is set for “Config”.
Global Data In
The MEB3 may be configured to subscribe to Global Data published by any of the
possible 63 other Modbus Plus nodes on the local network. Each node on the network
may publish up to 32 words of Global Data Output. The MEB3 has the ability to extract
all or part of the Global Data Output from specific nodes and write that data into the
target PLC.
• Dest Ref is the %MW (or %M) starting address in the target PLC.
• Index is the word offset within the block of published Global Data. This setting
may be from 1 to the number of words actually published by the remote node. The
maximum value is 32.
• Word Count is the number of 16-bit words for the subfield. 0 = disabled.
• Bin/BCD is used only for %MW and if set to BCD, the MEB3 converts the BCD
value from the Global Data input to binary before writing to the target PLC.
NOTE: Although each node supports up to 8 subfields of data extraction, keep in mind
that each subfield may result in a separate Modbus/TCP write from the MEB3 to the
target PLC. This multiple subfield configuration made sense on a Quantum PLC where
the CPU MB+ (or NOM) could do direct memory writes at the end of the scan. This is
terribly inefficient when the MEB3 must do multiple Modbus/TCP writes. A better
solution is to do a single subfield of all of the Global Data for a given node and use PLC
code to move subfields within its own memory.
Specific Out
The MEB3 in Proxy mode may publish up to 500 words of data as Specific Outputs onto
Modbus Plus. Each node on the local Modbus Plus network may be a possible target for
Specific Outputs.
• The table includes a row for each Destination Node.
• The source Data Type may be %MW or %M in the source PLC.
• The Source Ref. Is the %MW or %M starting address in the PLC. %M starting
address are not restricted to 16-bit boundaries.
• The maximum number of words for each target node32 is 32.
• If the Source Ref is %MW then the MEB3 may do a BIN/BCD conversion
automatically.
The lower table shows counters for the Modbus/TCP sockets. The MEB3 has 64 sockets
for Modbus/TCP. This pool of sockets is used for both client and server connections.
• The “Address” column is the remote IP Address for the socket. A value of 0.0.0.0
indicates that the socket is not active.
• The “Last Accessed Index” shows the most recent Destination Index (Modbus
Slave) for the socket.
Proxy
Register Viewer
The Register Viewer allows the User or Admin to view/modify register data in a target.
The Target is determined using the Modbus Routing Table Index for the Ethernet Port.
NOTE: The present fimware only allows access to Modbus Index 255 (the MEB3 itself).
Access to 4x (Holding Registers) or 6x (Files) are supported.
Set Passwords
The Set Passwords page allows the Administrator to modify the “Admin” and/or “User”
passwords.
Configuration Restore
The Restore link will allow the Admin to restore a previously saved backup file to the
MEB3. The upper “File Name” selector is for downloading a full .MEB3 backup file. A
complete factory default is done before the restoration is started. All IP settings and
The resulting filename will be “qtest_MBP.ZEF” This file will be opened within UMAC
to generate the M580 zef.
MBP_EXTRACT generates a folder same name as the original filename. Inside this
folder are the MEB3 partial restore configuration files for each of the MEB3s and a few
files for troubleshooting.
For the above example the folder \qtest\ contains the following files:
Directory of C:\Niobrara\MEB3\QTEST
02/21/2025 02:48 PM 24,992 convertnotes.txt
02/21/2025 02:48 PM <DIR> DTM
02/21/2025 02:00 PM 89 DtmAuditRecord.xml
02/21/2025 02:48 PM 942 MEB3_192_168_15_18_Partial_Restore.meb3
02/21/2025 02:48 PM 1,198 MEB3_192_168_15_19_Partial_Restore.meb3
02/21/2025 02:48 PM 4,992 MW_Register_List.txt
02/21/2025 02:00 PM 139,309 orig_unitpro.xef
02/21/2025 02:00 PM 67,604 Project_Definition.xpdf
02/21/2025 02:00 PM 410 props.xml
02/21/2025 02:48 PM 4,242 qbus.txt
02/21/2025 02:48 PM 96,538 unitpro.xef
10 File(s) 340,316 bytes
The Config sections include a DFB for Watchdog operation and if QDIO is present the
section also includes a DFB for each QDIO rack. These configuration sections as well as
the Input_Assign sections for the Global Data In, Specific Data In, and QDIO In are all
added above the original two program sections.
Each segment copies the mailbox data to the original %I, %IW, %M, or %MW location
and does BCD conversion if needed.
Each QDIO rack with input cards will have a section added for assigning the original %I
and %IW data from the rack.
Configuration Structures
Each MEB3 has a configuration structure assigned. This structure is used by the M580
code to send QDIO configuration messages to each rack. It is also used by MBP_MSTR
replacement DFBs for former MB+ read and write messages. If it is necessary to change
the MEB3’s IP address then simply modify the initial value in the structure.
QDIO_CONFIG.EXE
This command line utility may be used to read the running configuration from a QDIO
rack through a MEB3.
In the following example, an MEB3 has been added to a MB+ network consisting of a
Quantum CPU at node 1and three CRA QDIO racks at nodes 2, 3, and 4. The MEB3 is
set to node 5 since that node was not used on the network. The MEB3 is set to IP
Address 192.168.10.5 and is on the same subnet as the PC.
MEB3 #5
192.168.10.5
QDIO
C:\Niobrara\MEB3>qdio_config 192.168.10.5 2
Starting this program will create a text file with the IP Address and Index in the filename.
PROXY_EXTRACT.EXE
This command line utility may be used to read the running configuration from a SE
Proxy and build a full MEB3 configuration file to make a drop-in replacement for the SE
Proxy.
Connect the PC to the Proxy’s Ethernet network. Start the program with the IP Address
of the Proxy.
C:\Niobrara\MEB3>proxy_extract 192.168.15.121
A Modbus/TCP connection is established and the setup of the Proxy is extracted and a
new “_Partial_Restore” setup file for the MEB3 is created. Two additional text files are
created that give a register based and textual description of the Proxy setup.