background image

 

 
 

 

 
 

 
 

 
 
 

Description 

User Manual 

 
 
 

From Version: 
System  

2016-09-12 

M-Bus Hub 

2.02.02 

 

www.PiiGAB.com 

PiiGAB M-Bus 900S/T 

Summary of Contents for M-Bus 900S

Page 1: ...Description User Manual From Version System 2016 09 12 M Bus Hub 2 02 02 www PiiGAB com PiiGAB M Bus 900S T ...

Page 2: ...417 55 Göteborg Sweden Phone 46 0 31 55 99 77 All rights reserved PiiGAB are registered trademark of Processinformation i Göteborg AB Microsoft and Windows are either trademarks or registered trademarks of Microsoft Cooperation in the United States and other countries All other trademarks are the property of their respective owners ...

Page 3: ...85 PLINT 8 10 7 3 4 RS232 PLINT 11 13 7 3 5 M BUS SLAVE PLINT 15 18 8 3 6 POWER PLINT 19 21 8 3 7 ETHERNET 8 3 8 M BUS MASTER PLINT 22 29 9 THE INTERNAL M BUS METER 10 4 1 1 Simple version 10 4 1 2 Writing 11 GET STARTED STEP BY STEP 12 5 1 IMPORTANT INFORMATION 12 5 1 1 Hardware address 12 5 1 2 IP address 13 5 1 3 TCP UDP 13 5 1 4 Port number 13 5 1 5 Factory settings 13 5 2 USING PIIGAB M BUS S...

Page 4: ...US 35 6 9 1 Digital I O and Relay 35 6 9 2 M Bus Master Output 35 6 9 3 RS 485 Failsafe 35 6 9 4 Temperature and Error 36 6 10 DOCUMENTS 36 COMMUNICATION WITH THE METERS 37 7 1 TESTING WITH THE PIIGAB M BUS 900S T AS AN M BUS METER 37 7 2 COMMUNICATION TIPS 38 7 2 1 Correct baud rate 38 7 2 2 The meter s board rate settings 38 7 2 3 Supplier specific configuration software 38 7 2 4 Parameter setti...

Page 5: ...ster Timeout 55 9 2 2 Slave Timeout 55 9 2 3 Slave Timeout MBus2Modbus and M Bus ASCII 56 9 2 4 Defrag Timeout 56 9 3 DRAWINGS 57 9 4 DETAILED TELEGRAM INFORMATION FOR THE INTERNAL METER 58 9 4 1 Read command REQ_UD2 58 9 4 2 Response from PiiGAB M Bus 900S T 58 9 4 3 Write to the relay output 60 9 4 4 Writing passed 60 9 4 5 Reset command SND_NKE 61 9 4 6 Reset passed 61 9 4 7 Application reset 6...

Page 6: ...r from different clients and sending files to a database etc 1 3 Advantages and possibilities The possibility to choose between TCP IP or UDP IP The gateway can be used with a fixed or a dynamic IP number It is not dependent on any specific operating system which means it can be used with both Linux and Windows There is a possibility to use password protection to prohibit unauthorized to change th...

Page 7: ...tion 1 Relay NO Relay output normally open 2 Relay COM Relay output 3 Relay NC Relay output normally closed 4 DI1 Digital input 1 5 DI1 Digital input 1 6 DI2 Digital input 2 7 DI2 Digital input 2 8 RS485 A Connection for RS485 9 RS485 B Connection for RS485 10 R485 GND Connection for RS485 GND 11 RS232 Rx Connection for RS232 Rx 12 RS232 Tx Connection for RS232 Tx 13 RS232 GND Connection for RS232...

Page 8: ...Connection Term Description 19 24 V AC DC 24V AC power alternatively 24V DC plus side 20 24 V AC DC 24V AC power alternatively 24V DC minus side 21 GND Connect to decrease potential disturbances Connection Term Description 22 M Bus Master Connection to the M Bus loop 1 23 M Bus Master Connection to the M Bus loop 1 24 M Bus Master Connection to the M Bus loop 2 25 M Bus Master Connection to the M ...

Page 9: ...s turned on Flashes red at a fast rate when there is a short circuit on the M Bus loop Flashes slowly orange when the loop is overloaded Flashes slowly orange when the license key is not installed C1 No function in existing version C2 Modbus2MBus Tx C3 Modbus2MBus Rx M Tx Flashes when the Master port sends data M Rx Flashes when the Master port receives data P1 Rx Flashes when Slave port 1 receive...

