Maquina_119_robô

Embed Size (px)

Citation preview

  • 7/28/2019 Maquina_119_rob

    1/78

    Hardware and Engineering

    CM4-505-GV1CM4-505-GV2AS-i/PROFIBUS-Gateways

    Think future. Switch to green.

    SystemsIndustrial AutomationBuilding Automation

    AWB2700-1409GB 04/01

  • 7/28/2019 Maquina_119_rob

    2/78

  • 7/28/2019 Maquina_119_rob

    3/78

    AS-i/PROFIBUS Gateway Table of Contents

    Table of Contents

    1 The Used Symbols ................................................

    2 Safety .....................................................................2.1 Intended Use ...................................................................

    2.2 General Safety Information ............................................

    3 General Information ..............................................

    4 Connections, Displays and Operating Keys .......4.1 Power Supply Concepts and AS-i Connection Techniq

    4.1.1 Single Masters in IP65 ......................................................

    4.1.2 Single Masters in IP20 with Power Supply A ....................

    4.2 The PROFIBUS Interface ................................................

    4.2.1 Devices in IP20 .................................................................

    4.2.2 Devices in IP65 .................................................................

    4.3 Display and Operating Elements ...................................

    4.3.1 LEDs of the Single Masters ..............................................

    5 Operating the AS-i/PROFIBUS Gateway .............

    5.1 Master Start-Up ...............................................................5.2 Configuration Mode ........................................................

    5.3 Protected Operating Mode .............................................

    5.3.1 Switching to Protected Operating Mode ...........................

    5.3.2 Configuration Errors in Protected Operating Mode ...........

    5.4 Assigning an AS-i Address in Configuration Mode ....

    5.4.1 Assigning a Slave Address ...............................................

    5.4.2 Erasing the Slave Address ...............................................5.5 Programming the Address in Case of Configuration E

    5.5.1 Automatic Address Assignment ........................................

    5.5.2 Manual Address Assignment ............................................

    5.6 Setting of the PROFIBUS Station Address ...................

    5.6.1 PROFIBUS Station Address .............................................

  • 7/28/2019 Maquina_119_rob

    4/78

    AS-i/PROFIBUS Gateway Table of Contents

    7.3 Mailbox ............................................................................................

    7.3.1 Construction .....................................................................................7.3.2 Mailbox commands ..........................................................................

    7.3.3 Mailbox example ..............................................................................

    8 Commissioning Tools and Accessories ...........................8.1 Windows Software AS-i Control Tools ........................................

    8.2 PROFIBUS-DP master simulator ..................................................

    8.3 Serial PROFIBUS Master ...............................................................

    9 Appendix: Displays of the Figure Display ........................

    10 Appendix: The First Commissioning of AS-i ...................

    11 Appendix: Putting PROFIBUS into Operation with a Siem11.1 Putting into Operation in Easy Mode ...........................................

  • 7/28/2019 Maquina_119_rob

    5/78

    AS-i/PROFIBUS Gateway The Used Symbols

    1 The Used Symbols

    This symbol warns the user of possible dang

    warning can lead to personal injury or death a

    ment.

    This symbol warns the user of a possible failu

    warning can lead to total failure of the equipm

    nected equipment.

    This symbol gives the user important hints.

  • 7/28/2019 Maquina_119_rob

    6/78

    AS-i/PROFIBUS Gateway The Used Symbols

  • 7/28/2019 Maquina_119_rob

    7/78

    AS-i/PROFIBUS Gateway Safety

    2 Safety

    2.1 Intended Use

    2.2 General Safety Information

    The protection of operating personnel and the

    danger is not guaranteed if the control interfa

    accordance with its intended use.

    The device may only be operated by appropr

    in accordance with this operating manual.

    Safety and correct functioning of the device ca

    operation other than that described in this op

    formed.

    The connecting of the equipment and any ma

    ried out with voltage applied to the equipmen

    by appropriately qualified electrotechnical pe

    In the case that a failure cannot be repaired,

    out of operation and kept from inadvertently p

    Repair work is to be carried out by the manuf

    modifications to the equipment are not allowe

    The operator is responsible for the observanc

    dards.

  • 7/28/2019 Maquina_119_rob

    8/78

    AS-i/PROFIBUS Gateway Safety

  • 7/28/2019 Maquina_119_rob

    9/78

    AS-i/PROFIBUS Gateway General Information

    3 General Information

    This operating instruction is for use with the following devi

    AS-i/PROFIBUS-DP gateway power supply A

    AS-i/PROFIBUS-DP gateway IP65 power supply A

    The AS-i/PROFIBUS-Gateways serve to connect AS-Inter

    PROFIBUS. They act as a Master for the AS-Interface andPROFIBUS.

    New AS-i Specification 2.1

    The AS-i/PROFIBUS-DP Gateways already fulfil the new A

    means:

    Up to 62 AS-Interface slaves can be connected per 1 A

    The transfer of analog signals via AS-i is integrated in t

    All further functions of the new specification as e.g. the

    ripheral fault are implemented.

    All AS-i functions are provided cyclically via PROFIBUS-D

    PROFIBUS-DP V1.

    In the cyclic data transfer optionally up to 32 bytes I/O dat

    nary data of 1 AS-i network. Furthermore analog signals a

    the new AS-i specification can be transferred in the managPROFIBUS.

    The AS-i Control Tools can be used for the monitoring of t

    PROFIBUS-DP V1.

    Advanced Diagnostics

    Diagnostics, which go far beyond the standard diagnostics

    tion of the occassionally occuring configuration errors and

    the AS-i communication. So in case of an error the down t

    minimized or you can initiate preventive maintenance.

    Two Sorts of Housing

    The AS-i PROFIBUS Gateways with one Master can be d

    bi t ti i fi ld h i i IP65 Th h dli

  • 7/28/2019 Maquina_119_rob

    10/78

    AS-i/PROFIBUS Gateway General Information

    Commissioning, debugging and setting up of the AS-i parameters w

    ware can only be accomplished with the use of two push-buttons, theLEDs directly on the system.

    Accessories

    Software "AS-i Control Tools"

    PROFIBUS-DP Master Simulator DP V1

    D-Sub data transmission cord for AS-i masters in IP65

  • 7/28/2019 Maquina_119_rob

    11/78

    AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys

    4 Connections, Displays and Operating Keys

    Devices in IP20:

    On the front panel of the AS-i/PROFIBUS gateways in IP2

    terminals to connect the power supply and the AS-i circ

    a 9-pin SUB-D connector as PROFIBUS interface

    7 LEDs

    a two-digit seven-segment display

    2 push-buttons to configure the gateway

    Devices in IP65:

  • 7/28/2019 Maquina_119_rob

    12/78

  • 7/28/2019 Maquina_119_rob

    13/78

    AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys

    4.2 The PROFIBUS Interface

    4.2.1 Devices in IP20

    The PROFIBUS interface is realized as a 9-pin SUB-D co

    the standard for PROFIBUS DIN 19245. It is placed on the

    panel.

    Connection samples for the AS-i power supp

    In the w i r ing schemes above the cu rrent t

    must n ot exceed 5 A.

    -+

    AS--+

    -+

    AS-i Master

    max. 8 APELV according to EN 60950(Protective extra low voltage)

    -power

    supply

    -

    +

    AS-i Slave-+

    AS-i Slave-+

    GND

    54321

    9876

    RxD/TxD-P

    (data line B)

    RxD/TxD-N(data line A)

    PROFIBUS

  • 7/28/2019 Maquina_119_rob

    14/78

    AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys

    4.2.2 Devices in IP65

    The AS-i/PROFIBUS gateway in IP65 can be connected to PROFIBclamp terminals inside of the device. For that purpose the top of the

    be screwed off.

    You can use a SUB-D data cable as an accessory part for AS-i maste

    is led through the heavy gauge terminals and is connected after the

    scheme:

    3 - green, 4 - yellow, 5 - blue, 10 - red

    The device in IP65 is powered out of the AS-i line to which it is conne

    tromechanical interface (penetration technique as it is used with ASBus Termination

    If the AS-i/PROFIBUS gateway is at the end of the PROFIBUS line, b

    have to be switched on to terminate the bus with the built-in termina

    If the gateway is not at the end of the line, swith off both DIP switch

    4.3 Display and Operating Elements

    On the front panel of the AS-i/PROFIBUS gateway are seven light-e

    two-digit display and two push buttons.

    With the devices in IP65 the push buttons are situated inside of the

    liquids from entering. The top of the housing has to be screwed off t

    Connection of PROFI-

    BUS

    interface on cage clamp

    terminal block and

    arrangement on circuit

    board:

    1 RxD/TxD-N (data line A)

    2 RxD/TxD-P (data line B)

    3 RxD/TxD-N (data line A)

    4 RxD/TxD-P (data line B)

    5 0 V

    6 Shield7 FG function ground

    8 FG function ground

    9 Shield

    10 +5 V

    6

    1

    clam

    but

  • 7/28/2019 Maquina_119_rob

    15/78

    AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys

    This LED blinks if there is at least one

    slave in the AS-i network. If there are cas periphery faults, only configuration

    U ASI The AS-i circuit is sufficiently powere

    ASI active Normal operation active.

    (Blinks, if an B slave is displayed)

    prg enable Automatic address programming ena

    Exactly one slave is missing in protecslave can be replaced by another slav

    dress zero. The master addresses the

    dress and thus eliminates the configu

    prj mode The AS-i master is in configuration m

  • 7/28/2019 Maquina_119_rob

    16/78

    AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys

  • 7/28/2019 Maquina_119_rob

    17/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

    5 Operating the AS-i/PROFIBUS Gateway

    5.1 Master Start-Up

    After powering on, all segments of the figure display and a

    imately one second (self-test). Afterwards, the LEDs displ

    spective flags. The figure display shows the condition of th

    40 Off-line Phase

    The AS-i master initializes - there is no data co

    In configuration mode or when an AS-i Controlmatically the device can leave the off-line phas

    In protected mode, if the PROFIBUS communi

    AS-i master switches to the off-line phase after

    PROFIBUS has expired unless an AS-i Contro

    was started automatically.

    41 Detection Phase

    Start of the start-up phase, where the system lthe AS-i. The master remains in the detection p

    one slave.

    42 Activation Phase

    Condition at the end of the start-up operation w

    transmitted to all connected and recognized sla

    to the AS-i slaves data connections.

    431 Start of Normal Operation

    In normal operation the AS-i master can excha

    slaves. It transmits management messages an

    newly connected slaves. During normal operat

    maximum cycle time of 5 milliseconds.

    I f the AS-i ci rcui t is in suf f ic ient

    does not l ight up)or there is no

    ship between the PROFIBUS ma

    BUS gateway, the master remai

  • 7/28/2019 Maquina_119_rob

    18/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

    Pressing the mode button for at least five seconds switches the m

    ration mode. While in configuration mode, the yellow prj mode LEDThe system then displays one after the other all detected slaves at a

    second. First all "A" slaves and afterwards all "B" slaves. If the displ

    slaves were detached on the AS-i circuit.

    In configuration mode, all recognized slaves are activated except of

    AS-i master is in normal operation. There is data exchange between

    and all AS-i slaves detected by the master regardless of whether th

    slaves were projected before.

    5.3 Protected Operating Mode

    5.3.1 Switching to Protected Operating Mode

    The configuration mode can be left by pressing the mode button.

    Pressing the button shortly:

    Exits the configuration mode without projecting the current AS

    Pressing the button for more than five seconds:

    Exits the configuration mode and projects the actual AS-i con

    taneously the actual AS-i configuration is stored as nominal coEEPROM.

    When delivered the device is in configuration mode.

    In contrast with the configuration mode in the protected

    only data exchange between the AS-i master and the p

    slaves.

    If the system detects an AS-i slave with address zero o

    not leave the configuration mode.

  • 7/28/2019 Maquina_119_rob

    19/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

    Shortly appearing configuration errors are stored in the de

    nosis). The last error that occurred can be displayed by prshort AS-i power failure is responsible for the configuration

    39.

    5.4 Assigning an AS-i Address in Configuration Mode

    AS-i can be put into operation in a very comfortable mann

    software AS-i Control Tools (see chapter 8.1)(addressing d

    dress assistant).

    Furthermore you can use a hand held addressing device.

    If you dont have neither a PC nor a hand held addressing

    of the AS-i slaves is also possible with the AS-i/PROFIBU

    buttons. How it works is described as follows.

    5.4.1 Assigning a Slave Address

    (assigning an available address to a slave with address zeIn configuration mode, the addresses of all detected slave

    the other. To display the next higher available operating ad

    ton shortly. Each time you press the set button, the next

    played.

    Choose the displayed address as your target address by pr

    than five seconds. The address display blinks. The master

    pressing the set button again addresses the connected sthe target (blinking address).

    Any errors will be displayed by their error codes according

    the detected slaves are displayed again as described in c

    Only slaves with address 0 can get a new ad

    There must not be two AS-i slaves with the s

    circuit.

  • 7/28/2019 Maquina_119_rob

    20/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

    5.5 Programming the Address in Case of Configuration Errors

    5.5.1 Automatic Address Assignment

    For automatic programming to work, some requirements must be m

    1.The AS-i master must be in the protected operating mode

    2.The Auto_Address_Assign release flag must be set.

    3.Only one of the projected slaves may not be detected.

    If these requirements are met, the AS-i masters prg enable LED

    slave with address zero will be automatically assigned to the operatin

    missing slave. The "Automatic Address Assignment" can be activate

    ed via the software "AS-i Control Tools".

    5.5.2 Manual Address Assignment

    In protected operating mode, wrong assignments are displayed as er

    5.3). By pressing the set button, you can display all faulty assignme

    other. By pressing the set button for more than five seconds, you c

    rently displayed address as a potential target address, and the displ

    One of AS-is great advantages is the automatic addres

    a slave fails, it can be replaced by one of the same typ

    zero. The master will detect the replacement and autom

    addresses the new slave with the address of the faulty

    If the two slaves have different configuration data, i.e. a

    same type as far as AS-i is concerned, the automatic a

    ment will not be carried out.

    If several slaves fail, they cannot be replaced automati

    master. Then these addresses have to be set manually

    not be done via the host interface(using the AS-i Contro

    hand held addressing device, the slave addresses can

    with the help of the push buttons and the figure display

  • 7/28/2019 Maquina_119_rob

    21/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

    5.6 Setting of the PROFIBUS Station Address

    5.6.1 PROFIBUS Station Address

    Station addresses from 1 to 99 can be set, when delivered

    For the relocation, both the set button and the mode bu

    multaneously for at least 5 seconds until the current bus ad

    display. With every pushing of the set button, the station

    creased by 1.

    Once the desired PROFIBUS station address is shown on t

    non-volatile in the EEPROM by pushing the mode buttonMastersimulator DP V1 can be used to chage the AS-i/PR

    address via PROFIBUS.

    5.7 Error Messages

    The addressing of the AS-i/PROFIBUS gatew

    can be done locally at the gateway or via PR

    PROFIBUS standard.

    The system displays error codes for error mes

    faulty assignments on the AS-i circuit. The co

    than 50 and are therefore outside the slave acodes are described in the appendix, chapter

  • 7/28/2019 Maquina_119_rob

    22/78

    AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway

  • 7/28/2019 Maquina_119_rob

    23/78

    AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters

    6 Advanced Diagnostics for AS-i Masters

    The advanced AS-i diagnostics serve to locate occasiona

    judge the quality of data transmission on AS-i without add

    The "AS-i Control Tools" (software for the comfortable com

    face and the programming of AS-i Control) support the op

    agnostics (LCS, error counters and LOS).

    6.1 List of Corrupted AS-i Slaves (LCS)

    To locate occasionally occurring short-time configuration e

    advanced diagnostics manage beside the list of projected

    tected slaves (LDS) and the list of activated slaves (LAS)

    rupted slaves (LCS). This list contains entries of all AS-i

    responsible for at least one configuration error since powe

    reading the list. Short-time AS-i power failures are represe

    sition of AS-i slave with address 0.

    6.2 Error Counters: Counters of corrupted data telegrams

    The AS-i master with advanced diagnostics has an error co

    which is increased every time there is a corrupted AS-i tel

    sible to judge the quality of the AS i network even if only a

    With every read access the LCS will be delet

    The last short-time configuration error can alsMaster:

    Pressing the set button of the AS-i master s

    was responsible for the last short-time configu

    short-time AS-i power failure the display show

    set button.

    This function is only available if device is in th

    of the protected mode (display empty) or in th

  • 7/28/2019 Maquina_119_rob

    24/78

    AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters

    6.3 Off-line Phase on Configuration Errors (LOS)

    The AS-i masters with advanced diagnostics offer the possibility to

    into the off-line Phase when a configuration error on the AS-Interfac

    way the security of the application can be ensured. The reaction to a

    ror is very fast and the host can be relieved from this task. If there a

    on the AS-i network, the AS-interface can be switched to a secure s

    There are two different ways to parameterize the AS-i master for thi

    Every configuration error during normal operation in protected mooff-line phase.

    For each slave address can be chosen whether a configuration e

    dress will release the off-line phase or not. This information is sto

    Off-line Slaves (LOS).

    The user himself can decide how the system reacts to a configura

    AS-Interface. The AS-i master can release the off-line phase in c

    i.e. only with certain slave addresses, while in less critical situatioother AS-i slaves have a configuration error) only the error messa

    error is sent to the host, but AS-i is still running.

    The parameterization of off-line phase on configuration error is also

    "AS-i Control Tools".

  • 7/28/2019 Maquina_119_rob

    25/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    7 PROFIBUS-DP

    This chapter contains all the necessary information to ope

    gateway in a PROFIBUS-DP network.

    7.1 DP Telegrams

    7.1.1 Diagnosis

    DP Diagnosis

    PDU byte user byte DP

    1 station_status 1

    2 station_status 2

    3 station_status 3

    4 master address

    5 ident high

    6 ident low

    7 1 header

    8 2 type

    9 3 slot

    10 4 spec

    11 5 ec-flags (high)

    12 6 ec-flags (low)

    13 7 delta (07)

    14 8 delta (815)

    20 14 delta (5663)

    21 15 LPF (07)

    28 22 LPF (5663)

    29 23 LCS (07)

    36 30 LCS (56 63)

  • 7/28/2019 Maquina_119_rob

    26/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    Delta List: List of AS-i slaves with configuration error:

    1: ConfigError0: no ConfigError

    LPF:List of AS-i slaves with peripery fault:

    1: periphery fault

    0: no periphery fault

    LCS: List of Corrupted slaves (see chapter 6).

    Each element of the user diagnosis (ec-flags and slave lists) can besetting the appropriate bit in the parameter telegram.

    Each element that is not used will be filled up with zeros. This way th

    in the diagnosis telegram will keep its designated position (and clea

    fits to the data furthermore).

    Only if an element at the end of the user diagnosis is not used, the le

    nosis will be shortened.

    Extdiag will be set if at least one of the following conditions is fulfille

    ConfigError 1

    APF 1

    PeripheryFault 1

    LCS is not empty

    The conditions when to set the ExtDiag bit can be chosen using the

    or the mailbox commands.

    The GSD file includes the following presettings:

    The PROFIBUS diagnosis displayes: EC-flags, delta list and LPF

    displayed.

    ExtDiag will be set if ConfigError =1 and APF = 1. ExtDiag will not

    periphery fault or if there is a entry in the LCS.

    If an AS-i/PROFIBUS-DP Gateway with 2 AS-i masters is used, theBytes 5 to 30 represent AS-i network 1 and the User-diagnosis byte

    sent AS-i network 2.

    User Parameters

    With the User Paramters can be selected which slave liste will be di

  • 7/28/2019 Maquina_119_rob

    27/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    The bits in "slave lists" and "ExtDiag" have following mean

    LCS: 1: LCS will be displayed in PROFIBUS diagnosis

    0: LCS will not be displayed

    LPF: 1: LPF will be displayed in PROFIBUS diagnosis

    0: LPF will not be displayed

    D: 1: Delta list will be displayed in PROFIBUS diagno

    0: Delta list will not be displayed

    F: 1: EC flags will be displayed in PROFIBUS diagno

    0: EC flags will not be displayed

    CS: 1: ExtDiag will be set, if there is an entry in the LCS

    0: ExtDiag will not be set, if there is an entry in the

    7 group_ident

    8 1 DPV status 1

    9 2 DPV status 2

    10 3 DPV status 3

    11 4 slave lists

    12 5 ExtDiag

    Slave lists

    27 26 25 24 23 2

    LCS LPF

    default 0 0 0 0 1 0

    ExtDiag

    27 26 25 24 23 2

    CS PF AP

    default 0 0 0 0 0 1

    DP Parameters

    PDU byte user byte DP DP

  • 7/28/2019 Maquina_119_rob

    28/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    7.1.2 Configuration DP V0 (cyclic data)

    AS-i V2.04 easy mode

    The PROFIBUS diagnosis is dilayed as described in chapter 7.1.1.

    Even if the PROFIBUS-DP gateway V2.1 shall be used in this V2.04

    GSD file which comes together with the gateway has to be used. Th

    V2.04 gateway can not be used.

    AS-i V2.1 mode

    In AS-i V2.1 mode the input and output data field can be used with vIDs".

    The advantages of special input and output IDs are: They can includ

    ments (bytes or words) and the length of input and output data can

    thermore "manufacturer specific" data bytes are possible. These "m

    specific" data bytes describe the which type ID is.

    The following types are possible:

    The AS-i/PROFIBUS-DP Gateway V2.1 can be used th

    Bihl+Wiedemann's AS-i/PROFIBUS-DP Gateway acco

    specification 2.04 which has been commisioned in eas

    mode the AS-i I/O data are shown in the PROFIBUS pro

    bytes I/O data with or without consistency.

    Areas of the I/O-data fields

    type input data

    length (bytes)

    0016 empty 0128

    0116 digital process data out of AS-i circuit 1 032

    0216

    digital process data out of AS-i circuit 2 032

    0316 mailbox 236

    1016 analog input data circuit 1, slave 31 2128

    1116 analog input data circuit 1, slave 15 2120

    12 l t t d t i it 1 l 31 0

  • 7/28/2019 Maquina_119_rob

    29/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    The IDs can be used in different sequences. But in the I/O

    area with each type.7.1.3 I/O-Data

    AS-i V2.04 easy mode

    AS-i V2.1 mode

    Process data

    byte 27 26 25 24 23

    0 slave 1/1A

    D3 D2 D1 D0 F3

    1 slave 3/3A

    2 slave 5/5A

    3 slave 7/7A

    4 slave 9/9A

    5 slave 11/11A

    6 slave 13/13A

    7 slave 15/15A

    8 slave 17/17A

    9 slave 19/19A

    10 slave 21/21A

    11 slave 23/23A

    12 slave 25/25A

    13 slave 27/27A14 slave 29/29A

    15 slave 31/31A

    In V2.1 mode the AS-i I/O data are mapped i

    data as known from the Siemens and AS-i/In

    means the lower nibble describes the data of

    higher slave address. The EC flags resp. HI-f

    d t th ibbl f AS i l 0

  • 7/28/2019 Maquina_119_rob

    30/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    7 slave 14/14A slave 15/

    8 slave 16/16A slave 17/

    9 slave 18/18A slave 19/

    10 slave 20/20A slave 21/

    11 slave 22/22A slave 23/

    12 slave 24/24A slave 25/

    13 slave 26/26A slave 27/

    14 slave 28/28A slave 29

    15 slave 30/30A slave 31/

    16 reserved slave 1

    17 slave 2B slave 3

    18 slave 4B slave 5

    19 slave 6B slave 720 slave 8B slave 9

    21 slave 10B slave 1

    22 slave 12B slave 1

    23 slave 14B slave 1

    24 slave 16B slave 1

    25 slave 18B slave 126 slave 20B slave 2

    27 slave 22B slave 2

    28 slave 24B slave 2

    29 slave 26B slave 2

    30 slave 28B slave 2

    31 slave 30B slave 3

    Flags

    input data output data

    F0 ConfigError Off-line

    byte 27 26 25 24 23 22

  • 7/28/2019 Maquina_119_rob

    31/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    A rising edge of the "LOS master bit" effects that all bits in

    edge effects that all bits are reset.

    Analog data

    The 16 bit values of AS-i slaves according to the profile 7.3

    each PROFIBUS cycle or via the mailbox.

    If analog values are written cyclic and acyclic via the mailbo

    time, the values transmitted cyclically will overwrite the ac

    Mailbox

    Only using the IDs of the process data field the AS-i/PROFI

    as M0 AS-i master. Using the mailbox (see chapter 7.1) th

    are avaiable.

    Analog data

    byte 27 26 25 24 23

    1 slave 31-n/8, channel 1, high

    2 slave 31-n/8, channel 1, low

    3 slave 31-n/8, channel 2, high

    4 slave 31-n/8, channel 2, low

    n-1 slave 31, channel 4, high b

    n slave 31, channel 4, low by

    Request

    byte 27 26 25 24 23

    1 command

    2 T circuit

    3 request parameter byte 1

    36 request parameter byte 3

  • 7/28/2019 Maquina_119_rob

    32/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    The mailbox commands can also be activated with PROFIBUS-DP V

    cess data exchange is possible via the mailbox. In that way the config

    "AS-i Control Tools" can run the whole communication via DP V1.

    7.2 DP V1

    To exchange data between the PROFIBUS master and the AS-i/PRO

    via PROFIBUS-DP V1 only one data block is used - slot 1, index 16

    block a mailbox is installed like the one used in the DP telegram.

    The DP V1-mailboxes are processed every time they are called. Thsible, to execute the same command several times without changin

    "circuit".

    7.3 Mailbox

    7.3.1 Construction

    If an AS-i slave is addressed in a command or in a response, the addras shown below:

    Request

    byte 27 26 25 24 23 22

    1 command

    2 T circuit

    3 request parameter byte 1

    36 request parameter byte 34

    Response

    byte 27 26 25 24 23 22

    1 command

    2 T result

    3 response parameter byte 1

    34 response parameter byte 32

  • 7/28/2019 Maquina_119_rob

    33/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    Circuit = 1 If AS-i gateway with 2 masters and the maste

    Values for command

    Values for command

    value meaning

    IDLE 0016 No order

    READ_IDI 4116 Read IDI

    WRITE_ODI 4216 Write_ODI

    SET_PP 4316 Set_Permanent_Parameter

    GET_PP 0116 Get_Permanent_Parameter

    WRITE_P 0216 Write_Parameter

    READ_PI 0316 Read_Parameter

    STORE_PI 0416 Store_Actual_ParameterSET_PCD 2516 Set_Permanent_Config

    GET_PCD 2616 Get_Permanent_Config

    STORE_CDI 0716 Store_Actual_Configuration

    READ_CDI 2816 Read_Actual_Configuration

    SET_LPS 2916 SET_LPS

    GET_LPS 4416 Get_LPS

    GET_LAS 4516 Get_LAS

    GET_LDS 4616 Get_LDS

    GET_FLAGS 4716 Get_Flags

    SET_OP_MODE 0C16 Set_Operation_Mode

    SET_OFFLINE 0A16 Set_Offline_ModeSET_DATA_EX 4816 Set_Data_Exchange_Active

    SLAVE_ADDR 0D16 Change_Slave_Address

    SET_AAE 0B16 Set_Auto_Adress_Enable

  • 7/28/2019 Maquina_119_rob

    34/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    Values for results

    READ_ODI 5616 Read ODI 2

    GET_LISTS 3016 Get LDS, LAS, LPS, Flags 2

    GET_LCS 6016 Get LCS 2

    GET_LOS 6116 GET_LOS 2

    SET_LOS 6216 SET_LOS 10

    GET_TECA 6316 Get transm.err.counters 2

    GET_TECB 6416 Get transm.err.counters 2

    GET_TECX 6616 Get transm.err.counters 4

    EXT_DIAG 7116 ExtDiag generation 6

    OPTIONS 7416

    Software options 2

    BUTTONS 7516 Disable pushbuttons 3

    RD_EXT_DIAG 7B16 Read ExtDiag Settings 2

    INVERTER 7C16 Configure Inverter Slaves 12

    Values for result

    value place meaning

    OK 0016 execution without fault

    HI_NG 1116 HI general fault

    HI_OPCODE 1216 HI illegal value in command

    HI_LENGTH 1316 HI length of the mailbox in the I/O-datatively the length of the DPV1-Reque

    HI_ACCESS 1416 HI no access right

    EC_NG 2116 EC general fault

    Values for command

    value meaning ReqLen

  • 7/28/2019 Maquina_119_rob

    35/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    7.3.2 Mailbox commands

    IDLE:

    READ_IDI:

    With this call the input data values of all AS-i slaves are re

    AS-i/PROFIBUS Gateway in addition to the cyclic data ex

    box command READ_IDI transmits all Execution-Control-F

    Request

    byte 27 26 25 24 23

    1 0016

    2 T circuit

    Responsebyte 27 26 25 24 23

    1 0016

    2 T result

    Request

    byte 27 26 25 24 23

    1 41162 T circuit

    Response

    byte 27 26 25 24 23

    1 4116

    2 T result

    3

    4 OR APF NA CA AAv

    5

    6 slave 2A

    AS i/PROFIBUS G t PROFIBUS DP

  • 7/28/2019 Maquina_119_rob

    36/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    WRITE_ODI:

    With this call the output data values of all AS-i slaves are written in aclic data exchange.

    Set_Permanent_Parameter (SET_PP):

    With this call, a parameter value for the specified AS-i slave is config

    PROFIBUS Gateway. The value is stored permanently in the EEPRway.

    The configured parameter is not transferred immediately by the AS-

    Gateway to the AS-i slave. The configured parameter value is only t

    the AS-i slave is activated after turning on the power supply on the

    Gateway.

    Request

    byte 27 26 25 24 23 22

    1 4216

    2 T circuit

    3 slave 1

    4 slave 2A slave 3

    34 slave 30B slave 3

    Response

    byte2

    7

    2

    6

    2

    5

    2

    4

    2

    3

    2

    2

    1 4216

    2 T result

    Requestbyte 27 26 25 24 23 22

    1 4316

    2 T circuit

    AS i/PROFIBUS Gateway PROFIBUS DP

  • 7/28/2019 Maquina_119_rob

    37/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    Get_Permanent_Parameter (GET_PP):

    With this call, a slave-specific parameter value stored on tPROFIBUS Gateway is read.

    Write Parameter (WRITE_P):

    The AS-i slave parameter value transferred with the comm

    dressed AS-i slave.

    The parameter is stored on the AS-i/PROFIBUS Gateway

    entered as a configured parameter in the EEPROM!

    The AS-i slave transfers its current parameter value in the

    echo). This can deviate from the value that has just been w

    master specification. The AS-i slave response is returned a

    response data.

    Request

    byte 27 26 25 24 23

    1 0116

    2 T circuit

    3 B slave

    Response

    byte 27 26 25 24 23

    1 0116

    2 T result

    3

    Request

    byte 27 26 25 24 23

    1 0216

    2 T circuit

    3 B slave

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    38/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    Read Parameter (READ_PI):

    This call returns the current parameter value (actual parameter) of aby the AS-i/PROFIBUS Gateway.

    This value must not be confused with the parameter echo that is sup

    slave as a response to the write_parameter job.

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    B = 1 B-slave

    Store Actual Parameters (STORE_PI):

    With this call, the configured parameters stored on the EEPROM are

    the current, permanently stored (actual) parameters; in other words

    of all the AS-i slaves are configured.

    Request

    byte 27 26 25 24 23 22

    1 0316

    2 T circuit

    3 B slave address

    Response

    byte 27 26 25 24 23 22

    1 0316

    2 T result

    3 PI

    Requestbyte 27 26 25 24 23 22

    1 0416

    2 T circuit

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    39/78

    AS i/PROFIBUS Gateway PROFIBUS DP

    Set Permanent Configuration (SET_PCD):

    This call sets the following configuration data for the addre I/O configuration

    ID code

    Extended ID1 code

    Extended ID2 code

    The configuration data are stored permanently on the EEP

    PROFIBUS Gateway and are used as the expected configin the protected mode. The configuration data are specifie

    the AS-i slave.

    If the addressed AS-i slave does not support an extended I

    must be specified.

    When this command is executed, the AS-i master change

    then changes back to the normal mode (warm restart on t

    This command can only be executed in the configuration m

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    Request

    byte 27 26 25 24 23

    1 2516

    2 T circuit

    3 B slave4 xID2

    5 ID

    Response

    byte 27 26 25 24 23

    1 2516

    2 T result

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    40/78

    y

    The configuration data are specified by the manufacturer of the AS-

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    B = 1 B-slave

    Store Actual Configuration (STORE_CDI):

    With this call, the (actual) configuration data (I/O configuration, ID codcode and extended ID2 code) of all AS-i slaves are stored permane

    EEPROM as the (expected) configuration data. The list of activated A

    is adopted in the list of permanent AS-i slaves (LPS).

    When this command is executed, the AS-i master changes to the of

    then changes back to the normal mode (warm restart on the AS-i m

    This command can only be executed in the configuration mode.

    Request

    byte 27 26 25 24 23 22

    1 2616

    2 T circuit

    3 B slave address

    Responsebyte 27 26 25 24 23 22

    1 2616

    2 T result

    3 xID2 xID1

    4 ID I0

    Request

    byte 27 26 25 24 23 22

    1 0716

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    41/78

    Read Actual Configuration (READ_CDI):

    With this call, the following configuration data of an addresthe AS-i master on the AS-Interface are read.

    I/O configuration

    ID code

    Extended ID1 code

    Extended ID2 code

    The configuration data are specified by the manufacturer o

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    B = 1 B-slave

    SET_LPS:

    With this call, the list of configured AS-i slaves is transferre

    the EEPROM of the master.

    When this command is executed, the AS-i master change

    th h b k t th l d ( t t t

    Request

    byte 27 26 25 24 23

    1 2816

    2 T circuit

    3 B slave

    Response

    byte 27 26 25 24 23

    1 2816

    2 T result

    3 xID2

    4 ID

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    42/78

    GET_LPS:

    With this call, the following entry is read out of the AS-i/PROFIBUS G

    of projected AS-i slaves (LPS).

    GET_LAS:

    With this call, the following entry is read out of the AS-i/PROFIBUS G

    of activated slaves (LAS).

    Response

    byte 27 26 25 24 23 22

    1 2916

    2 T result

    Request

    byte 27 26 25 24 23 22

    1 4416

    2 T circuit

    Response

    byte 27 26 25 24 23 22

    1 4416

    2 T result

    3 7A &A 5A 4A 3A 2A

    10 31B 30B 29B 28B 27B 26B

    Request

    byte 27 26 25 24 23 22

    1 4516

    2 T circuit

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    43/78

    GET_LDS:

    With this call, the following entry is read out of the AS-i/PRof detected AS-i slaves (LDS).

    GET_FLAGS:

    With this call, the following entry is read out of the AS-i/PR

    flags according to the AS-i slave specification.

    Request

    byte 27 26 25 24 23

    1 4616

    2 T circuit

    Response

    byte 27 26 25 24 23

    1 4616

    2 T result

    3 7A &A 5A 4A 3A

    10 31B 30B 29B 28B 27B

    Request

    byte 27 26 25 24 23

    1 4716

    2 T circuit

    Response

    byte 27 26 25 24 23

    1 4716

    2 T response

    3

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    44/78

    AAs Auto_Address_Assign

    This flag is set when the automatic address programming is

    words, AUTO_ADDR_ENABLE = 1 and there is no incorrect

    to the AS-i Interface).

    AAv Auto_Address_Available

    This flag is set when the automatic address programming ca

    (in other words, exactly one AS-i slave is currently out of ope

    CA Configuration_Active

    The flag is set in the configuration mode and reset in the pro

    NA Normal_Operation_Active

    This flag is set when the AS-i master is in normal operation.

    APF APF

    This flag is set when the voltage on the AS-i cable is too low

    OR Offline_Ready

    The flag is set when the offline phase is active.

    Cok Config_Ok

    This flag is set when the desired (configured) and actual con

    AAe Auto_Address_Enable

    This flag indicates whether the automatic address programm

    (bit = 1) or disabled (bit = 0) by the user.

    OL Off-lineThis flag is set when the mode is to changed to OFFLINE or

    already been adopted.

    DX Data_Exchange_Active

    If the "Data_Exchnge_Active" flag is set, the the data exchag

    master and slaves is available in the dataexchange phase. If

    the data exchange is not available. The read ID telgegrams a

    the slave.

    The bit is set if the AS-i master entries the offline phase.

    SET OP MODE:

  • 7/28/2019 Maquina_119_rob

    45/78

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    46/78

    The master changes to the Offline phase, if there is a 1 written in by

    The master will change to online mode if there is a 0 written in byte

    SET_DATA_EX:

    Change Slave Address (SLAVE_ADDR):

    With this call, the AS-i address of an AS-i slave can be modified.

    This call is mainly used to add a new AS-i slave with the default add

    AS-Interface. In this case, the address is changed from "AS-i slave

    to "AS-i slave address new.

    This change can only be made when the following conditions are fu

    1. An AS-i slave with AS-i slave address old exists.

    2. If the old AS-i slave address is not equal to 0, then an AS-i slave

    cannot be connected at the same time.

    Response

    byte 27 26 25 24 23 22

    1 0A16

    2 T result

    Request

    byte 27 26 25 24 23 22

    1 4816

    2 T circuit

    3 Data_Exchange_Active

    Response

    byte 27 26 25 24 23 22

    1 4816

    2 T result

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    47/78

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    B = 1 B-slave

    Set Auto Address Enable (SET_AAE):

    This call can enable or disable the "automatic address pro

    The AUTO_ADDR_ENABLE bit is stored permanently; in

    after a warm/hot restart on the AS-i master.

    Request

    byte 27 26 25 24 23

    1 0D16

    2 T circuit

    3 B sourc

    4 B targe

    Response

    byte 27 26 25 24 23

    1 0D16

    2 T result

    Request

    byte 27 26 25 24 23

    1 0B16

    2 T circuit

    3 Auto_Address_Enable

    Response

    byte 27 26 25 24 23

    1 0B16

    2 T lt

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    48/78

    EXEC_CMD:

    With this call the master gets a message from the host that a messa

    transmitted to the AS-i slaves.

    Meaning of bit B:

    B = 0 Single AS-i slave or A-slave

    B = 1 B-slave

    GET_LPF:

    With this call, the list of peripheral faults (LPF) signaled by the AS-i s

    from the AS-i master. The LPF is updated cyclically by the AS-i mas

    when an AS-i slave signals faults of the attached peripherals (for exa

    can be found in the description of the AS-i slave.

    Request

    byte 27 26 25 24 23 22

    1 4916

    2 T circuit

    3 B slave address4 info5

    Response

    byte 27 26 25 24 23 22

    1 4916

    2 T result3 info4

    Request

    byte 27 26 25 24 23 22

    1 3E16

    2 T circuit

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    49/78

    Write AS-i Slave Extended ID1 (WRITE_XID1):

    With this call, the extended ID1 code of an AS-i slave with

    directly over the AS-i cable. The call is intended for diagno

    required in the normal master mode.

    The AS-i master passes on the extended ID1 code to the A

    sibility check.

    RD_7X_IN:

    With this command the four 16 bit channels of an AS-i inp

    slave profil 7.3 can be read.

    Request

    byte 27 26 25 24 23

    1 3F16

    2 T circuit

    3

    Response

    Byte 27 26 25 24 23

    1 3F16

    2 T result

    Request

    byte 27 26 25 24 23

    1 5016

    2 T circuit

    3 0 slave

    Response

    byte 27 26 25 24 23

    1 5016

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    50/78

    WR_7X_OUT:

    With this command the four 16 bit channels of an AS-i output slave

    slave profil 7.3 can be written.

    RD_7X_OUT:

    With this command the four 16 bit channels of an AS-i output slave

    slave profil 7.3 can be read out of the AS-i/PROFIBUS Gateway.

    Request

    byte 27 26 25 24 23 22

    1 5116

    2 T circuit

    3 0 slave address4 channel 1, high byte

    11 channel 4, low byte

    Response

    byte 27 26 25 24 23 22

    1 5116

    2 T result

    Request

    byte 27 26 25 24 23 22

    1 5216

    2 T circuit

    3 0 slave address

    Response

    byte 27 26 25 24 23 22

    1 5216

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    51/78

    RD_7X_IN_X:

    With this command the four 16 bit channels of 4 AS-i inpu

    dresses according to the slave profil 7.3 can be read.

    WR_7X_OUT_X:

    With this command the four 16 bit channels of 4 AS-i outpu

    dresses according to the slave profil 7.3 can be written.

    Request

    byte 27 26 25 24 23

    1 5316

    2 T circuit

    3 0 1st sla

    Response

    byte 27 26 25 24 23

    1 5316

    2 T result

    3 1st slave, channell 1, high b

    34 4th slave, channel 4, low b

    Request

    byte 27 26 25 24 23

    1 5416

    2 T circuit

    3 0 1st sla

    4 1st slave, channel 1, high b

    35 4th slave, channel 4, low b

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    52/78

    RD_7X_OUT_X:

    With this command the four 16 bit channels of 4 AS-i output slaves w

    dresses according to the slave profil 7.3 can be read.

    READ_ODI:

    With this call the output data values of all AS-i slaves is read out of

    PROFIBUS Gateway.

    Request

    byte 27 26 25 24 23 22

    1 5516

    2 T circuit

    3 0 1st slave addres

    Response

    byte 27 26 25 24 23 22

    1 5516

    2 T result

    3 1st slave, channel 1, high byte

    34 4th slave, channel 4, low byte

    Request

    byte 27 26 25 24 23 22

    1 5616

    2 T circuit

    Responsebyte 27 26 25 24 23 22

    1 5616

    2 T result

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    53/78

    Get_LPS, Get_LAS, Get_LDS, Get_Flags (GET_LISTS):

    With this call, the following entries are read out of the AS-

    The list of active AS-i slaves (LAS)

    The list of detected AS-i slaves (LDS)

    The list of projected AS-i slaves (LPS)

    The flags according to the AS-i slave specification

    Pok Periphery_Ok

    S0 LDS.0

    Request

    byte 27 26 25 24 23

    1 3016

    2 T circuit

    Response

    byte 27 26 25 24 23

    1 3016

    2 T result

    3 7A 6A 5A 4A 3A

    LAS

    10 31B 30B 29B 28B 27B

    11 7A 6As 5A 4A 3A

    LDS19 31B 30B 29B 28B 27B

    20 7A 6As 5A 4A 3A

    LPS

    26 31B 30B 29B 28B 27B

    27

    28 OR APF NA CA AAv29

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    54/78

    GET_LCS:

    With this call, the List of Corrupted Slaves (LCS) is read out of the A

    Gateway.

    GET_LOS:

    With this call, the List of Offline Slaves (LOS) is read out of the AS-i/P

    way (see chapter 6).

    Request

    byte 27 26 25 24 23 22

    1 6016

    2 T circuit

    Response

    byte 27 26 25 24 23 22

    1 6016

    2 T result

    3 7A 6A 5A 4A 3A 2A

    10 31B 30B 29B 28B 27B 26B

    Request

    byte 27 26 25 24 23 22

    1 6116

    2 T circuit

    Response

    byte 27 26 25 24 23 22

    1 6116

    2 T result

    3 7A 6A 5A 4A 3A 2A

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    55/78

    SET_LOS:

    With this call, the List of Offline Slaves is written to the AS-i/

    chapter 6).

    GET_TECA:

    With this call the error counters of all single slaves / A-slav

    ter 6).

    Request

    byte 27 26 25 24 23

    1 6216

    2 T circuit

    3 7A 6A 5A 4A 3A

    10 31B 30B 29B 28B 27B

    Response

    byte 27 26 25 24 23

    1 6216

    2 T result

    Request

    byte 27 26 25 24 23

    1 6316

    2 T circuit

    Response

    byte 27 26 25 24 23

    1 6316

    2 T result

    3 APF

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    56/78

    GET_TECB:

    With this call the counts of the error counters for B-slaves are read ou

    With every read out of the counts the error counters are restarted.

    The counts are read out via the correspondending host interface an

    with every read access. The counter value is limited to 254. 255 mea

    flow.

    GET_TEC_X:

    With this call beginning by a definite slave address the counts of the

    are read out (see chapter 6).

    With every read out of the counts the error counters are restarted.

    The counts are read out via the correspondending host interface an

    with every read access. The counter value is limited to 254. 255 meaflow.

    Request

    byte2

    7

    26

    25

    24

    23

    22

    1 6416

    2 T circuit

    Response

    byte 27 26 25 24 23 22

    1 6416

    2 T result

    3 APF

    4 slave 1B

    34 slave 31B

    Anfrage

    Byte 27 26 25 24 23 22

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    57/78

    EXT_DIAG:

    With this call, the conditions when to set the ExtDiag bit ca

    CF ExtDiag is set, if ConfigError 1

    APF ExtDiag is set, if APF 1

    PF ExtDiag is set, if PeripheryFault 1

    CS ExtDiag is set, if LCS is not empty

    OPTIONS

    Antwort

    Byte2

    7

    26

    25

    24

    23

    1 6616

    2 T Ergebnis

    3 Zhler 1

    n Zhler n - 2

    Request

    byte 27 26 25 24 23

    1 71162 T circuit

    3 CF

    4 APF

    5 PF

    6 CS

    Response

    byte 27 26 25 24 23

    1 7116

    2 T result

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    58/78

    BUTTONS:

    With this call, the use of the buttons can be enabled/disabled.

    RD_EXT_DIAG:

    With this call, the conditions when the ExtDiag bit is set can be read

    Response

    byte2

    7

    26

    25

    24

    23

    22

    1 7416

    2 T result

    3 character 1

    18 character 16

    Request

    byte 27 26 25 24 23 22

    1 7516

    2 T circuit

    3 ButtonsDisabled

    Response

    byte 27 26 25 24 23 22

    1 7516

    2 T result

    Request

    byte 27 26 25 24 23 22

    1 7B16

    2 T circuit

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    59/78

    CF ExtDiag is set by ConfigError 1

    APF ExtDiag is set by APF 1

    PF ExtDiag is set by PeripheryFault 1CS ExtDiag is set, if LCS is not empty

    FD Diagnosis will updated still only then, if this is dictated

    Diagnosis data are doubtful not actual

    INVERTER:

    With that call an AS-i slave for frequency inverters is switch16 bit values via the AS-i analog profile 7.3 and afterwards

    stination parameter.

    Request

    byte 27 26 25 24 23

    1 7C16

    2 T circuit

    3 slave address

    4 destination parameter

    5 value 1, high byte

    6 value 1, low byte

    7 value 2, high byte

    8 value 2, low byte9 value 3, high byte

    10 value 3, low byte

    11 value 4, high byte

    12 value 4, low byte

    Response

    byte 27 26 25 24 23

    1 7C16

    2 T result

    AS-i/PROFIBUS Gateway PROFIBUS-DP

    3 3 M ilb l

  • 7/28/2019 Maquina_119_rob

    60/78

    7.3.3 Mailbox example

    Command RD_7X_IN: Reading of analog input values

    PROFIBUS-DP V0: cyclic data exchange

    Used ID/module in the GSD file: 12 bytes management

    Meaning of the bytes:

    The mailbox call has not been anwsered with the valid values, beau

    has not been set.

    Set of Toggle bit:

    Request: RD_7X_IN

    Byte 1 50hex (RD_7X_IN)

    Byte 2 00hex (master 1, single master)

    Byte 3 1Dhex (slave address 29)

    Byte 4 00hex

    Byte 12 00hex

    ResponseByte 1 00hex

    Byte 2 00hex

    Byte 3 00hex

    Byte 4 00hex

    Byte 12 00hex

    Request

    Byte 1 50hex

    Byte 2 80hex (Toggle bit, master 1, single master)

    Byte 3 1Dhex (slave address 29)

    Byte 4 00h

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    61/78

    To get the input data again, the T-bit has to be reset aso.

    If a mailbox command is used via PROFIBUS-DP V1, it is

    toggle bit.

    Response

    Byte 1 50hex

    Byte 2 80hex (Toggle bit, master1)

    Byte 3 analog channel 1 high bytehex

    Byte 4 analog channel 1 low bytehex

    Byte 5 analog channel 2 high bytehex

    Byte 6 analog channel 2 low bytehex

    Byte 7 analog channel 3 high bytehex

    Byte 8 analog channel 3 low bytehex

    Byte 9 analog channel 4 high bytehex

    Byte 10 analog channel 4 low bytehex

    Byte 11 00hex not usedt

    Byte 12 00hex

    not usedt

    AS-i/PROFIBUS Gateway PROFIBUS-DP

  • 7/28/2019 Maquina_119_rob

    62/78

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

    8 Commissioning Tools and Accessories

  • 7/28/2019 Maquina_119_rob

    63/78

    8 Commissioning Tools and Accessories

    The AS-i circuit on the AS-i/PROFIBUS Gateway can be pcomfortable Windows software "AS-i Control" Tools.

    This software communicates with the AS-i/PROFIBUS gat

    PROFIBUS DP Mastersimulator DP V1 of Bihl+Wiedeman

    no. 1257) or Serial PROFIBUS Master of Bihl+Wiedeman

    no 1258), which converts the RS 232-signals of the PC to

    The AS-i master in IP65 needs an additional D-Sub data t

    AS-i masters in IP65 of Bihl+Wiedemann GmbH, Mannhe

    8.1 Windows Software AS-i Control Tools

    The Windows software AS-i Control Tools enables you to c

    a very comfortable manner.

    1. For that purpose plug in the PROFIBUS-DP Ma

    Bihl+Wiedemann GmbH, Mannheim, (art. no. 1257) to thAS-i/PROFIBUS gateway. Connect the device with encl

    sion cord to the AS-i/PROFIBUS gateway in IP20.

    For the connection of the AS-i/PROFIBUS gateway in I

    Sub data transmission cord of Bihl+Wiedemann GmbH,

    2. Start the AS-i Control Tools.

    3. Call the command Master | New.

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

    5 Do the appropriate settings (e g serial interface COM 2 station

  • 7/28/2019 Maquina_119_rob

    64/78

    5. Do the appropriate settings. (e.g. serial interface COM 2, station

    AS-i circuit 1)

    6. Call the command Master | AS-i configuration.

    The AS-i configuration editor will be started. All detected and proje

    are displayed in this window.

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

    7. Click on a slave entry to open the dialogbox slave confi

  • 7/28/2019 Maquina_119_rob

    65/78

    7. Click on a slave entry to open the dialogbox slave confi

    This dialog box is for changing a slave address, settinconfiguration data. Additionally you can test inputs and

    A very easy approach to configure the AS-i circuit is connec

    line and setting the AS-i slave address one after the other.

    Store configuration to adopt the detected AS-i circuit to th

    data.

    Moreover you can use the AS-i Address Assistant. This t

    the address of an AS-i slave to the desired address after pluline. The desired AS-i configuration can be created off-line

    When you build up the plant you only have to plug the AS-i

    after the other.

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

    8.2 PROFIBUS-DP master simulator

  • 7/28/2019 Maquina_119_rob

    66/78

    The PROFIBUS-DP Master Simulator is an easy to use software fo

    with PROFIBUS slaves of many suppliers via PROFIBUS-DP. The

    Master Simulator can exchange data with many PROFIBUS slaves GSD-file or type-file. The PROFIBUS slaves can be put into operatio

    I/O window. Input data can be read and output data can be written.

    PROFIBUS-DP Master Simulator also processes GSD-files. User pa

    edited and the configuration can be modified and stored. The PROF

    dress can be changed as well with the PROFIBUS-DP Master Simula

    for PROFIBUS I/O modules in protection class IP67 without address

    The PROFIBUS-DP Master Simulator offers the possibility to scan awork for connected slaves and display them in a graphical way. In th

    PROFIBUS UART has to be connected directly to a PROFIBUS slav

    and the PROFIBUS user diagnosis can be displayed binary, hexdecim

    as ASCII code. The PROFIBUS output data can be transmitted con

    PROFIBUS slave. In type mode it is possible to set an output as lon

    button is pressed.

    The new version of the PROFIBUS-DP Master Simulator supports PV1. PROFIBUS slaves can be operated in the acyclic mode DP V1. T

    pecially for the commissioning of complex field devices like drives, m

    tems etc.

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

    8.3 Serial PROFIBUS Master

  • 7/28/2019 Maquina_119_rob

    67/78

    The Serial PROFIBUS Master fulfills all tasks of the PROF

    Futhermore it can run the PROFIBUS with up to 1,5 MBau

    The Serial PROFIBUS Master can also be used as class 2

    in a PROFIBUS network. In that way the software AS-i Con

    permanent diagnosis while the PROFIBUS is running.

    AS-i/PROFIBUS Gateway Commissioning Tools and Accessories

  • 7/28/2019 Maquina_119_rob

    68/78

    AS-i/PROFIBUS Gateway Appendix: Displays of the Figure Display

    9 Appendix: Displays of the Figure Display

  • 7/28/2019 Maquina_119_rob

    69/78

    In the basic state of the configuration mode, the display shaddresses of all detected slaves at a rate of two per secon

    that the LDS is empty, i.e. no slaves were detected.

    In the basic state of the protected operating mode, the dis

    plays the address of a faulty assignment (see chapter 5.3.

    During manual address programming, the slave address d

    meaning (see chapter 5.4 and 5.5).

    All displayed numbers that are bigger than 31 and therefor

    a slave address are status or error messages of the maste

    meanings:

    39 Advanced AS-i diagnostics: If a 39 appears on the d

    set-button a short-time AS-i power failure occured.

    40 The AS-i master is in off-line phase.

    41 The AS-i master is in detection phase.42 The AS-i master is in activation phase.

    43 The AS-i master starts the normal operating mode.

    70 Hardware error: The AS-i masters EEPROM canno

    72 Hardware error: The PIC processor does not respon

    73 Hardware error: The PIC processor does not respon

    74 Checksum error in the EEPROM.75 Error in the external RAM.

    76 Error in the external RAM.

    77 AS-i control software error: Stack overflow (AS-i con

    78 AS-i control software error: Checksum error in the c

    80 Error while attempting to exit the configuration mode

    zero exists.

    81 General error while changing a slave address.

    82 The front panel operation is blocked. Until the next p

    ter the accessing to the device only from the host via

    83 P t f th AS i C t l Th A

    AS-i/PROFIBUS Gateway Appendix: Displays of the Figure Display

    95 Error while changing slave address in protected operating mo

  • 7/28/2019 Maquina_119_rob

    70/78

    ration error was caused by one slave too many (instead of one

    AS-i/PROFIBUS Gateway Appendix: The First Commissioning of AS-i

    10 Appendix: The First Commissioning of AS-i

  • 7/28/2019 Maquina_119_rob

    71/78

    In this chapter an example is given of how to

    operation quickly and easily and without the n

    The addressing of the components connecte

    be performed directly on the AS-i master. It is

    able to do the addressing with a hand-held pr

    the Windows software AS-i Control Tools. Ho

    figure even complex networks using only the

    What to do ? How to go abo

    See to it that the AS-i master is properly

    supplied with power.

    Connect the A

    the terminals A

    master, connec

    Turn on the po

    After the self-test: the LEDs power, config err, U ASI

    The figure display shows 40: the AS-i master is in the of

    that a 41 will be displayed: the AS-i master stays in the

    Switch the device to the projecting

    mode, if the yellow LED does not light

    up.

    Press the mod

    approx. five se

    The yellow LED prj mode lights up. The device is now i

    Add a slave with the address 0 to the

    AS-i line.

    Connect the sl

    terminals AS-i

    The green LED ASI active lights up. The figure display s

    AS-i master has detected the slave.

    Change the slave address to address 1. Select address

    button shortly,

    When a 1 appthe set button

    until the displa

    shortly the set

    address to the

    AS-i/PROFIBUS Gateway Appendix: The First Commissioning of AS-i

    What to do ? How to go about it?

  • 7/28/2019 Maquina_119_rob

    72/78

    The configuration of the AS-i master is now finished.Now the hierarchically higher fieldbus system can be put into opera

    The gateway stays in the off-line phase (Display dark, the LED

    out), until the hierarchically higher fieldbus system operates p

    AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5

    11 Appendix: Putting PROFIBUS into Operation wit

  • 7/28/2019 Maquina_119_rob

    73/78

    This chapter shows exemplarily the putting into operation oway on PROFIBUS for the PLC Simatic S5 135 of Siemens

    ter card IM 308 C. The configuration software used is the S

    3.0 (German version).

    11.1 Putting into Operation in Easy Mode

    1. Copy the GSD-file "B_W_1745.GSD" (by Gateway CM4

    GSD-file "B_W_61745.GSD (by Gateway CM4-50AS-i/PROFIBUS Gateway IBM PC Software from the

    rectory \GSD of the software COM PROFIBUS 3.0.

    2. Start the configuration software COM PROFIBUS 3.0

    3. Execute the command File | Scan GSD-Files.

    4. Execute the command File | New.

    The dialog box Master & Host Selection appears.

    Select your PROFIBUS master.

    5. With the command Configure | Master Parameters... y

    and other bus parameters.

    AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5

    6. In the window DP Master System there is a ledge with several PR

    Click on AS-i and drag the icon to the PROFIBUS in the window

  • 7/28/2019 Maquina_119_rob

    74/78

    Click on AS i and drag the icon to the PROFIBUS in the window

    7. After a second mouse click the dialogbox for the selection of the P

    address appears. Setting of the AS-i/PROFIBUS gateway's sta

    chapter 5.6:

    AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5

    8. and afterwards the dialogbox for the selection of the de

    ters):

  • 7/28/2019 Maquina_119_rob

    75/78

    )

    Choose AS-i/DP as station type. This name stands fotings for the easy mode.

    9. Afterwards, your PROFIBUS system looks as follows:

    AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5

    10.Select the PROFIBUS slave. With the command Configure | Sla

    | Configure... you get to the dialogbox Configure.

  • 7/28/2019 Maquina_119_rob

    76/78

    | g y g g g

    The fields I Addr. and O Addr. hold the start addresses for th

    easiest way to set the addresses is with Auto Addr.. From the

    bytes of AS-i data each are mapped to the address space of yo

    This AS-i data can be processed with your user program by m

    transfer operations.

    11.After closing this dialogbox save your project with the command 12.The last step is exporting the data to a memory card with the com

    port | Memory Card...

  • 7/28/2019 Maquina_119_rob

    77/78

    Moeller GmbHIndustrial AutomationHein Moeller Str 7 11

  • 7/28/2019 Maquina_119_rob

    78/78

    Hein-Moeller-Str. 711

    D-53115 Bonn

    E-Mail: [email protected]: www.moeller.net

    2001 by Moeller GmbH

    Subject to alteration

    AWB2700-1409GB DMD/MDS/B+W 04/01

    Printed in the Federal Republic of Germany (04/01)

    Article No.: 231344

    Think future. Switch to green.