0% found this document useful (0 votes)
23 views8 pages

Manual Modbus 140918 EN

Uploaded by

hamzehmojaddam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views8 pages

Manual Modbus 140918 EN

Uploaded by

hamzehmojaddam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

USER’S MANUAL

MasterBus - Modbus
Interface
Interface from Modbus to MasterBus

MASTERVOLT ENGLISH: PAGE 1


Snijdersbergweg 93, NEDERLANDS: PAGINA 9
1105 AN Amsterdam DEUTSCH: SEITE 17
The Netherlands FRANÇAIS: PAGINA 25
Tel.: +31-20-3422100 CASTELLANO: PÁGINA 33
Fax.: +31-20-6971006 ITALIANO: PÁGINA 41
www.Mastervolt.com
Copyright © 2014 Mastervolt, v 1.4 September 2014
1 GENERAL INFORMATION
1.1 Use of this manual product will not fulfil the specifications. This may
Copyright © 2014 Mastervolt. All rights reserved. mean that the guarantee will become null and void.
Reproduction, transfer, distribution or storage of part
or all of the contents in this document in any form IMPORTANT: Additional warranty agreements, like
without the prior written permission of Mastervolt is “Mastervolt system warranty” may contain
prohibited. restrictions which forbid resetting of historical data
This manual serves as a guideline for the safe and The standard guarantee period is two years after
effective operation of the Modbus. date of purchase.

Keep this manual at a secure place! 1.3 Liability


Mastervolt can accept no liability for:
1.2 Guarantee specifications  consequential damage due to use of the Modbus;
Mastervolt guarantees that this product was built  possible errors in the manuals and the results
according to the legally applicable standards and thereof;
stipulations. If you fail to act in accordance with the  Use that is inconsistent with the purpose of the
regulations, instructions and stipulations in this product.
user’s manual, damage can occur and/or the
CAUTION!
Never remove the identification label.

2 OPERATION
2.1 MasterBus functions
The Modbus communicates via MasterBus. For information about MasterBus, see www.mastervolt.com. The
table below shows the interface functions.

Monitoring Function Description Factory settings Range


State Interface can be Communicating Idle Idle/
(activate) or Idle (standby) Communicating
Configuration Function Description Factory settings Range
Language Set the Modbus menu language English See specifications
Device name Any name you wish with 12 characters INT MB Modbus 12 characters max
max
Device ID Number to recognize the interface 1 1-247
Parity The parity check of the interface can be Even None (1 stopbit),
set. None (1 stopbit) means no parity None (2 stopbits),
check in a 1 stopbit protocol. Even, Odd
Speed Interface communication speed in Baud. 19200 9600, 19200,
Set a lower speed if not all devices 115200
support 19200 Baud.

2 September 2014 / MasterBus – Modbus Interface / EN


3 INSTALLATION
Insert the MasterBus cables first, then connect the Modbus cables to the screw terminal, see figure below.

4
1. Modbus B line
2. Modbus A line
3. Modbus Ground
4. MasterBus
communication LED B A GND
1 2 3
MasterBus
connector

MasterBus network MasterBus network

Modbus network

Overview and functional scheme of the Modbus

4 SPECIFICATIONS
Model: MasterBus - Modbus interface
Article number: 77030800
Delivery also includes: Screw terminal, MasterBus cable, MasterBus Terminating device, User’s manual
Function of instrument: Modbus to MasterBus interface
Languages available: English,Nederlands,Deutsch,Français,Castellano,Italiano,Norsk,Svenska,Suomi,Dansk
Power consumption: 350 mW
MasterBus Powering: No
Din rail mounting: Yes, Din rail 30 mm [1.2 inch]
Protection degree: IP 21
Dimensions: 66 x 78 x 32 mm [2.6 x 3.1 x 1.3 inch]; see drawing below
Weight: Approx. 80 gr [0.18 lb]

33 [1.3] 33 [1.3] 32 [1.3]


4.0 [0.16]
69 [2.7]

78 [3.1]
4.0 [0.16]

Dimensions in mm [inch]
4,5 [0.18] 6.0 [0.24]

EN / MasterBus – Modbus Interface / September 2014 3


