Page 1 from 10 Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 General The Interface Module XC Modbus is designed for use with the EMH LZQJ-XC and DMTZ-XC meters. The module is equipped with a RS485 (2 wires) interface. The module can be plugged easily into the module compartment of the meter. It can be mounted or exchanged during operation (without breaking approval seal). An integrated Modbus interface provides a simple means of connecting multi-energy meters. This makes multi-energy applications an affordable proposition for domestic use. Due to the communication, the modules are suitable for a lot of control centres. Compatible meters LZQJ-XC (special meter for industrial applications): - Standard meter for direct connection - Transformer connection version Cl. B (Cl. 1) - Precision meter Cl. C (Cl. 0.5S) - Precision meter Cl. 0,2S DMTZ-XC (industry meter) Functions RS-485 (2 wires) interface for bi-directional communications Protocol converter for meter data (max. 125 values) into Modbus-Format (non transparent data readout) Transmission protocol: Modbus RTU (8N1) Internal communication interface for the transfer service data (TS) between the meter and the interface module Internal power supply from meter Exchangeable during the meter operation Safety Notes The owner of the interface modules is responsible that all persons engaged on work with the modules: Are competent and qualified in accordance with national regulations (see ISSA "Guideline for Assessing the Competence of Electrically Skilled Persons"). Have read and understood the relevant sections of the user manual. Strictly observe the safety regulations (according to the following section) and the instructions in the individual chapters. The owner of the modules is also responsible for: The protection of persons. The prevention of material damage. The training of personnel. The following safety regulations must be observed at all times: Devices which have fallen down should not be installed, even if no damage is apparent, and should be returned for testing to an authorised service centre (internal damage possible). Modules must never be cleaned with running water or high pressure devices. Water can cause short-circuits or damage el. components.
Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Page 2 from 10 Installation Hints The installation must be done in a way, that even in the case of cable break no dangerous voltages are applied to touchable parts of the module. Generally, meters are delivered with the communication modules installed. The fitting of a meter with a communication module is, therefore, an exception and can be necessary e.g. when a module needs to be replaced. Strictly observe the safety regulations! The interface module is exchangeable during the meter operation. Fit the interface module in the meter as follows: Installation of the interface module: 1. Check the interface module. 2. Remove the terminal cover [5]. 3. Open the transparent module cover [1]. 4. Insert the interface module [3] carefully at the place provided in the meter [2]. 5. Push the module in to the internal contacts. 6. Connect the cable. 7. Close the transparent module cover [1]. 8. Close the terminal cover [5]. Removing of the interface module: 9. Remove the terminal cover [5]. 10. Open the transparent module cover [1]. 11. Disconnect the cable. 12. Remove the interface module. 13. Close the transparent module cover [1]. 14. Close the terminal cover [5]. LED Displays Three LED s display the current operating status of the module and give information about the data transfer. Power/Tx Rx Error green yellow red Status and communication via Modbus interface: LED signals, that the module is supplied with power LED goes off during transmit data via Modbus (RS485) interface Communication via Modbus (RS485) interface: receive data Communication error (internal meter interface), LED flashes in 3 sec. cycle
Page 3 from 10 Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Communication (Modbus RTU, Protocol Converter) The interface port RS485 is conforming to Modbus Application Protocol V1.1b : Modbus RTU (Remote Terminal Unit). Fixed baud rate from the 2 nd electrical interface (see EMH COMBI-TOOL-Software: communication interfaces, set please the data transmission at a fixed baud rate without baud rate changeover), data format: 8N1; The following rules define the protocol for information transfer between a Modbus MASTER and the Interface Module XC Modbus: The module supports only the Modbus RTU Mode of Transmission : Read Holding Registers. Transmission settings: 8N1 (1 start bit, 8 data bits, no parity, 1 stop bit). All communications on the RS485 bus conform to a MASTER/SLAVE scheme. In this scheme, information and data is transferred between a Modbus MASTER device (e.g. AMR Software) and up to 32 SLAVE devices (Modbus Interface Module XC). The MASTER initiates and controls all information transfer on the communications loop. A SLAVE device never initiates a communications sequence. All communications activity on the loop occurs in the form of PACKETS. A packet is a serial string of 8 bit / byte. The maximum number of bytes contained within one packet is 255. All packets transmitted by a MASTER are REQUESTS. All packets transmitted by a SLAVE are RESPONSES. At most one SLAVE can respond to a single request from a MASTER. The Modbus module supports the Function Code 3 (Read Holding Registers) with signed 32 bit values (Signed Int32, Type D). All values includes 2 words (registers) with 16 bits each: first register (even register addresses: 0,2,4,6...) for high-word and second register (odd register addresses: 1,3,5,7...) for low-word. Example: Value = 12345678 Hex (32 bit := 4 Byte) start at register address 20: Register address Value Type of value 20 1234 Hex (:= 4660 Dec ) 16 bit, High-Word 21 5678 Hex (:= 22136 Dec ) 16 bit, Low-Word := 4660 65536 + 22136 = 305419896 The Modbus module uses for ID-Address the first data value in the service data list (TS): register addresses 0 and 1. For setting the value use please the EMH COMBI-TOOL-Software. Possible value range: 1 to F7 Hex := 1 to 247 Dec / Value outside of this range: ID-Address := 1 (default) Example: Value (ID-Address) = 0000007B Hex (:= 00000123 Dec ) starts at register address 0: Register address Value 0 0000 Hex 1 007B Hex (:= 123 Dec )
Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Page 4 from 10 Every Modbus packet consists of four fields (Request := eight bytes): Slave Address Field (ID-Address): one byte between 1 and F7 Hex ; (:= 1 to 247 Dec ) Function Field: one byte (:= 3 / fix, Read Holding Registers) Modbus register address (start register) := address in the device 40001 Data Field: Request: four bytes (start register: 2 bytes, # of registers: 2 bytes) Response: (1 + 2 n) bytes (counter: 1 byte, n registers: 2 n bytes) Error Check Field (Checksum): two bytes, a 16-bit Cyclic Redundancy Check (CRC-16: Cyclic Redundancy Check) Example: ID-Address: 123 Dec (:= 7B Hex ) / start register: 14 Dec (00 0E Hex ) / # of registers: 2 (:= one 32 bit value) Request: Response: ID-Addr. Function Start register # of registers CRC FB 03 00 0E 00 02 AE 52 ID-Addr. Function # Register 1 Register 2 CRC FB 03 04 00 00 00 3B 60 27 Value = 59 Dec (00 00 00 3B Hex ) Accepting the meter data The Modbus module reads the service data list (TS) from the meter periodically (interval between two readings: ca. 0.5 seconds) and creates an internal table with 16 bit registers (words): first data value from meter is saved at register 0 and 1 (ID-Address). Via Modbus is it possible to read all this registers. Values at empty registers := FFFF Hex (:= 65535 Dec ). All meter values between curved brackets (OBIS coded) will be transformed to 32 bit values. Possible range of the values: -2 31 to 2 31-1 (-2147483648 Dec to 2147483647 Dec ). Wrong values := -1 (FFFFFFFF Hex ).
Page 5 from 10 Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Parameterisation of the meter (EMH COMBI-TOOL-Software) At the first read the read all data from the meter (via optical IR interface): Baud rate The Interface Module XC Modbus uses the same baud rate like the communication interface at the meter. For setting use please the EMH COMBI-TOOL-Software: menu Meter Interfaces Electrical supplement / aditional interface: For correct working set please a fixed bad rate (e.g. 9600 baud). If you use the baud rate changeover according to mode C: the communication is possible with 300 baud only. For the addressing set the value optionally or ignore. Reset Note: The EMH LZQJ-XC meter performs automatically a daily reset at 00:00 in the interface module.
Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Page 6 from 10 Service Data / (Service Table TS) and Modbus ID-Address For setting the meter data list use menu Lists Reading lists Service Table TS: Note 1: The Modbus module uses for ID-Address the first data value in the service data list (TS): register addresses 0 and 1. In this example we use the identification number 1 (OBIS 0.0.1) for ID-Address: menu Meter Meter ID OBIS Register 0.0.1, e.g. value 123 (:= 00000123): Note 2: Only the first 125 values from the service data list (TS) will be used.
Page 7 from 10 Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Example for read out meter data: Service data TS (/4! with completion character CR LF): /EMH4\@\201LZQJL001VE 0.0.1(00000123) Address/Start register: 0, Value: 123 1.25(0.00*kW) Address/Start register: 2, Value: 0 3.25(0.00*kvar) Address/Start register: 4, Value: 0 9.25(0.00*kVA) Address/Start register: 6, Value: 0 31.25(0.02*A) Address/Start register: 8, Value: 2 51.25(0.01*A) Address/Start register: 10, Value: 1 71.25(0.01*A) Address/Start register: 12, Value: 1 32.25(0.59*V) Address/Start register: 14, Value: 59 52.25(0.50*V) Address/Start register: 16, Value: 50 72.25(246.07*V) Address/Start register: 18, Value: 24607 13.25(0.00*P/S) Address/Start register: 20, Value: 0 14.25(50.01*Hz) Address/Start register: 22, Value: 5001 C.86.0(38307030) Address/Start register: 24, Value: 38307030 C.86.6(B05800F0) Address/Start register: 26, Value: 58000 Modbus registers: Register address 0 0 Value 1 007F Hex (:= 0123 Dec ) 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 2 10 0 11 1 12 0 13 1 14 0 15 003B Hex (:=59 Dec ) 16 0 17 0032 Hex (:=50 Dec ) 18 0 19 601F Hex (:=24607 Dec ) 20 0 21 0 22 0 23 1389 Hex (:=5001 Dec ) 24 0248 Hex (:= 584 Dec ) 25 84D6 Hex (:= 34006 Dec ) Comments OBIS-Register 0.0.1: 123 (:= 0 + 123, Modbus ID-Address) OBIS-Register 1.25: 0 kw (:= 0 + 0) OBIS-Register 3.25: 0 kvar (:= 0 + 0) OBIS-Register 9.25: 0 kva (:= 0 + 0) OBIS-Register 31.25: 0.02 A (:= 0 + 2) OBIS-Register 51.25: 0.01 A (:= 0 + 1) OBIS-Register 71.25: 0.01 A (:= 0 + 1) OBIS-Register 32.25: 0.59 V (:= 0 + 59) OBIS-Register 52.25: 0.50 V (:= 0 + 50) OBIS-Register 72.25: 246.07 V (:= 0 + 24607) OBIS-Register 13.25: 0 P/S (:= 0 + 0) OBIS-Register 14.25: 50,01 Hz (:= 0 + 5001) OBIS-Register C.86.0: 38307030 (:= (584 65536) + 34006) 26 0 OBIS-Register C.86.6: 58000 (:= 0 + 58000, characters B and 27 E290 Hex (:= 58000 Dec ) F will be clear in the string B05800F0) 28 FFFF Hex (:= 65535 Dec ) 29 FFFF Hex (:= 65535 Dec )... FFFF Hex Not used registers
Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Page 8 from 10 Technical data: Housing: Polycarbonate housing with terminals for using with EMH LZQJ-XC and DMTZ-XC meters for residential and industrial applications Degree of protection: IP20 (according to IEC 60529) Protection class: 2 Temperature range: Relative humanity: -25 C to +55 C (operational) -40 C to +80 C (storage temperature) 0..95%, non-condensing Dimensions: Ca. 50mm x 105mm x 27mm (W x H x D) Nominal voltage: Battery: Installation: Internal power supply from LZQJ-XC or DMTZ-XC meter None Exchangeable during the meter operation LED displays: 3 LEDs: (green) Power/Tx: power / transmit data (yellow) Rx: receive data (red) Error: internal communication error Interface: Baud rate: Data format: Data readout: RS485 (2 wires) according to ANSI/TIA/EIA-485-A-98 300 to 19200 baud (fixed baud rate) 8N1 Internal service data list / table TS: see EMH COMBI-TOOL-Software; (readout via /4! CR LF); Note: only the first 125 values will be used Transmission protocol: Modbus RTU, Function Code 3 Order number: #12415 Accessories: Bus Master / Repeater / Mini-Master AMR-Software: SIGLON Field Control Center: Meter2SCADA
Page 9 from 10 Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Dimensions Note: if necessary, the 120Ω termination can be activated (position ON);
Bär Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Phone +49 911 970590 Fax +49 911 9705950 Page 10 from 10 Terminal assignment Terminal block: Terminal Description A+ RS485 A+ (Modbus) B- RS485 B- (Modbus) Baer Industrie-Elektronik GmbH Siemensstr. 3 D-90766 Fürth Germany Phone: +49 (0)911 970590 Fax: +49 (0)911 9705950 Internet: www.baer-gmbh.com Subject to change without notice! Version 2.01