Chapter4-Mang Thong Tin Cong Nghiep

  • Published on
    04-Apr-2018

  • View
    214

  • Download
    0

Embed Size (px)

Transcript

  • 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 the User)

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

    Parameterization

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

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

    18/56

    PROFIBUS Details

    Date 06/22/00, Page 18

    PROFIBUS Details

    s

    7 BytesMandatory

    Device Specific(Optional)

    Up to 244 Bytes

    Trnh t bt u- Tham s haSD 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

    19/56

    PROFIBUS Details

    Date 06/22/00, Page 19

    PROFIBUS Details

    s

    Tham s ha(tip)

    Tham s c truyn i khi cp ngun

    7 byte bt buc dnh cho thit b trng

    Qu trnh tham s ha: Response Monitoring Time

    TSDR Time for Master/Slave Timing

    Freeze/Sync Mode

    Lock or Unlock Slave for this Master

    Assignment to Group Master Address

    Ident Number

    Thi gian xc nhn ngn

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

    20/56

    PROFIBUS Details

    Date 06/22/00, Page 20

    PROFIBUS Details

    s

    Tham s ha(tip) - Mandatory

    Lock Unlock Meaning

    0 0 Min TSDR and User Parameters are allowed to be overwritten

    0 1 DP-Slave is NOT locked for other Masters

    1 0 DP-Slave is locked for other Masters; all parameters are accepted

    1 1 DP- Slave is NOT locked for other Masters

    Reserved

    WD_ON (1=Response Monitoring (Watchdog) Activated)

    Freeze_Req (1=Support of Freeze Mode Required)

    Sync_Req (1=Support of Sync Mode Required)

    Unlock (See Table below)

    Lock (See Table below)

    7 0Octet 1

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

    21/56

    PROFIBUS Details

    Date 06/22/00, Page 21

    PROFIBUS Details

    s

    WD_Fact_1

    WD_Fact_2 (Watchdog (s)=10ms * WD_Fact_1 * WD_Fact_2)

    TSDR (Time the field device waits before it responds)

    PROFIBUS Ident Number (high byte)

    PROFIBUS Ident Number (low byte)

    Group_Ident (8 groups; bit x is set -> devices belongs to group x)

    Tham s ha - Mandatory (tip)

    Octet 2

    Octet 3

    Octet 4

    Octet 5

    Octet 6

    Octet 7

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

    22/56

    PROFIBUS Details

    Date 06/22/00, Page 22

    PROFIBUS Details

    s

    Tham s ha(tip) thit b lin quan

    Mi thit b s dng Octets 8 - 244 cho thit bmodule thng tin lin quan (e.g. thng tin khing)

    V tr ca DIP thit b chuyn mch (v d nh thitlp phm vi o lng cho mt knh tng t)

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

    23/56

    PROFIBUS Details

    Date 06/22/00, Page 23

    PROFIBUS Details

    s

    Tham s ha(tip) v d GSD File

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

    24/56

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

    25/56

    PROFIBUS Details

    Date 06/22/00, Page 25

    PROFIBUS Details

    s

    Simple and/or SpecialIdentifier Format

    Up to 244 Bytes

    Trnh t khi ng cu hnhSD 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

    26/56

    PROFIBUS Details

    Date 06/22/00, Page 26

    PROFIBUS Details

    s

    Cu hnh(tip)

    Cu hnh c gi mt ln sau bt ngun hoc reset

    Master gi cu hnh ti Slaves

    Bt k cu hnh thit b c th no

    Cu hnh vo ra Slave confirms receipt with short acknowledge

    Tha nhn cu hnh(Short Acknowledge E5h)

    Kim tra hiu lc ca thng tin cu hnh

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

    27/56

    PROFIBUS Details

    Date 06/22/00, Page 27

    PROFIBUS Details

    s

    Cu hnh(tip) khung n gin

    Chiu di d liu cho cc d liu u vohoc u ra (khng dnh cho nh0000=1 Byte/Word...1111=16 Bytes/Words

    nh ngha d liu00=Special Format (see page 28)01=Input10=Output11=Input & Output

    Size Data Unit (NOT for Special Format)0=Byte1=Word

    7 0Identifier 1 (1 Byte per Module for Simple Format)

    Tnh nht qun d liu(NOT for Special Format)0=Byte/Word1=Whole Length

    Cu hnh d liu b sung (nh dng n gin hoc c bit)

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

    28/56

    PROFIBUS Details

    Date 06/22/00, Page 28

    PROFIBUS Details

    s

    Cu hnh(tip) v d cho khung n gin

    Data Length1010=11 Words

    Data Definition10=Output

    Size Data Unit (NOT for Special Format)1=Word

    Data Consistency (NOT for Special Format)0=Word

    0 1 1 0 1 0 1 0

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

    29/56

    PROFIBUS Details

    Date 06/22/00, Page 29

    PROFIBUS Details

    s

    Configuration (continued) - Special Format

    Length of Vendor Specific Data

    0000=No Data0001-1110=1-15 Bytes1111=No Data

    00=Special Format (FIXED)

    Input/Output00=No I/O01=One Byte for Input Data Specification follows10=One Byte for Output Data Specification follows11=One Byte for Output & 1 Byte for Input Data Specification follows

    7 0

    Header

    I/O DataSpecification

    VendorSpecific Data

    Additional Config Data(Simple or Special Format)Header

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

    30/56

    PROFIBUS Details

    Date 06/22/00, Page 30

    PROFIBUS Details

    s

    Configuration (continued) - Special Format

    Data Length for Input or Output Data

    000000=1 Byte/Word...111111=64 Bytes/Words

    Size Data Unit0=Byte1=Word

    Data Consistency0=Byte/Word1=Whole Length

    7 0

    Header

    HeaderVendor

    Specific DataAdditional Config Data

    (Simple or Special Format)I/O Data

    Specification

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

    31/56

    PROFIBUS Details

    Date 06/22/00, Page 31

    PROFIBUS Details

    s

    Configuration (continued) - Example Special Format

    0 1 0 0 0 0 1 1 1 Byte for Input Data Specification & 3 BytesVendor Specific Data follow

    1 0 1 0 0 1 0 036 Bytes of Input Data with Consistency overwhole Length

    0 0 0 0 0 1 1 0

    1 1 1 1 0 1 1 0

    1 0 1 1 1 1 0 1

    3 Bytes of Vendor Specific Information

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

    32/56

    PROFIBUS Details

    Date 06/22/00, Page 32

    PROFIBUS Details

    s

    Configuration (continued) - Example Telegram

    = Simple Format

    = Special Format

    1stModule

    2ndModule

    3rdModule

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

    33/56

    PROFIBUS Details

    Date 06/22/00, Page 33

    PROFIBUS Details

    s

    Configuration (continued) - Example GSD File

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

    34/56

    PROFIBUS Details

    Date 06/22/00, Page 34

    PROFIBUS Details

    s

    Startup Sequence (continued)

    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 theField Device (selected duringConfiguration by the User)

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

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

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

    35/56

    PROFIBUS Details

    Date 06/22/00, Page 35

    PROFIBUS Details

    s

    Application SpecificData

    Up to 244 Bytes

    Startup Sequence - Data Exchange Request

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

    0x68 x x 0x68 x x x x .. x 0x16

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

    36/56

    PROFIBUS Details

    Date 06/22/00, Page 36

    PROFIBUS Details

    s

    Application SpecificData

    Up to 244 Bytes

    Startup Sequence - Data Exchange Response

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

    0x68 x x 0x68 x x 0x08 x .. x 0x16

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

    37/56

    PROFIBUS Details

    Date 06/22/00, Page 37

    PROFIBUS Details

    s

    Data Exchange (continued) - Example GSD File

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

    38/56

    PROFIBUS Details

    Date 06/22/00, Page 38

    PROFIBUS Details

    s

    Trnh t bt u(tip) chun on

    Khi no master yu cu chun on?

    Trc khi ti v tham s m bo thit b hintrng c sn

    Trc khi vo ch trao i d liu xc nhn c...