PiiGAB M-Bus 900 User manual

Manual for PiiGAB Start Kit 3

2
StartKit3.E.1.13
Contents
Introduction .................................................................................................................................................. 3
Requirments.................................................................................................................................................. 3
Optional requirements.............................................................................................................................. 3
Installation and connections......................................................................................................................... 4
PiiGAB 900’s MAC-address and serial number ............................................................................................. 5
Find your PiiGAB 900 on your network......................................................................................................... 5
Change IP-address of your PiiGAB 900 gateway........................................................................................... 7
Alter the IP-configuration for your PiiGAB 900......................................................................................... 7
Verify the PiiGAB 900’s license ..................................................................................................................... 9
Upload CSV-files to the PiiGAB 900 gateway................................................................................................ 9
Configure PiiGAB 900’s master and slave ports..........................................................................................10
Master port .............................................................................................................................................10
Slave port 1 (M-Bus communication) ..................................................................................................... 10
Slave port 2 (Modbus communication) .................................................................................................. 11
Slave port 3 (M-Bus ASCII) ...................................................................................................................... 11
PiiGAB M-Bus Setup Wizard –M-Bus communication ...............................................................................12
M-Bus communication with PiiGAB 900 gateway ..................................................................................13
Read PiiGAB 900 primary and secondary addresses ..........................................................................13
Read M-Bus voltage and M-Bus current from PiiGAB 900 .................................................................14
M-Bus communication with RELAY PadPulse M2...................................................................................15
Change primary address of PadPulse M2 ........................................................................................... 16
Read both primary and secondary address from RELAY PadPulseM2 ............................................... 17
Further RELAY PadPulse M2 configuration.........................................................................................17
PiiGAB Explorer / M-Bus OPC-server –M-Bus communication.................................................................. 18
Try the StartKit3 example project in PiiGAB Explorer.............................................................................18
PiiGAB 900’s internal meter.................................................................................................................... 19
Monitor the internal meter.................................................................................................................19
Data inside the internal meter............................................................................................................ 20
Modbus registers and Modbus register list ........................................................................................ 20
RELAY’s PadPulse M2.............................................................................................................................. 21
Monitor one of the pulse meters........................................................................................................21
Data inside PadPulse M2.....................................................................................................................22

3
StartKit3.E.1.13
Modbus registers and Modbus register list ........................................................................................ 22
PiiGAB M-Bus Setup Wizard –Modbus communication ............................................................................23
PiiGAB 900’s internal meter over Modbus ............................................................................................. 24
PiiGAB 900’s internal meter over Modbus with string data types .........................................................25
RELAY’s PadPulse M2 over Modbus........................................................................................................26
PiiGAB M-Bus Setup Wizard –M-Bus ASCII communication ......................................................................27
PiiGAB 900’s internal meter over M-Bus ASCII ....................................................................................... 28
M-Bus-ASCII tag file.................................................................................................................................29
Introduction
This document will describe how to configure PiiGAB Start Kit 3 with PiiGAB 900 and RELAY PadPulse M2
communicating over M-Bus, Modbus and M-Bus ASCII communication.
Requirments
One PiiGAB 900 gateway
One RELAY PadPulse M2 gateway
One 24VAC or 24VDC power supply
A local area network (LAN) with DHCP
PiiGAB M-Bus Setup Wizard 3.1.0 or later
PiiGAB Explorer / M-Bus OPC-server
PiiGAB StartKit3.zip
Optional requirements
RELAY’s Tools and Docs CD

4
StartKit3.E.1.13
Installation and connections
1. Install PiiGAB M-Bus Setup Wizard
2. Install PiiGAB Explorer
3. Extract PiiGAB StartKit3.zip to a local folder
4. Connect PiiGAB 900 gateway to the LAN
5. Make sure your computer is connected to the same LAN
6. Connect PiiGAB 900 gateway to a 24V AC or DC power supply
7. Connect PadPulse M2 to the PiiGAB 900 gateway, see picture below
8. Turn the power supply on
9. Wait for PiiGAB 900’s Pwr LED to go steady red

5
StartKit3.E.1.13
PiiGAB 900’s MAC-address and serial number
On the right gable of the PiiGAB 900 you’ll find a label containing MAC-address and serial number of
your PiiGAB 900. You can use these to identify your PiiGAB 900 with PiiGAB M-Bus Setup software.
The MAC-address starts with E8-99-5A
The serial number starts with 167
Find your PiiGAB 900 on your network
1. Start PiiGAB M-Bus Setup Wizard and go to the main menu
2. Select Find gateways on your network
3. Press Next to continue
4. Your PiiGAB 900 gateway should be listed
5. Find your PiiGAB 900 by the MAC-address or the serial number
6. Select your PiiGAB 900 gateway and press Next

6
StartKit3.E.1.13
7. When ask to start the web interface for your PiiGAB 900 gateway- press Yes to do so
8. You might need to specify a username and password. If these settings has not been changed,
the defaults are:
Username: Admin
Password: Admin
This picture shows the main page of a PiiGAB 900 V2 web interface

