METZ CONNECT GmbH | Im Tal 2 | 78176 Blumberg | Germany | Phone +49 7702 533-0 | Fax +49 7702 533-433
Mounting instruction see www.metz-connect.com
(continued) Descripti on of the sof tware
Type 4: Conver sion counter, displa y: secondary, pul se: secondary
Note: Indicates the consumption reduced by the converter factors
Species: DIN rail counter with mechanical
drum-type counting mechanism, Ferraris counter
Type of formula: WP = 0
Consumpt ion and display of the co nverter counter a re different.
Both can be c alculated using a di fferent confi guration (WI, WU ).
Factors : WI = WU = 1:
The calcu lated counter rea ding correspond s to the display
of the conve rter counter.
Factors : WI and WU corre spond to the conver ters:
The calcu lated counter rea ding correspond s to the
consumption.
IZ – IT
BZ = (------- --- + A Z) ∙ WI ∙ WU , BZ = counter readi ng or consumptio n
IE
8.4. Commissioning
The user r eads on site the initi al count from the ele ctricity me ter and
presse s the key on the MR-SI4. A fter this key pre ss, the pulse counte r
of regist er IZ is copied into re gister IT.
After wards, the user con figures the MR-SI4 v ia the Modbus using a
servi ce program. The fol lowing must be ente red:
• initial count read from the counter
• pulses p er unit,
e.g. indicat ion on the electr icity meter 2000 p ulses per kWh
• formula t ype for calculatio n with converter fa ctors
• factor for current conversion,
e.g. indicat ion on the converte r 200/5A → factor = 40
• factor for voltage conversion,
e.g. indicat ion on the converte r 20000/100V → facto r = 200
• number of dig its and places aft er the decimal point
• deacti vate the key to protec t the IT register
8.5.Details for calculation
The calcu lated counter rea ding should behave e xactly in the s ame
way as the ele ctricity me ter. This requires t hat there should be n o
overf lows and rounding of f errors for the in termediate resu lts.
Theref ore, particular ly large data typ es are used for coun ting and
calculation.
Every 6 0 milliseconds, a pu lse can be emitte d by the electr icity meter.
This resu lts in up to 1,440,000 p ulses per day or abou t 526,000,000
pulses p er year.
If the puls e counter was realize d with 4 bytes, it c ould be count to
4,294,967,295. At hig hest pulse freq uency, this would be e nough for
approx. 8. 2 years.
Theref ore it is realized wi th 6 bytes and cann ot overflow.
The numbe r of places after th e decimal point is con sidered as an ad-
ditional m ultiplier with a po wer of ten during the c alculation.
Furthe rmore, it determi nes the place of the de cimal point in the
display of BZ a nd AZ.
As for the e lectricit y counter which only h as a specified nu mber of
decimal p laces, the number of p laces is limited w ith the last step in
the calcu lation. This is why th e calculated count er reading of the MRSI4 over flows to 0 as often as t he counter reading o f the electric ity
met er.
Calcula ted counter readi ng, if WP is 0.
BZ = ( (uint96_t ) (IZ - IT)*WU*W I*Power of ten [plac es after decima l
point] / IE +
(uint96_t) A Z * WU * WI )
% power of ten [di gits]
Calcula ted counter readi ng, if WP is 1.
BZ = ( (uint96_t ) (IZ - IT)*WU*W I*Power of ten [plac es after decima l
point] / IE +
(uint96_t) A Z )
% power of ten [di gits]
(continued) Descripti on of the sof tware
8.6 Bit rate se tting wi th Modbus c ommand
Parity and bit rate have the same value as when setting them by
address switch.
If Parity or Bit has the value 0, no setting or storage is carried out.
The register content is stored in the EEPROM.
“06 (0x06) Write Single Register”
Request
Valid Register Address 0x41 ( 65 )
Valid Register Value 2 Bytes
Bit 15-8: Magic-Number 0x53 = 83 as protection against
accidental writing.
The command will be further analysed only with this number.
Response
Echo of Request
Example for a frame:
Slave address 0x12 Setting of rotary switch (18)
Function 0x06 Write Single Register
Register address Hi 0x00
Register address Lo 0x41 Bit rate and parity (65)
Register contents Hi 0x53 Magic-Number
Register contents Lo 0x15 Parity Even, 19200 Baud
All devi ces can be switch ed simultaneou sly with a Broadc ast command (Slave a ddress 0x00) Ho wever, it is advise d not to do so as this
can cause p roblems:
- Devices from other manufacturers may have under this
address a register for a different purpose that will then
be operated in the wrong way.
- There is no feedback from the individual devices.
Consequently the control cannot immediately recognize
if the command was correctly received.
It is safer to a ddress and swit ch each device indi vidually.
The devi ce will then answe r with the old sett ings of parity and b it
rate. Switch ing will take place o nly afterwar ds. However, the answ er
can get los t if the bus is disturb ed.
When all de vices are switc hed; it is advised t o check communicat ion.
Any func tion of the device pr oviding a feedba ck is suitable. If a sin gle
functi on is to be used being in dependent from t he process per iphery
then the fu nction „Diagno stic“ sub-func tion „Return Que ry Data“ is
suitabl e, it returns the tran sferred data.
If bit rate an d parity sett ing of a device are unkn own it is possible t o
address t he device succes sively with all c ombinations of bit rat e and
parity u ntil the device ans wers. Try the most l ikely combinatio ns first.
Try the lowe r bit rates last as the y take longer.
(continued) Descripti on of the sof tware
8.7 General Commands
“08 (0x08) Diagnostics”
Subfunct ion “0 ( 0x0000) Re turn Query Data”
Data Field Any
Response: Echo of Request
Subfunction “1 (0x0001) Restart Communication Option”
Data Field 0x0000 oder 0xFF00
Response: Echo of Request
Action: Clears all Error Counters, Restarts node
Subfunct ion “4 (0x0004) Force L isten Only Mode”
Data Field 0x0000
No Response
Action: No response until Node Reset or Function Code 08
Subcode 01
Subfunct ion “10 ( 0x000A) Clea r Counters”
Data Field 0x0000
Response: Echo of Request
Action: Clears all Error Counters
Subfunct ion “11 ( 0x000B ) Return Bus Messa ge Count”
Data Field 0x0000
Response: Quantity of messages that the remote device has
detected on the communications system since its last restart,
clear counters operation, or power-up.
Subfunct ion “12 ( 0x000C) Ret urn Bus Communicati on Error Count”
Data Field 0x0000
Response: Quantity of errors encountered by the remote
device since its last restart, clear counters operation,
or power-up. (CRC, Length <3, Parity, Framing)
Subfunct ion “13 ( 0x000 D) Return Bus Excep tion Error Count”
Data Field 0x0000
Response: Quantity of MODBUS exception responses returned
by the remote device since its last restart, clear counters
operation, or power-up.
Subfunct ion “14 (0x000E) Retu rn Slave Message Co unt”
Data Field 0x0000
Response: quantity of messages addressed to the remote
device, or broadcast, that the remote device has processed
since its last restart, clear counters operation, or power-up.
Subfunct ion “15 (0x00 0F) Return Slave No R esponse Count”
Data Field 0x0000
Response: Quantity of messages addressed to the remote
device for which it has returned no response (neither a normal
response nor an exception response), since its last restart, clear
counters operation, or power-up.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x53 Parität Bitrate
Bit 3-0 1 2 3 4 5 6 7 8
Bitrate 1200 2400 4800 9600 19200 38400 57600 115200
Bit 7-4 1 2 3
Parität even odd none
(continued) Descripti on of the sof tware
“43 /14 (0x2B / 0x0E) Read Device Identification”
Request
Read Device ID code: 0x01
Object ID 0x00
Response
Device ID code 0x01
Conformity level 0x01
More follows 0x00
Next object ID 0x00
Number of objects 0x03
Object ID 0x00
Object Length 0x03
Object Value “BTR”
Object ID 0x01
Object Length 0x06
Object Value “MR-SI4”
Object ID 0x02
Object Length 0x04
Object Value “V2.0”