abb_-_2cdc194001d0203.pdf

Upload: metanoia88

Post on 02-Jun-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    1/56

    FBP FieldBusPlugTechnical Description

    V6

    MODBUS-RTU FieldBusPlug

    MRP21-FBP

    MODBUS-RTU

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    2/56

    - 2 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Please note the following

    Target group

    This description is intended for the use of trained specialists in electrical installation and control and auto-mation engineering, who are familiar with the applicable national standards.

    Safety requirements

    The responsible staff must ensure that the application or use of the products described satisfy all the

    requirements for safety, including all the relevant laws, regulations, guidelines and standards.

    What is new in this version? available from device version

    Description of new commands to read-back the baud rate and thebinary and analog output data added.

    Index f

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    3/56

    - 3 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Content

    Introduction ..............................................................................................................................................5

    Hardware installation guide ......................................................................................................................8

    Software implementation of the FieldBusPlug .......................................................................................20

    How to build an application program .....................................................................................................43

    Maintenance ...........................................................................................................................................49

    Technical data ........................................................................................................................................51

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    4/56

    - 4 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Index of figures

    Figure 1: MODBUS FieldBusPlug.......................................................................................................5

    Figure 2: Principle serial bus infrastructure ........................................................................................8Figure 3: General 2-wire topology ......................................................................................................8

    Figure 4: One segment with MODBUS master .................................................................................. 9

    Figure 5: One segment with the MODBUS master at the end of the line .......................................... 9

    Figure 6: Two MODBUS segments with use of a repeater; example 1 .............................................. 9

    Figure 7: Two MODBUS segments with use of a repeater; example 2 ............................................ 10

    Figure 8: Two MODBUS segments with use of a repeater; example 3 ............................................ 10

    Figure 9: Example of built-in bias resistors ......................................................................................12

    Figure 10: MRP21-FBP, connector pin assignment ......................................................................... 13

    Figure 11: MODBUS round cable wire assignment .......................................................................... 14Figure 12: Feed-in 24V DC for FieldBusPlugs ..................................................................................15

    Figure 13: Connecting shielded cables ............................................................................................ 16

    Figure 14: Principle shielding of the MODBUS FieldBusPlugs ........................................................ 17

    Figure 15: Connecting several FieldBusPlugs on the MODBUS network ........................................ 18

    Figure 16: Connecting the MODBUS master via RS-232 to RS-485 converters ............................. 18

    Figure 17: Connecting the 07KT98 COM1 via RS-232 to RS-485 converters ................................. 19

    Figure 19: Example of an application overview for the use of several devices ................................ 43

    Figure 20: Example of an application program for one device Part 1 .............................................. 44

    Figure 21: Example of an application program for one device Part 2 .............................................. 45Figure 22: Example of an application program for one device Part 3 .............................................. 46

    Figure 23: Example of an application program for one device Part 4 .............................................. 47

    Figure 24: Example of an application program for one device Part 5 .............................................. 48

    Figure 25: Indicators and operating elements on the front plate .....................................................49

    Figure 26: MRP21-FBP, mechanical dimensions ............................................................................. 53

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    5/56

    - 5 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Introduction

    Terminology

    Introduction to MODBUS FieldBusPlug

    Terminology

    RTU MODBUS Remote Terminal Unit transmission mode

    PDU Protocol Data Unit

    PLC Programmable Logic Controller

    CRC Cyclical Redundancy Check

    LED Light-Emitting Diode

    FBP Field Bus Plug (FieldBusPlug)

    MRP MODBUS RTU FieldBusPlug

    MSD Motor Starter Direct

    MSR Motor Starter ReverseMFI Motor Starter Fieldbus Interface

    UMC Universal Motor Controller

    LB Low Byte in a 16-bit word.

    HB High Byte in a 16-bit word.

    0xyyyy 0x defines that the number yyyy is a hexadecimal value

    Definition of the terms input and output

    An output is a data value sent to a MODBUS slave and an input is a monitoring valuegenerated by the same MODBUS slave.

    The MODBUS FieldBusPlug MRP21-FBP establishes the field bus connection between the MODBUS

    and the terminal devices connected to this bus. The MODBUS FieldBusPlugs are slaves (nodes) on the

    MODBUS network.The terminal devices must have the field bus-neutral interface (e.g. as provided by the ABB FBP modules

    MSD11-FBP, MSR22-FBP, MFI21-FBP and UMC22-FBP).

    MODBUS bus plug of the next FieldBusPlug

    Fieldbus-neutral interface

    to the terminal device

    MODBUS bus plug to theprevious FieldBusPlug or to

    the bus master

    Figure 1: MODBUS FieldBusPlug

    Introduction to MODBUS FieldBusPlug

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    6/56

    - 6 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    The data exchange between the MODBUS FieldBusPlug and the terminal device can be performed in two

    ways:

    Parallel communication

    The signals are exchanged directly via the connections of the field bus-neutral interface.Scope of data: max. 1 digital output (1 control signal to terminal device) plus 2 digital inputs

    (2 feedback signals from terminal device). If the FieldBusPlug does not receive any telegram

    from the terminal device during power-on, this mode of data exchange will be set.

    Serial communicationThe signals are exchanged with the help of a serial data protocol via the field bus-neutral

    interface. Binary, analog, parameter and diagnostic data is sent and received. As soon as the

    FieldBusPlug receives a valid telegram from the terminal device, this mode of data exchange

    will be set non-volatile.

    The MODBUS FieldBusPlug MRP21-FBP behaves as an input/output module on the MODBUS.

    During the initialization phase, the plug receives the device-specific (configuration) data from the terminal

    device. This data is equal to the corresponding data in the bus master, provided that the correct terminal

    device was selected there.

    During start-up, an optional configuration data may be transferred from the bus master to the plug. To

    make sure that the right serial device is connected.

    To make sure, that the bus master can access the slaves connected to the bus line, a setting of the slaveaddresses is always necessary. Generally and over the full address range, the CAS21-FBP addressing set

    can be used. But it is easier, if the terminal device has address setting switches or similar means for the

    address setting. In this case, the FieldBusPlug adopts the address from the terminal device during power-

    on.

    Once the address is set, it is stored in the FieldBusPlug, even in case of supply voltage breakdown.

    According to the MODBUS standard, the addresses 1 to 247 can be set. The address 0 is reservedand should not be used for slaves.

    For diagnosis purposes, the MODBUS FieldBusPlugs are equipped with four LEDs (see Figure 25: Indica-

    tors and operating elements on the front plate).

    In addition to the two signal cores, the MODBUS cable contains two cores for 24 V. This voltage is always

    necessary for supplying the FieldBusPlugs. The voltage can be fed-in at the bus master, for example.

    Caution:

    False polarity or reversal between bus lines and power supply lines can cause a destruction of the Field-

    BusPlug.

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    7/56

    - 7 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Supplying the terminal devicescan be selected as follows:

    Internal supply(switch position INT): The terminal device is powered from the bus cable, too.

    External supply(switch position EXT):

    The terminal device is powered by a remote power supply. This is necessary, if the current

    consumption is high or if there are components installed to the terminal device, which are not

    nearby, e.g. proximity switches. There is an electrical isolation between the MODBUS signals

    and the field bus neutral interface.

    MODBUS data overview

    * The Configuration frame is optional, with this frame can be checked whether the

    correct device is connected.

    ** Contains configuration, identification and other data.

    *** Configuration data start with 0x4028.

    Group Type / remark Qty. / Presentation

    on t he MODBUS

    Starting

    Address

    Direction MODBUS

    Function

    Code

    Cyclic

    data

    Monitored signals

    (inputs)

    DI = digital input

    serial device

    0 256 bits 0x0000 read 1, 2

    DI = digital input

    parallel device

    2 bits 0x1000

    AI = analog input

    serial device

    0 125 words 0x0200 read 3, 4

    Commands

    (outputs)

    DO = digital output

    serial device

    0 256 bits 0x0100 write 15

    DO = digital output

    parallel device

    1 bit 0x1100

    AO = analog output

    serial device

    0 125 words 0x0300 write 16

    Acyclic

    data

    from

    / to

    device

    Diagnosis Faults and warnings free block length

    0 8 words

    0x2000 read 3, 4

    Param-

    eters

    block Control function

    trip class ...

    range 0 - 120 words,

    qty. defined by device

    0x3000 write 16

    single not possible - - - -

    Configuration * qty. of DI, DO,

    parameters,

    fixed block 7 words 0x4050 write 16

    Configuration **,Identification,others

    dto.+ productcode..,baud rate

    free block length0 51 words

    0x4000***

    read 3, 4Acyclicdata,notfrom/ todevice

    Set baud rate optional 1 word 0x4064 write 16

    Return query data optional,

    life monitoring

    Function code 08,

    Sub code 00

    - 08,

    Sub code

    00

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    8/56

    - 8 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Hardware installation guide

    Bus topology

    MODBUS physical communication layer

    FieldBusPlug connector pin assignment

    Powering the FieldBusPlugs

    Connecting several FieldBusPlugs on the MODBUS network

    Connecting the MODBUS master via RS-232 to RS-485 converters

    MODBUS round cable, one cable end without plug

    Bus topology

    General overview

    The figure below gives a general overview of the serial bus infrastructure in a MODBUS multipoint serial

    line system.

    Two-wire MODBUS topology

    A MODBUS solution over serial line is based on a Two-wire electrical interface in accordancewith EIA/TIA-485.

    Figure 3: General 2-wire topology

    Line Terminator Line Terminator

    Slave 1 Slave 2

    Master

    5 V

    B (D1)

    A (D0)

    Common

    Pull Up / bias resistor

    Pull Down / bias resistor

    Figure 2: Principle serial bus infrastructure

    MODBUS RTU

    master

    Line Terminator Line Terminator

    trunk cable

    Active tap

    Passive

    tap

    drop cable

    Slave 1 Slave 2

    Slave n

    LTLTRS-485

    The use of passive bus

    stub lines shoud be

    avoided. The use of

    repeaters and active taps

    is recommended.

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    9/56

    - 9 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Examples of MODBUS installations without segmentation

    Segmenting of MODBUS installation

    The following figure illustrates the segmenting of an example MODBUS installation which uses

    a repeater.

    LT LT

    S

    M

    S S S S

    Figure 4: One segment with MODBUS master

    LT: Line TerminatorM: MODBUS RTU Master

    S: MODBUS Slave

    LT

    S

    M

    S S S SLT

    Figure 5: One segment with master at the end of the line

    LT: Line Terminator

    M: MODBUS RTU Master

    S: MODBUS Slave

    LT

    S

    M

    S S S SLT

    R

    LT LT

    Figure 6: Example 1,

    two MODBUS segments with use of a repeater

    LT: Line Terminator

    M: MODBUS RTU MasterS: MODBUS Slave

    R: Repeater

    Segment 1 Segment 2

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    10/56

    - 10 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    There are two more figures which illustrate the segmenting of an example MODBUS installation

    using a repeater.

    Figure 7: Example 2,two MODBUS segments with use of a repeater

    LT: Line Terminator

    M: MODBUS RTU Master

    S: MODBUS Slave

    R: Repeater

    LT

    S

    M

    S

    S S S

    LT

    R

    LT

    S S

    LT

    Segment 1

    Segment 2

    LT

    S

    M

    S

    S S S

    LT

    R

    LT

    S S

    LT

    S S

    Segment 1

    Segment 2

    Figure 8: Example 3,

    two MODBUS segments with use of a repeater

    LT: Line Terminator

    M: MODBUS RTU MasterS: MODBUS Slave

    R: Repeater

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    11/56

    - 11 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS physical communication layer

    Physical communication layer

    At the physical level, the RS-485 (TIA/EIA-485) two-wire interface is used. This allows point to point and

    multipoint systems.

    Maximum number of devices on a bus segment

    Each bus segment can have a maximum of 32 active devices.

    MODBUS RTU master

    MODBUS slave

    Repeater

    In order to be able to connect a larger number of MODBUS devices, a repeater is used. Repeaters inter-

    connect the bus segments and refresh the data signals. Each repeater also allows to extend the maxi-mum admissible cable length. Repeaters increase the signal propagation delay times, therefore a maxi-

    mum of fourrepeaters are allowed between any two stations.

    Length

    Trunk cable:

    The end-to-end length of the trunk cable is limited. The maximum length is 1000m.

    The bus length can be extended with repeaters (max. 4 repeaters in series).

    Drop cable:

    The use of passive bus stub lines should be avoided. The use of repeaters and active taps

    is recommended.

    Line Termination

    Termination resistors should be placed only at the ends of the bus line, and no more than

    2 terminations should be placed in any system that does not use repeaters.

    A switchable (on/off) terminal resistor (and bias resistors) are normally placed in:

    MODBUS master

    Repeater

    RS-232 to RS-485 converter (see Figure 9)

    The terminal resistor DNR11-FBP.120 can be used (see Accessories) if the device at the end of the line

    has no built-in terminal resistor.

    DNR11-FBP.120 Pin assignment

    Pin 4

    Pin 5

    120Ohm

    Pins 1- 3 = unused

    male

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    12/56

    - 12 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Biasing the line

    When an RS-485 bus is in an idle state, all devices are in listen (receive) mode. Without anything driving

    the bus, the state of the line is unknown. In order to maintain a proper idle voltage state, bias resistors

    must be appliedto force the data lines to the idle condition. Bias resistors are a pull-up resistor on thedata B line (typically to 5V) and a pull-down (to ground) on the data A line.

    Bias resistors are normally placed in:

    MODBUS master

    Repeater

    RS232 to RS485 converter

    The MODBUS FieldBusPlug MRP21-FBP has build-in bias resistors of 22 k each.

    Fail save biasing of the bus

    The sum of all bias resistors, from the data B line typically to 5V respectively from the data A line to

    ground, in a bus segment shall be 750 .

    Example 1:

    Mounting 31 FieldBusPlugs in a MODBUS segment the sum of the bias resistors is ~ 710

    In that case no additional bias resistors are necessary.

    Example 2:

    Mounting 5 FieldBusPlugs in a MODBUS segment the sum of the bias resistors is 4400 .

    One pair of bias resistors are additionally necessary. Normally switch in bias resistors are

    placed in MODBUS master, repeater or RS-232 to RS-485 converter.

    line terminator

    5 V

    Common

    bias resistor

    bias resistor

    Figure 9: Example of built-in bias resistors

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    13/56

    - 13 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    FieldBusPlug connector pin assignment

    The connector pin assignment of the FieldBusPlugs for the MODBUS interface (plug at the cable end and bus interface to the next FieldBusPlug)

    the field bus-neutral interface to the terminal device

    Figure 10: MRP21-FBP, connector pin assignment

    Pins

    MODBUS bus plug at the

    cable end, to previous Field-

    BusPlug or to bus master

    Sockets

    MODBUS bus plug of

    the next FieldBusPlug

    Pin assignment:

    1 Shield

    2 +24 V DC

    3 0 V DC

    4 B/B' (D1) TXD1/RXD1 5 A/A' (D0) TXD0/RXD0

    MODBUS bus interface.

    Here, the MODBUS bus cable

    plug of the next FieldBusPlug isplugged in.

    If compliance with IP 65 regula-tions is required, this interface

    must be sealed by a cap on the

    last FieldBusPlug (at the end ofthe MODBUS bus). This cap is

    provided with the FieldBusPlug.

    Sockets

    View from

    the leftField bus-neutral interface to

    the terminal device

    Pin assignment for parallel mode:

    1 +24 V

    2 digital input (DI 1)

    3 0 V

    4 digital input (DI 0)

    5 digital output (DO 0)

    Pin assignment for serial mode:

    1 +24 V

    2 Diagnosis pin

    3 0 V4 Serial data

    5 Serial data

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    14/56

    - 14 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS round cable, one cable end without plug

    Powering the FieldBusPlugs and the devices

    Supply INT / EXT

    The supply of the FieldBusPlug is always made via the bus cable. This enables the FieldBusPlug to mo-nitor the actual -e.g. faulty- status to the control station even when it is removed from the device or when

    power down appears on the device.

    With the switch EXT/INT set to EXT or the equivalent wiring on the device the supply is limited to the

    FieldBusPlug.

    As an exception even some devices can be supplied via the bus. In this case the switch has to be set to

    position INT.

    But normally the devices connected to the MODBUS are intelligent and have, therefore, inputs which are

    normally not insulated from the device supply. And these inputs can be connected to distant components

    such as push buttons or limit switches.

    This means, with the supply of the devices via the bus a widely branched supply network would arise

    which cannot be surveyed and where a short circuit on an external component or lead wire paralyses the

    complete bus communication.

    The loss of voltage bridging time from the FieldBusPlug is 1ms. Therefore the 24 V DC power supplyshall have a loss of voltage bridging time of 10ms.

    To be noticed

    Use separate supply units or separately fused supply circuits for the FieldBusPlug line and the

    devices.

    Use the INT position of the INT/EXT switch only during commissioning of single devices and only

    if inevitable.

    On the installation site use the INT position only for simple devices such as proximity switches or

    MSD11-FBP / MSR22-FBP. In this case also check the supply situation / voltage drops carefully.

    Check carefully whether the switches of the devices are set to EXT before delivering to the in-

    stallation site.

    Check the supply situation. Dont forget to check the total bus length.

    Shield bare flexible lead

    +24V DC red

    0V DC black

    B/B (D1) white

    A/A (D0) blue

    Figure 11: MODBUS round cable wire assignment

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    15/56

    - 15 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Feed-in 24 V DC if the bus cable is long

    If the distance between the bus master and the slaves is longer, it may be necessary to feed-in

    24 V DC for the FieldBusPlugs on a second place.

    All slaves, also the most distant slave from the supply, need to be supplied with min. 19.2 V DCincluding ripple. That means that the power supply unit has to provide a higher voltage to compensate

    the voltage drops due to the l ine resistance.

    Figure 12: Feed-in 24 V DC for FieldBusPlugs

    Master

    24 V

    0 V

    MODBUS

    24 V

    DC

    A

    B

    24V 0V

    FBP SlaveBus master

    DNM11-FBP.050

    round cable, male plug at-

    tached at one end, 0.5 m,

    sheath partially rfemoved, wire-end ferrules attached

    FBP Slave FBP Slave

    connected

    shield

    DNM11-FBP.050

    round cable withmale plug

    DNF11-FBP.050

    round cable withfemale plug

    Feed-in 24 V DC for

    FieldBusPlugs

    Plant specific configuration

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    16/56

    - 16 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Shielding

    A shielded cable provides good protection against electromagnetic interference, particularly high frequen-

    cies. The effectiveness of a shielded cable depends on how it is installed.

    Connecting shielded cables

    Figure 13: Connecting shielded cables

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    17/56

    - 17 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Principle shielding of the MODBUS FieldBusPlugs

    Figure 14: Principle shielding of the MODBUS FieldBusPlugs

    Earth

    Ground

    FieldBusPlug

    (shield is internal

    connected through)

    Potential

    equalization

    MODBUS

    master

    24 V

    DC

    24 V

    DC

    LT

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    18/56

    - 18 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Connecting several FieldBusPlugs on the MODBUS network

    Figure 15: Connecting several FieldBusPlugs on the MODBUS network

    Connecting the MODBUS master via RS-232 to RS-485 converters

    Always use isolated converters!

    Use the types that enables the RS-485 transmitter by detecting a transmit signal on the RS-232line (automatic controlled).

    It is important to note that the RS-485 transmit data line is disabled at a fixed interval after the last

    bit, typically one character length.

    Has the converter a pull-up and pull-down resistor included?

    Check that the termination resistor corresponds with the line impedance.

    LTM

    S S S SLT

    RS-232 RS-485

    LT: Line Terminator

    M: MODBUS RTU Master

    S: MODBUS Slave

    R: Repeater

    Figure 16: Connecting the MODBUS master via RS-232 to RS-485 converters

    isolated

    converter

    The figure below shows how to connect the MODBUS master via RS-232 to RS-485 converters.

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    19/56

    - 19 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    How to connect the MODBUS FieldBusPlug on AC31 basic unit

    The figure below shows how to connect the AC31 basic unit (e.g. 07KT97 / 07KT98)

    via COM1 or COM2 (RS-232) to MODBUS network.

    LT

    S S S SLT

    RS-232

    C

    O

    M

    1

    C

    O

    M

    2

    07 KT 98RS-485

    LT: Line Terminator

    M: MODBUS RTU Master

    S: MODBUS Slave

    R: Repeater

    Figure 17: Connecting the 07KT98 COM1 via RS-232 to RS-485 converters

    isolated converter

    automatic controlled

    (no RTS necesarry)

    The 07KT98 is configured as MODBUS master; the communication interface is - in this example - COM1

    (RS-232).

    The MODBUS RTU protocol is used, therefore a RS-232 to RS-485 converter must be connected

    between the 07KT98 and the MODBUS network.

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    20/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    21/56

    - 21 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS master slave communication

    Important warning

    It is of great importance to ensure, that all of the devices have a different address.Otherwise the serial bus can show an abnormal behaviour and the master is not able to

    communicate with all of the present slaves on the bus.

    Master Slave

    Initate Reguest

    Function code Data Request

    Perform the action

    Initiate the response

    Function code Data Response

    Receive the response

    MODBUS transaction (error free)

    Initate Reguest

    Function code Data Request

    Error detection in action

    Initiate an error response

    Exception Function code Data Response

    Receive the response

    MODBUS transaction (exeception response)

    Master Slave

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    22/56

    - 22 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS master communication parameters

    For the MODBUS communication between the master and the FieldBusPlug several parameters have to

    be set. The parameters and their settings are shown in the following table:

    Notes for the MODBUS master

    The following times have to be considered by the MODBUS master.

    In RTU mode, message frames are separated by a silent interval of at least 3.5character times.

    The start of a new telegram is expected if the silent interval is > 3.5 character times.

    How to set the slave address

    The FieldBusPlug has the slave address 248 after distribution. In this case it is not possible to

    communicate with the FieldBusPlug via MODBUS.

    To make sure, that the bus master can access the slaves connected to the bus line, a setting of the slaveaddresses is always necessary. Generally and over the full address range, the CAS21-FBP addressing set

    can be used. But it is easier, if the terminal device has address setting switches or similar means for the

    address setting. In this case, the FieldBusPlug adopts the address from the terminal device during power-

    on.

    Once the address is set, it is stored in the FieldBusPlug, even in case of supply voltage breakdown.

    According to the MODBUS standard, the addresses 1 to 247 can be set. The address 0 is reserved andshould not be used for slaves.

    Serial communication parameters Start bit 1 1

    Data bits 8 8

    Parity (see *1) Even/Odd No

    Stop bit 1 2

    Baud rate 1200

    2400

    4800

    9600

    19200 57600

    *1: There is no parity setting on the FieldBusPlug necessary

    Serial Transmission code RTU (11 bits/character)

    Baud rate silent interval

    3.5 character 4 character times times

    1200 32.08 ms 36.67 ms

    2400 16.04 ms 18.33 ms

    4800 8.02 ms 9.17 ms

    9600 4.01 ms 4.58 ms

    19200 2.01 ms 2.29 ms

    57600 1.75 ms recommended to use

    1 character = 1 stop bit + 8 data bit + 1 parity bit +1 stop bit

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    23/56

    - 23 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Default baud rate mapping via device address

    During start-up phase the following baud rates are adjusted

    Note:

    An other baud rate can be chosen during commissioning via MODBUS, seechapter Set baud rate via MODBUS.

    How to adjust the parity and the stop bit on the FieldBusPlugThere is no parity and stop bit setting on the FieldBusPlug necessary.

    Communication protocol

    The following commands are implemented

    Commands MODBUS Function Codes Starting

    address

    Set baud rate via MODBUS FC 16 Write Multiple Registers 4064 Hex

    Write configuration data FC 16 Write Multiple Registers 4050 Hex

    Write parameter data FC 16 Write Multiple Registers 3000 Hex

    Read binary input values serial device FC 1 Read Coils

    FC 2 Read Discrete Inputs

    0000 Hex

    Read binary input values parallel device FC 1 Read Coils

    FC 2 Read Discrete Inputs

    1000 Hex

    Write binary output values serial device FC 15 Write Multiple Coils 0100 Hex

    Write binary output values parallel device FC 15 Write Multiple Coils 1100 Hex

    Read analog input values serial device FC 3 Read Holding RegistersFC 4 Read Input Registers

    0200 Hex

    Write analog output valuesserial device FC 16 Write Multiple Registers 0300 Hex

    Read diagnostic data FC 3 Read Holding Registers

    FC 4 Read Input Registers

    2000 Hex

    Read additional data FC 3 Read Holding Registers

    FC 4 Read Input Registers

    4000 Hex

    Return query data FC 8 Sub Function 00

    Amount of process data

    Commands Maximum amount of data,

    depends on the terminal device

    Write parameter data 120 Words

    Read binary input values 256 Bits

    Write binary output values 256 Bits

    Read analog input values 125 Words

    Write analog output values 125 Words

    Read diagnostic data 16 Bytes

    Device address Baud ratebits/s

    1 to 32 9600

    33 to 65 19200

    66 to 98 57600

    99 to 247 19200

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    24/56

    - 24 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Set baud rate via MODBUS

    The MODBUS function code 16 Write Multiple Registers is used.

    Request

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x4064

    Quantity of Registers 2 Bytes 0x0001

    Byte Count 1 Byte 0x0002

    Register Value 2 Bytes Baud rate

    Response

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x4064

    Quantity of Registers 2 Bytes 0x0001

    Error Response

    Error code 1 Byte 0x90

    Exception code 1 Byte 01 or 02 or 03 or 04

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Word 0 2 Bytes

    Slave Function Starting Quantity Byte Baud rate CRC

    Address Code Address of Registers Count

    * 0x10 0x4064 0x0001 0x02 e.g. 0x4B00 (19200dec)

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRC

    Address Code Address of Registers

    * 0x10 0x4064 0x0001

    * depends on the device

    Response

    Baud rate

    High byte Low byte

    Word 0

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    25/56

    - 25 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Reading the Baudrate via MODBUS

    It is possible to use the MODBUS function codes 3 Read Holding Registers or 4 Read Input Registers

    Request

    MODBUS-Functioncode 1 Byte 0x03 or 0x04

    Startaddress 2 Bytes 0x4064

    No Registers 2 Bytes 0x0001

    Response

    MODBUS-Functioncode 1 Byte 0x03 or 0x04

    Startaddress 1 Bytes 2No Registers 2 Bytes

    N* = Anzahl Eingangsregister

    Response in case of a fault

    Errorcode 1 Byte 0x83 or 0x84

    Errorcode (Exception Code) 1 Bytes 01 or 02 or 03 or 04

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    26/56

    - 26 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Write configuration data

    During the initialization phase, the plug receives the device-specific (configuration) data from the terminal

    device. This data is equal to the corresponding data in the bus master, provided that the correct terminal

    device was selected there.

    During start-up, an optional configuration data may be transferred from the bus master to the plug

    The MODBUS function code 16 Write Multiple Registers is used.

    Request

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x4050 see note 1)

    Quantity of Registers 2 Bytes 0x0007

    Byte Count 1 Byte 0x0E

    Register Value 14 Bytes Device configuration data

    Error Response

    Error code 1 Byte 0x90

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x4050

    Quantity of Registers 2 Bytes 0x0007

    Note 1)Against the MODBUS specification it is not possible to write values with an address offset.

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Word 0 ... Word 6 2 Bytes

    Slave Function Starting Quantity Byte Device configuration data CRC

    Address Code Address of Registers Count

    * 0x10 0x4050 0x0007 0x0E *

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRC

    Address Code Address of Registers

    * 0x10 0x4050 0x0007

    * depends on the device

    Response

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    27/56

    - 27 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Device configuration data

    Word 0, high byte Number of binary inputs 0 256 depends on the device

    Word 0, low byte Number of binary outputs 0 256 depends on the device

    Word 1, high byte Number of analog inputs 0 125 depends on the device

    Word 1, low byte Number of analog outputs 0 125 depends on the device

    Word 2 Number of parameter 0 120 depends on the device

    Word 3, high byte Number of diagnostic bytes 0 16 depends on the device

    Word 3, low byte 0x00; Not used

    Word 4 Sum of all parameter bytes 0 240

    Word 5 Device Product Code depends on the device

    Word 6 MODBUS bus timeout 0x0000 no timeout

    0x00010x1FFF

    Unit is: ms *1)

    *1) see chapter MODBUS bus timeout

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 Word 5 Word 6

    Reading configuration data

    Use the MODBUS-Functioncodes 3 Read Holding Registers or 4 Read Input Registers.

    Request

    MODBUS-Functioncode 1 Byte 0x03 or 0x04

    Start address 2 Bytes 0x4050

    No. Register 2 Bytes 0x0007

    Reply

    MODBUS-Functioncode 1 Byte 0x03 oder 0x04

    Start address 1 Bytes 0x0E

    Input registers 14 Bytes Configuration data

    Reply on error

    Error code 1 Byte 0x83 or 0x84

    Error code (Exception Code) 1 Bytes 01 or 02 or 03 or 04

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    28/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    29/56

    - 29 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Write parameter data

    The MODBUS function code 16 Write Multiple Registers is used.

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Word 0 ... Word N 2 Bytes

    Slave Function Starting Quantity Byte Device parameter data CRC

    Address Code Address of Registers Count

    * 0x10 0x3000 * * *

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRCAddress Code Address of Registers

    * 0x10 0x3000 *

    * depends on the device

    Response

    Error Response

    Error code 1 Byte 0x90

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x3000 Quantity of Registers 2 Bytes 2xN*

    N* = quantity of registers

    Request

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x3000 see note 1)

    Quantity of Registers 2 Bytes 0x0001 to 0x0078

    Byte Count 1 Byte 2xN*

    Register Value N*x2 Bytes Device parameter data

    N* = quantity of registers

    Note 1)

    Against the MODBUS specification, it is not possible to write values with an address offset.

    Device parameter data

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 ... Word N

    N

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    30/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    31/56

    - 31 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read binary input values (parallel device)

    The MODBUS function code 1 Read Coils or function code 2 Read Discrete Inputs could be used.

    Device binary input data

    Byte 0

    Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

    MODBUS frame over the serial line

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity of CRC

    Address Code Address Coils / Inputs

    * 0x01 or 0x1000 *

    0x02

    * depends on the device

    1 Byte 1 Byte 1 Byte Byte 0 ... Byte n 2 Bytes

    Slave Function Byte Binary input data from CRC

    Address Code count device

    * 0x10 or * *

    0x02

    * depends on the device

    Response

    Error Response

    Error code 1 Byte 0x81 or 0x82

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x01 or 0x02

    Byte count 1 Byte N*

    Coil / Input status n Bytes n = N or N+1

    N* = Quantity of Inputs / 8, if the remainder is different of 0 N = N+1

    MODBUS function code 1 Byte 0x01 or 0x02

    Starting Address 2 Bytes 0x1000 ... 0x1007

    Quantity of Coils / Inputs 2 Bytes 0x00010x0008 (8 inputs))

    depends on the device

    Request

    Note: If a serial device is connected an error response appears

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    32/56

    - 32 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Write binary output values (serial device)

    The MODBUS function code 15 "Write Multiple Coils" is used.

    Device binary output data

    Byte 0

    Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

    Byte 1

    Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8

    Byte 2

    Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16

    Byte 0 Byte 1 Byte 2 ... ... ... Byte n

    MODBUS function code 1 Byte 0x0F

    Starting Address 2 Bytes 0x0100 ... 0x01FF

    Quantity of Coils / Outputs 2 Bytes 0x0001 ... 0x0100 (256 outputs)

    depends on the device

    Byte Count 1 Byte N*

    Output Value N* x1 Byte

    N* = Quantity of Outputs / 8, if the remainder is different of 0 N = N+1

    Request

    Error Response

    Error code 1 Byte 0x8F

    Exception code 1 Byte 01 or 02 or 03 or 04

    MODBUS function code 1 Byte 0x0F

    Starting address 2 Bytes 0x0100 ... 0x017F Quantity of Coils / Outputs 2 Bytes 0x0001 ... 0x0100 (256 inputs)

    depends on the device

    Response

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Byte 0 ... Byte n 2 Bytes

    Slave Function Starting Quantity Byte Device binary output data CRC

    Address Code Address of Outputs Count

    * 0x0F 0x0100 * * *

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRC

    Address Code Address of Outputs

    * 0x0F 0x0100 *

    * depends on the device

    Response

    Note: If a parallel device is connected an error response appears

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    33/56

    - 33 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read binary output values (serial device)

    Use the MODBUS functions 1 Read Coils or 2 Read Discrete Inputs.

    Request

    MODBUS-Funktioncode 1 Byte 0x01 or 0x02

    Startaddress 2 Bytes 0x0100 ... 0x01FF

    No. Register 2 Bytes 0x00010x0100 (256 Outputs)depends of the device

    Response

    MODBUS-Funktioncode 1 Byte 0x01 or 0x02

    Startaddress 1 Bytes N*

    No. Register 14 Bytes n = N or N+1N* = No. of inputs / 8, if division rest is different from 0 N = N+1

    Response in case of an error

    Errorcode 1 Byte 0x81 or 0x82

    Errorcode (Exception Code) 1 Bytes 01 or 02 or 03 or 04

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    34/56

    - 34 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Write binary output values (parallel device)

    The MODBUS function code 15 "Write Multiple Coils" is used.

    MODBUS function code 1 Byte 0x0F

    Starting Address 2 Bytes 0x1100 ... 0x1107

    Quantity of Coils / Outputs 2 Bytes 0x0001 ... 0x0008 (8 outputs)

    depends on the device

    Byte Count 1 Byte N*

    Output Value N* x1 Byte

    N* = Quantity of Outputs / 8, if the remainder is different of 0 N = N+1

    Request

    Error Response

    Error code 1 Byte 0x8F

    Exception code 1 Byte 01 or 02 or 03 or 04

    MODBUS function code 1 Byte 0x0F

    Starting address 2 Bytes 0x1100 ... 0x1107 Quantity of Coils / Outputs 2 Bytes 0x0001 ... 0x0008 (8 inputs)

    depends on the device

    Response

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Byte 0 ... Byte n 2 Bytes

    Slave Function Starting Quantity Byte Device binary output data CRC

    Address Code Address of Outputs Count

    * 0x0F 0x1100 * * *

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRCAddress Code Address of Outputs

    * 0x0F 0x1100 *

    * depends on the device

    Response

    Note: If a serial device is connected an error response appears

    Device binary input data

    Byte 0

    Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    35/56

    - 35 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read analog input values

    The MODBUS function code 3 Read Holding Registers or function code 4 Read Input Registers could

    be used.

    MODBUS frame over the serial line

    Request 1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity of CRC

    Address Code Address Registers

    * 0x03 or 0x0200 *

    0x04

    * depends on the device

    1 Byte 1 Byte 1 Byte Word 0 ... Word N 2 Bytes

    Slave Function Byte Analog input data from CRC

    Address Code count device

    * 0x03 or * * 0x04

    * depends on the device

    Response

    Error Response

    Error code 1 Byte 0x83 or 0x84

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x03 or 0x04

    Byte count 1 Byte 2 x N*

    Input Register N*x 2 Bytes

    N* = Quantity of Input Registers

    Request

    MODBUS function code 1 Byte 0x03 or 0x04

    Starting Address 2 Bytes 0x0200 ... 0x027C

    Quantity of Input Registers 2 Bytes 0x0001 ... 0x007D

    depends on the device

    Device analog input data

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 ... Word N

    N

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    36/56

    - 36 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS function code 1 Byte 0x10

    Starting Address 2 Bytes 0x0300 ... 0x037C

    Quantity of Outputs 2 Bytes 0x0001 ... 0x007D

    depends on the device

    Byte Count 1 Byte 2 x N*

    Output Value N*x 2 BytesN* = Quantity of Registers

    Request

    Write analog output values

    The MODBUS function code 16 "Write Multiple Registers" is used.

    Error Response

    Error code 1 Byte 0x90

    Exception code 1 Byte 01 or 02 or 03 or 04

    MODBUS frame over the serial line

    * depends on the device

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 1 Byte Word 0 ... Word N 2 Bytes

    Slave Function Starting Quantity Byte Device analog output data CRC

    Address Code Address of Outputs Count

    * 0x10 0x0300 * * *

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity CRCAddress Code Address of Outputs

    * 0x10 0x0300 *

    * depends on the device

    Response

    MODBUS function code 1 Byte 0x10

    Byte count 2 Bytes 0x0300 ... 0x037C

    Quantity of Outputs 2 Bytes 0x0001 ... 0x007D

    Response

    Device analog output data

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 ... Word N

    N

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    37/56

    - 37 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read analog output values (serial device)

    Use the MODBUS functions 3 Read Holding Registers or 4 Read Input Registers.

    Request

    MODBUS-Functioncode 1 Byte 0x03 or 0x04

    Startaddress 2 Bytes 0x0200 ... 0x027C

    No. Register 2 Bytes 0x00010x007D (depends of device)

    Response

    MODBUS-Functioncode 1 Byte 0x03 or 0x04

    Startaddress 1 Bytes 2 x N*

    No. Register N* x 2 Bytes

    N* = No. of input registers

    Response in case of an error

    Errorcode 1 Byte 0x81 or 0x82

    Errorcode (Exception Code) 1 Bytes 01 or 02 or 03 or 04

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    38/56

    - 38 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read diagnostic data

    The MODBUS function code 3 Read Holding Registers or function code 4 Read Input Registers could

    be used.

    MODBUS frame over the serial line

    Request 1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity of CRC

    Address Code Address Registers

    * 0x03 or 0x2000 *

    0x04

    * depends on the device

    1 Byte 1 Byte 1 Byte Word 0 ... Word N 2 Bytes

    Slave Function Byte Diagnostic data from CRC

    Address Code count device

    * 0x03 or n * 0x04

    * depends on the device

    Response

    Error Response

    Error code 1 Byte 0x83 or 0x84

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x03 or 0x04

    Byte count 1 Byte 2 x N*

    Input Register N*x 2 Bytes

    N* = Quantity of Input Registers

    Request

    Device diagnostic data

    HB: High byte / LB: Low byte

    MODBUS function code 1 Byte 0x03 or 0x04

    Starting Address 2 Bytes 0x2000 ... 0x2007

    Quantity of Input Registers 2 Bytes 0x0001 ... 0x0008

    depends on the device

    Word 0 Word 1 Word 2 Word 3

    HB LB HB LB HB LB HB LB

    Diag.

    Byte 1

    Diag.

    Byte 0

    Diag.

    Byte 3

    Diag.

    Byte 2

    Diag.

    Byte 5

    Diag.

    Byte 4

    Diag.

    Byte 7

    Diag.

    Byte 6

    Word 4 Word 5 Word 6 Word 7

    HB LB HB LB HB LB HB LB

    Diag.

    Byte 9

    Diag.

    Byte 8

    Diag.

    Byte 11

    Diag.

    Byte 10

    Diag.

    Byte 13

    Diag.

    Byte 12

    Diag.

    Byte 15

    Diag.

    Byte 14

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    39/56

    - 39 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Read additional data

    The MODBUS function code 3 Read Holding Registers or function code 4 Read Input Registers could

    be used.

    MODBUS frame over the serial line

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Starting Quantity of CRC

    Address Code Address Registers

    * 0x03 or 0x4000 *

    0x04

    * depends on the device

    1 Byte 1 Byte 1 Byte Word 0 ... Word N 2 Bytes

    Slave Function Byte Additional data CRC

    Address Code count

    * 0x03 or *

    0x04

    * depends on the device

    Response

    Error Response

    Error code 1 Byte 0x83 or 0x84

    Exception code 1 Byte 01 or 02 or 03 or 04

    Response

    MODBUS function code 1 Byte 0x03 or 0x04

    Byte count 1 Byte 2 x N*

    Input Register N*x 2 Bytes

    N* = Quantity of Input Registers

    Request

    MODBUS function code 1 Byte 0x03 or 0x04

    Starting Address 2 Bytes 0x4000 ... 0x4032

    Quantity of Input Registers 2 Bytes 0x0001 ... 0x0033

    depends on the device

    Additional data

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 ... Word N

    By using this Request it is possible to define an address offset.

    Example: Starting Address = 0x4028

    Quantity of Registers = 0x000B

    Verification: Starting Address + Quantity of Registers

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    40/56

    - 40 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Address Amount of data Description

    0x4000 2 words Vendor name MODBUS FieldBusPlug

    0x4002 6 words Product code device information

    0x4008 2 words Major.Minor Revision

    0x400A 6 words Vendor URL

    0x4010 8 words Product Name

    0x4018 8 words Not used

    0x4020 8 words Not used

    0x4028 7 words see chapter Write Device configuration data

    configuration to the Device

    0x402F 1 word MODBUS CRC-Error count MODBUS specific data

    0x4030 1 word MODBUS Request Slave

    Exception Error Count

    0x4031 1 word MODBUS slave address

    0x4032 1 word MODBUS baud rate unit is (baud rate / 100) e.g. 192 == 19200 baud

    Return query data

    The MODBUS function code 8 sub fucntion 00 could be used in the configuration and data exchange

    mode of the FielBusPlug.

    MODBUS frame over the serial line

    Request

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Sub Data CRC

    Address Code function

    * 0x08 0x0000 **

    * depends on the device ** User defined request data

    Response

    Error Response

    Error code 1 Byte 0x88

    Exception code 1 Byte 01

    Request

    MODBUS function code 1 Byte 0x08

    Sub function 2 Bytes 0x0000

    Data 2 Bytes User defined request data

    Response

    1 Byte 1 Byte 2 Bytes 2 Bytes 2 Bytes

    Slave Function Byte Data CRC

    Address Code count* 0x08 0x0000 **

    * depends on the device ** Echo request data

    MODBUS function code 1 Byte 0x08

    Sub function 2 Bytes 0x0000

    Data 2 Bytes Echo request data

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    41/56

    - 41 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Word 0, high byte Number of binary inputs 2

    Word 0, low byte Number of binary outputs 1

    Word 1, high byte Number of analog inputs 0

    Word 1, low byte Number of analog outputs 0

    Word 2 Number of parameter 0

    Word 3, high byte Number of diagnostic bytes 0

    Word 3, low byte 0x00; Not used 0

    Word 4 Sum of all parameter bytes 0

    Word 5 Device Product Code 1

    Word 6 MODBUS bus timeout 0x0000 no timeout0x0001 ... 0x1FFF

    unit ist ms *1)

    Note: It is impossible to detect whether a parallel device is connected, defect or missing.

    High byte Low byte

    Word 0 Word 1 Word 2 Word 3 Word 4 Word 5 Word 6

    Use of devices without a communication protocol (parallel device)

    Examples for devices with parallel communication are:

    - sensor - pilot signal tower

    - push button panels

    Devices without a communication protocol are mapped with two binary input values and one binary out-

    put value.

    Supported requests

    The following requests are supported for these devices:

    Set baud rate via MODBUS

    Write configuration data

    Read binary input values (parallel device)

    Write binary output values (parallel device) Read additional data

    Optional device configuration data

    For all devices without a communication protocol the following configuration data could be used.

    Device address adjustment

    These devices have no possibility to set a MODBUS slave address by hardware.

    Therefore the Addressing Set CAS21-FBP.0 for PDP,DNP etc. can be used.

    Order code: 1SAJ929003R0001

    Once the address is set, it is stored in the FieldBusPlug, even in case of supply voltage breakdown.

    *1)see chapter MODBUS bus timeout

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    42/56

    - 42 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    MODBUS exception codes

    Code Name Meaning

    01 ILLEGAL FUNCTION The function code received in the request is not anallowable action for the slave.

    It could also indicate that the slave is in the wrong

    state to process a request of this type, for example

    because it is not configured

    02 ILLEGAL DATA ADDRESS The data address received in the request is not an

    allowable address for the slave.

    03 ILLEGAL DATA VALUE A value contained in the request data field is not an

    allowable value for slave. This indicates a fault in the

    structure of the remainder of a complex request, such

    as that the implied length is incorrect.

    04 SLAVE DEVICE FAILURE An unrecoverable error occurred while the slave was

    attempting to perform the requested action.

    - Wrong configuration

    - Not supported baud rate

    - Serial device connected, but parallel device

    addressed

    - Parallel device connected, but serial device

    addressed

    - Connected serial device defective

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    43/56

    - 43 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    How to build an application program

    Application overview for the use of several devices

    Setting up an application program for one device

    Application overview for the use of several devices

    Figure 19: Example of an application overview for the use of several devices

    Start

    Initialize the application

    Initialize the serial interface for MODBUS Communication

    Optional: Set baudrate

    Optional : Write the device specific configuration data

    Optional: Acyclic write all device specific parameter data

    Read binary inputs form the device

    Write binary outputs to the device

    Read analog inputs form the device

    Write analog outputs to the device

    After N cycles, read diagnose data from the device

    Handle the rest of the application progam

    Device 1

    Device ...

    Device n

    Device 1

    Device ...

    Device n

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    44/56

    - 44 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Setting up an application program for one device

    Figure 20: Example of an application overview for one device Part 1

    Optional

    Start

    Initialize the application

    Initialize the serial interface for MODBUS Communication

    Yes

    Yes

    Is the MODBUS initialisation done ?

    Is the serial interface

    for MODBUS communication

    ready for operation ?

    Yes

    Set flag: " MODBUS communication is initialized"

    After Error Handling

    Error

    Write the new baudrate

    Check the response telegram

    Is the response telegram ok ?

    Yes

    Set flag: " baudrate setting is done"

    Change the baudrate of the serial interface for MODBUS

    Communication

    1

    Is the baudrate setting done ?

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    45/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    46/56

    - 46 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Figure 22: Example of an application overview for one device Part 3

    2

    cyclic data

    exchange

    Yes

    Yes

    Error

    Is the response telegram ok ?

    Read binary inputs from the device

    Check the response telegram

    Write binary outputs to the device

    Check the response telegram

    Copy the binary input values in the local memory

    Is the response telegram ok ?

    3

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    47/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    48/56

    - 48 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Figure 24: Example of an application overview for one device Part 5

    4

    Error

    After Error Handling

    Is the response telegram ok ?

    Read diagnose data from the device

    Check the response telegram

    Copy diagnose data in the local memory

    Yes

    Yes

    "N" cycles of data exchange done ?

    after "N" cycles data exchange done ->read diagnose data from device

    restart counter, next read diagnose after N cycles data exchange

    increment counter, read diagnose after N cycles data exchange

    Handle the rest of the application program

    Plant specific error handling

    cyclic data

    exchange

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    49/56

    - 49 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Meaning of the LEDs

    Maintenance Indicators and operating elements on the front plate

    What can go wrong?

    Indicators and operating elements on the front plate

    H1 and H2 display the network status

    H3 and H4 display the module status

    Fastening screw (provided on delivery)

    Label for writing down the address

    setting

    Network status

    Module status

    Figure 25: Indicators and operating elements on the front plate

    Network status Module status Status / Cause

    LED green

    H1

    LED red

    H2

    LED green

    H3

    LED red

    H4

    off off off off Power supply is missing

    flashes flashes flashes flashes Plug is under self-test

    flashes off Plug is waiting for configuration data, to be sent from the termi-nal device (number of input/output bytes, number of parameterbytes, data rate etc.).

    Note:If no data has been sent by the terminal device within 2 se-conds, the plug switches to the parallel mode.

    on off The connection to the terminal device works properly.off flashes Error: can be remedied, e.g.

    - terminal device defective or.

    - connection to the terminal device is broken

    off on Error: cannot be remedied, e.g. incorrect checksum in the flash,exchange plug

    on flashes Plug works properly but

    - no cyclic data exchange (no read/write of binary or ana-log data)

    - or waiting for cyclic data exchange (no read/write of binaryor analog data) with MODBUS master, if the data ex-change with terminal device was broken before.

    - MODBUS bus-timeout (if configured): No cyclic data ex-change between MODBUS master and the Plug.

    Note:The MODBUS bus-timeout is only detected if a timeout is con-figured

    on off Normal data exchange.

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    50/56

    - 50 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    What can go wrong?

    RS485 Are the termination resistors placed at the end of the line?

    Only 2 termination resistors in one segment?

    Are 2 termination resistors placed at each bus segment?

    Are bias resistors connected in each bus segment?

    Is the line polarity correct? Are the lines by accident swapped?

    Never place any termination resistors on a drop cable.

    Is the maximum line length exceeded?

    MODBUS parameters

    Is the baud rate correctly adjusted?

    Is the parity and the stop bit correctly adjusted?

    Is the MODBUS master in RTU mode?

    Is the slave address correct?

    At start-up: The device baud rate is selected via the device address.

    Are there two devices with the same address in the system? If yes, fix it!

    MODBUS master

    Is the request to response timeout correct?

    Is the MODBUS silent interval between two telegrams > 3.5 character times?

    Notice that the slave device will not give any response when it is addressed with a broadcast(slave address = 0).

    MODBUS slave

    Has the device an unique MODBUS address?

    Is the function code supported by the device?

    Has the request an valid address?

    Has the request an valid quantity of coils, inputs, registers?

    Is the power supply turned on for the FieldBusPlug?

    Is the power supply turned on for the Terminal Device?

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    51/56

    - 51 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Supply voltages

    Standard power supply 24 V DC

    FieldBusPlugs work correctly at supply voltage = 19.2 31.2 V DC

    Current consumption

    from the MODBUS power supply typ. 18.5 mA (24 V)

    from the standard power supply Only the terminal device is supplied from the standard power supply unit.The terminal device may not load the standard power supply unit with

    more than 200 mA.

    Loss of voltage bridging time 1ms

    Mounting on the terminal device, fixed with a screw (provided on delivery)or by M12 box nut fixing

    Building of a MODBUS bus (or a segment) by connecting the FieldBusPlugs in series (first bus plug to coupler/master,

    second bus plug to socket of the first FieldBusPlug, etc.)

    Bus terminating resistors at both ends of the bus line 120 each

    Build-in bias resistors Each MODBUS FieldBusPlug has:

    - a pull-up resistor to a 5V Voltage on D1 circuit

    - a pull-down resistor to the common circuit on D0

    The value of the resistors are 22 k.

    Bias resistors for the bus Fail save biasing of the bus.

    The sum of all bias resistors in a bus segment shall be 750 .

    Parallel connection of bias resistors from A+ -> 5V or B -> Common

    shall be 750 in a bus segment.

    Modes of data communication between

    FieldBusPlug and terminal device parallel and serial

    Scope of data according to MODBUS specifications

    Construction of the FieldBusPlug cable round cable, black, 2 x 0.34 mm2for supply voltage

    2 x 0.25 mm2for data lines

    3 shields

    Load capacity of plugs and cables max. 4 A

    Pin assignment of the interfaces see Figure 10

    Degree of protection

    (see also Figure 10) IP 65, if M12 box nut fixing is used at the terminal device (e.g. sensor)

    IP 20, if mounting is performed using the supplied fastening screw

    (e.g. for MSD11-FBP)

    Ambient temperature storage -20 ... + 70 C

    operation 0 ... + 55 C

    Dimensions see Figure 26

    Total power dissipation of

    the unit MRP21-FBP max. 0.525 W

    Weight plug with cable 0.25 m 0.09 kg

    plug with cable 0.5 m 0.10 kg

    plug with cable 1 m 0.13 kg

    plug with cable 5 m 0.35 kg

    Bus address setting Over terminal Device, if the terminal device has address setting switches.

    Or CAS21-FBP addressing set can be used.

    Possible addresses 1 to 247 (0 is reserved)Diagnosis (see Figure 25) 4 LEDs on the front plate

    LED green, LED red network status

    LED green, LED red module status

    Technical data

    Technical data

    Ordering data

    Accessories

    Mechanical dimensions

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    52/56

    - 52 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    Ordering data

    A fastening screw, an address label and a terminal cap for the bus are supplied along

    with the FieldBusPlug.

    Type Description Order number

    MRP21-FBP.025 MODBUS FieldBusPlug, cable length 0.25 m 1SAJ 250 000 R0003

    MRP21-FBP.050 MODBUS FieldBusPlug, cable length 0.5 m 1SAJ 250 000 R0005

    MRP21-FBP.100 MODBUS FieldBusPlug, cable length 1 m 1SAJ 250 000 R0010

    MRP21-FBP.500 MODBUS FieldBusPlug, cable length 5 m 1SAJ 250 000 R0050

    Accessories

    The MODBUS accessories are the same as for DeviceNet. Therefore the DeviceNet order numbers and

    descriptions may be used.

    Type Description Order number

    DNX11-FBP.100 DeviceNet extension cable, length 1 m 1SAJ 923 001 R0010

    DNX11-FBP.300 DeviceNet extension cable, length 3 m 1SAJ 923 001 R0030

    DNX11-FBP.500 DeviceNet extension cable, length 5 m 1SAJ 923 001 R0050

    DNF11-FBP.050 DeviceNet round cable, female plug attached at 1SAJ 923 002 R0005

    one end, 0.5 m, sheath partially removed,

    wire-end ferrules attached

    DNM11-FBP.050 DeviceNet round cable, male plug attached at 1SAJ 923 003 R0005

    one end, 0.5 m, sheath partially removed, wire-end ferrules attached

    DNC11-FBP.999 DeviceNet round cable on 100 m coil 1SAJ 923 004 R1000

    DNM11-FBP.0 DeviceNet male connector for round cable 1SAJ 923 005 R0001

    DNF11-FBP.0 DeviceNet female connector for round cable 1SAJ 923 006 R0001

    DNR11-FBP.120 DeviceNet terminating resistor 1SAJ 923 007 R0001

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    53/56

    - 53 - MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

    All dimensions in mm

    Mechanical dimensions

    Figure 26: MRP21-FBP, mechanical dimensions

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    54/56

    - 54 -MRP21-FBP

    MRP21-FBP MODBUS-RTU FieldBusPlug

    Technical Description

    FieldBusPlug / Issue: 03.2010

    V 6

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    55/56

  • 8/10/2019 ABB_-_2CDC194001D0203.pdf

    56/56