Page 10: ...P1 Rx is flashing fast and then hold down the button again In the event of pushing the button whilst it is flashing fast you will automatically restart the PiiGAB M Bus 900S T If you don t push whilst the light is flashing nothing will occur The table below describe the functions of the button Table 2 2 Term Action Description Restart Push the button 1 time and wait for the P1 Tx led to flash quic...

Page 11: ...so be read via the internal M Bus meter inside the PiiGAB M Bus 900S To activate the relay use the write function for the internal M Bus meter in PiiGAB M Bus 900S Read more When there is no voltage the relay will be as shown in the position below 3 1 1 Connection relay Figure 3 2 3 2 Digital inputs plint 4 7 PiiGAB M Bus 900S contains two different digital inputs Adequate usage can be for digital...

Page 12: ...t is ESD protected up to 15kV and is completely galvanic isolated from the earth feed Figure 3 5 On plint 10 there is an earth connection that can be used as a reference point if the units connected have that requirement This earth connection is completely galvanic isolated from the earth feed Figure 3 6 See also the description about Failsafe for RS485 in chapter 9 1 4 1 3 4 RS232 plint 11 13 The...

Page 13: ...load 1 2 mA The configuration of the inputs is made via the web interface Figure 3 8 The slave inputs is working with communication speed 300 2400 and 9600 baud 3 6 Power plint 19 21 Figure 3 9 Table 3 1 3 7 Ethernet The Ethernet connection is a standard RJ45 contact Figure 3 10 Ethernet connection 100MBit Connector type RJ45 Figure 3 11 Plint No Name Description 19 24 V AC DC Supply voltage 24V A...

Page 14: ...n also read out the voltage or current on the bus via the internal M Bus meter inside the PiiGAB M Bus 900S T In the PiiGAB M Bus 900S T the different master outputs can be turned on or off via the web interface See the below picture It can be found under base configuration in the web interface By turning off an output there is no voltage on this partial loop The purpose of the function is to be a...

Page 15: ... influence the built in relay 4 1 1 Simple version Table 4 1 Data record No Datatype Description 1 BCD8 Identification number 2 Int16 The M Bus net s voltage V 0 1 3 Int16 The M Bus net s current consumption mA 0 1 4 Int32 Error flags Bit 0 Master overload Bit 1 Master short circuit 5 Int8 Digital input 1 6 Int8 Digital input 2 7 Int8 Relay status 8 Int16 Temperature on the M Bus driver card 9 Int...

Page 16: ...2 Writing By writing down to the PiiGAB M Bus 900S with a standard M Bus write command the relay can be set to ON OFF For details please read more here The below picture for the PiiGAB Explorer M Bus OPC Server shows the configuration of the writing process Figure 4 1 ...

Page 17: ... the power on the PiiGAB M Bus 900 and wait for about a minute The unit should now receive a random IP address within 192 168 10 3 192 168 10 253 Start Restart the Wizard and click on Change gateway IP settings click Next Write the MAC address for your PiiGAB M Bus 900 Click Next Write your preferred IP address Click Next Click Apply The PiiGAB M Bus 900 will now restart Netmask and Gateway is set...

Page 18: ...n your network and it has to be in the same subnet as your PC 5 1 3 TCP UDP To communicate with the superior software you have to choose between TCP or UDP For your client connection this can be found under respective Slave Port Default settings is the same as factory settings 5 1 4 Port number In order to communicate with the gateway the port numbers need to be set The default setting in the gate...

Page 19: ...ress is set on the gateway and if this is outside the allowed IP address range it will be marked red However it is not possible to find the gateway if it is connected to a subnet From version 3 1 0 of the M Bus Wizard it is possible to change the IP address on the M Bus PiiGAB 900S T by using the gateways MAC address However you cannot change the netmask and gateway via the Wizard This includes al...

Page 20: ...T H E M O D E R M B U S T E C H N O L O Y 15 Version E 3 01 00 Settings and Parameter description 6 1 Configuration Figure 6 1 Chapter 6 ...