7
StartKit3.E.1.13
Change IP-address of your PiiGAB 900 gateway
In case you don’t have a network with DHCP you can also address your PiiGAB 900 with a static IP-
address. For this you also need to set your computer to a static IP-address.
Note: For this setup you might need to have a cross-over Ethernet cable between your computer and
the PiiGAB 900 gateway. To be safe you can use a network switch between your computer and your
PiiGAB 900 gateway.
This feature is only supported from PiiGAB 900 V2 and PiiGAB M-Bus Setup Wizard 3.1.0.
Alter the IP-configuration for your PiiGAB 900
1. Set your computer to a static IP-address
2. Exit and restart PiiGAB M-Bus Setup Wizard and go to the main menu
3. Select Change gateway IP-settings
4. Press Next to continue
5. Select Setup IP using network (UDP broadcast)
6. In the MAC-address field specify the PiiGAB 900 gateway’s MAC-address
7. Press Next to continue

8
StartKit3.E.1.13
8. Select Use the following IP-address
9. Specify the IP-configuration you which the PiiGAB 900 gateway should have to match your
computer’s IP-address
10. Press Next to continue
11. Press Apply to set the IP-configuration
12. Wait for the PiiGAB 900 gateway to reboot
13. Press Next to continue
14. Go back to Find your PiiGAB 900 on your network section and see if you can find your PiiGAB 900
gateway with the IP-address you specified

9
StartKit3.E.1.13
Verify the PiiGAB 900’s license
You might want to check the PiiGAB 900’s license to see what protocols can be used and how many
clients you may use.
1. In the web interface, click on Administration in the left panel
2. Find the License field
This license enables
20 M-Bus loads
4 client
1 Modbus client for either TCP or RTU
1 M-Bus ASCII client
Upload CSV-files to the PiiGAB 900 gateway
1. In the web interface, click on Configuration in the left panel
2. Find the Upload CSV-file field
3. Press the Browse button
4. Upload these two files from the local folder
PiiGABStartKit3.csv
PiiGABStartKit3_Mbus2Modbus.csv

10
StartKit3.E.1.13
Configure PiiGAB 900’s master and slave ports
This section describes how the PiiGAB 900 should be configured for M-Bus, Modbus and M-Bus ASCII.
Master port
1. In the web interface, click on Configuration in the left panel
2. Click on Master Port and configure it with these settings
Slave port 1 (M-Bus communication)
1. In the web interface, click on Configuration in the left panel
2. Click on Slave Port 1 and configure it with these settings for M-Bus communication

11
StartKit3.E.1.13
Slave port 2 (Modbus communication)
1. In the web interface, click on Configuration in the left panel
2. Click on Slave Port 2 and configure it with these settings for Modbus communication
Note:
You can ignore this section if you don’t have a PiiGAB 900 licensed for Modbus.
Slave port 3 (M-Bus ASCII)
1. In the web interface, click on Configuration in the left panel
2. Click on Slave Port 3 and configure it with these settings for M-Bus ASCII communication.
Note:
You can ignore this section if you don’t have a PiiGAB 900 licensed for M-Bus ASCII.
If you don’t have a PiiGAB 900 configured for four clients, you can use slave port 1 or slave port 2
instead.

12
StartKit3.E.1.13
PiiGAB M-Bus Setup Wizard –M-Bus communication
This section will use PiiGAB M-Bus Setup Wizard to verify if the PiiGAB 900 and RELAY PadPulse M2
responses over M-Bus communication.
1. In the main menu select Test, search and configure meters
2. Press Next to continue
3. Select Connect using network and configure the connection as shown in the picture below
Note: Your PiiGAB 900’s IP-address may not be 192.168.10.183. PiiGAB M-Bus Setup Wizard only fill in
the IP-address automatically as you selected in Find your PiiGAB 900 on your network, step 6.
4. Click Next to continue

13
StartKit3.E.1.13
M-Bus communication with PiiGAB 900 gateway
PiiGAB 900 gateway contains of an internal M-Bus meter which can be used to read the M-Bus voltage
and M-Bus current on the M-Bus loop. This test will read from the internal M-Bus meter.
Read PiiGAB 900 primary and secondary addresses
1. Configure these options as seen in the picture below
2. Press the Find button
By using primary address 251 the PiiGAB 900’s primary address and entire secondary address are
display in PiiGAB M-Bus Setup Wizard.

14
StartKit3.E.1.13
Read M-Bus voltage and M-Bus current from PiiGAB 900
1. Configure these options as seen in the picture below
2. Press the Read button
Besides providing the user with the raw data package of the M-Bus response from the PiiGAB 900
gateway, the M-Bus voltage and M-Bus current are displayed.
Note: The feature to display M-Bus voltage and M-Bus current is only supported from PiiGAB 900 V2
and PiiGAB M-Bus Setup Wizard 3.1.0.

