ASM410_e

download ASM410_e

of 42

Transcript of ASM410_e

  • 8/12/2019 ASM410_e

    1/42

    ASM 410 Interface ModuleASM 410

    MOBYI Identification System

    Release 12.98Technical Description

  • 8/12/2019 ASM410_e

    2/42

  • 8/12/2019 ASM410_e

    3/42

  • 8/12/2019 ASM410_e

    4/42

  • 8/12/2019 ASM410_e

    5/42

  • 8/12/2019 ASM410_e

    6/42

  • 8/12/2019 ASM410_e

    7/42

    The SYAS processor always sends the MOBYI processor a telegram when any bit in the PIQ ischanged by the application programmer.

    The MOBYI processor sends the SYAS processor a telegram for changes in presence, acknowledge-ment of a command, finished message of a command and return of power. These telegrams appear inthe PII for the user.

  • 8/12/2019 ASM410_e

    8/42

  • 8/12/2019 ASM410_e

    9/42

    Number of ASM 410s and Addressing:

    PLCs Max. Number ofASM 410s per Station

    Remarks

    8 modules can be used with the S595Ustarting with release status 4/94.

    Limitation to 2 modules due to the powerpack of the SIMATIC S590U

    Slotoriented addressing

  • 8/12/2019 ASM410_e

    10/42

  • 8/12/2019 ASM410_e

    11/42

  • 8/12/2019 ASM410_e

    12/42

    The expanded RESET bit may only be set during the RESET command. This bit must be reset during read/write accesses.

    The SLG ON/OFF bit must be set to 0 before switching the MOBY operating mode.

    When the dialog bit is set, dialog mode is switched on with the RESET command. The selection mode switch of the ASM 410 must

    be set to 0.

    Since the VMDS is cleared on the ASM, this bit should be set to 0 again when the RESET command is being used in dialog mode.

    Cf. chap. 3.8.

  • 8/12/2019 ASM410_e

    13/42

  • 8/12/2019 ASM410_e

    14/42

  • 8/12/2019 ASM410_e

    15/42

  • 8/12/2019 ASM410_e

    16/42

  • 8/12/2019 ASM410_e

    17/42

    UN I 64.0I 64.1

    I 64.7Q 64.0Q 64.1

    Q 64.0Q 64.0

    I 64.6ERROR

    UN

    BEB

    UNRRBEB

    OOBEB

    USBEB

    Reset command from cold start or restart not yet executed.. or 24 V of ASM failed.... > Wait for ASM to perform reset

    If READY inactive, then command being processed.. issue an acknowledge command to the ASM 410

    > Wait for ready bit to be set in input

    Has a command just been sent to the ASM 410, or not.. yet acknowledged by ASM with ready = 0 ?> Yes: then wait for ready = 0 (this resets bits 0 and 1)

    Command executed; completed with errors ?.. If yes, set error flag. Error code in IB 67.. > and abort the operation

    UNTIL START OF NEXT MOBY COMMAND, MOBY DATA READARE AVAILABLE IN PII STARTING AT IB 67.

    L

    L

    IW 67

    IW 69..

    .

    . Userrelated processing of data

    USBE

    STARTQ 64.0

    NOTE: After a cold start or restart, this area of the PIQcontains zeros

    If START is set, start same command again

    U I 64.0I 64.1I 64.7

    UUUUN

    Q 64.0Q 64.1

    If PII indicates that.. reset command has been executed,.. then send an acknowledge in.. PIQ to ASM 410

    PB 10:

    BEB

    UUUUNUBEB

    I 64.0I 64.1I 64.7Q 64.0Q 64.1

    .

    .

    .

    AS ; Disable alarms and time control

    JU PB 10 ; Process MOBY

    AF ; Enable alarms

    .

    .

    .

  • 8/12/2019 ASM410_e

    18/42

    LT

    LT

    L

    T

    BE

    KH0000QB65

    KB30QB66

    KB3

    QB64

    Start address on the MDS is 30

    Issue RESET command for synchronisation

    (is sent to the ASM during first cycle change)

  • 8/12/2019 ASM410_e

    19/42

  • 8/12/2019 ASM410_e

    20/42

    OB21/OB22

    L KH0023 Reset command; SLG on/off = 1T QB64

    L KB0T QB65

    L KB0 Start address on MDS = 0T QB66BE

  • 8/12/2019 ASM410_e

    21/42

    FB10SEGMENT 1 Wait for Ready from ASM 410

    U I 64.0 The system waits for a newU I 64.1 .. data carrier following a

    U I 64.7 .. cold start or restartS STATUS4UN STATUS1JC =NXTUN Q 64.1UN I 64.7UN I 64.5S ERROR BEBUN I 64.7BEB > MDS could not be read completelyU I 64.6 Check for errorsS ERROR BEBR STATUS1 Switch to next statusS STATUS2U I 64.1 Command was not a read command BEB > Data not processed L IB67 )

    : )L IB68 ) Process the 6digit number read : )L IB69 ) : )BEB

    NXT:***

    SEGMENT 2 Wait till MDS has left the SLG window

    UN STATUS2JC =NXTU I 64.5BEBR STATUS2S STATUS3 Switch to next statusR Q 64.1S Q 64.0 Set Start bit for read BEA

    NXT:***

    FB10SEGMENT 3 Wait for command acknowledgement from ASM 410

    UN STATUS3JC=NXTU I 64.7BEBR STATUS3 Switch to next status if acknowledged S STATUS4R Q 64.0BEA

    NXT:***

    SEGMENT 4 Wait for new data carrier

    UN STATUS4

    JC =NXTUN I 64.5 Wait for presence = 1BEB

    Queued read command executed automaticallyif new MDS detected

    R STATUS4S STATUS1 Switch to program status 1L PALCNT Step pallet counterL KB1+FT PALCNT

    NXT:BE

  • 8/12/2019 ASM410_e

    22/42

  • 8/12/2019 ASM410_e

    23/42

  • 8/12/2019 ASM410_e

    24/42

    ON I 80.0ON I 80.1ON I 80.7JC =M002L KB0 Issue acknowledge after resetT QB64 ..command

    M002: UN START )R EFSTART ) > Edge flag for STARTUN I 80.0 )UN I 80.1 )BEB )U I 80.7 )JC =NXT1 )L KB0 ) identical to example in chap. 3.3T QB80 * )BEA )

    NXT1:O Q 80.0 )

    O Q 80.1 )BEB )U I 80.6 )S ERROR )BEB

    If read command, then start timer here with systemtransmission time before read data become valid

    UN STARTBEB > No new command startU EFSTARTBEB > No new rising edge from StartS EFSTART **** START COMMAND ****L KB0 Specify address MSBT QB81L KB5 Specify address LSB...T QB82L FW10T QB83L FW13 ...and write data...

    T QB85L FY14 ...in PIQT QB87L KH0002 Start write command T QB80 **BE

  • 8/12/2019 ASM410_e

    25/42

    Use with SIMATIC S7 via ET 200U

    Programming Example:

    DB 100 is used for indirect addressing as the global data block. System functions SFC 14 and SFC 15

    must be programmed for the data transmission to and from the ASM 410. These functions must be called

    cyclically.

    The write data are stored starting at DBB 22.

    The read data are available starting at DBB 33.

    SLG switchover is handled here via I 0.7.

    Input 0.1 is programmed as the start command.

    AUF DB 100

    CALL DPWR_DAT //Write SFC 15 to DP slave

    LADDR :=W#16#80 //Addresse 128

    RECORD :=P#DB100.DBX 20.0 BYTE 8 //Length 8 bytes

    RET_VAL:=DB100.DBW10 //SFC 15 error message

    CALL DPRD_DAT //Read SFC 14 from DP slave

    LADDR :=W#16#80 //Addresse 128RET_VAL:=DB100.DBW11 //SFC 14 error message

    RECORD :=P#DB100.DBX 30.0 BYTE 8 //Length 8 bytes

    U DBX 30.0 //RESET was performed

    U DBX 30.1 //in startup OB 100

    U DBX 30.7

    R DBX 20.0 //Then send acknowledge

    R DBX 20.1

    UN DBX 30.0 //If no RESET performed, then

    UN DBX 30.1 //wait here

    BEB

    UN DBX 30.7 //If finished inactive, then

    R DBX 20.0 //send acknowledge

    R DBX 20.1

    BEB

    O DBX 20.0 //If command was started and

    O DBX 20.1 //finished not yet returned,

    BEB //then wait here

    U DBX 30.6 //Error occurred?

    S A 8.0 //Set output 8.0

    BEB //and stop program

    U E 0.1 //Start read command

    = DBX 20.0 //with input 0.0

    U E 0.7 //Input 0.7 causes switch

    = DBX 20.2 //to SLG 2

    BE

  • 8/12/2019 ASM410_e

    26/42

    752 (658)* bytes EEPROM (MOBY E)

    40 bits fixed code (MOBY F MDS 1xx)

    32 bytes EEPROM (MOBY F MDS 2xx)

    256 bytes EEPROM (MOBY F MDS 4xx)

  • 8/12/2019 ASM410_e

    27/42

    Addressing KH KY KFNormal with ECC Normal with ECC Normal with ECC

    62-Byte Data Carrier with RAM

    Start address 0000 0000 00,00 0,0 + 0 + 0

    End address 003D 0029 00,61 0,41 + 61 + 41

    128-Byte Data Carrier with EEPROM

    Start address 0000 0000 00,00 00,00 + 0 + 0

    End address 007F 006F 00,127 0,111 + 127 + 1112-Kbyte Data Carrier with RAM

    Start address 0000 0000 00,00 00,00 + 0 + 0

    End address 07FC 06F1 07,252 06,241 + 2044 + 1777

    8-Kbyte Data Carrier with EEPROM

    Start address 0000 0000 00,00 00,00 + 0 + 0

    End address 1FFC 1BF1 31,252 27,241 + 8188 + 7153

    32-Kbyte Data Carrier with RAM

    Start address 0000 0000 00,00 00,00 + 0 + 0

    End address 7FFC 6FF1 127,252 111,241 + 32764 + 28657

    752-Byte Data Carrier with EEPROM (MOBY E)

    Start address 0000 0000 0,0 0,0 + 0 + 0

    End address 02EF 0291 2,239 2,145 + 751 + 657

    Read out ID no. (can only be read in one piece)

    Start address 1FF0 31,240 8176

    Length 0004 0,4 4

    MOBY F MDS F1xx (5 Bytes)

    Start address 0000 0,0 + 0

    End address 0004 0,4 + 4 MOBY F MDS F2xx (32 Bytes)

    Start address 0010 0,16 + 16

    End address 001F 0,31 + 31

    Read out ID no. (can only be read in one piece)

    Start address 0000 0,0 + 0

    Length 0004 0,4 + 4

    MOBY F MDS F4xx (256 Bytes)

    Start address 0040 0,64 + 64

    End address 00FF 0,255 + 255

    Read out ID no. (can only be read in one piece)Start address 0000 0,0 + 0

    Length 0004 0,4 + 4

  • 8/12/2019 ASM410_e

    28/42

    Dialog Operation

    Note:When dialog mode is on, the module can only be reset by turning it off.

    When dialog mode is switched on, the VMDS is cleared.

    If the RESET command is repeated, the VMDS is not cleared if bit 3 of the control byte is set to 0.

    How is the MOBYI Dialog Set Up?

    The following figure shows dialog communication with MOBYI.

  • 8/12/2019 ASM410_e

    29/42

    Station_N Normal ASM from MOBY I (i.e., ASM 400, ASM 410, ASM 420, ASM 440,ASM 450, ASM 470 and SIM4x). The user operates station_N in the usualway (i.e., as if the user wanted to exchange data with an MDS).

    SLG_N An SLG (i.e., SLG 41, SLG 42, SLG 43 and SLG 44) which is connected tostation_N.

    Station_D Dialog ASM from MOBY I (i.e., ASM 400, ASM 410, ASM 450 and ASM 470).While being turned on, station_D is parameterized with a user command asdialog ASM. During parameterization, a 16Kbyte memory area is definedon station_D. This memory area is called VMDS(i.e., virtual MDS). It is used as communications memory. Processing ofstation_D by the user is the same as with the program on station_N.Station_D uses the same tools as station_N (e.g., FB 47).

    SLG_D An SLG (i.e., SLG 41, SLG 42, SLG 43 and SLG 44) which is connected tostation_D.

    VMDS Virtual mobile data carrier. The VMDS is a 16Kbyte memory area onstation_D. The VMDS is specified and cleared when station_D is turned onand parameterized.

    Designation Explanation

  • 8/12/2019 ASM410_e

    30/42

    How Does the User Work with the MOBYI Dialog?

    tk= 16 msec + 0.8 msec * nbyte

  • 8/12/2019 ASM410_e

    31/42

    Length of the 60 230 600 3000transmissionwindow (L)

    Width of the trans- 30 80 280 1300mission window (B)

    Working 0 to 15 0 to 70 20 to 250 200 to 1000distance (Sa)

    Limit distance (Sg) 30 130 450 2500

    Distance from > 200 > 800 > 2000 > 10000SLG to SLG (D)

    All Specificationsin mm

    SLG 41-

    SLG 41

    SLG 42-

    SLG 42

    SLG 44-

    SLG 44

    SLG 43-

    SLG 43

  • 8/12/2019 ASM410_e

    32/42

  • 8/12/2019 ASM410_e

    33/42

  • 8/12/2019 ASM410_e

    34/42

  • 8/12/2019 ASM410_e

    35/42

  • 8/12/2019 ASM410_e

    36/42

  • 8/12/2019 ASM410_e

    37/42

  • 8/12/2019 ASM410_e

    38/42

  • 8/12/2019 ASM410_e

    39/42

  • 8/12/2019 ASM410_e

    40/42

  • 8/12/2019 ASM410_e

    41/42

  • 8/12/2019 ASM410_e

    42/42