4 Configuring the device
3.4 Connecting the device
NZM-XMC Measuring and Communication Module
11/16 MN01219001Z-EN
www.eaton.com
21
4 Configuring the device
This chapter applies to all NZM…-XMC-… measuring module devices
equipped with a Modbus interface (i.e. NZM…-XMC-MB… ).
Table 6: Summary of Modbus function codes
The default configuration for addressing the device is as follows:
MODBUS device address: 2
9600 Baud; no parity; 1 Stop bit, 8 data bits
To change these configuration parameters, two registers with function code
16 can be written to address 0. Address 0 is processed as broadcast and
received by all modules. The registers contain the device’s serial number, the
settings for the Modbus address and the Baud rate.
The Modbus address and the data rate take effect immediately on receipt of
the message; the device does not have to be reset.
Table 7: Device configuration data
Function code
Modbus RTU
Description
Supported by
NZM…-XMC-MB…
1
Read multiple coil status
Read variable bit (coils)
yes
2
Read status of several inputs
Read variable bit (inputs)
no
3
Read several holding registers
Read word variables (register)
yes
4
Read multiple input registers
Read word variables (inputs)
no
5
Write individual coils
Write bit variable
yes
6
Write individual registers
Writing of a word variable
no
8
Test loopback diagnostics
(00: response query data)
Connection test
no
15
Write multiple coils
Read multiple bit variables (coils)
no
16
Write multiple registers
Writing multiple word variables (register)
yes
Modbus
Variable
Value range
NZM…-XMC-…
basic devices
NZM-XMC-TC-MB
universal device
3000, 3001
Device serial number
0 - 999999999
0 - 999999999
3002H
1)
Device address
1 - 255
1 - 255
3002L
2)
Baud rate
0: 9600 Bit/s
1: 19200 Bit/s
2: 38400 Bit/s
0: 9600 Bit/s
1: 19200 Bit/s
1) H = High byte
2) L = Low byte
Access as broadcast only (address 0)