15
StartKit3.E.1.13
M-Bus communication with RELAY PadPulse M2
RELAY’s PadPulse M2 can handle two pulse meters. Both pulse meters have their own M-Bus
connection. By default, according to EN13757, both M-Bus connections have primary address set to 0.
The image above displays the search window in PiiGAB M-Bus Setup Wizard. You can use it to search M-
bus meters on the M-Bus loop.
In the image above you can see that the PadPulse M2 has two primary addresses both set to 0.
Part of the Identify value can also be found inside the PadPulse M2 itself.

16
StartKit3.E.1.13
Change primary address of PadPulse M2
To start communicating with both pulse meter, one of them must have their primary address changed.
When changing the primary address on one of the pulse meter, the other one will remain on primary
address 0.
1. Configure these options as seen in the picture below
2. Press the Set button to change the primary address on one of the pulse meters

17
StartKit3.E.1.13
The picture above shows that one of the pulse meter now has 1 as primary address.
Read both primary and secondary address from RELAY PadPulseM2
1. Configure PiiGAB M-Bus Setup Wizard as one of the images under
2. Press the Find button to test primary address 0 or 1
3. Try both primary address and make sure there is a working connection to both of them
Further RELAY PadPulse M2 configuration
To further configure RELAY’s PadPulse M2 you’ll require their configuration software MBConf. Please
also see the manual for the PadPulse M2 how configure it. You can find both the manual and the
software in the RELAY’s Tools and Docs CD.

18
StartKit3.E.1.13
PiiGAB Explorer / M-Bus OPC-server –M-Bus communication
When the M-Bus communication is confirmed with PiiGAB M-Bus Setup Wizard, you may use PiiGAB
Explorer to see what is possible to read from the PiiGAB 900 gateway and RELAY’s PadPulse M2. You can
also use PiiGAB Explorer’s built in OPC-client to read the values from the internal meter in the PiiGAB
900 gateway as well as the information in RELAY’s PadPulse M2.
Try the StartKit3 example project in PiiGAB Explorer
1. Start PiiGAB Explorer
2. Go to File menu and press the Open button
3. Browse to the local folder and open PiiGABStartKit3.xml
4. Go to File menu and press Set As Active Project
This will set the PiiGABStartKit3.xml as the active project for the OPC-server. You may look around in this
project and see a default configuration of PiiGAB 900’s internal meter and RELAY’s PadPulse M2.
For instance look at the configuration for each meter in the project:
Internal PiiGAB 900’s internal meter for M-bus voltage and M-Bus current
PadPuls M2 P1 RELAY’s PadPulse M2 pulse meter with primary address 0
PadPuls M2 P2 RELAY’s PadPulse M2 pulse meter with primary address 1

19
StartKit3.E.1.13
PiiGAB 900’s internal meter
PiiGAB 900’s internal meter can be used to retrieve the identification (serial number), M-Bus voltage, M-
Bus current and also error status information.
Monitor the internal meter
1. Click the Internal node in PiiGAB Explorers tree structure
2. Press the Start Monitor button or go to Tools and press Start monitor
3. Wait for the Quality field to change to Good
4. Press the Stop Monitor button or go to Tools and press Stop monitor to terminate the
monitor function
5. Wait for the server to properly terminate

20
StartKit3.E.1.13
Data inside the internal meter
Here is a list of what to read from the internal meter
Note: Tags with (ASCII) in their name can be used with M-Bus ASCII. If you have a Modbus client which
supports strings you may use these tags as well.
Modbus registers and Modbus register list
For the internal meter in PiiGAB 900 there are Modbus registers bound to each OPC-tag. The
configuration of the Modbus registers can only be altered from this point. They will not affect the other
meters’ Modbus registers. But if not correctly configured the Modbus register may overlap each other.
Please see the Modbus register list function in PiiGAB Explorer to verify Modbus register don’t overlap if
you change them.
1. Go to Tools menu
2. Press Modbus Register List
Name
Data type
Scaled
by
Description
Modbus
Start
#
Characters
ID
VT_I4
PiiGAB 900’s S/N
N/A
N/A
N/A
Voltage
VT_R4
0,1
Voltage on M-Bus loop
N/A
N/A
N/A
Current
VT_R4
0,1
Current on M-Bus loop
N/A
N/A
N/A
Error
VT_I4
PiiGAB 900 error status
N/A
N/A
N/A
ID (Modbus)
VT_I4
PiiGAB 900’s S/N
0
2
N/A
Voltage (Modbus)
VT_R4
0,1
Voltage on M-Bus loop
2
2
N/A
Current (Modbus)
VT_R4
0,1
Current on M-Bus loop
4
2
N/A
Error (Modbus)
VT_I4
PiiGAB 900 error status
6
2
N/A
ID (ASCII)
VT_BSTR
PiiGAB 900’s S/N
8
4
8
Voltage (ASCII)
VT_BSTR
0,1
Voltage on M-Bus loop
12
2
4
Current (ASCII)
VT_BSTR
0,1
Current on M-Bus loop
14
2
4
Error (ASCI))
VT_BSTR
PiiGAB 900 error status
16
5
10
Table of contents
Other PiiGAB Gateway manuals