Home

M-bus/Modbus Configurator

image

Contents

1. 1000ms should be enough for most of the commands Default settings of MMCR 64 device are 19200 Even 8 1 3 2 Setting general flags There are several global settings which affect normal work mode These are O Full readout time time interval for reading all devices and update information from 1 minute to 12 hours This means that on every X minutes MMCR 64 will perform read of all devices interval between reading two different devices value between 0 1s and 9 9s Interval for device respond when m bus device is sent command Read MMCR waits some time before decodes respond This can be again from 0 1 to 9 9 seconds set read date and time of MMCR 64 there is no backup battery for the clock If power fails time and date should be set again setting m bus flags Ox5B or 0x7B when reading with REQ UD Using initialization SND NKE or not Stop m bus automatic reading for 1 hour useful when setting devices Sort devices in ModBus memory according to m bus primary addresses Times for mbus network lt x s b i Write Timeout Registers between 2 readings wait respond for Ox B SND NKE w StopMbus Sort Readout update time in minutes E Update Set Universal Mbus Flags FT 0 fi Set modbus address Read General Status Fig 3 Timeouts Fig 4 Status M BUS MODBUS CONFIG User manual 6 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS tel
2. is intended for real mbus modbus setting of MMCR 64 In this TAB user can see m bus devices change their characteristics and activate de activate devices in MMCR 64 memory All activate devices are read in timeout interval set and information is updated in ModBus registers M BUS MODBUS CONFIG User manual 7 7 Iskarsko shausse blvd building 4 pu 1528 Sofia Bulgaria tel fax 359 2 9758105 J GINEERS a ae au office gineers com Y M bus modbus configuration of GINEERS device type MMCR File Tools Language Help Quick read write Settings M bus devices Scan mbus STOP FFFFEFFF Search and activate Scan timeout 1300 E me sus 1 E 4 a Find by ID Read real addresses Read modbus devices 13004197 M 0 00 n3 Electricity 04 Electricity 13004217 Unknown 13004216 i Cold water Daae Exclude 2 inputs Delete All gt jui Load Save Selected 1 Clear table Export Selected 2 UNMD 01 04 300102 300 4 7 B4 09 13 0001 00 11 00 0000 00 CO 00 04 00 00 00 00 00 01A SENT 01 04 00 19 00 18 21 C7 UNMD 01 04 30 02 02 1300 42 01 B4 0913 00 01 00 11 00 00 00 00 CO 00 D4 28 F4 00 00 00 0 Send custom command ASCII Hex SENT 01 04 0031 00 18 A1 CF UNMD 01 04 30 03 OF 13 00 42 17 B4 091300 01 00 11 00 00 00 00 CO 00 04 00 00 00 00 00 01 Save log ORE SENT 01 04 00 49 00 18 21 D6 UNMD 01 04 30 04 16 13 00 42 16 B4 09 13 00 01 00 11 00 00 00 00 CO 00 04 00 00 00 00 00 Ol Clear log Send COMS 19200 8 Eve
3. 2 9758105 www gineers com office gineers com set timeout between two m bus readings set date and time of MMCR set ModBus address of MMCR 64 set ModBus serial port details speed and parity set m bus serial port details speed and parity Software options for working with m bus devices are searching m bus network by primary address searching m bus network by secondary address changing primary address of a device changing medium of m bus devices activating particular device in ModBus memory de activate particular device in ModBus memory de activate ALL devices read all active devices from ModBus side set automatic SEARCH AND ACTIVATE option easy and quick way to set all with one click Of course all described can be accomplished with other software using ModBus map of the device But it is good to have quick start and to see capabilities of the device before starting to write your own code 2 Starting the program The program is started with double click on the main executable file MMBus exe 3 Main window The program is divided in two TABs setting of MMCR 64 device setting of m bus modbus relations When logging in the first TAB will be active main settings of MMCR 64 The main look of the program is M BUS MODBUS CONFIG User manual 4 7 Iskarsko shausse blvd building 4 A 1528 Sofia Bulgaria A GINEERS tel fax 359 2 9758105 www gineers com office gineers com Y M bus modbus c
4. Bus interface and all general settings which affect normal work conditions 3 1 Setting serial port of personal computer notebook To read and write to MMCR 64 first user must set correctly PC serial RS 232 RS 485 port Serial port settings affect name of the COM port speed and parity Device is always read through ModBus interface Possible speeds are from 300 to 115200 bps with parity even odd or no parity Quick read write Settings Serial port settings Name Speed Parity Stop bits ME 0 1 e 2 Disconnect Y Automatically open on startup Automatic readout in E A Fig 2 PC serial port settings M BUS MODBUS CONFIG User manual 5 7 Iskarsko shausse blvd building 4 1528 Sofia Bulgaria Y GINEERS tel fax 359 2 9758105 www gineers com office gineers com Serial port of PC can be set for automatic opening when program starts When settings of serial port are gray this notify that the port is open Program works in mode Master Slave This means that program sends command to ModBus interface reading or writing registers and then waits for device response How much time will wait the response can be set in Timeout ms property right to serial port settings Since ModBus has no special stop byte in the protocol and you can not tell automatically how many registers will be returned user should set this timeout according to speed and reading registers Something between 600ms and
5. M BUS MODBUS CONFIGURATION SOFTWARE FOR GINEERS MMCR 64 USER MANUAL 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS tel fax 359 2 9758105 www gineers com office gineers com TABLE OF CONTENTS 1 General information 3 2 Starting the program 4 3 Main window 4 3 1 Setting serial port 5 3 2 Setting general m bus flags 6 3 3 Setting MMCR interfaces 7 4 M bus and ModBus window 5 Log 11 6 Help 12 7 Contacts 12 M BUS MODBUS CONFIG User manual 2 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS tel fax 359 2 9758105 www gineers com office gineers com 1 General information The program is intended for quick and easy setup of mbus to modbus converter MMCR 64 The ModBus map is available from Gineers but using this software the user of MMCR 64 can quickly understand how this device works and how to set it Generally the device has two separate interfaces Y M bus master interface for up to 64 devices Y ModBus interface Since ModBus has wide usage and m bus is a special protocol mainly for heat and water meters this device aims to connect heat water and electricity meters in a building to the main SCADA Selected m bus devices can be activated in MMCR memory Then with programmed period every m bus device is read and information for it is updated in dedicated ModBus registers This interval can be from 1 minute to 12 hours For e
6. ect write to serial port Here user can see log window and direct write to the serial port In the log window every operation is notified and also responds from the ModBus interface This log can be saved cleared or printed print is disabled for now On the right side user can send custom commands to desired device There are two options for sending command ASCII sends the command as plain text written in the box HEX sends the command in hex values For that purpose commands should be send in a manner of xx with spaces between every byte For this device particularly all commands should be in ModBus protocol manner so ASCII is not useful here The user must have in mind that he will see the respond in the log window in the same way he sends a command in other words in hex or ASCII M BUS MODBUS CONFIG User manual 11 7 Iskarsko shausse blvd building 4 1528 Sofia Bulgaria lt gt tel fax 359 2 9758105 J GINEERS saga officeAgineers com 6 Help This menu contains two options About shows information about the program File Tools Language TT Quick read write User manual Serial port settings hl area Cranad D srih Fig 10 Help User manual starts this user manual 7 Contacts GI NEERS Ltd Electronics automation and software 1528 Sofia Bulgaria 7 Iskarsko shausse blvd building 4 phone fax 359 2 975 81 05 office gineers com If any questions suggestions
7. ed and secondary read by exact ID 8 digit or full secondary read by wildcard search FFFFFFFF Primary search is limited from 0 to 250 according to m bus protocol For primary search user must do the following Select minimum primary address for the search 1 on the picture Select maximum primary address for the search 4 on the picture press button Scan mbus A message will pop up asking the user does he want to clear the table or just add new devices in it User must choose Yes or No then the search takes place The search depends on two things Scan timeout in milliseconds retry times Of course user should select reasonable timeout depending on the devices some devices have respond of 200 bytes other 30 bytes Every devices that is found is added to the table with the following data D number Primary address Manufacturer coded in m bus style Main instantaneous value Measuring unit Medium measured Status byte Status byte is written in hexadecimal value since different manufacturers code different thing in status byte M BUS MODBUS CONFIG User manual 9 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS tel fax 359 2 9758105 www gineers com office gineers com Secondary search can be performed in two manners typing real ID number and try to find it in the network use wildcards for now only full wildcard ID can be used
8. el fax 359 2 9758105 www gineers com office gineers com m bus secondary address medium measured Unit and constant tariff information for pulse counter with tariffs like MBSS xx additional inputs information manufacturer of m bus device Status flags and additional info In this table multiple devices can be selected by pressing Ctrl LeftMouse button Double click selects all devices in the table then they all can be deleted activated etc Since founded and activated m bus devices are sequentially written in ModBus register maps this means that first 24 register block can hold data for m bus device with primary address 5 To know in which register block which m bus device stands user can do two things read special registers click button Read real addresses sort devices from lower m bus address to higher in Settings window just set flag Sort active 5 Log and additional tools UNMD 01 04 30 01 021300 41 37 B4 03 13 00 01 0011 00 00 00 00 CO 00 04 00 00 00 00 00 Qr SENT 01 04 00 13 00 18 21 C7 E UNMD 01 04 30 02 02 13 00 42 01 B4 03 13 00 01 0011 00 00 00 00 CO 00 04 28 F4 00 00 0001 SENT 01 04 00 31 001841 CF UNMD 01 04 30 03 OF 13 00 42 17 B4 03 13 00 01 0011 00 00 00 00 CO 00 04 00 00 00 00 00 Ol Save log SENT 01 04 00 43 00 18 21 DE UNMD 01 04 30 04 16 13 00 42 16 B4 03 13 00 01 0011 00 00 00 00 CO 00 04 00 00 00 00 00 O v Clear log Fig 9 Log window and dir
9. fax 359 2 9758105 www gineers com office gineers com Setting timeouts is done by selecting proper value and the use the appropriate button M bus timeouts are set as integer from 1 to 99 but this actually means time between 0 1s and 9 9 seconds Readout time of whole network is in minutes from 1 to 720 minutes 12 hours max Setting m bus flags is done as logic 1 or logic 0 If 1 this option is active otherwise is inactive Only one flag at a time can be set So user must select one of the following options 0x7B SND_NKE Start Mbus Sort then select 0 1 checked means 1 un checked means 0 and press button Send Universal Mbus Flags If user wants to check what is active or not he must read general status of the devices This is done by pressing button Read General Status There are several registers which are read and following info is obtained number of activated devices and maximum number m bus flags settings 7B SND_NKE etc current date and time of MMCR software version of ModBus map hardware and software version of MMCR 64 All data is displayed in log window in the lower left side of the screen 3 3 Setting MMCR interfaces ModBus address of the device can be changed from 1 to 250 M bus and ModBus port settings also can be changed but keep in mind that m bus serial port is limited to 4800bps maximum speed 4 M bus ModBus window The other TAB
10. i e FFFFFFFF This should find ALL devices in a network of course if they are with different ID numbers For now this search is not complicated further with manufacturer and medium wildcards Both Primary and secondary search can be stopped at any time by pressing button Stop In ModBus part user can do the following activate devices de activate devices read active devices in ModBus memory delete all devices automatically search and activate m bus devices Search and activate Read real addresses Read modbus devices Unit MValue Delete Exclude 2 inputs Delete All Fig 8 ModBus functions All these functions are made with corresponding buttons and sub menu options The most useful function is the automatic search and activate option Using this option MMCR will find automatically all m bus devices in the network of course if they are with unique Primary addresses and activate them for regular reading This is a quick start for the user without doing anything else except pressing one button he can have activated devices Just press button Search and activate sit back and wait device to activate all unique primary addresses in the m bus network for reading For each device in ModBus memory user can see the following details main counter value m bus primary address M BUS MODBUS CONFIG User manual 10 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS t
11. n Fig 5 M bus ModBus window To be easy for the user we have implemented most important m bus functions which are searching m bus devices by primary address from to searching devices by secondary address exact address or wildcard search changing primary address of m bus device changing medium of an m bus device pu p pue pa eie Te m 13004137 BMT 0 000 m3 Electricity 04 m3 Electricity 13004217 13004216 4 BMT Remove from table Change Pr Addr Hot water Cold water Electricity Heat Gas N A M BUS MODBUS CONFIG User manual 8 7 Iskarsko shausse blvd building 4 p 1528 Sofia Bulgaria y GINEERS tel fax 359 2 9758105 www gineers com office gineers com All devices found can be transferred to ModBus part of the window and activated one by one To be easy for the user there is a context menu with right mouse button click in which all options are visualized Search by primary or secondary address Quick read write Settings M bus devices Scan mbus STOP FFFFFFFF Scan timeout 1300 1 ms From zi or Find by ID Fig 7 Searching m bus network options User can select primary or secondary m bus search When a command is send user can set timeout for a respond before the operation is retried or ignored This timeout is in milliseconds and the minimum value is 300ms Maximum is 9900 ms Primary address search from 0 to 250 can be select
12. onfiguration of GINEERS device type MMCR DAR Fie Tools Language Help Quick read write Settings Serial port settings IV Input Holding Commands Hame Speed Parity PER bits Peres Count Times for mbus network x x s y y between 2 readings li 24 jo lt wait respond for Disconnect Iv Automatically open on startup E E Write Timeout Registers Timeout ms Address Readout update time in minutes Automatic readout in 1 a 1100 1 fi Update Addr modbus Notes Decode Notes Decode IL Set modbus address 01 02 Set Date Time of device mbuspot of V Modbus port Write baud and parity Ox7B 7 SND NKE v StopMbus Sort lt Set Universal Mbus Flags r on Export D Clear grid Read General Status 1 2 3 4 5 6 z 8 q UNMD 01 04 30 02 02 13 00 42 01 B4 09 13 00 01 00 11 00 00 00 00 CO 00 04 28 F4 00 00 00014 Prin SENT 01 04 00 31 0018 A1 CF F UNMD 01 04 30 03 OF 13 00 42 17 B4 09 13 00 01 0011 00 00 00 00 CO 00 04 00 00 00 00 00 01 Send custom command ASCII Hex SENT 01 04 00 49 00 18 21 DE UNMD 01 04 30 04 16 13 00 42 16 B4 09 13 00 01 00 11 00 00 00 00 CO 00 04 00 00 00 00 00 01 Save log EE SENT 01 04 00 01 00 18 A1 CO UNMD 01 04 30 01 02 13 00 41 97 B4 09 13 00 01 00 11 00 00 00 00 CO 00 04 00 00 00 00 00 01 v Clear log Send COMS 19200 8 Even Fig 1 Main settings window TAB Settings From this window user can set serial port settings Mod
13. or troubles using this program please write to support gineers com or ivan gineers com M BUS MODBUS CONFIG User manual 12
14. very device there is 24 register blocks in which are saved all m bus parameters main counter value m bus primary address m bus secondary address medium measured unit and constant tariff information for pulse counter with tariffs like MBSS xx additional inputs information manufacturer of m bus device Status flags and additional info All m bus details are important and we keep them updated Devices in ModBus memory can be activated or deactivated Automatic search and activate for m bus is available In ModBus memory devices are activated conseguentially up to 64 devices but primary m bus addresses may not be from 1 to 64 this does not matter In which data record which m bus device stands can be read through special registers see ModBus map Readout intervals are settable and some other things which are described further Software for setting device has two main TAB s Setting main parameters reading m bus activating ModBus devices Main parameters for setting are read general status number of activated devices m bus details version read activated addresses Set important m bus details using 0x5B or 0x7B when REQ_UD stop m bus for one hour sort m bus devices in ModBus memory use SND_NKE initialization when m bus commands etc Set readout update time M BUS MODBUS CONFIG User manual 3 7 Iskarsko shausse blvd building 4 1528 Sofia Bulgaria Y GINEERS tel fax 359

Download Pdf Manuals

image

Related Search

Related Contents

    DSC-HX9/HX9V - Sony Asia Pacific  施 工 説 明 書  Basic Drive Programming with PowerFlex 755  Operating instructions Object recognition sensor O2D22x  PT 7136 user manual - First Choice Marshalls  TDS1000B and TDS2000B Read This First  

Copyright © All rights reserved.
Failed to retrieve file