5 EC DECLARATION OF CONFORMITY
We, Mastervolt, Snijdersbergweg 93, 1105 AN Amsterdam, The Netherlands,
declare under our sole responsibility that
Product: 77030800 - MasterBus - Modbus interface,
is in conformity with the provisions of the following EC directives:
 2004/108/EC (EMC directive); the following harmonized standards have been applied:
o EN 61000-6-3: 2007 - Emission for residential, commercial and light-industrial environments
o EN 61000-6-2: 2007 - Immunity for industrial environments
 2011/65/EU (RoHS directive)

Amsterdam, 18 September 2014

H.A. Poppelier
Product Manager marine & mobile

6 MODBUS INTERFACE CONFIGURATION


This chapter describes the configuration of the 6.2.2 Position of the MasterBus device variable
Modbus interface for communication between the The position of a particular MasterBus variable is
MasterBus network and the Modbus network. The expressed in 2 values:
communication mode supported is RTU. Tab number (column) and Variable number (row).

6.1 What you need The Tab number is related to the category
To configure the Modbus interface, you will need concerned. There are 4 different categories as
besides the Modbus itself: mentioned below.
 a Modbus cable from your Modbus network to the  Monitoring: tab number 0
Modbus interface;  Alarm: tab number 1
 a pc with Windows 2000, XP or higher;  History: tab number 2
 Masteradjust software, free downloadable from  Configuration: tab number 3
www.mastervolt.com; Enter this number into TabNr to communicate with
 USB-MasterBus interface. correct categories.

6.2 MasterBus device address and variable The Variable number is the index connected to
every variable in a category.
The master of the Modbus network is able to
Enter this number into Index.
communicate with any individual MasterBus device
variable for read or write action.
You now defined the position of the MasterBus
For this communication the MasterBus device
device variable you want the Modbus to
address and the position of the variable are needed.
communicate with.
See the example how to find these variables IDAL,
6.2.1 MasterBus Device Address
IDB, TabNr and Index using MasterAdjust.
The MasterBus Device Address consists of 2
variables:
 IDB (18 bit value) and
 IDAL (5 bit value).
These two variables are read out by MasterAdjust.

4 September 2014 / MasterBus – Modbus Interface / EN


6.3 Finding IDB and IDAL
Select ‘INT DC Relay’ and use right mouse button to Write down the values found. You need
select property. A property form like below will pop them later to enter them into the PLC
up. system.

6.4 Finding TabNr and Index The values needed are now:
In this example the Override variable is selected to Variable Value
communicate with. The picture below shows the IDB 0x217C1 (hexadecimal figure)
Monitoring tab (TabNr = 0). The mouse hint (right IDAL 0x0E (hexadecimal figure)
mouse button) of this variable shows Index: 1. TabNr 0
Index 1

EN / MasterBus – Modbus Interface / September 2014 5


6.5 Entering the values into Modbus 6.5.1 Modbus function code 23
After having written down the values needed, you The Modbus to MasterBus interface uses the
have to enter these into your Modbus system. The Modbus function 23 communication protocol.
next example shows how to enter the values and See the Modbus Application Protocol Specification
how to communicate with the chosen variable V1.1b at www.modbus.org for more details.
“Override” of MasterBus device “INT DC Relay”. The dataframe tables below describe the variables
used in Modbus function 23 (0x17) Read/Write
Multiple Registers Protocol.

Request data frame


Address field Function code (Function 23) Data (Read Starting Address, etc. ) CRC (Error check)
1 Byte 1 Byte 21 Bytes 2 Bytes

Request
Variable Size Value

Bus address 1 Byte Variable

Function code 1 Byte 0x17 (Fixed)

Read Starting Address 2 Bytes 0 (Fixed)


Quantity to Read 2 Bytes 6 (Fixed)
Write Starting Address 2 Bytes 0 = read / 1 = write
Quantity to Write 2 Bytes 6 (Fixed)
Write Byte Count 1 Byte 12 (Fixed)
IDAL 5 bit value 1 Byte Variable
IDB 3 Bytes Variable
TabNr 2 Bytes Variable
Index 2 Bytes Variable
Value 4 Bytes Variable

CRC 2 Bytes Calculated

Response data frame


Address field Function code (Function 23) Data (Read Starting Address, etc. ) CRC (Error check)
1 Byte 1 Byte 13 Bytes 2 Bytes

Response
Variable Size Value

