Chapter4-Mang Thong Tin Cong Nghiep

Embed Size (px)

Text of Chapter4-Mang Thong Tin Cong Nghiep

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    1/56

    PROFIBUS Details

    Date 06/22/00, Page 1

    PROFIBUS Details

    s

    PROFIBUS DP Services (mng li profibus)

    Master Class 2

    Field Device (Slave)

    Controls the Field Devices Parameterization Configuration

    Cyclic Data Exchange Read Diagnostic

    Read Diagnostic Set Station Address Read Configuration Read I/O

    Take Over Control of 1 Slave Parameterization Configuration Data Exchange

    Read Diagnostic Upload, Download (De)Activate Parameters (De)Activate Slaves Set Operation Mode

    ! Master Class1 and/or Class 2 and/or Slave can be implemented in one Device !

    Master Class 1

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    2/56

    PROFIBUS Details

    Date 06/22/00, Page 2

    PROFIBUS Details

    s

    Electronic... (continued)

    Mi Slave/class 1 Master cn mt thit b lu tr dliu in t(= GSD file)

    Tt c cc chc nng/c im/tham s ca thit b

    u c xc nh trong GSD

    Vn bn tp tin n gin(nh dng ASCII)

    Thng tin u ra ca bng d liu c c bi cngc cu hnh

    Tp tin c to ra t nh sn xut thit b

    Trong website: www.profibus.com cung cp thm chobn

    GSD cng c son tho to ra data sheets

    GSD kim tra (c c trong phn son tho)

    GSD th vin

    GSD

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    3/56

    PROFIBUS Details

    Date 06/22/00, Page 3

    PROFIBUS Details

    s

    Electronic... (continued)

    Tp tin m rng nhn dng ngn ng

    .gsd yu cu ti thiu (thng dng ngn ng l ting Anh)

    Ngoi tp tin .gsd cn c cc tp tin khc:

    English = .gse

    French = .gsf

    German = .gsg

    Italian = .gsi

    Portuguese = .gsp

    Spanish = .gss

    GSD

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    4/56

    PROFIBUS Details

    Date 06/22/00, Page 4

    PROFIBUS Details

    s

    Cu lnh M t cc tham s(O)

    nh ngha m rng cho cc thams (O)

    D liu tng hp(M)

    D liu lin quan ti thit btrng(M & O)

    nh ngha cc knh vo ra

    Electronic... (continued) - File Structure GSD

    ;

    PrmText = ...

    EndPrmText

    #Profibus_DP

    ;

    ExtUserPrmData = ...

    EndExtUserPrmData

    ;

    GSD_Revision = ...

    ;Slave-specification

    Freeze_Mode_supp = ...

    ;

    Module = ...

    EndModule (M) = Mandatory (O) = Optional

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    5/56

    PROFIBUS Details

    Date 06/22/00, Page 5

    PROFIBUS Details

    s

    File Structure... (continued) GSD

    Phin bn theo tiu chun

    Tn nh cung cp/nh sn xut

    Tn thit b (hin th cng c cu hnh)

    a ch duy nht cho mi sn phmBt buc cho thit b Class 1 v slaveBan hnh bi PTO

    La chn giao thc (0=DP; 1=DP&FMS)

    Kiu (0=Slave; 1=Master)

    H tr chuyn i gi tr v thng s thigian lin quan

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    6/56

    PROFIBUS Details

    Date 06/22/00, Page 6

    PROFIBUS Details

    s

    File Structure... (continued) GSD

    H tr ng b ha d liu u vo

    H tr ng b ha d liu u ra

    Thit b t ng nhn bit gi tr truyn

    a ch c th khng c t tPROFIBUS

    Trm m rng

    nh ngha chiu di cho cc trm module

    D liu ti a chun on t thit b

    S dng cng c cu hnh

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    7/56

    PROFIBUS Details

    Date 06/22/00, Page 7

    PROFIBUS Details

    s

    Chuyn i d liu- SYNC/UNSYNC

    ch bnh thng kt qu u ra nhn c t slave ASIC,ntrc tip cng slave Firmware ghi cc u ra vt l

    Khi lnh iu khin SYNC c gi, u ra cui cnhn chuyn ti Slave Firmware sau b chn

    Tr li hot ng bnh thng khi gp lnh UNSYNC

    MASTER

    Outputs to SlaveDATA x

    Physical OutputsDATA x

    Normal Mode

    MASTEROutputs to Slave

    DATA yPhysical Outputs

    DATA xXSync Mode

    MASTERSYNC

    DATA xPhysical Outputs

    DATA x

    Sync Mode

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    8/56

    PROFIBUS Details

    Date 06/22/00, Page 8

    PROFIBUS Details

    s

    Data Exchange - SYNC/UNSYNC

    Outputs (x) to Slave 3DATA DATA

    Physical Outputs = x

    Outputs (z) to Slave 5DATA DATA

    Physical Outputs = z

    DATA DATA

    Outputs (a) to Slave 3DATA x DATA x

    Physical Outputs = x

    X

    Outputs (y) to Slave 4DATA DATA

    Physical Outputs = yTime Lag Between DataAppearing at PhysicalOutputs of Different Slaves

    Outputs (a) to Slave 4DATA y DATA y

    Physical Outputs = y

    XOutputs (a) to Slave 5

    DATA z DATA zPhysical Outputs = z

    X

    After SYNC, Data Transferto Users Buffer IsBlockedOnlyBuffered in Receive Bufferfor All Slaves in GroupsIndicated

    DATA DATA

    Physical Outputs = DATA

    Physical Outputs = DATA

    SYNC Broadcast

    Receive Buffer Users Buffer

    Data is ImmediatelyTransferred to UsersBuffer & Physical OutputsAppear SimultaneouslyFor All Slaves in GroupsIndicated

    x

    y

    z

    x

    y

    z

    DATA a

    DATA a

    DATA a

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    9/56

    PROFIBUS Details

    Date 06/22/00, Page 9

    PROFIBUS Details

    s

    DATA a

    Data Exchange - SYNC/UNSYNC

    DATA a3

    DATA a4

    DATA a

    DATA x

    DATA y

    DATA z

    Physical Outputs = a

    Physical Outputs = a

    Physical Outputs = a5

    SYNC Broadcast

    DATA b

    Data is ImmediatelyTransferred to UsersBuffer, Physical OutputsAppear Simultaneously& Slaves Go Back IntoNormal Mode For All Slavesin Groups Indicated

    DATA b

    UNSYNC Broadcast

    Data is ImmediatelyTransferred to UsersBuffer & Physical OutputsAppear SimultaneouslyFor All Slaves in Groups

    Indicated

    Outputs (b) to Slave 3DATA a

    Physical Outputs = a

    XOutputs (b) to Slave 4

    DATA a DATA aPhysical Outputs = a

    XOutputs (b) to Slave 5 DATA a DATA a Physical Outputs = aX

    Data Transfer to UsersBuffer Is BlockedOnlyBuffered in Receive Bufferfor All Slaves in GroupsIndicated

    Receive Buffer Users Buffer

    DATA a

    DATA a

    DATA a

    DATA b

    DATA b

    DATA a

    DATA aDATA b

    DATA bPhysical Outputs = b

    Physical Outputs = b

    DATA b

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    10/56

    PROFIBUS Details

    Date 06/22/00, Page 10

    PROFIBUS Details

    s

    PROFIBUS Demo

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    11/56

    PROFIBUS Details

    Date 06/22/00, Page 11

    PROFIBUS Details

    s

    PROFIBUS Cu trc bn tin

    SD: byte khi uLE: chiu di thng tin (DU) + DA, SA , FC, DSAP, SSAP LEr: chiu di thng tin nhc liDA: a ch ch(ni m tin nhn n)SA: a ch ngun (t tin nhn i)FC: m hm( FC=Type & Priority of Message)

    DSAP: im ch im truy cp dch v(giao tip vi cng nhn)

    SSAP: im ngun im truy cp dch v(giao tip vi cng o)FCS: byte kim sot liED: byte kt thc

    = Included in FCS

    SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

    0x68 x x 0x68 x x x 0x3D 0x3E x .. x 0x16

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    12/56

    PROFIBUS Details

    Date 06/22/00, Page 12

    PROFIBUS Details

    s

    PROFIBUS cu trc bc in

    Start

    Bit0

    Each character is 11 bits(Start-, Stop-, (Even) Parity- and 8 Data bits)

    Data

    Bit0

    LSB

    Data

    Bit1

    Data

    Bit2

    Data

    Bit3

    Data

    Bit4

    Data

    Bit5

    Data

    Bit6

    Data

    Bit7

    MSB

    Parity

    Bit

    Stop

    Bit1

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    13/56

    PROFIBUS Details

    Date 06/22/00, Page 13

    PROFIBUS Details

    s

    Cng truyn thng(Dch v truy nhp im)

    Parameterization

    Configuration

    Output Data

    Diagnostic Request

    Is it?

    You gotmail...

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    14/56

    PROFIBUS Details

    Date 06/22/00, Page 14

    PROFIBUS Details

    s

    Cng truyn thng(tip tc)

    It is:

    Configuration

    You gotmail...

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    15/56

    PROFIBUS Details

    Date 06/22/00, Page 15

    PROFIBUS Details

    s

    FunctionDP Master DP Slave

    Dec. Hex Dec. Hex

    Data_Exchange - - - -

    RD_Inp 62 3E 56 38

    RD_Outp 62 3E 57 39

    Slave_Diag 62 3E 60 3C

    Set_Prm 62 3E 61 3D

    Chk_Cfg 62 3E 62 3E

    Get_Cfg 62 3E 59 3B

    Global_Control 62 3E 58 3A

    Set_Slave_Add 62 3E 55 37-

    Cng truyn thng(tip tc)

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    16/56

    PROFIBUS Details

    Date 06/22/00, Page 16

    PROFIBUS Details

    s

    Chuyn i d liu tc cao- Trnh t bt u

    Power ON/Reset

    Power ON/Reset of Master or Slave

    Parameterization

    Download of Parameters into the FieldDevice (selected during Configurationby the User)

    I/O Configuration

    Download of I/O Configuration into the

    Field Device (selected duringConfiguration by the User)

    Data ExchangeCyclic Data Exchange (I/O Data)and Field Device reports Diagnostics

  • 7/30/2019 Chapter4-Mang Thong Tin Cong Nghiep

    17/56

    PROFIBUS Details

    Date 06/22/00, Page 17

    PROFIBUS Details

    s

    Trnh t bt u(tip)

    Power ON/Reset

    Power ON/Reset of Master or Slave

    Parameterization

    Download of Parameters into the FieldDevice (selected during Configurationby the User)

    I/O Configuration

    Download of I/O Configuration into the

    Field Device (selected duringConfiguration by