Page 21: ...is between 192 168 10 3 192 168 10 253 The gateway needs to be restarted in order to retry to receive an IP address from the DHCP server This is done by going to the Administration page and push Reboot or disconnect the power to the gateway The DNS server is not set at randomized IP Random IP is only an option if you need to set the PiiGAB M Bus 900S T and do not have access to a DHCP server 6 1 3...

Page 22: ...tead of IP address for example se pool ntp org Example 2 If the additional application QuickPost is installed and shall send data to the servers ftp minftpserver se or http minhttppostserver se Example 3 If a PiiGAB 810 is being used as an M Bus master instead of the masterport on the PiiGAB M Bus 900 and has the hostname min810 greenenergy se then the hostname should be used instead of the IP add...

Page 23: ...e PiiGAB website 6 1 5 2 MBusHub Version MBusHub is the program that handles all the communication with the different ports such as the Master Port and Slave Ports The program also handles the parts pertaining to M Bus Switch Modbus and M Bus ASCII The latest version can be downloaded from the PiiGAB website 6 1 5 3 Upload Download Remove CSV XML File If you are using the gateway with Modbus M Bus...

Page 24: ...19 Version E 3 01 00 6 1 7 RS 485 Failsafe PiiGAB M Bus 900S has built in Failsafe resistors Read the detailed description here Figure 6 6 6 1 8 Restart MBusHub If needed you can restart the MBusHub part by pushing the Restart button Figure 6 7 ...

Page 25: ...the gateway a flashing light on the M leds Tx Rx indicate the master traffic The first choice to be made is whether to run it serial or via the UDP TCP on the master port 6 2 1 Type Serial If serial communication is chosen the following parameters will be eligible Table 6 2 6 2 1 1 Com port The setting M Bus master for Com port sends traffic to the internal built in M Bus master 6 2 1 2 Baud rate ...

Page 26: ...t Timeout ms Reconnect s Protocol UDP TCP xxx xxx xxx xxx xxxx 2000 1000 M Bus 6 2 2 1 Remote IP address and Port With a specific IP address and port number for Remote IP the traffic will be sent to the desired address on the network It can for example be an M Bus master that you want to share meters with 6 2 2 2 Timeout ms Timeout is set to 2000ms and can be changed freely This parameter controls...

Page 27: ...rding to the M Bus standard used for intelligent M Bus masters The address can be changed by writing in a new primary address between 0 250 in the field myprimaryaddress 6 2 3 2 Switchblocktime The parameter switchblocktime controls the exchange between the different slave ports to the master port When the meter has left an answer the Pi 900S T switchblocktime is waiting for a new question to the ...

Page 28: ...ays set to 2000 ms and can be changed freely This parameter controls how long the slave port should wait for an answer from the Master Port The Slave timeout should always be higher than the master timeout For MBusHub version 2 01 01 and higher it is automatically set to master timeout 100ms in case it is set to a lower value 6 3 1 3 Protocol The slave protocols you can currently choose between ar...

Page 29: ...otocols are controlled by the license key 6 3 3 M Bus ASCII options For an extensive description of the M Bus ASCII protocol please see separate document 6 3 3 1 stationid The parameter stationid is the unit s internal address when using RS485 multidrop communication Stationid is described as ADR address in the M Bus ASCII protocol description Stationid has no function when using UDP or TCP commun...

Page 30: ... 0 in a Modbus message is MSB It is most logical to interpret all multi register datatypes as Big Endian but some producers have chosen to write the registers as Little Endian register data The parameter floatmode reverses the byte in R4 in the following way Mode 0 Byte order 3 2 1 0 LE M Bus to BE Modbus most common and follow the Modbus standard Mode 1 Byte order 0 1 2 3 LE M Bus to LE Modbus is...

Page 31: ...10 6 4 1 Configuration File Figure 6 11 6 4 1 1 Show Configuration Files PiiGAB M Bus 900S T has a number of different configuration files where all the settings are saved By first choosing a file via the dropdown menu and then press the Show button you can see the settings in respective file ...

Page 32: ...r back up file from here Be aware not to mix your back up files from different PiiGAB M Bus 900S T as that can lead to that the license needs to be reinstalled separately 6 4 2 Update Software Figure 6 12 6 4 2 1 Install firmware Software This is where you update the software for the PiiGAB M Bus 900S T if required Current versions are available on the PiiGAB website 6 4 3 Security Change Password...

