Home

Description of the M-BUS Protocol

image

Contents

1. 13 9 2 List of parameters characteristic to Calec 14 10 Troubleshooting 2 traseras roa teenies KY SR GG RYRPA X RISE DIRAS IEFRRRRIGEFISRRGAIFSRRROIXSRX4GIR Za EEia 18 2 AQUAMETRO AG aqua AAA M Bus Protocol Vol 01 E M Bus References Bibliography 10 EN 1434 3 11 MBUS48 actual document of the M Bus User Group 11 November 1998 available for download from WWW M BUS COM Glossary and abbreviati ons M Bus Meter Bus as defined in the EN 1434 AMBUS AMBUS is the name of Aquametro s M Bus product line M Bus low level M Bus commands specigfic to Aquametro products the symbol is followed by hexadecimal number AQUAMETRO AG Vol 01 E M Bus Protocol AAA M Bus 1 Foreword This document explains how to read the main parameters from AQUAMETRO meters by the M Bus interface or CALEC s optical interface The latter uses the M Bus protocol but not its physical interface The aim of this document is to describe the access to the parameters for AMTRON AMBUS IS AS and CALEC it is however not an exhaustive description of all the possibilities of communication with AQUAMETRO meters It is assumed that the reader is familia with the basics of M Bus communication described in EN 1434 and the document of the M Bus User Group 2 The M Bus n
2. M Bus Protocol Vol 01 E M Bus Sales Information Description of the M BUS Protocol Calec AMTRON and AMBUS Product Family Copyright 1999 All Rights reserved Aquametro AG Ringstrasse 75 CH 4106 Therwil Tel 41 61 725 11 22 info aquametro ch VD 3 166a e 07 1999 Vol 01 E M Bus Protocol a M Bus Table of Contents IrijxoRenlclicme 2 Iseferences iE Me EE M Uude II EE mE EE 3 1 FOreword SNR denies snes aves SRRRIARR 4 2 The M Bus network GRAN UAR 4 3 The basis of M Bus 4 4 General structure of the SND UD and RSP UD data strings 5 4 4 General str clUr eee cocoa vec pay E EPI dime uide e eeu 5 e 5 4 2
3. FD 58 16 REQ_UD2 SM 68 38 38 68 08 C8 72 09 31 54 03 B4 05 0 04 C9 10 FF 03 22 9A 00 00 05 2E A0 C8 51 46 05 3E B4 E3 D7 42 05 5B 90 D3 07 43 05 5F 0 AA E7 41 05 63 9C BC 05 42 04 60 10 09 05 C5 77 16 The above RSP_UD data string which contains neither DIFEs nor VIFEs decodes as follows Bus number 200 manufacturer s number 03543109 It concerns a option Tariff VER 10110000b There is no alarm state but the lock bit is not set STAT 00010000b Hours in service coded in binary in bytes DIF VIF 03 22 154 00009 Power in kW coded in floating point DIF VIF 05 2E 13426 2 Flow rate in m3 h coded in floating point 107 945 Warm side temperature in bytes 4307D390 coded in floating point 135 82 Cold side temperature 28 95 Temperature difference 106 87 Date time coded with F format 5 May 96 09h 16 mn T Readout of AMBUS AS AMBUS AS is nothing else than an AMBUS IS Its particular application justifies its special name its role is not to count pulses but to transmit a binary state Typical application remote alarm control The reading of the state uses a low level data string see sections 5 1 and 5 5 with the following f ormat MS 68 18 18 68 53 ADR 51 AD4 AD3 AD2 AD1 B4 05 FF FF FF FF FF FF 0F 00 00 10 01 CHK 16 SM 68 13 13 68 08 ADR 72 AD4 AD3 AD2
4. 11 1F 08 91 9F 88 40 11 1F 08 91 9F 3C 88 10 11 1F 48 6C 6D 48 00 0F 48 80 8 3B C8 40 00 0F 48 00 0F 3C C8 10 00 0F C8 40 10 1F 88 01 6C 6D 88 01 00 0F 88 01 80 8F 3B 88 41 00 0F 88 01 00 0F 3C 88 11 00 0F 88 41 10 1F 08 20 23 08 28 37 88 40 28 37 08 38 47 88 40 38 47 08 58 5B 58 58 5B 08 5C 5F 58 5C 5F 08 60 63 58 60 63 08 6C 6D 08 78 08 7A 08 FD 11 08 00 08 80 3B 08 10 08 90 3B 88 40 00 Slave gt Master 04 VIF1 04 VIF1 3B 84 40 VIF1 04 VIF1 3C 84 10 VIF1 04 VIF2 04 VIF2 3B 84 40 VIF2 04 VIF2 3C 84 10 VIF2 42 6C 44 VIF1 44 VIF1 3B CA 40 VIF1 44 VIF1 3C C410 VIF1 CA 40 VIF2 82 01 6C 84 01 VIF1 84 01 VIF1 3B 84 41 VIF1 84 01 VIF1 3C 84 11 VIF1 84 41 VIF2 03 22 05 2E 85 40 2E 05 3E 85 40 3E 05 5B 55 5B 05 5F 55 5F 05 63 55 63 04 6D 0C 78 01 OD FD 11 0 28 06 VIF3 06 VIF3 3B 06 VIF4 06 VIF4 3B 86 40 VIF3 DRH o o 11 12 12 12 12 12 12 11 12 12 12 12 12 13 12 13 12 44 Remark see VIF1 see VIF1 see VIF1 see VIF1 see VIF1 see VIF2 see VIF2 see VIF2 see VIF2 see VIF2 type VIF1 VIF1 VIF1 VIF1 VIF1 VIF2 1 type 2 2 2 2 2 2 VIF2 2 binary 24 float kW float kW float m3 h float m3 h
5. MJ Standard resolution V 0 1 m Standard resolution IS 0 number without units Pulse value IS E 1 kWh 1 MJ 6E VIF6 float 86 8E Table 1 AQUAMETRO AG M Bus Protocol Vol 01 E M Bus VIF3 value 48 bit number High resolution E 0 001 Wh 1 mWh 1 J High resolution V 0 001 I High resolution IS 0 does not apply VIF4 value 48 bit number 10 DIF VIF of the AMTRON family up to FW 17 and 20 13 Vol 01 E M Bus M Bus Protocol 9 2 List of parameters characteristic to Calec MB Parameter Energy 1 Pos energy BDE Energy 2 Neg energy BDE Energy 2 DTF Volume 1 Pos Volume BDV Volume 2 Neg Volume BDV Volume 2 DTF Billing date 1 E1 Billing date 1 E Billing date 1 E2 Billing date 1 E Billing date 1 E2 Billing date 1 V2 Billing date 1 Billing date 2 E1 Billing date 2 E Billing date 2 E2 Billing date 2 E Billing date 2 E2 DTF Billing date 2 V2 Billing date 2 Operating hours Power Power 2 Flow rate Flow rate 2 Supply temperature Peak supply temperature Return temperature Peak return temperature Delta T Peak Delta T Date Time Secondary adress Prim ry adress Comment Energie1 high res Energie high res BDE Volume high res Volume high res BDE Energie2 high res 14 Data selectionl Master gt Slave 08 01 0F 08 81 8F 3B 88 40 01 0F 08 81 8F 3C 88 10 01 0F 08
6. SND UD data string although the standard does not impose this distinction e Selecting parameters that a slave shall send when instructed to do so REQ_UD2 Writing a parameter or reconfiguring a meter e g changing primary address adjusting the time e Changing baud rate e Sending specific data to the manufacturer of the slave 5 2 Selection of parameters Each block of data selects a parameter but none of these blocks contains actual data DIF is of the form X8 select for reading Lists of DIF VIF for each parameter are given in section 9 columns master slave 6 AQUAMETRO AG M Bus Protocol Vol 01 E M Bus It is possible to select a complete group of parameters with DIF 08 VIF 7E The contents of this group depends on the meter Example The master informs the meter no 56342211 that it will require data on totalized energy and volume Section 6 describes how reading of data is actually done MS 68 13 13 68 53 FD 51 11 22 34 56 B4 05 FF FF FF FF FF 08 06 08 15 3C 16 SM E5 Acknowledge 5 3 Writing replacing a parameter Considered here is how a parameter is written to the slave e g date and time primary address The parameter is transmitted by the master in a data block in the body of a SND UD data string This block has the same structure as the block returned by the slave in a UD data string when this parameter is read Note
7. float C 3 float C 3 float K type F BCD 8 binary 8 ASCII see VIF3 see VIF3 see VIF4 see VIF4 see VIF3 0 0 x x K x K X x KKK KK x Kx KK x KKK KK XK X Xxx x x KK KK KKK KKK KK X Kx KX KK AQUAMETRO AG Sas M Bus Protocol Parameter Data selection Slave gt Master Remark Master gt Slave length M Energie high res 08 80 3C 06 VIF3 3C see VIF3 BDE Energie2 high res 88 10 00 86 10 VIF3 see VIF3 DTF Volume2 high res 88 40 10 86 40 4 see VIF4 Volume high res 08 90 3C 06 4 3C see VIF4 BDE Volume2 high res 88 10 10 86 10 VIF4 see VIF4 DTF Pulse value 1 08 90 9 28 059328 Pulse value 2 08 90 9 29 059329 Logger period Day 08 FD 27 01 FD 27 Integration period 08 FO F3 27 01 F127 Min History 1 C8 01 7E C2 01 6C History 2 88 02 7E 82 02 6C History 3 C8027E C2 02 6C History 4 88 03 7E 82 03 6C History 5 C803 C2 036C History 6 88 04 7E 82 04 6C History 7 C804 7E C2 04 6C History 8 88 05 7E 82 05 6C History 9 C8 05 7E C2 05 6 History 10 88 06 7E 82 06 6 History 11 C8 06 7E C2 06 6C History 12 88 07 7E 82 07 6 History 13 C807 7E C2 07 6 History 14 88 08 7E 82
8. point addressing sending first a SND UD is unnecessary If no parameter has been explicitly selected in a SND UD communication the slave will send at minimum the contents of its energy counter The receipt of a REQ_UD2 provokes a response from the slave in the form of a data string of type RSP UD in which the requested parameters are coded see the following section 6 2 The RSP UD data string With this type of data string Respond with User Data see general structure in section 4 the slave sends its data 6 2 1 First part of data string In the first part of the string the first 19 bytes the slave states its identity bus and series numbers manufacturer s code type of meter and status e Bus number and series number see section 4 e Manufacturer s code 05B4 AQUAMETRO see section 4 Meter type This is coded in the byte VER see section 4 For AMTRON this byte starts with 00 MSB for SAPHIR with 01 and for CALEC MB with 10 Contact Aquametro for more detailed information 8 AQUAMETRO AG aqua RE Vol 01 E SSS M Bus Protocol M Bus Status The byte STAT see ction 4 gives information on the state of alarms and the status of the lock bit Coding of this byte is particular to Aquametro in respect to the framework proposed by EN1434 bits 0 and 1 reserved bit 2 weight 4 Power alarm under or over powered bit 3 weight 8 Hardware error bit 4 weight 16 1 if the lock
9. signals weak amplitude for the AMBUS RS232 that are too weak Try on different computer or replace passive interface to function properly the serial card 20 The RS232 cable is not good To connect using RS232 an AMBUS to the DB9 input of a computer a modem type cable is needed where th e 9 poles male and female are connected one to one AQUAMETRO AG 19
10. 08 6C History 15 C808 7E C2 08 6C Access number 08 FD 08 03 FD 08 Status Tariff input 88 10 FD 30 81 10 FD 30 Cumulated tariff time 88 10 FD 31 33 83 10 FD 32 Firmware version 08 FDOE 01 FD OE 08 FD 17 02 FD 17 08 FD 18 02 FD 18 Manufaturing date 08 FD 0B 02 FD K Faktor 11 08 80 8F 33 05 83 33 Total 77 Parameters Table 2 General DIF VIF for the CALEC family float 1 float 1 binary 8 binary 8 BOR x x x Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array Logger array binary 24 Bit weight 2 binary 24 binary 8 binary 16 binary 16 type G kWh m K 9 XA MOX OX X X OX X OX OX OX KK KK X XO OX KK KKK KKK KK X X OX X X X OX X X OX OX KK XO KK KK KKK KKK KK X X KK KK KKK KKK KK x KK KK KKK KKK KK M OUO o TDW Q WWW o oo o WwW o o x KK OX OX 0X OX OX OX OX OX OX OX OX OX OX KK KKK XxX XxX d c E d X Standard parameters if no data are selected 7 May also be activated by M gt S 48 7E 2 May also be activated by M gt S 88 017E May also be activated by M gt S 58 7E 0 Firware Version 106 and higher 9 k factor only for input 1 ik factor for input 2 can not be read AQUAMETRO AG Vol 01 E M Bus Protocol a M Bus Structure of a logger array only if logger
11. 1 Definition of the G format coding the 6 4 2 2 Definition of the F format coding the date and time sss eene nennen nennen 6 42 8 The JEEES2 format pirine etit nt HERE RANT REEF SER ARE gedaan 6 5 Applications of the SND UD data string 6 5 1 General structure of the SND UD data string m emen nennen nnne nnne nens 6 5 1 1 Methods of addressing et IRR ERE LAN YEE A SAN VERE Ene NEP 6 5 1 2 Usages of the SND UD data STNG uir du nta ur HER Y ERR HEAR xx HAE Xx Fa ER HERR ERR PER NEL 6 5 2 Selection of parameters steer tee eu RI eM E DUI 6 5 3 Writing replacing a 7 5 4 Changing the Daud ri I RE 7 5 5 The low level communication 8 6 Reading a meter eie si cca buuss anna nannan DRY BAR PAAR IRARIARSIARRIARSSAARSRRRRPIRURACSRXRARR RR 8 6 1 The REO UDZ Ep 8 6 2 The RSF UD data string 8
12. 28 37 55 2E Flow rate 08 38 47 05 3E Peak flow rate 58 38 47 55 3E Supply temperature 08 58 5B 05 5B Return temperature 08 5C 5F 05 5F 08 60 63 05 63 08 6C 6D 04 6D 08 78 OC 78 08 7A 01 7A 08 00 06 VIF3 28 00 26 VIF3 06 VIF4 see VIF1 see VIF1 see VIF2 see VIF5 type F VIF1 VIF1 VIF2 VIF5 binary 24 float kW float kW float m3 h float m3 h 2 float C float C float K type F BCD 8 digits binary 8 see VIF3 see VIF3 see VIF4 X X X gt lt cd EE MR XX OX X X X X KK OK OK XX OX X X X X KK xXx xxx XX OX X X X KK KK OK 0 900000000055 05 CU000000 0 0 X X OX X XX X X KK X Pulse value volume 08 90 9 38 059338 float 1 Pulse value energy 08 80 8 38 05 VIF6 38 float kWh Total 25 parameters X Standard parameters if no data are selected The billing date in the AMTRON family contains date and time information For setting june 1st as the billing date may 30th 23 59 must be programmed May be reset by low level code The comment field can not be read out like in the CALEC Firmware 9 and higher Caution VIFE hex 38 wrong should be hex 28 Ccorrected in Firmware 17 and higher Any VIF 7E on version 15 and higher Firmware 20 and higher 2 3 4 5 6 12 AQUAMETRO AG Standard resolution E VIF1 before a 24 bit number 06 VIF2 24 bit number 15 VIF5 24 bit number 1 kWh 1
13. 6 21 First part of data stg ie tdt E T 8 6 2 2 Second part of data 2 es vou Uds v eeu da veas vu duce vas vues e Ta vi ess du caer antes 9 EIC mm 9 7 Readout of AMBUS AS era rrrtte eda ERR REPE NPaKR 9 8 Configuration modifications oi ayuu ucc m cO s ERAI IIIa RR Ico 10 8 1 Allocation of a bus address a aa i 10 8 2 Reading writing of identification text CALEC MB 10 8 3 cq E m 10 8 4 Relay programming Calec MB only non exhaustive 11 8 5 Programming of analogue outputs Calec MB 11 9 List of par metef rete rte neni ea E ska RR ERR Y XR MRRRURXRRRURR KR RRER EXE UR ERRERRRESENEDSR RATRMRRRRKXRRRRRRERRERRAKXREES 12 9 1 List of parameters for Amtron N Amtron NW Saphir N AMBUS IS eene 12 Table 1 DIF VIF of the AMTRON family up to FW 17 and 20
14. 8 17 17 68 53 ADR 51 4 AD3 AD2 01 4 05 FF FF FF FF FF FF 0F 03 OFFS2 24 PARM8 PARM7 PARM6 5 2 16 SM Calec MB answer not described here The bytes ADR AD1 AD4 CHK and CHK2 are described in section 4 OFFS 9 Output number 1 OFFS2 9 Output number 1 5 PARM1 PARM4 code the lower threshold as a floating point number format IEEE 32 bits 5 8 code the upper threshold as a floating point number format IEEE 32 bits FCT analogue output function ams _ ed Power 0 20 mA The 4 20mA option corresponds to FCT E1 AQUAMETRO AG 11 aqua Vol 01 E RA M Bus Protocol 9 List of parameters The lists below are not exhaustive Among those not mentioned are parameters that are only of interest in particular applications factor date of manufacture ma sking alarms Others exist only in special configurations Cold version BDE DTF In such cases the appropriate lists will be included in a technical note 9 1 List of parameters for Amtron N Amtron NW Saphir N AMBUS IS Parameter Data selectionl Slave gt Master DRH Remark RW Master gt Slave length 08 01 0F 03 VIF1 28 01 0F 23 VF1 08 11 1F 03 VIF2 08 6E 03 VIF5 48 6C 6D 42 6D 48 00 0F 43 VIF1 68 00 0F 63 VIF1 Billing date volume 48 10 1F 43 VIF2 Billing date pulses 48 6E 43 VIF5 Operating hours 08 20 23 03 22 Power 08 28 37 05 2E Peak Power 58
15. AD1 B4 05 VER MED ACC STAT SIG1 SIG2 0F 00 10 PORTA CHK 16 AQUAMETRO AG 9 Vol 01 E M Bus Protocol a M Bus The state is in the MS bit of the PORTA byte 0 means that input NAMUR is not active I 1mA 1 means that the input is active I 2mA 8 Configuration modifications 8 1 Allocation of a bus address Before installation into a network all meters have the same primary addr ess 0 factory configuration which poses no problem if secondary addressing is used For communications using the primary address bus number however the devices cannot all be connected to the network for they all have the same bus number The allocation of a bus number is achieved either with a point to point link or by secondary addressing using a SND UD data string with DIF 01 VIF 7A followed by a byte that encodes in binary the new bus number Example Allocating the bus number 65 41 to a C alec MB using point to point addressing MS 68 12 12 68 53 51 FF FF FF 584 05 FF FF FF FF FF FF 01 7A 41 0D 16 point to point protocol SM E5 Acknowledge MS 10 5B FD 58 16 verification SM 68 LL LL 68 08 41 72 replies with its new bus address 8 2 Reading writing of identification text CALEC MB only M Bus reading of identification text max 40 characters is only possible with F W version 102 or upwards writing only with version 103 or upwards The characters ASCII coded are se
16. When the slave has received the command it replies with 5 ACK which signifies simply that the data string has been received and that its syntax is correct but not necessarily that it has executed the required command It is therefore desirable to explicitly verify that the comm and has been carried out Example The master sets the date and time VIF 6D of a meter with bus number 34 to 22 May 96 10 48 see section 4 2 on how the date and time are coded with format F MS 68 15 15 68 53 22 51 FF FF FF 4 05 FF FF FF FF FF 04 6D 30 0A 16 C5 FB 16 SM E5 Acknowledge MS 68 11 11 68 53 22 51 FF FF FF FF B4 05 FF FF FF FF FF FF 08 6C E9 16 Optional as a control Selection of the Time Date parameter SM E5 Acknowledge MS 10 5 22 70 16 Optional as a control REQ_UD2 see section 6 SM 68 15 15 68 08 22 72 09 31 54 03 B4 05 0 04 07 98 FF FF 04 60 31 0A 16 C5 8E 16 22 05 96 10 49 OK 54 Changing the baud rate The standard baud rate is 2400 baud It is possible to modify this by replacing the BYTE byte of a SND UD data string the value 51 with e 588 for communications at 300 baud BB for communications at 2400 baud BD for communications at 9600 baud Although it is possible to issue a baud rate change command in just any SND_UD data string it should be done specifically with one of the four modes of addres
17. aditional representation i e the byte for the expon ent is placed last See example in section 6 2 3 5 Applications of the SND_UD data string 5 1 General structure of the SND_UD data string This data string Send User Data is sent by the master to the slave The addressed slave replies with an ACK single byte E5 signifying receipt of the data string and that its syntax was correct It does not necessarily mean that the command was correctly executed The 6 bytes VER SIG2 are fixed at FF 5 1 1 Methods of addressing e Primary addressing ADR s pecifies the bus number between 1 and 250 The four bytes AD4 AD1 all have values of FF e Secondary addressing ADR FD The four bytes AD4 AD1 contain the secondary address Point to point addressing If there is only one slave physically connected to the master e g in communication with an opto head the master may use point to point addressing without the need to specify any address In this mode ADR FE and AD4 AD1 FF If several slaves are present discord results and possibly a voltage breakdown of the M Bus In this case one must wait about two seconds recovery time before attempting a new communication Broadcast addressing This is a data string destined for all the meters in a network e g sending the time In this mode ADR AD4 AD1 FF There is no reply from any slave 5 1 2 Usages of the SND UD data string There are four aplplications the
18. ast significant bits of the DIF Data Information Field of each block encode the kind of data bytes that follow a VIF VIFE according to the following table Number of data bytes Code of the data bytes always LSB first x0 no data available x1 binary or bit array 8 bits x2 signed binary 16 bits or date in G format x3 signed binary 24 bits x4 signed binary 32 bits or date time in F format x5 floating point IEEE 32 bits format x6 signed binary 48 bits x8 request for readout of a parameter xC BCD 8 digits xD variable ASCII text in Pascal format reversed order others see EN1434 not used by Aquametro devices AQUAMETRO AG Vol 01 E M Bus Protocol a M Bus 4 2 1 Definition of the G format coding the date first byte a2 a1 ad ja 3 j2 jt jo a5 a4 M3 M2 MO j4 j0 code the day 1 31 code the month 1 12 0 code the year 0 99 4 2 2 Definition of the F format coding the date and time o nsf na o o 94 na m no bytet formate _ byte2 format G h4 h0 code the hour 0 23 5 0 code the minute 0 59 4 2 3 The IEEE32 format The floating point coding format corresponds to the IEEE 32 bits code and is not described here It is used universally in current microprocessors and adopted by practically all compilers Here the order of the bytes is simply inverted relative to the tr
19. ation is an AMBUS FA check to see if the PC can at least communicate with its processor The response to this question will facilitate diagnosis Check the points 1 2 3 4 6 8 9 10 11 15 19 20 given in the table below Contact Aquametro In the case where one or more particular meter s do es not respond If access to the meter is possible make sure that it is powered display present read from the display its bus and series numbers baud rate and access counter It is also desirable to establish a point to point link if possible with the meter disconnected from the bus Exchange at least provisionally the meter with one that is known to function correctly in order to determine if the problem lies with the network or with the meter itself If access to the meter is not possible try to communicate with it from the central station using various baud rates The non recommended rates 600 1200 and 4800 baud should also be tried Check the points 3 4 5 6 7 8 9 12 13 14 16 17 18 given in the table below Contact Aquametro No Origin or symptoms of the problem Possible solutions 1 The PTC of the AMBUS ZS or FA has cutthe Disconnect the AMBUS from the 230V mains for about electrical supply to the meters in the network one minute then reconnect Contact Aquametro in case due to an overload of recurrence Short circuit in the network There is no supply Disconnect all meters from the network If t
20. bit is not set bit 5 weight 32 Flow alarm Namur break overflow bit 6 weight 64 Temperature alarm hardware or software bit 7 weight 128 Various option alarm RAM ROM alarm 6 2 2 Second part of data string The order in which the blocks follow one another as well as the coding of the data and their respective units do not necessarily correspond to the order in which the selection was made or to the requested codings Decoding is done in two steps e extraction of the blocks of data These blocks are of variable length and therefore it is necessary to examine the structure of each one in order to determine its exact length even if the information it contains is of no interest so that the beginning of the next block can be exactly located The presence or absence of DIFEs or VIFEs is revealed by the most significant bits of DIFs or VIFs e Decoding the information contained in each block The four least significant bits of the DIF Data Information Field of each block encode the kind of data bytes that follow a VIF VIFE according to the table in section 4 2 A list of DIF DIFE VIF VIFE parameters is given in section 9 6 2 3 Example Grouped reading of temperatures power flow rat e date and hours in service for meter no 03543109 MS 68 10 10 68 53 FD 51 09 31 54 03 B4 05 FF FF FF FF FF FF 08 2E 08 30 08 5B 08 5F 08 63 08 22 08 60 34 16 UD SM E5 MS 10 5B
21. dard Bytes sent MS 68 LL LL 68 LL 2 identical bytes C BYTE Field C ADR Primary address ADR FD if the address is secondary CI BYTE Field CI AD4 AD3 AD2 AD1 Secondary address ADx FF if the address is primary B4 05 Manufacturer s code 05B4 AMT VER MED ACC STAT SIG1 SIG2 6 bytes whose significance is beyond the scope of this document DIF1 DIFE1 VIF1 VIFE1 D11 Din First block of data variable length DIFm DIFEm ViFm VIFEm Dm1 Dmn Last block of data variable length CHK 16 Checksum and byte indicating end of data string Meanings LL specifies the number of bytes included between BYTE inclusive and CHK exclusive CHK specifies the data string checksum equal to the sum of the LL bytes from BYTE to the byte preceding CHK BYTE is 53 or 73 for a SND UD data string 08 for a UD data string ADR specifies the primary address or bus address CI BYTE is 51 for a SND UD data string 72 for a RSP UD data string AD4 AD1 are the four bytes of the secondary address BCD LSByte first DIF Data Information Field Codes the structure of the data If the most significant bit of the DIF is 1 then the DIF is followed by a DIFE byte e VIF Value Information Field Codes the kind of data and its unit of measurement If the most significant bit of the VIF is 1 then the VIF is followed by a VIFE byte D11 D1n data bytes LSByte first 4 2 DIF coding The four le
22. data are available armas n History 1 15 82 C2 6 History 1 15 84 C4 Ox VIF1 History 1 15 84 CA Ox VIF1 3B History 1 15 84 C4 4x VIF1 History 1 15 84 C4 Ox VIF1 3C History 1 15 84 C4 1x VIF 1 History 1 15 84 C4 Ox VIF2 Logger volume 2 History 1 15 84 C4 4x VIF2 Date Powerlogging History 1 15 94 D4 Ox AB 39 Loggermaxpower History 1 15 95 D5 0x 2B DatePowerlogging2 History 1 15 94 D4 4x AB 39 Loggermaxpower2 History 1 15 95 D5 4x 2B History 1 15 94 D4 BB 39 History 1 15 95 D5 Ox 3B History 1 15 94 D4 4x BB 39 type F X History 1 15 95 D5 4x 3B float X Total length of a logger record 49 49 49 49 type G see VIF1 see VIF1 see VIF1 see VIF1 see VIF1 see VIF2 see VIF2 type F float W type F float W type F float 4 0 o DAADAADAADAAADAADAADAAADAADA Table 3 Logger data DIF VIF for the CALEC family 16 AQUAMETRO AG Standard resolution E kWh kWh kWh MWh 10 MWh MWh GWh 10 GWh GWh MJ 10 kJ MJ MJ GJ 10 MJ GJ GJ TJ 10 GJ m 101 10 m MI 100 m M 1000m Table 4 DIF VIF for coding the energy and volume units on the CALEC MB AQUAMETRO AG M Bus Protocol Firmware 106 and higher FW 105 and lower VIF1 before 32 bit number 04 05 06 07 85 7D 86 7D 87 FD 85 FD 7D 86 FD 7D 0C 00 OF 8D 7D 8E 7D 8F 7D 8D FD 7D 8E FD 7D VIF1 32 bit n
23. etwork In the case of a network Aquametro meters are connected in parallel to a four wire bus two wires are used to power the meters with a low voltage supply see the corresponding technical information whil e the other two are used for the M Bus connection itself A central station AMBUS FA with or without PC or AMBUS ZS with PC connected to the network allows communication with the meters In the following the terms master M and slave S designate respectively the central station that reads data or sends a command and the meter that communicates with it 3 The basis of M Bus communications The communication is serial usually with a baud rate of 2400 If the network does not permit this rate a ll or part of the network may be reduced to 300 Baud A byte consists of a start bit 8 data bits LSB first an even parity bit and a stop bit The different bytes of aM Bus data string must be transmitted consecutively with no pauses dead or idle time between them i e the stop bit of a preceding byte is immediately followed by the start bit of a following byte If this requirement is not fulfilled the data string will be considered prematurely closed and will be rejected This point must be taken into consideration in particular if the communications program executes in a multi tasking environment such as Windows or Unix The communication has a master slave structure in which a meter in the network only communicates if explic
24. he short or bus voltage circuit persists check the wiring Otherwise reconnect the meters one by one checking the network each time in order to locate the meter that provokes the short circuit Wrong meter bus voltage 24 36 VDC and or Check the wiring supply and M Bus inverted Replace supply voltage 12 20 VAC the network cable with one of larger cross section ohmic losses Broken cable The supply and bus voltages Check the cable by degrees Check that the bus cable is present at the central station but absent at the properly screwed to the terminal of the AMBUS ZS or meters Symptom The PC can address the FA central station possible source of bad contacts AMBUS FA but not the rest of the network Non correspondence of primary address Read the primary address from the display of the meter in question Change to secondary addressing modify the primary address of the meter or address the right address Conflict of primary addresses Reading out is Locate all meters with the same address and modify not possible because of multiplicities in primary them or change to secondary addressing address Non correspondence of secondary address Read the secondary address from the display of the meter in question and correct for it in the program AQUAMETRO AG AE M Bus Protocol Vol 01 E M Bus Non correspondence of baud rate due to an Read the baud rate from the display of the meter in error in config
25. itly called upon to do so by the central station Each Amtron or Calec in a network is accessed by means of a primary or secondary address e The primary address or bus number is allocated at the time the network is put into service It consists usually of a number between 1 and 250 but can remain at factory configuration if the primary address is not used e The secondary address or serial number is fixed at the time of manufacture of the meter It consists of eight digits and cannot be changed A search algorithm wildcard search not described here allows automatic identification of all Aquametro meters in a network The secondary address is preferentially used by the communication programs written by Aquametro Reading a meter takes place in two steps e The master sends a data string of the type SND UD see later that specifies a list of parameters that the addressed slave has to transmit or an action that has to be taken The slave acknowledges receipt by sending back the byte E5 ACK The master sends a data string of the type REQ UD2 which instructs the slave to furnish the selected parameters The slave transmits these data by means of the RSP UD type data string 4 AQUAMETRO AG aqua RE Vol 01 E Sas M Bus Protocol M Bus 4 General structure of the SND_UD and RSP_UD data strings 4 1 General structure These data strings are of the type Long frame or Control frame as defined in the EN1434 stan
26. memory and resetting counters to zero if the lock bit is not set e writing of calibration values temperature analogue outputs e executing reconfiguration functions relays and analogue outputs commentary field replacing the executable code firmware with a new version Calec MB Certain of these functions are implemented in programs written by AQUAMETRO Fraudulent manipulations however are avoided by setting the lock bit 6 Reading a meter To read a meter the master issues a REQ_UD2 command string to the slave The slave replies in a RSP UD data string with the information previously selected by the master 6 1 The REQ UD2 data string The 002 data string Request for User Data type 2 is a data string of the type short frame sent by the master It is composed of 5 bytes by which the master asks the slave to send the previously selected information The structure of the data string is MS 10 5B ADR CHK 16 where ADR Primary address CHK ADR 5B The ADR byte depend on address mode e Primary address ADR specifies the bus number between 1 and 250 e Secondary address ADR FD The meter that is addressed must have been selected previously by a SND_UD communication in which its secondary address has been specified Point to point address ADR FE See the limitations on usage given in section 5 e Broadcast addressing within UD2 message is a nonsense For primary and point to
27. nt in reverse order They are preceded by four bytes The first three are DIF VIF VIFE 0D FD 11 resp the fourth codes the length of the ASCII string that follows 0 to 40 Pascal type structure Example 1 Reading of Id text of a Calec MB by point to point addressing MS 68 12 12 68 53 FE 51 FF FF B4 05 FF FF FF FF FF FF 08 FD 11 67 16 SM E5 Acknowledge MS 10 5 FE 59 16 SM 68 38 38 68 08 00 72 99 99 99 99 B4 05 A8 04 0E 58 FF FF 00 FD 11 25 21 20 65 69 67 72 65 6E 65 27 6C 20 65 64 20 65 73 69 72 74 69 61 6D 20 61 4C 20 3A 20 42 4D 2D 63 65 6C 61 43 DC 16 The 37 character text is Calec MB La ma trise de l nergie Example 2 writing the following Id text AQUAMETRO MS 68 1F 1F 68 53 FE 51 FF FF B4 05 FF FF FF FF FF FF 00 FD 11 0 47 41 20 6F 72 74 65 60 61 75 71 41 SCF 16 SM E5 Acknowledge Note Sending a null string text 00 FD 11 00 clears the Id text 8 3 Setting the Lock bit The Calec MB has 3 protection levels e Level 0 No data protection e Level 1 Only data involved directly or indirectly in volume or energy calculations are protected e Level 2 Level 1 protection of data relative to calendar Fixed dates 10 AQUAMETRO AG M Bus Protocol Vol 01 E M Bus The lock bit is considered as se
28. s primary secondary point to point or broadcast see section 5 1 according to the application Example 1 Changing the baud rate of meter 34 to 300 baud MS 68 03 03 68 53 22 B8 20 516 Control Frame type see EN1434 SM E5 ACK returned with the original baud rate before it is changed to 300 baud Example 2 Changing the baud rate of meter 03365901 to 2400 baud MS 68 0F 68 53 FD BB 01 59 36 03 B4 05 FF FF FF FF FF FF FE 16 SND UD of type Long frame without selecting parameters SM 5 ACK returned with the original baud rate before it is changed to 2400 baud AQUAMETRO AG 7 Vol 01 E M Bus Protocol a M Bus 5 5 The low level communication The EN1434 standard allows transfer of specific data to the manufacturer in a SND UD data string These data xxxxx below are consecutive to a 0F byte termed MDH in the standar d placed at the beginning of a block position 20 for Aquametro devices The general structure of the so called low level data string a term adopted by Aquametro for reasons of the subsidiary functions that these communications accomplish is MS 68 LL LL 68 C BYTE ADR CI BYTE ADA AD1 B4 05 FF FF FF FF 0F CHK 16 Depending on the communication the slave may also reply low level Low level communications to Aquametro meters allow amongst other things e direct reading of internal memory e writing to
29. t in level 1 or 2 The protection level can be incremented by anM Bus command This operation is not reversible The following data string inlow level format sets the lock bit AMTRON or increments the protection level by one CALEC MB MS 68 11 11 68 53 FE 51 FF FF FF FF B4 05 FF FF FF FF FF FF 0F 0A 6A 16 SM E5 Acknowledge 8 4 Relay programming Calec MB only non exhaustive description Relay programming is achieved by sending for each relay a low level SND_UD string with the following format MS 68 18 18 68 53 ADR 51 AD4 AD3 AD2 AD1 B4 05 FF FF FF FF FF FF 0F 03 OFFS 24 PARM4 PARM3 PARM2 PARM1 FCT CHK 16 SM Calec MB answer not described here Bytes ADR AD1 AD4 and CHK are described in section 4 OFFS 9 Relay number 1 Relay number is between 1 and 4 or 6 if 3 option slots are available PARM1 PARM4 code unless otherwise mentioned a floating point number format IEEE 32 bits FCT relay function If LS bit of FCT is set state of the relay is inverted Duration since last 8E Threshold value floating IEEE Unit seconds Can be used as no volume pulse flow alarm 8 5 Programming of analogue outputs Calec MB only For each output 2 low level SND UD strings are issued as follow MS 68 18 18 68 53 ADR 51 AD4 AD3 AD2 AD1 B4 05 FF FF FF FF FF FF 0F 03 OFFS 24 PARM4 PARM3 PARM2 PARM1 FCT CHK 16 SM Calec MB answer not described here MS 6
30. tu by Such a reading disturbs the complete network Make means of a point to point link with an opto sure that no one reads by point to point during an M BUS head read out 14 The optical interface of a CALEC MB placed Move either the CALEC or the light source or cover the under an intense artificial light can be dazzl ed interface with a strip of opaque adhesive tape leading to perturbations in communications 15 Overload of the M BUS network The complete There are several possible causes Examine the voltage network does not function but each sub on the bus by means of an oscilloscope Replace the network max 30 meters functions individually central station Contact Aquametro Does the whole network have the same baud rate computer to which it is attached Is the FA saturated FA 30 60 150 17 A meter does not communicate but reacts to The channel for transmitting is defective Reception can commands to change the primary address or be checked by sending a SND UD data string and date watching the display to see if the M Bus access counter gets incremented see user s manual 18 Certain parameters can be read while others Contact Aquametro specifying the parameter s that can not cannot be acces sed the meter type AMTRON SAPHIR or CALEC the hardware version Standard Twin Cold and the firmware version 19 The computer sends RS232 signals of too Certain computers portables in particular send
31. umber 11 12 13 14 15 16 17 97 77 97 F7 77 value 32 bit number 04 05 06 07 87 77 87 F7 77 87 F7 F7 77 87 F7 F7 F7 77 87 F7 F7 F7 F7 77 00 8F 77 8F F7 77 F7 F7 77 8F F7 F7 F7 77 8F F7 F7 F7 F7 77 VIF1 value 32 bit number 11 12 13 14 15 16 17 97 77 97 F7 77 Vol 01 E M Bus For all Firmwares High resolution E VIF3 value 48 bit number Wh 1 mWh Wh 1 mWh Wh 1 mWh Wh Wh Wh kWh kWh kWh J J J kJ kJ kJ MJ MJ High resolution VIF3 value 48 bit number 17 Vol 01 E M Bus Protocol a M Bus 10 Troubleshooting The communication does not work Does it concern the complete network or one or several meter s in particular If it is the complete network Check the bus wiring the AMBUS PC link and use at least provisionally a PC compatible loaded with the read out program MBUSTOOL written by Aquametro that runs under DOS Check the voltage and current at the central station with the aid of a multime ter The M Bus voltage should lie between 24 and 36 VDC polarity is immaterial and the supply voltage between 12 and 24 VAC These limits also apply to the meters positioned at the extremities of the network Subdivide the main network into smaller networks by removing branches from it and try to communicate with these sub networks Max 30 meters per sub network If the central st
32. uration question correct for it in the program or modify the baud rate of the meter Non correspondence of baud rate due to a serial card having no quartz oscillator deviation of more than 5 prevents communication Baud rate too high Because of capacit ances A baud rate of 9600 baud can be reduced to 2400 by and inductances distributed throughout the M simply disconnecting and then reconnecting the meter Bus network transmission cannot take place Otherwise an in situ point to point connection must be above a certain speed Check with an made in order to assign a new baud rate 300 baud to it appropriate oscilloscope with the program 1 Disregard of the timing of the M Bus data Rewrite the program in such a way that the computer s string See section 3 operating system does not disturb the synchronisation of Symptoms Functions under DOS but not the bytes or run it on a faster computer or reduce the under Windows on certain computers but not baud rate of the complete network on others Use a program written by Aquametro and run it under Check with an appropriate oscilloscope DOS 1 Disregard of the M Bus prerequisites parity Locate the problem with the aid of a protoc ol logic checksum data string structures analyser and correct the program slave replies Use a program written by Aquametro link to an opto head but not in the network 13 A CALEC MB in the network is read in si

Download Pdf Manuals

image

Related Search

Related Contents

Electron Plus 1 User Guide  

Copyright © All rights reserved.
Failed to retrieve file