Bus address 1 Byte Variable

Function code 1 Byte 0x17 (Fixed)

Byte Count 1 Byte 0x0C (Fixed)


IDAL 5 bit value 1 Byte Variable
IDB 3 Bytes Variable
TabNr 2 Bytes Variable
Index 2 Bytes Variable
Value 4 Bytes Variable

CRC 2 Bytes Calculated

6 September 2014 / MasterBus – Modbus Interface / EN


6.5.2 Example writing request  Monitoring (TabNr = 0);
This is an example of a request to WRITE to the  Variable index (Index = 1);
variable with :  MasterBus device IDAL = 0x0E ID;
 MasterBus device IDB = 0x0217C1.

Request example
Variable Value Range
Bus address 0x01 [1..247]
Function code 0x17 Fixed
Read Starting Address Hi 0x00 Fixed
Read Starting Address Lo 0x00 Fixed
Quantity to Read Hi 0x00 Fixed
Quantity to Read Lo 0x06 Fixed
Write Starting Address Hi 0 Fixed
Write Starting Address Lo 1 0 = read / 1 = write
Quantity to Write Hi 0x00 Fixed
Quantity to Write Lo 0x06 Fixed
Write Byte Count (Fixed) 0x0C Fixed
IDAL 0x0E [0..31]
IDB Hi 0x02 [0..3]
IDB Mi 0x17 [0..255]
IDB Lo 0xC1 [0..255]
TabNr Hi 0x00 Fixed
TabNr Lo 0x00 [0..3]
Index Hi 0x00 [0..255]
Index Lo 0x01 [0..255]
Value Lo (Float IEEE 754) 0x00 [0..255]
Value Mi 0x00 [0..255]
Value Hi 0x80 [0..255]
Value Exponent 0x3F [0..255]
CRC Lo 0x85 [0..255]
CRC Hi 0xFA [0..255]

Response example
Variable Value Range
Bus address 0x01 [1..247]
Function code 0x17 Fixed
Byte Count(Fixed) 0x0C Fixed
IDAL 0x0E [0..31]
IDB Hi 0x02 [0..3]
IDB Mi 0x17 [0..255]
IDB Lo 0xC1 [0..255]
TabNr Hi 0x00 Fixed
TabNr Lo 0x00 [0..3]
Index Hi 0x00 [0..255]
Index Lo 0x01 [0..255]
Value Lo (Float IEEE 754) 0x00 [0..255]
Value Mi 0x00 [0..255]
Value Hi 0x80 [0..255]
Value Exponent 0x3F [0..255]
CRC Lo 0x94 [0..255]
CRC Hi 0xC1 [0..255]

EN / MasterBus – Modbus Interface / September 2014 7


6.5.3 Exception codes
The Modbus function 23 communication protocol The table below describes the corresponding errors
implements five default Modbus Exception Codes for and proposes their solutions.
incorrectly entered values.

Code Error Solution


01 The function code is wrong Enter the Function 23 code: 0x17
02 Wrong Read starting address. Enter Read Starting Address: 0
Wrong Write starting address. Enter Write Starting Address: 0 or 1
03 Wrong Quantity to Read. Enter Quantity to Read: 6
Wrong Quantity to Write. Enter Quantity to Write: 6
04 Packet size is too large or too small. Enter a Packet sized exactly 25 bytes,
including Modbus ID + CRC.
IDAL value is too high Enter a maximum 5 bit value.
IDB value is too high Enter a maximum 18 bit value.
05 The time out error occurs when there is Check if the MasterBus powering device is working and/or
no response from MasterBus for three check the MasterBus wiring.
seconds.

6.5.4 Exception message


Below, the exception message is described and an example is shown.

Exception message
Variable Size Value
Bus address 1 Byte Variable
Function code 1 Byte 0x97 (Fixed)
Exception code 1 Byte Variable
CRC 2 Byte Calculated

Exception message example


Variable Value Range
Bus address 0x01 [1..247]
Function code 0x97 Fixed
Exception code 0x05 [1..5]
CRC Lo 0x8E [0..255]
CRC Hi 0x33 [0..255]

Snijdersbergweg 93, 1105 AN Amsterdam, The Netherlands


Tel : + 31-20-3422100
Fax : + 31-20-6971006
Email : [email protected]

You might also like