Page 33: ...k Show License String your license string will show in the field Update License We save all delivered license strings in a traceable database however if there is any doubt about the installed license you can always email this to us at PiiGAB We then can read its content and compare it to the delivered license string 6 4 4 3 Update License To update the gateway you will have to copy your new licens...

Page 34: ...ays be exact Manual configuration If there is not an NTP server on the network the local time will be set manually for the current time zone By setting the clock manually the internal clock of the PiiGAB M Bus 900 will be activated real time clock The internal clock has a super capacitor backup which makes it keep the set time for up to three 24 hour periods if you lose voltage The processor reads...

Page 35: ...l synchronize with the time in the NTP server If there isn t an NTP server connected the real time clock will be the ruling one In the internal log file see chapter 6 5 the current software clock is used If for instance a time zone is set that time in the log file will be adjusted to the time zone If the QuickPost program module is used the time in its log files will always be according to GMT UTC...

Page 36: ...en configured in the unit When maximal storage space has been reached the logging will stop To set the storage space to zero again click Clear In the current version this is not available unless the storage space is full 6 5 1 Logging messages Table 6 8 Loggings message Description Other SlavePort X In protocol In data from connected client and information about protocol SlavePort X Out Out data t...

Page 37: ...o big for the buffer MasterTimeout returned X Master timeout but an unknown return value Should normally not could happen Master Que post not corresponding while a Master Timeout Master timeout without any slave port is waiting Should normally not could happen ChoosePacket for external Meters returned X If an impossible value is coming from ChoosePacket Should normally not could happen ChoosePacke...

Page 38: ...T H E M O D E R M B U S T E C H N O L O Y 33 Version E 3 01 00 6 6 Basic Settings Figure 6 18 6 6 1 Default Settings Figure 6 19 ...

Page 39: ... option is available for customers that have a well protected network including many different units connected in that network In this event it would be close to impossible to keep track of all the passwords for the staff on site Figure 6 20 6 7 Modbus2MBus Modbus2MBus is an additional software application that makes it possible to read Modbus meters and other Modbus units via the M Bus client By ...

Page 40: ...ation of status from the system and I O signals Figure 6 21 6 9 1 Digital I O and Relay The status for digital inputs and for the relay is shown below Figure 6 22 6 9 2 M Bus Master Output The status for the four M Bus outputs is shown below Figure 6 23 6 9 3 RS 485 Failsafe The status for the RS485 Failsafe status is shown below Figure 6 24 ...

Page 41: ...eratures of the M Bus driver board and on the 40V DC7DC converter is shown below A summary of error flags can also be found Figure 6 25 6 10 Documents Starting with PiiGAB M Bus 900S this manual can be found stored in your unit You can also connect to our webserver for the latest version Figure 6 26 ...

Page 42: ...lt UDP port 10001 M Bus 4 Start your PiiGAB M Bus Setup Wizard and find your PiiGAB M Bus 900S T on the network 5 Choose Test search and configure meter with M Bus Choose the port number 10001 and UDP 6 Set Primary address to 251 which is the internal meter in the PiiGAB M Bus 900S T Alternatively you can use secondary addressing If so type in the manufacturing number xxxxxxxx which can be found t...

Page 43: ...keep in mind A few key points to keep in mind concerning the communication between the meter and the superior software 7 2 4 1 Time interval between the questions Since the M Bus protocol is a slow protocol the questions shouldn t be asked too often to the meters 7 2 4 2 The number of telegrams that can be read out from the meter If you have a meter that contains many telegrams a so called multi t...

Page 44: ...te folder on your computer and open the file Install the program by double clicking on the Setup files or via the control panel After the program has been installed you can start it by choosing the program in the start menu If the installation has been done with the basic settings the program can be found in the PiiGAB folder The first time you start the program you have to choose your preferred l...

Page 45: ...rd to find the gateway and this could be due to the fact that it s on a subnet Contact your network provider for more information Figure 8 2 Figure 8 3 The gateways found on the network will be displayed equivalently to the list above Look under Type to see if it is a PiiGAB M Bus 810 or a PiiGAB M Bus 900 that has been found Under Identity you can read out the serial number of the current PiiGAB ...

Page 46: ...ow text will appear Figure 8 5 If you choose Yes your standard web browser will start and if you choose no you will continue to work in the PiiGAB M Bus Setup Wizard 8 3 Web interface When you know the IP number of the PiiGAB M Bus 900S T you can open your web browser manually and type in the gateway s IP number This will get you to the web interface on the gateway A detailed description can be fo...

Page 47: ...PiiGAB M Bus 900 via the PiiGAB M Bus Setup Wizard as well as the Web interface Notice that PiiGAB M Bus Setup Wizard doesn t support settings and changing of the netmask and gateway in PiiGAB M Bus 900S T Figure 8 7 Click Next to choose connection method In the PiiGAB M Bus 900 it is only possible to set network parameters via IP Figure 8 8 ...

Page 48: ...T H E M O D E R M B U S T E C H N O L O Y 43 Version E 3 01 00 Set an IP address statically Figure 8 9 Click Next to confirm Set an IP address dynamically Figure 8 10 Click Next to confirm ...

Page 49: ...D E R M B U S T E C H N O L O Y 44 Version E 3 01 00 By clicking Apply the IP Settings will be updated Figure 8 11 The figure below shows that the IP settings for the dynamic IP address have succeeded Figure 8 12 ...

Page 50: ...S T E C H N O L O Y 45 Version E 3 01 00 If the addressing should fail make a new trial as the figure below is showing Notice that PiiGAB M Bus 900S T has no support for setting the IP address via the serial port Figure 8 13 ...

Page 51: ... you have chosen to Ping gateway from the main menu Type in the IP address you want to control on the gateway and choose Ping If the earlier steps in wizard have been done correctly the IP address will appear in this window Figure 8 15 If you establish contact using the Ping command the above communication result will show Click Next to continue ...

Page 52: ...SND_NKE question in order to test the communication as well as to reset the meter to be able to read the first telegram Figure 8 16 Figure 8 17 This choice presents the meter s primary and secondary address If you don t know which address the meter has used choose test and diagnose and you will receive information on both the primary and secondary address Observe that the test and diagnostics func...

Page 53: ...Figure 8 18 Above is an example of when the meter responds Figure 8 19 Via the PiiGAB M Bus Setup Wizard it is also a possibility to change the meter s primary address Some meter brands don t support the option to change the primary address with an M Bus command Some meters demand it to be in some kind of service mode Check with the meter manufacturer for specifics ...

Page 54: ...s respond faster than the M Bus standard claims so sometimes you will not receive the message although it has been successfully updated If that is the case try to test at the new baud rate to see if the meter has been updated It is very important to do a test read on the new baud rate no matter what since some meters change back to the original baud rate if no reading has been done Figure 8 21 Her...

Page 55: ...ke this including voltage and current on the M Bus network Figure 8 23 Some meters use Application reset instead of or in combination with SND_NKE in order to reset the meter to be able to read the first telegram In some cases a sub code is needed together with Application reset which also can be chosen with the Wizard ...

Page 56: ...s sent to read out the meter information Some meter do not like to first get a SND_NKE and directly after that a REQ_UD2 therefore you can cancel the SND_NKE question The search will then take a little longer since a timeout is required between each question To make the search more effective you can set the interval of the primary address if you know that your meters should be within a certain are...

Page 57: ... called binary tree is used This can partly be followed in the search window Figure 8 25 8 7 4 Step by step instruction for secondary address search Finding M Bus meters on the M Bus loop using secondary addressing 1 Specify the baud rate on the M Bus loop 2 Specify if necessary your own search pattern for secondary addressing 3 Click Start search ...

Page 58: ...C Dimension BxHxD 107 6 x 90 x 62 2 mm Weight 230 g Protection type IP 20 Emission EN 50 022 class B radiation EN 50 022 class B conducted Immission EN 61 000 4 2 EN 61 000 4 6 ENV 50 140 ENV 50 240 IEC 1000 4 2 9 1 2 Specification relay Contact material Ag Rated load 1A at 30VDC Break capacity 1A Max voltage 30V DC Max current 1A 9 1 3 Specification digital input Internal load 5 6kOhm 0 signal vo...

Page 59: ...will be connected until they are turned off via the web interface By using a Failsafe resistance the current usage is increased which reduces the number of units on the bus PiiGAB M Bus 900S is using a RS485 implementation that does not require Failsafe However some units on the bus could need Failsafe resistor Please check this with the product supplier 9 1 5 Specification RS232 Communication spe...

Page 60: ...us telegram can be maximum 261 byte long Table 9 1 Baudrate bits second Telegram size Number of byte x 11 bits baudrate extra time Timeout Time in s ms 300 baud 261 byte 261x11 300 0 5s 10s 10000ms 2400 baud 261 byte 261x11 2400 0 5s 1 7s 1700ms 9600 baud 261 byte 261x11 9600 0 5s 0 8s 800ms Data collected from the Masterport is send directly to the requested client from the slave port 9 2 2 Slave...

Page 61: ...re clients 9 2 3 Slave Timeout for MBus2Modbus and M Bus ASCII If the application MBus2Modbus or M Bus ASCII is used the user needs to be aware of the entire message meaning all telegrams from the meter When these applications are used we recommend to only read one telegram from the meter 9 2 4 Defrag Timeout Defrag Timeout is set to 50mS by default Defrag Timeout is the time between two packets o...

Page 62: ...T H E M O D E R M B U S T E C H N O L O Y 57 Version E 3 01 00 9 3 Drawings Figure 9 1 Cabinet Dimension and tolerance in accordance with DIN43880 Outer measurements B x H x D 107 6 x 90 x 62 2 mm ...

Page 63: ...9 4 2 Response from PiiGAB M Bus 900S T Table 9 4 Byte No Size byte Value Hex Description 1 1 68 Start character 2 1 3E L field 3 1 3E L field 4 1 68 Start character 5 1 08 C field RSP_UD 6 1 xx A field address default 0xFB 7 1 72 CI field variable data structure LSB first 8 11 4 xxxxxxxx Identification number 8 BCD digits 12 13 2 2941 Manufacturer PII PiiGAB 14 1 03 Version 15 1 31 Medium 31 Comm...

Page 64: ...er short circuit Object 5 Digital input 1 43 1 01 DIF size 8 bits integer 44 1 FD VIF extension VIF code 45 1 1B VIFE Digital input binary 46 1 0000 000x Digital input Bit 0 0 Off 1 On Object 6 Digital input 2 47 1 01 DIF size 8 bits integer 48 1 FD VIF extension VIF code 49 1 1B VIFE Digital input binary 50 1 0000 000x Digital input Bit 0 0 Off 1 On Object 7 Relay status Writeable 51 1 01 DIF siz...

Page 65: ...e relay output Table 9 5 9 4 4 Writing passed Table 9 6 Byte No Size byte Value Hex Description 1 1 E5 Transmission passed Byte No Size byte Value Hex Description 1 1 68 Start character 2 1 07 L field 3 1 07 L field 4 1 68 Start character 5 1 53 73 C field SND_UD 6 1 xx A field address Default 251 Hex FB 7 1 51 CI field send data LSB first 8 1 01 DIF size 8 bits integer 9 1 FF VIF next byte is man...

Page 66: ... 6 Reset passed Table 9 8 Byte No Size byte Value Hex Description 1 1 E5 Transmission passed 9 4 7 Application reset Table 9 9 Byte No Size byte Value Hex Description 1 1 68 Start character 2 1 03 L field 3 1 03 L field 4 1 68 Start character 5 1 53 73 C field SND_UD 6 1 xx A field address Default 251 Hex FD 7 1 50 CI field 8 1 xx CS checksum 9 1 16 End character 9 4 8 Application reset passed Tab...

Page 67: ...com Distributors Please contact our distributors in respective countries Germany Relay GmbH Stettiner Str 38 33106 Paderborn Germany Phone 49 5251 17670 www relay de Norway Autic Systems AS Stoltenbergs gate 48 3110 Tønsberg Norway Phone 47 33 30 09 50 www autic no Czech Republic Papouch s r o Strasnicka 3164 1a 102 00 PRAGUE 10 Czech Republic Phone 420 267 314 267 www papouch com ...

Page 68: ...cription 2 01 01 First version 2 01 01 1 Chapter 5 is completed with PiiGAB M Bus 900 telegram structure Chapter 7 is new 2 01 01 2 New address plus some small adjustments 3 00 01 First version PiiGAB M Bus 900S 3 00 02 Information about firewall hardware warranty 3 01 00 Information about PiiGAB M Bus 900T ...

Reviews: