st-s5sys2.pdf

Upload: vladimir-ageev

Post on 30-Oct-2015

188 views

Category:

Documents


2 download

TRANSCRIPT

  • . . , . . , , , .

    Siemens AG 1997

    No.: E80850-K02-X-A7.1

    SIMATIC S5

    2

    ST-S5SYS2 VII

    AL: N ECCN: N

  • STEP 5. STEP 5, .

    :

    c

    I

    Q

    F

    C

    SD

    E

    A

    M

    Z

    BS

    A

    AN

    JU

    TB

    TBN

    BEC

    BEU

    JC

    U

    UN

    SPA

    P

    PN

    BEB

    BEA

    SPB

  • SIMATIC S5

    1

    1

    : ............................................. 1-2

    ................................................... 1-2 .......................................................................... 1-4 ........................................................................ 1-4 .......................................................................... 1-6 PB 100 ............................ 1-8 PB 101 ......................................................... 1-10 PB 102 .................................... 1-10 PB 103............................................. 1-10

    : ................................ 1-14 ........................................................................................ 1-15

    PG ........................................ 1-26 ........................................................................ 1-26 ................................................................ 1-26 ..................................................................................... 1-26 ................................................. 1-28 ...................................... 1-28

    : ........................................................... 1-32 .................................................................. 1-32 .................................................................................... 1-32 ........................................................... 1-33 (Printer File) ................................................................ 1-33 ............................................................ 1-36 .................................................................... 1-36 ......................................................................... 1-38 .................................................................. 1-38 ................................................................... 1-38 .................................................................................... 1-40 .............................................................................. 1-40 ...................................................... 1-42 ....................................................................... 1-42 ................................................................ 1-42

    PCP/M-86 ............................. 1-44 (User) PCP/M-86 ............................. 1-44 ................................................................. 1-44

    : ..................................... 1-48 1. .................................................................................. 1-51 ........................................................... 1-52

  • Siemens AG . 1-2/52 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    . .

    .

    "" .

    . , , .

    1 . ( 5 ).

    Q 5.1 , . . , I 8.0, . 5 , 5 . Q 5.1 . , Q 5.4, , 5 ; . I 8.4 .

    I 0.2 I 0.3 .

    Q 5.1 .

  • :

    Siemens AG . 1-3/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-3

    I 8.0

    Q 5.5

    Q 5.4

    I 8.4

    Q 5.1

    1

  • Siemens AG . 1-4/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , :

    1. . 2. . 3. . 4. , , .

    . . OB 1, ().

    OB 1 .

    .

  • :

    Siemens AG . 1-5/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-5

    OB 1

  • Siemens AG . 1-6/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , , .. . . . . , .

    (.., ). .

    40 .

    , , , , , " ".

    . .

    , . , A I 8.0 A -LB1. "-" ( : LB1) PG, .

  • :

    Siemens AG . 1-7/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-7

    H3 S3 LB1 S4 H4

    I 8.0 LB1

    I 8.3 S3 ( 3)

    I 8.4 S4 (. )Q 5.3 H3 ( 3)Q 5.4 H4 (. )

  • Siemens AG . 1-8/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , .

    , PB 100 . ,

    .

    1 S5 (I 0.0) S6 (I 0.1), . H5 (Q 4.1) , .

    2 , S9 (I 0.4) '0' " " ( ) S10 (I 0.5). H6 (Q 4.2).

    3 , S9 (I 0.4) '1' " " S10 (I 0.5). - H7 (Q 4.3).

    , (Q 4.1). S9 (I 0.4).

    4 + 5 .

  • :

    Siemens AG . 1-9/52 ST-S5SYS2 Training Center

    SIMATIC S5

  • Siemens AG . 1-10/52 ST-S5SYS2 Training Center

    SIMATIC S5

    PB 101: . H1 (Q 5.1) :

    - , , .., , ( H4 ).

    - ( ).

    PB 102: .

    . 1 K1 (Q 5.5):

    , 1 , , . LB 1 (I 8.0), , , . S7 (I 0.2).

    2 LB 1 '1',

    ( ). , LB 1.

    3 K2

    (Q 5.6) . , S8 (I 0.3). , "" "" !

    PB 102: : - , LB 1 (I 8.0); - ( C 103)

    BCD- (QW 6); - S4 (I 8.4)

    , , 5 ;

    - "5", H4 (Q 5.4) .

  • :

    Siemens AG . 1-11/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-11

    INI 1, I 8.5 LB1, I 8.0

    Motor

    K1, Q5.5

    K2, Q5.6

    H1, A 5.1 H4, Q5.4

    S4, I 8.4

    ()

    S5, I 0.0

    S8, I 0.3 S9, I 0.4 S 10, I 0.5

    S7, I 0.2S6, I 0.1

    QB 6 QB 7

    0 0 0 0QW 6

  • Siemens AG . 1-12/52 ST-S5SYS2 Training Center

  • Siemens AG . 1-13/52 ST-S5SYS2 Training Center

  • :

    Siemens AG . 1-14/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1 .

    CSF . .

    I 0.0 S5 ( )

    I 0.1 S6 (. )

    I 0.2 S7

    I 0.3 S8

    I 0.4 S9 (0=MAN, 1=AUTO)

    I 0.5 S10

    I 8.0 LB1 LB1

    I 8.1 S1 . 1

    I 8.4 S4

    I 8.5 INI1 . 1

    Q 4.1 H5

    Q 4.2 H6

    Q 4.3 H7

    Q 5.1 H1 . 1

    Q 5.4 H4 .

    Q 5.5 K1

    Q 5.6 K2

    Q 5.7 BEEP1

    QW 6 DISPLAY

    F 100.0 FLASH

    F 100.1 AF-FLASH

    F 102.0 F 102.0

    F 102.1 F 102.1 LB1

    F 102.2 F 102.2 LB1

    T 100 T-FLASH

    T 102 T-CONV

    C 103 C-PARTS

  • Siemens AG . 1-15/52 ST-S5SYS2 Training Center

    SIMATIC S5

    5

    10

    15

    20

    25

    30

    35

    5 10 15 20 25

  • :

    Siemens AG . 1-16/52 ST-S5SYS2 Training Center

    SIMATIC S5

    5

    10

    15

    20

    25

    30

    35

    5 10 15 20 25

  • Siemens AG . 1-17/52 ST-S5SYS2 Training Center

    SIMATIC S5

    5

    10

    15

    20

    25

    30

    35

    5 10 15 20 25

  • :

    Siemens AG . 1-18/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , , [email protected].

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2A. , ,

    . :

    PG STEP 5.

    , , .. , SYS2 . , "Delete DOS File(s)" , :

    File DOS File Delete ...

    SYS2????.??? "File" () ENTER, "Files" () , SYS2. ENTER INSERT.

    . ,

    [email protected] . [email protected]. :

  • :

    Siemens AG . 1-19/52 ST-S5SYS2 Training Center

    SIMATIC S5

    "Copy DOS File(s)" , :

    Ctrl F8 : File DOS File Copy ...

    [email protected], "Source file" ( ), [email protected] , "Dest file" ( ).

    Project Settings

    .

    "Project Settings".

    F4 : File Project Set

    6 .

    "PLC":

    Mode (): Online ()

    "Project Settings - PLC -" .

  • :

    Siemens AG . 1-20/52 ST-S5SYS2 Training Center

    SIMATIC S5

    "Blocks" (), Alt:

    Alt 2 :

    DOS directory path (): C:\S5_DATA\S5COURSE\S5SYS2\SYS2A

    Program file ( ): [email protected] ^Representation (): CSF heck ( ) [x] with comments ( )

    "Blocks" .

    "Symbols", Alt:

    Alt 3 :

    DOS directory path (): C:\S5_DATA\S5COURSE\S5SYS2\SYS2A

    Program file ( ): [email protected] Symbol length ( ): [8] Comment length ( ): [40] heck () [x] Display symbolic ( ) [x] Operands symbolic (. )

    .

    , , [email protected]. PG .

    [email protected] .

    , . .

    :

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2A

    : [[email protected]].

  • :

    Siemens AG . 1-21/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , , , . .

    "Edit Symbols".

    F7 : Editor Assignment List ...

    .

    (. ) F7 Enter Insert.

    [email protected], . [email protected], [email protected] [email protected].

  • :

    Siemens AG . 1-22/52 ST-S5SYS2 Training Center

    SIMATIC S5

    .

    "Operand" (), "Symbol" () "Comment" () SHIFT + Cursor TAB.

    , , F3 Cut , - F1 Line . F8 Return .

    , , ENTER.

    : (Overwrite) Overwrite () . Insert () (Insert)

    .

    F5 Mode.

    :

    G . , , , .

    F6 Save , .

  • :

    Siemens AG . 1-23/52 ST-S5SYS2 Training Center

    SIMATIC S5

    .

    , . , BEEP1 Q 5.7 (. ).

    "-" ( ""!). , . -BEEP1 , , ENTER.

    . ().

    F1 : Editor STEP 5 block ... (x) Program file PLC (Overall Reset) PLC.

    , , .

    PLC.

    . 1. CPU

    STOP ().

    "OR" () STOP () RUN () .

    , PLC

    F3 : File Blocks Directory ... (x) PLC

  • :

    Siemens AG . 1-24/52 ST-S5SYS2 Training Center

    SIMATIC S5

    2.

    PLC STOP PG. ( RUN ()).

    F11 : PLC Stop PLC

    PLC. : "(x) Delete entire PLC" / PLC "Confirm before deleting (x) No" / .

    File Blocks Delete ...

    PLC RUN PG CPU:

    PG: PLC Start PLC

    ( - RUN)

    CPU: RUN STOP RUN.

    PLC .

    :

    PLC STOP ().

    .

    PLC. PLC - "Block Status".

    , .

    "Display symbolic" ( ) , PG . , (Editor) (Output) (Edit), , , . (Output) - "Block Status" PG - ( ) , F1 Disp Symb. , .

  • Siemens AG . 1-25/52 ST-S5SYS2 Training Center

    SIMATIC S5

  • Siemens AG . 1-26/52 ST-S5SYS2 Training Center

    SIMATIC S5

    PG

    . (, I 8.0) (, -LB1). . , STEP 5 PG.

    - (assignment list files).

    , " " ("sequential file) (. ). , . 8 , LAD- CSF-.

    , (assignment list files) (... Z0.INI, ...Z1.INI, ...Z2.INI) (sequential file) (... Z0.SEQ).

    "log" -. ...ZF.SEQ (, ).

  • PG

    Siemens AG . 1-27/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-27

    SYS2A@ Z0.SEQ

    PG

    SYS2A@ Z0.INI

    SYS2A@ ZF.SEQ

    SYS2A@ Z1.INI

    SYS2A@ Z2.INI

    , 7- 8- . PG ( ), , , .

    7- 8- .

  • PG

    Siemens AG . 1-28/52 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    1. .

    2. F1 Disp Symb - "Block Status" Output. Output -, : "DVS-files modified, seq. file not up to date (DVS- , ). , . :

    "Management" () "Assignment lists" ( ),

    - , "Convert INI SEQ (

    INI SEQ). , .

    - "Display symbolic" ( ) "Project

    Settings - Symbols - ( --), "Edit STEP 5 Block" ( STEP 5) - "Block Status" "Update assignment list?" ( ?). , INI-.

  • Siemens AG . 1-29/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-29a

    ,

    , - "Block Status"

    :

    :

    . . . Z0.INI

    . . . Z1.INI

    . . . Z2.INI

    INI > SEQ . . . Z0.SEQ

    1-29b1-29b

  • Siemens AG . 1-30/52 ST-S5SYS2 Training Center

  • Siemens AG . 1-31/52 ST-S5SYS2 Training Center

  • :

    Siemens AG . 1-32/52 ST-S5SYS2 Training Center

    SIMATIC S5

    .

    PB 100 .

    F1 : Editor STEP 5 Block ... (x) Program file

    Output F6 Seg Com, F7 Comment.

    .

    Insert. , (, $1@).

    #PBDO.100 PB 100.

    , . .

    F3 : File Blocks Directory ... (x) Program file PG

    , . , F1.INI. :

    (--) "Project Settings - Documentation - [email protected] "Footer file" ( ). , .

    , , [email protected].

    :

    Ctrl F5 : Editor Footer Editor

  • :

    Siemens AG . 1-33/52 ST-S5SYS2 Training Center

    SIMATIC S5

    . , . SHIFT+ . , .

    . F1 Text Inp F2 Text End.

    . F7 Enter .

    :

    . . :

    (--) "Project Settings - Documentation - "Footer" () . "80" ( ).

    "(x) Printer" "Documentation to" ( ).

    "Printer file" ( ), - .

    (Printer file) , . , .

    .

    "Project Settings - Documentation - .

    , . Esc.

    , , (STEP 5) .

  • :

    Siemens AG . 1-34/52 ST-S5SYS2 Training Center

    SIMATIC S5

    . Documentation STEP 5 Blocks ... (x) Program file

  • Siemens AG . 1-35/52 ST-S5SYS2 Training Center

  • Siemens AG . 1-36/52 ST-S5SYS2 Training Center

    SIMATIC S5

    ,

    . , . SIMATIC S5 , :

    - Segment titles ( ) - Segment comments ( ) - Statement comments ( ) - Plant comments ( ) - Assignment list ( ) - Footer () (Segment Comments) ,

    STEP : STEP 5: :

    OBn #OBDO.n PBn #PBDO.n SBn #SBDO.n FBn #FBDO.n DBn #DBDO.n

    STEP 5.

    STEP 5 F6 Seg Com, - F7 Comment.

    , (, #PBDO.100) STEP 5 .

    F1 : Editor STEP 5 Block ... (x) Program file

  • PG

    Siemens AG . 1-37/52 ST-S5SYS2 Training Center

    SIMATIC S5

    Segment 4 TIMER for synch. Pulse generator / /

    Generation of a 250ms clock pulse with SE timer T100. The pulse is / . 250 SE- T100/

    assigned to F 100.1, which has status 1 whilst the timer is running / . F 100.1. =1 T100/

    an status 0 for a whole cycle when it expires (every 250 ms). /F 100.1 =0 T100 ( 250 )/

    T 100

    +-----+

    F 100.1 -O!1_-_V!KT 025.0 --!TV BI!-

    ! DE!-

    ! ! +------+

    --!R Q!-+-! = ! F 100.1

    +-----+ +------+

    F 100.1 = AF-FLASH Aux. Fl. Frequ. flag /. /Flash. Frequ. timer / /T 100 = T-BLINK

    +----------------------------------------------------------------------+

    ! S I E M E N S A G ! Configuring exercise !

    ! ! !

    +----------------------------------------------------------------------+! JOB IDENTIFIER: !DATE : !

    ! PLANT: !CHANGE: V7.x .!! PLANT POS. NUMBER: !Author: 4 !+----------------------------------------------------------------------+

    , (Footer) (--)

    "Project Settings - Documentation -". :

    Ctrl F5 : Editor Footer Editor

  • Siemens AG . 1-38/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , (Segment Header) (comment block).

    STEP 5 .

    STEP 5 : :

    OB n OC n PB n PC n SB n SC n FB n FC n DB n DC n

    Editor STEP 5, .

    F1 : Editor STEP 5 Block ... (x) Program file STL- (Statement Comments) . ,

    SHIFT + cursor. , . STEP 5, .

    F1 : Editor STEP 5 Block ... (x) Program file (Plant Comments)

    . . #, 8 , , #CONVEYOR.

    .

    F1 : Editor STEP 5 Block ... (x) Program file

  • PG

    Siemens AG . 1-39/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-39

    PB 100 C:[email protected] LEN=24

    Segment 5 Flashing frequency flag / /

    Evaluation of the clock pulse in segment 4 / 4/

    (checking the auxiliary flashing frequency flag) / ( ) /and generation of the flashing frequency flag. / /

    :STL

    :A F 100.1

    :BEC

    :AN F 100.0

    := F 100.0

    :BE

    F 100.1 = AF-FLASH Flashing frequency flag / /

    Flashing frequency flag / /F 100.0 = FLASH

    +---------------------------------------------------------------------+

    ! S I E M E N S A G ! Configuring Exercise !

    ! ! !

    +---------------------------------------------------------------------+

    ! JOB IDENTIFIER: CONVEYOR !DATE: April 1997 !

    ! PLANT: !CHANGE: V7.x PAGE!

    ! PLANT POS. NUMBER: V1 !AUTHOR : AUT 951 5!

    +---------------------------------------------------------------------+

  • Siemens AG . 1-40/52 ST-S5SYS2 Training Center

    SIMATIC S5

    (Footer) (footer), .

    80- 132- . , . - .

    . :

    - (program file) - (symbols files) - (footer file)

    ("Project Settings"). (LAD/CSF/STL-,

    , ) .

    :

    - ; - ; (

    Documentation: (x) to file, () );

    - (printer file), "", , STEP 5 ( (rinter files) ).

    STEP 5

    (PLC). Documentation STEP 5 Blocks ...

  • PG

    Siemens AG . 1-41/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-41

    Symbols Editor

    ,., Q 5.5

    ,., K1

    , .,Conveyor motor

    (max. 8 )

    LAD, CSF, STL , ., PC 52, Segment 1 Final Assembly /. /

    STL , ., PC 52, Line 4, Flag for bay 1 / 1/

    LAD, CSF, STL , ., #PBDO.052, Move conveyor FORWARD / . /i n AUTO and MANUAL / . . ./

    , ., #CONVEYOR This STEP5 program performs / STEP5/ the following functions: / . /

    (Footer Editor)

    .

    8 - 24

    1 - 40

    /

    (6 )

    ...... Z0.SEQ

    ...... Z0.INI

    ...... Z1.INI

    ...... Z2.INI

    32

    (6 )...........................ST.S5D

    OC, PC, SC, FC, DC

    #ODBO.nnn, #PBDO.nnn,#SBDO.nnn, #FBDO.nnn,#DBDO.nnn

    32

    2 KB

    2 KB

    80or 132

    (6 )................... F1.INI

  • Siemens AG . 1-42/52 ST-S5SYS2 Training Center

    SIMATIC S5

    PG , . , ,

    . , , , , . 6 :

    (Program file) ...... ST.S5D: - STEP 5- - - (Symbols files) ...... Z0.SEQ: - (Input list) ...... Z0.INI - (Assignment ) ...... Z1.INI - . ...... Z2.INI - . (Footer file) ...... F1.INI: - (Footer) "Copy File(s)" STEP 5:

    Ctrl F8 : File DOS File Copy ... MS-DOS

    "COPY" , Explorer Windows'95.

    . .

    , .

    , , . PG MS-DOS Windows'95 . PG PCP/M (, PG 685) "DD"- ( 720 ).

    STEP 5 .

    STEP 5 , . MS-DOS "FORMAT", Windows'95.

  • PG

    Siemens AG . 1-43/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-43a

    1-43b

  • Siemens AG . 1-44/52 ST-S5SYS2 Training Center

    SIMATIC S5

    PCP/M-86

    , MS-DOS Windows'95, , PG 685, PCP/M-86.

    PCP/M-86 (User) PCP/M-86 , .

    16 ( 0 15). MS-DOS Windows'95 , , PCP/M .

    PCP/M-86 MS-DOS Windows'95 . STEP 5, PG PCP/M-86 (, PG 685), PCP/M MS-DOS , PG MS-DOS Windows'95.

    STEP 5 VII MS-DOS PCP/M-86 .

    STEP 5 , PCP/M-86.

    MS-DOS PCP/M , .

    PCP/M MS-DOS ( MS-DOS Windows'95) "PFORMAT". , , .

  • PCP/M-86

    Siemens AG . 1-45/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1-45a

    1-45b

  • Siemens AG . 1-46/52 ST-S5SYS2 Training Center

  • Siemens AG . 1-47/52 ST-S5SYS2 Training Center

  • :

    Siemens AG . 1-48/52 ST-S5SYS2 Training Center

    SIMATIC S5

    , MS-DOS :

    .

    Ctrl F8 : File DOS File Copy ...

    .

    , PCP/M , PG 685 ( PCP/M-86),

    5 PCP/M. , 3 . 5 (, PG 750). :

    STEP 5.

    5 , PCP/M, .

  • : PCP/M

    Siemens AG . 1-49/52 ST-S5SYS2 Training Center

    SIMATIC S5

    MS-DOS PCP/M.

    File PCP/M File Copy DOS -> PCP/M ...

    . , MS-DOS ( PG), PCP/M (), (directory) "Source dr/dir.". "Source files" . "Drive:" , "User:" . , PCP/M .

    , .1-45 .

    , .

    , . User 3.

    File PCP/M File Directory ... , :

  • Siemens AG . 1-50/52 ST-S5SYS2 Training Center

  • - 1

    Siemens AG . 1-51/52 ST-S5SYS2 Training Center

    SIMATIC S5

    PLC - , , . SIMATIC S5 , :

    - , ;

    - , - ;

    - ;

    - ;

    - , ;

    - , .

    . PLC!

    .

    .

    MS-DOS, PCP/M .

  • Siemens AG . 1-52/52 ST-S5SYS2 Training Center

    SIMATIC S5

    1

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    SEQ INI .

    PLC ( CPU PG).

    .

    PCP/M.

    .SEQ .INI.

  • SIMATIC S5

    1

    2

    3

    2

    1

    2

    : ............................................ 2-2 : ............................................ 2-4 .................................................................. 2-6

    Stop () ............................................................................. 2-6 Run () .......................................................................... 2-6 "" (Cold Restart) .............................................. 2-8 (L PW, L PY) ............................ 2-8

    "" "" PLC, (High-End PLC) ......... 2-10

    High-End PLC .................................................... 2-10 "" .................................................................. 2-12 "" ....................................................................... 2-12

    ................... 2-14 ............................................................................... 2-14 ............................................ 2-14 .... 2-16

    : ............................ 2-20 ....................................................................... 2-24

    .......................................................... 2-24 ........................................................................................ 2-26 (Fixed Slot) ................................ 2-26 (Variable Slot) ................................. 2-28 (CPU) ............................... 2-30 : ................................ 2-34

    2. ................................................................................... 2-35 ........................................................... 2-36

  • Siemens AG . 2-2/36 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    PLC RUN () STOP (). PLC STOP RUN.

    . (, ..) , .

    1 .

  • Siemens AG . 2-3/36 ST-S5SYS2 Training Center

  • :

    Siemens AG . 2-4/36 ST-S5SYS2 Training Center

    SIMATIC S5

    1 , [email protected]. [email protected]. .

    :

    PB 100PB 103 OB 1

    [[email protected]]

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2B

    2 [[email protected]]

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2A

    F5 : File Blocks Transfer ... (X) Block list (PB100 - PB103, OB1)

    PLC CPU "RE.

    PLC.

    F5 : File Blocks Transfer ... (X) Block list (B )

    : - PLC ( ). - PLC CPU STOP RUN ( STOP RUN). : - ? - ? - ? ( )

    , . .

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

  • Siemens AG . 2-5/36 ST-S5SYS2 Training Center

  • Siemens AG . 2-6/36 ST-S5SYS2 Training Center

    SIMATIC S5

    ,

    () . , ,

    . , ,

    STOP () RUN (), PLC.

    STOP () STOP, :

    - STOP , - PG "STOP", - , - PG, .

    PLC, . PLC STOP, , 0 () : BASP.

    RUN () Run () ( RUN-STOP, "Start" PG) .

    PLC : COLD RESTART ("" ) WARM RESTART ("" ).

    .

  • Siemens AG . 2-7/36 ST-S5SYS2 Training Center

    SIMATIC S5

    "" S5-115U

    2-7

    STOP()

    :

    BASP = ON ()STOP = ON ()RUN = OFF ()

    :

    BASP = ON ()STOP = ON ()RUN = ON ()

    :

    BASP = OFF ()STOP = OFF ()RUN = ON ()

    Restart()

    ""

    ""

    RUN()

    STOP / STOP- PG

    RUN

    START PG

    /

  • Siemens AG . 2-8/36 ST-S5SYS2 Training Center

    SIMATIC S5

    "" S5-115U "" . STOP RUN (). , :

    - (PII, PIQ); - , ,

    ; -

    (checklist); - DB 0 (

    PLC).

    , :

    OB 21

    OB 22

    OB , .

    . (L PW, L PY) :

    L PY 8

    T IB 8 / 8

    L PW 8

    T IW 8 / 8.

    T PY ... T PW ... OB , PIQ. .

    PII. S5-115U ""

    S5-90U, S5-95U S5-100U.

  • Siemens AG . 2-9/36 ST-S5SYS2 Training Center

    SIMATIC S5

    S5-115U

    2-9

    (BASP ON)

    " " ( STOP)

    PIQ, PII , .

    (DB 0).

    " "

    ( )

    PIQ, PII , .

    (DB 0).

    OB 21 OB 22

    (BASP OFF) (BASP OFF)

    PII

    OB 1 -

    PIQ

    PLC

    STOP

  • Siemens AG . 2-10/36 ST-S5SYS2 Training Center

    SIMATIC S5

    "" "" High-End PLC PLC,

    S5-135U S5-155U 3 High-End PLC :

    "" 3 "" :

    1. CPU Reset (), STOP () RUN ().

    2. PG "Start PLC" "PLC". , : "" "" .

    3. "" , (DX0). PLC "" .

    ""

    1. STOP RUN (). 2. PG "Start PLC" "PLC",

    "Warm restart" ("" ). ""

    , PLC RUN (), .

  • "" "" High-End PLC

    Siemens AG . 2-11/36 ST-S5SYS2 Training Center

    SIMATIC S5

    "" "" S5-135U S5-155U

    2-11

    STOP()

    :

    BASP = ON ()STOP = ON ()RUN = OFF ()

    :

    BASP = ON ()STOP = OFF ()RUN = OFF ()

    :

    BASP = OFF ()STOP = OFF ()RUN = ON ()

    Restart()

    / .""

    / .""

    RUN()

    STOP / STOP- PG

    /

    . RESET

    ()

    . .

    STOP RUN

    DX0

    . .

    STOP RUN

  • Siemens AG . 2-12/36 ST-S5SYS2 Training Center

    SIMATIC S5

    "" "" :

    - , .

    - DB1 ( ). , , .

    - OB 20. - (BASP off). - .

    "" "" :

    - , .

    - : DB 0. - :

    OB 22 "" . - : OB 21 "" . - ,

    ( STOP). - ""

    PII (). - PIQ. - . - PII.

    -

    S5-135U PLC.

  • "" "" High-End PLC

    Siemens AG . 2-13/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2-13

    -

    (BASP ON)

    ""

    : PIQ, PII, ,

    OB 20 OB 22

    (BASP OFF)

    PII

    OB 1, -

    PIQ

    STOP

    ""

    PIQ, PII, ,

    ""

    PIQ, PII, ,

    OB 21

    PII

    OB 1, -

    STOP

    PIQ PIQ,

    (BASP OFF)

    S5-135U S5-155U

  • Siemens AG . 2-14/36 ST-S5SYS2 Training Center

    SIMATIC S5

    OB

    OB "" "" PLC -

    . "OB ", PLC, . .

    , , (CP) () / (IP).

    , PLC. , , , PLC STOP . ().

    , , PLC,

    , PLC STOP.

    , "Conveyor forward" ( ) (F 102.0) "1" PLC, .

    , S5-115U

    STOP (o) RUN () RE/NR. "NR" (), .

    . , - , NR RE (). , PLC, - High-End PLC.

    , "conveyor forward" ( ) PLC. . '1' "" "" . , PLC, .

  • OB

    Siemens AG . 2-15/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2-15

    :

    -F0.2

    -F0.3

    1- 2- ..

    ?

    ?

    OB 1

    t

    t

  • Siemens AG . 2-16/36 ST-S5SYS2 Training Center

    SIMATIC S5

    : . ,

    MB 200 MB 255 ( ).

    ,

    . , PLC. OB 1 , . 1 , PLC. '1' PLC "" "" .

  • OB

    Siemens AG . 2-17/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2-17

    : STL

    OB 20 ( S5-135U, 150U, 155U)OB 21 OB 22

    :AN:S:AN:S:::BE

    FFFF

    0.20.20.30.3

    OB 1

    :AN:R:A:R:::BE

    FFFF

    0.30.20.20.3

  • Siemens AG . 2-18/36 ST-S5SYS2 Training Center

  • Siemens AG . 2-19/36 ST-S5SYS2 Training Center

  • :

    Siemens AG . 2-20/36 ST-S5SYS2 Training Center

    SIMATIC S5

    1

    . , - PLC ( "RE),

    - PLC STOP.

    F 0.2 , F 0.3 .

    !

    OB :

    OB21/22 Cold Restart MAN/AUTO / /

    Segment 1

    AN F 0.2

    S F 0.2

    AN F 0.3

    S F 0.3

    OB 22 OB 21. , "Copy Segment".

    OB 1 :

    OB1 Cyclic Program /

    Segment 1

    AN F 0.3

    R F 0.2

    A F 0.2

    R F 0.3

    :

    JU PB 100

    etc.

    "Vertical Expansion" .

    Edit Editor F7 Extras , F7 Vert Exp .

  • :

    Siemens AG . 2-21/36 ST-S5SYS2 Training Center

    SIMATIC S5

    1 PB 102, "Conveyor forward" (" ") - F 0.2.

    I 8.5

    Q 4.3

    Q 5.4

    &

    # Q 5.7

    T 102

    T 0

    TV BI

    DE

    R Q

    F 102.0

    S

    R Q

    F 102.1

    I 0.4

    F 0.2

    >=1

    KT 010.1

    I 0.2

    Q 4.2

    I 0.3

    &

    >=1

    = Q 5.5

    CPU STOP:

    PB 103 , . , .

    Set (S) (CV) , , , "?.

    PLC STOP OB , PB 100, PB 102, PB 103 OB 1 PLC.

    .

  • Siemens AG . 2-22/36 ST-S5SYS2 Training Center

  • Siemens AG . 2-23/36 ST-S5SYS2 Training Center

  • Siemens AG . 2-24/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PLC

    . S5-115U .

    PLC .

    , PLC ( = 5 ). S5-115U . .

    , ,

    , "= 5 " ( = 24 ~ 220 ), .

    "" PLC

    (CPU - central processing unit). . S5-135U S5-155U , CPU ( ).

    () CPU , , . PLC (). / .

    ,

    (CP) ( ), ().

    () / (IP) CPU, .

    ,

    . , ( ). , , .

  • Siemens AG . 2-25/36 ST-S5SYS2 Training Center

    SIMATIC S5

  • Siemens AG . 2-26/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PLC , .

    CPU S5-115U :

    - , - .

    - . S5-115U (32 ) .

    , .

    , 32, .

    (IM) (terminator). S5-90U, S5-95U S5-100U

    .

  • Siemens AG . 2-27/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2-27

    (S5-115U)

    PS CPU 0 1 2 3 4 5 6 IM

    24.0 ... 27.7

    20.0 ... 23.7

    16.0 ... 19.7

    12.0 ... 15.7

    8.0 ... 11.7

    4.0 ... 7.7

    0.0 ... 3.7

  • Siemens AG . 2-28/36 ST-S5SYS2 Training Center

    SIMATIC S5

    - S5-115U. IM306 (IM), . /

    IM306, (DIP-) .

    (16 32) .

    .

    , DIP- IM 306 2

    0.

    :

    - 32- :

    0, 4, 8, 12 .. - 16- : 0, 2, 4 ..

    S5-135U S5-155U ""

    . , .

  • Siemens AG . 2-29/36 ST-S5SYS2 Training Center

    SIMATIC S5

  • Siemens AG . 2-30/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PLC CPU. CPU S5-100U, S5-115U S5-135U.

    S5-115U. : - ? - ? - ? - ?

    - , ?

    ,

    CPU 951 CPU 945 - , DO Load Transfer. CPU, , , , .., , S5-115U .

    , CPU 941/942 , CPU 943/944/945 . , , "point-to-point", PLC L1 L2 , (OP).

  • Siemens AG . 2-31/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2-31

    CPU PLC S5-115U

    /

    (210

    ) int./ max.

    - 210

    PG

    - s

    Load Transfer (I,Q,F,C,T)

    Load Transfer (word)

    /-

    /

    RLO=0/1

    . ( )

    . Load Transfer (LIR/TIR)

    DO (DO FW/DO DW)

    CPU 941B CPU 942B CPU 943B CPU 944B CPU 945

    512 () 1024 . 1024 . 1024 . 1024 .

    2/18 10/42 16/48 96 256/384

    ~ 10 ~ 10 ~ 5 ~ 1.5 ~ 0.2

    1 1 1 2 1 2 1 2

    1.6 1.6 0.8 0.8 0.1

    1.6 1.6 0.8 0.8 0.1

    2.2 3.9 2.2 3.9 1.1 2 1.1 2 0.2

    3.7 3.7 1.9 1.9 0.1

    1.7 / 6.7 1.7 / 6.7 0.9 / 3.4 0.9 / 3.4 0.1 / 1.0

    ~ 160 ~ 160 ~ 160 ~ 4.4 ~ 0.65

    105 130 105 130 105 130 4.5 0.25

    134 / 162 134 / 162 134 / 162 2.6 / 3.6 0.25

    CPU 941B CPU 942B CPU 943B CPU 944B CPU 945

    1.6 1.6 0.8 0.8 0.1

    1.6 1.6 0.8 0.8 0.1

  • Siemens AG . 2-32/36 ST-S5SYS2 Training Center

  • Siemens AG . 2-33/36 ST-S5SYS2 Training Center

  • :

    Siemens AG . 2-34/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2 ,

    .

    ! PLC , Q 4.6

    1. PLC RUN ()

    , Q 4.7.

    !

    ------------------ ------------------ Q 4.6 Q 4.7

  • 2

    Siemens AG . 2-35/36 ST-S5SYS2 Training Center

    SIMATIC S5

    STOP RUN SIMATIC S5 - (Restart organization blocks (OB 20, OB 21, OB 22).

    RUN : ( RUN / STOP) ( ). PLC.

    S5-90U/95U/100U/115U "" (COLD RESTART), S5-135U S5-155U "" - (WARM RESTART).

    OB , , , , , .

    PLC , CPU.

    - - PLC. PLC S5-115U IM306.

  • Siemens AG . 2-36/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2

    OB .

    S5-115U "" .

    .

    .

    IM 306 S5-115U.

    S5-115U.

    S5-115U IM 306.

    CPU, S5-115U.

  • SIMATIC S5

    Data Blocks ( )

    : .................. 3-2 ....................................................................... 3-4

    .................................................................... 3-4 "Status Variable "Force Variables" .................................... 3-6 (Data Word) .................................................. 3-6

    : .................................... 3-10 (Data Word) ........................................ 3-10 () .................................................... 3-10 (Data Word) ................................................... 3-11 ................................... 3-16 ............................................................ 3-18 (Data Bits) ................................................. 3-20

    ..................................... 3-22 ................................................................... 3-22 ......................................................................... 3-24 .......................................................................... 3-26

    () ................................ 3-28 ..................... 3-28 ............................................................................................. 3-28 ................................................................................ 3-30 ...................................... 3-30 : ..................................................... 3-34

    3. .................................................................................. 3-35 ........................................................... 3-36

  • Data Blocks ( )

    Siemens AG .3-2/36 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    NR/RE, .

    , , 5 .

    , NR/RE.

    , . .

  • Siemens AG .3-3/36 ST-S5SYS2 Training Center

  • Data Blocks ( )

    Siemens AG .3-4/36 ST-S5SYS2 Training Center

    SIMATIC S5

    (Data blocks) , - . 16- . " " ("data words" "DW"). , . PLC , 256 (DW 0 255). , . , DW 5 DL 5 (DW 5, ), DW 5 DR 5 (DW 5, ). .

    :

    KM

    KH (HEX) (: 0000 FFFF),

    KY , , (: 0 255 10 ),

    KF (: -32768 +32767),

    KT (: 001.0 999.3),

    KC (: 000 999),

    KS S ( ASCII).

    STEP 5.

    () (max. 255) . .

    "Data word number" ( ).

    "Data word comment" ( ) ( 32 ).

    "DB" 0 255. PLC (S5-135U ) , "DX" (0 255).

  • Siemens AG .3-5/36 ST-S5SYS2 Training Center

    SIMATIC S5

    (Data Block)

    3-5

    DB

    DB 136

    0: KH =

    1: KF =

    2: KM =

    3: KT =

    4: KC =

    5: KS =

    10: KY =

    6F2A

    + 30 132

    00110101 10011001

    005.2

    263

    'MESSAGE TEXTS'

    4 255

    DW 0

    DW 1

    DW 2

    DW 3

    DW 4

    DW 5

    DW 10

    (Index register)

    .

    ()

    255:DW 255

    ()

    16-

    DB 0 CPU (Special Functions) . DB 1

    DX 0, - .

    , DB 2 ( DX 1), .

  • Data Blocks ( )

    Siemens AG .3-6/36 ST-S5SYS2 Training Center

    SIMATIC S5

    , "Status Variable" . "Force Variables" - "Status"

    Variable" ( ) "Force Variables" ( ). , "Force Variables" . STEP 5 , , , .

    (variables blocks = VB ..)

    , ,

    "C DB ..". Load "L DW .." Transfer "T DW ..". , , . , PLC (transfer error) STOP.

  • Siemens AG .3-7/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-7

    :STL:C::L:::::C::T

    DB

    DW

    DB

    DW

    104

    1

    105

    2

    Accu. 1

    Accu. 1

    DW 1

    DW 2

    DB 104

    DB 105

    Status Variable/Force Variables

    DB 104

    DW 1

    DB 105

    DW 2

    -

    - 1

    - 1

  • Siemens AG .3-8/36 ST-S5SYS2 Training Center

  • Siemens AG .3-9/36 ST-S5SYS2 Training Center

  • :

    Siemens AG .3-10/36 ST-S5SYS2 Training Center

    SIMATIC S5

    2

    DB104, .

    DB-Editor "Source" () DB 104 "Block list" .

    F2 : Editor Data Block ... (x) Program file.

    DB, , .

    : DB, , (0:).

    DB 104 "Production Data" ( ). F6 Title , , Enter.

    "KH" DW 0 .

    Enter.

    DW 1: KF= +00000.

    "Total production" ( ).

    , SHIFT + . Enter.

    . , () .

    SHIFT + (Repetition Factor) . "50" Enter. 0: KH=0000

    1: 50 < KF = 0 "KF" , , "0". Enter.

    . 255.

  • :

    Siemens AG .3-11/36 ST-S5SYS2 Training Center

    SIMATIC S5

    , , :

    0: KH= 0000 1: KF= +00000 . !

    , , .

    DB 104 Insert.

    : DB 104 Production Data / /

    0: KH= 0000 1: KF= +00000 Total production / / 2: KF= +00000

    .

    .

    .

    50: KF= +00000

    PB 104 . .

    F1 : Editor STEP 5 Block ... (x) Program file PB104

    Segment 1 Production Data Backup /. . / :C DB 104 Open data block 104 / / :L DW 1 Load old total from DW 1 / /

    :L C 103 Load counter reading of C 103 / 103/

    :+F Add // :T DW 1 Store new total in DW 1 / / :BE

  • :

    Siemens AG .3-12/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PB 104 , 4 PB 103 JC PB 104. , "1" (RLO=1), .., , .

    PB103 :

    F1 : Editor STEP 5 Block ... (x) Program file

    Segment 4 Cond. Call of Data Backup /.

    /

    :A Q 5.4 If max. count (5) reached, / 5/ :A Q 5.5 and conv. moving FORWARD / . / :A F 102.1 and LB1 passed, / / :JC PB 104 then call Data Backup. / . / :

    PLC PB 104 - "Block Status". ?

    --------------------------------------------------------------------------------------------

    . , C103 5? ? -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------

    1 DB 104 , "Status Variable", "Force Variables".

    "Status Variable", VB 104 F5 Save As .

    DB104

    DW 0 KH=

    DW 1 KF=

    DW 2 KH=

  • :

    Siemens AG .3-13/36 ST-S5SYS2 Training Center

    SIMATIC S5

    (Project Settings -Symbols-), , .

    DW 1 , 5.

    DB 104 PLC .

    F5 : File Blocks Transfer ...

    "Confirm before overwriting" ( ) .

    PG : 'Yes'.

    ?

    --------------------------------------------------------------------------------------------

    DB 104 .

    F2 : Editor Data Block ...(x) Program file

    , ?

    1- ----------------------------------------------------------------------------

    Insert. DB 104?

    --------------------------------------------------------------------------------------------

    DW 1 "KF DB 104.

  • Siemens AG .3-14/36 ST-S5SYS2 Training Center

  • Siemens AG .3-15/36 ST-S5SYS2 Training Center

  • Data Blocks ( )

    Siemens AG .3-16/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PG : - (DB),

    ; - ( ) (DV), ; - (DC), DB DW.

    PLC DB,

    .

    .

  • Siemens AG .3-17/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-17

    PG

    DB 10

    0: KH = 0000

    1: KM = 00100110 00111111

    2: KH = 263F

    3: KY = 38,63

    4: KS = '&?'

    5: KF = +9791

    QA

    DB 10 0: 00000000 00000000

    1: 00100110 00111111

    2: 00100110 00111111

    3: 00100110 00111111

    4: 00100110 00111111

    5: 00100110 00111111

    DV 10 0: KH

    1: KM

    2: KH

    3: KY

    4: KS

    5: KF

    DK 10 WOR 0 WOR 1

    WOR 5 QA

    DB 10 0: 00000000 00000000

    1: 00100110 00111111

    2: 00100110 00111111

    3: 00100110 00111111

    4: 00100110 00111111

    5: 00100110 00111111

    PLC

  • Data Blocks ( )

    Siemens AG .3-18/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PG . ,

    , DV DC , , . PLC , , PG. (DV), PG "Preheader for this block does not exist" (" ") . DB . . "" .

    ,

    PLC "Delete data preheader?" ( ?).

    .

  • Siemens AG .3-19/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-19

    PLC(, DD)

    DB 10

    0: 00000000 00000000

    1: 00100110 00111111

    2: 00100110 00111111

    3: 00100110 00111111

    4: 00100110 00111111

    5: 00100110 00111111

    HDD

    DV 10

    0: KH

    1: KM

    2: KH

    3: KY

    4: KS

    5: KF

    DK 10

    WOR 0 INDEX REGISTER

    WOR 1 STATUS BITS

    WOR 5 SETPOINT QA

    +

    +

    PG

    DB 100: KH = 0000 INDEX REGISTER

    1: KM = 00100110 00111111 STATUS BITS

    2: KH = 263F

    3: KY = 38,63

    4: KS = '&?'

    5: KF = 9791 SETPOINT QA

  • Data Blocks ( )

    Siemens AG .3-20/36 ST-S5SYS2 Training Center

    SIMATIC S5

    (16- ) , , . , .

    S5-95U; S5-100U ( CPU 103) S5-115U :

    "TB D 10.3 RLO 1, 3 DW 10 1. 0 "TBN D ...

    . , .

    , 140 , .

    PLC , (, A D 10.3). PLC .

  • Siemens AG .3-21/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-21

    DW 9

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

    0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0DW 10

    TB D 10.3 RLO ='1'

    TB D 10.7 RLO ='0'

    TBN D 10.14 RLO ='1'

    0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0DW 10

    7 6 5 4 3 2 1 0

    0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0FW 200

    L DW 10T FW 200

    7 6 5 4 3 2 1 0

    A F 201.3 RLO ='1'

    A F 201.7 RLO ='0'

    AN F 200.6 RLO ='1'

  • Data Blocks ( )

    Siemens AG .3-22/36 ST-S5SYS2 Training Center

    SIMATIC S5

    , DB ,

    DB. DB , : "BE, "BEC "BEU.

    JU JC, DB "" .

    : DB 2 ( DB 2 2) DB 3 ( DB 3 3). , 2 DB 2, PB 3, , DB 3. 2 ( 3) "" DB 2. , "" ( "BEC "BEU) DB, DB .

    L DW 2 OB 1

    DB OB 1.

  • Siemens AG .3-23/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-23

    OB 1

    :::::JU PB 2:::L DW 2::::::BE

    PB 2

    :C DB 2:::L DW 2::::JU PB 3:::T DW 2:::BE

    DB 2

    DB 2

    PB 3

    :::L DW 2::C DB 3::T DW 2:::::L DW 1::BE

    DB 2

    DB 3

    DB 2

    DB 3

    DB 2

    DB 3

    DB 2

    DB 3

  • Data Blocks ( )

    Siemens AG .3-24/36 ST-S5SYS2 Training Center

    SIMATIC S5

    PB 104 PB 103 . . (JC) , RLO =1. , , RLO.

    (JC ...) RLO,

    RLO. RLO "JC" 0, ,

    RLO 1. RLO "JC" 1,

    RLO "" . (JU ...) ,

    RLO "" - RLO.

    .

  • Siemens AG .3-25/36 ST-S5SYS2 Training Center

    SIMATIC S5

    JU JC

    3-25

    JU PB xxx =

    PB xxx

    RLO .

    A I 0.3JC PB xxx

    =

    RLO = '1'?

    PB xxx

    RLO

    RLO

    !

    RLO '0' '1'.

  • Data Blocks ( )

    Siemens AG .3-26/36 ST-S5SYS2 Training Center

    SIMATIC S5

    Block End ("BE) "" RLO .

    "BEC , RLO

    1. RLO = '1' "" . RLO 0, , RLO '1'.

    "BEU"

    . "BE, .

    RLO, , , , (" ").

  • Siemens AG .3-27/36 ST-S5SYS2 Training Center

    SIMATIC S5

    RLO BE BEC

    3-27

    BE, BEU =

    RLO

    A I 0.4BEB

    =

    RLO = '1'?

    RLO

    RLO

    !

    RLO '0' '1'

  • Data Blocks ( )

    Siemens AG .3-28/36 ST-S5SYS2 Training Center

    SIMATIC S5

    . PLC .

    , . , PG PLC.

    F3 : File Blocks Directory ... (x) PLC

    PLC , , "PLC Memory Configuration.

    PLC PLC Memory Conf. PLC,

    , "" , . , "Delete Block(s) ( PLC " ()"). " ", , , PLC .

    "Compress PLC Memory (" PLC")

    Ctrl F2 : PLC Compress PLC Memory ,

    "" "" . , , PLC STOP ( , ).

    S5-155U

    .

  • Siemens AG .3-29/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3-29

    PB 100 PB 102

    B00A PB 100

    B070 PB 101

    B092 PB 102

    B0EC PB 103

    B132 PB 104

    B14A

    B16A OB 21

    B184 OB 22

    B1A0 DB 104

    B1AE

    B214

    PB 100

    PB 101

    PB 102

    PB 103

    PB 104

    OB 1

    OB 21

    OB 22

    DB 104

    PB 100

    PB 102

    PLC

    B00A PB 101

    B02C PB 103

    B072 PB 104

    B08A OB 1

    B0A8 OB 21

    B0C4 OB 22

    B0E0 DB 104

    B0EE

    B154

    OB 1

    .

    .

    PB 100

    PB 102

  • Data Blocks ( )

    Siemens AG .3-30/36 ST-S5SYS2 Training Center

    SIMATIC S5

    () : - RAM: Random Access Memory (/) . - EPROM: Erasable Programmable Read Only Memory

    , ( ). - EEPROM: Electrically Erasable Programmable Read Only

    Memory ,

    ( ).

    RAM, PLC, PG

    , . . , , DB "T DW ... , DB RAM.

    RAM, RAM , .

    EPROM EEPROM . , , . , "" PG. .

    EEPROM - PG. EPROM

    , - 30 .

    EPROM EEPROM, , . , , , . "/" DB, RAM CPU. CPU RAM .

  • Siemens AG .3-31/36 ST-S5SYS2 Training Center

    SIMATIC S5

    RAM

    PB 100

    OB 1

    PB 104

    DB 104

    DW 1

    DW 2Accu 1

    ::C DB 104:L DW 1:T DW 2::

    E(E)PROM

    Accu 1

    Load Transfer

    3-31

    PB 100

    OB 1

    PB 104

    DB 104

    DW 1

    DW 2

    ::C DB 104:L DW 1:::

    1 1

    , EPROM

    . "G DB ... 1, , L KF+50. , .

    S5-135U , , STOP, . PLC.

  • Siemens AG .3-32/36 ST-S5SYS2 Training Center

  • Siemens AG .3-33/36 ST-S5SYS2 Training Center

  • :

    Siemens AG .3-34/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3 ,

    . DW 1 DB 104 , Q 4.0.

    PB 104.

    : ,

    , ? FW 254 .

  • - 3

    Siemens AG .3-35/36 ST-S5SYS2 Training Center

    SIMATIC S5

    , , (Data Blocks). , .

    DB 2 DB 255 , S5-135U DX 1 DX 255.

    (data words), (, ) (DW 0 DW 255). 16- .

    E(E)PROM, . , RAM . , (DB), (DV), (DC), . . ( ) .

    Load Transfer ( ). (C DB). , "Status Variable" "Force Variables". "Force Variables" , .., -.

    PLC .

    JU .. BE BEU (RLO). RLO .

    C ( ) , RLO 1. , RLO; (.., RLO 0), RLO 1, ; (.., RLO 1), , RLO (RLO =1).

  • Siemens AG .3-36/36 ST-S5SYS2 Training Center

    SIMATIC S5

    3

    .

    .

    .

    .

    .

    .

    .

    .

    RLO.

    "".

    .

    () .

    .

    .

  • Siemens AG . 4-1/38 ST-S5SYS2 Training Center

    SIMATIC S5

    1

    2

    3

    4

    4

    1

    : .................................................... 4-2

    ......................................... 4-2 ..................................... 4-4 ............................ 4-6 .................... 4-8 ............. 4-8 PLC ........................................... 4-10 ............... 4-10

    : ............................................. 4-14 .................... 4-22

    ....................................... 4-22 ........................................................ 4-24 ............................................ 4-26

    : ........................................... 4-28 ................................................. 4-30

    .............................................................. 4-30 PLC, (High-End PLC) ......................................... 4-30 ......................................... 4-30

    : ................................. 4-34 4. .................................................................................. 4-37 ........................................................... 4-38

  • Siemens AG . 4-2/38 ST-S5SYS2 Training Center

    SIMATIC S5

    : , . , , (. ) .

    .

    , , PB 104, . :

    , 1, DW 1,

    , 2, DW 2,

    , 3, DW 3.

    (IW 2) .

    ,

    . (FB). , , , . , . .

  • :

    Siemens AG . 4-3/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-3

    PB 104

    Segment 1::JU FB 204:Segment 2::JU FB 204:Segment 3::JU FB 204::BE

    FB 204

    NAME::::::: BE

  • Siemens AG . 4-4/38 ST-S5SYS2 Training Center

    SIMATIC S5

    , "" , (FB)

    , . ( FB ) .

    :

    , , . . PB 104 :

    :L DW 1 :L C 103 :+F :T DW 1

    .

    .

    .

    DW 1 "", .., . DW 1 , . 4 , . "DWNO". , :

    :L =DWNO :L C 103 :+F :T =DWNO

    .

    .

    .

    "T =" "L =" , . Transfer (T) Load (L). LW = (Load value).

    ( ()). "=", . , , PLC.

  • :

    Siemens AG . 4-5/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-5

    NAME : SHIFT::LW:L:>

  • Siemens AG . 4-6/38 ST-S5SYS2 Training Center

    SIMATIC S5

    , ,

    . :

    - (. 4 , ); - ; - ; - , . :

    I (FB input / ) Q (FB output / )

    BI () BY () W () D (., CPU S5-135U )

    I 8.0, Q 5.5, F 1.0 IB 8, QB 5, FY 10 IW 8, AW 6, FD 10

    D (/ )

    KM/KH/KY/KS/KF/KT/ KC/KG

    KF +100, KH 006A KT 100.0, KY 0,8

    B () DB 104, PB 100, FB 204

    T () T 100, T 65

    C () C 100, C 65

    . , . , .

    , . , .

  • :

    Siemens AG . 4-7/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-7

    FB

    FB 204

    Segment 1

    Name : SHIFT

    Decl : I/Q/D/B/T/C :D KM/KH/KY/KS/KF/KT/KC/KG: KH

    Decl : I/Q/D/B/T/C :I BI/BY/W/D : W

    FB

    PB 104Segment 1

    : STL: C DB 104: JU FB 204

    NAME : SHIFTSNO : KH 0001DWNO : DW 1

  • Siemens AG . 4-8/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB . FB 8 ,

    . FB , FB.

    , , .

    JU, JC. STL,

    , . ()

    . CSF LAD

    FB , . FB , FB . PG ( ).

    STL , "Bit": , F 0.0.

  • Siemens AG . 4-9/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-9

    FB 204

    NAME : SHIFTDECL : SNO D KH

    DECL : DWNO I W

    : LW =SNO: L IW 2: >

  • Siemens AG . 4-10/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB - PLC

    . .

    ,

    , (. ).

    FB FB . ,

    . FB . , , .

  • :

    Siemens AG . 4-11/38 ST-S5SYS2 Training Center

    SIMATIC S5

    PLC

    4-11

    SNO = 0001DWNO = DW1

    SNO = 0002DWNO = DW2

    FB 204

    NAME : SHIFTDECL : SNO D KH

    DECL : DWNO I W

    : LW =SNO

    : L IW 2: >

  • Siemens AG . 4-12/38 ST-S5SYS2 Training Center

  • Siemens AG . 4-13/38 ST-S5SYS2 Training Center

  • :

    Siemens AG . 4-14/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4 : PB 104

    . .

    PB 104 , , :

    L KH 0001 Load shift No. 1 \ 1 L IW 2 Load shift No. set on pushweel buttons \ >

  • :

    Siemens AG . 4-15/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB 204, , , : FB 204 Segment 1 NAME : SHIFT Decl : SNO I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KH Decl : DWNO I/Q/D/B/T/C: I BI/BY/W/D: W : LW =SNO Load shift No. x. \ : L IW 2 Load shift set on pushwheel \ : buttons. : >

  • :

    Siemens AG . 4-16/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB "SNO" . "KH.

    , .

    "DWNO. DWNO FB Input, "I" .

    PG :

    BI/BY/W/D (Bit / Byte / Word / Doubleword).

    DWNO

    FB, "W" Word.

    Enter .

    ,

    , - . -.

    (JU FB 204 JC FB 204). PG - ( STL) ( CSF). . FB .

    : FB , .

    , FB , FB .

  • :

    Siemens AG . 4-17/38 ST-S5SYS2 Training Center

    SIMATIC S5

    PB 104 FB 204 . PB 104. PB 104. :

    PB 104 . File Blocks Delete ... (x) Program file

    FB FB STL . . :

    , CSF "Project Settings -Blocks -.

    F4 : File Project Set

    PB 104.

    F1 : Editor STEP 5 Block ... (x) Program file

    ":STL 1 STL.

    "C DB 104, DB 104.

    FB 204 "JU FB 204 Enter.

    FB: "SHIFT" .

    Enter.

    PG . Enter.

    PB 104 Segment 1 Shift 1 :STL :C DB 104 :JU FB 204 NAME :SHIFT SNO : KH 0001 DWNO : DW 1

    FB 204 2. CSF.

    F2 Blocks FB F1 JU FB .

  • :

    Siemens AG . 4-18/38 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    "FB 204.

    CSF- FB 204:

    :

    FB 204 3 PB 104 FB.

    PLC . IW 2.

  • :

    Siemens AG . 4-19/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB 204 , QW 6.

    , , ?

    ------------------------------------------------------------------------------------------------- ?

    -------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------- ?

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

    . 3 . , 10 "". ?

    ------------------------------------------------------------------------------------------------- ?

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------

  • Siemens AG . 4-20/38 ST-S5SYS2 Training Center

  • Siemens AG . 4-21/38 ST-S5SYS2 Training Center

  • Siemens AG . 4-22/38 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    1. FB . 2. :

    , .. , , , .

    3. : "-

    ", .e., .

  • Siemens AG . 4-23/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-23

    STEP 5

    ,

  • Siemens AG . 4-24/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB ,

    - - . FB FB (user function blocks).

    . , . , , .

    FB , FB (standard function blocks),

    , . :

    - "" ( , ).

    - - ().

    - (signal functions).

    - (Sequential controls). - (Closed-loop control). - / (Intelligent I/O modules).

    . ST 57 ST50, 7.

    S5-95U, S5-100U (CPU 103) S5-115U. ( BCD ), (, ), (, ) . PLC.

    (FB 238 FB 251 PLC S5-115U).

    (S5-135U ) FX- ( FX 0 FX 255).

  • Siemens AG . 4-25/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-25

    ,

  • Siemens AG . 4-26/38 ST-S5SYS2 Training Center

    SIMATIC S5

    .

    , . - .

    BINARY 0010 = 00000000 00001010 = A (Hex.) BCD 10 = 00000000 00010000 .

    BCD- , QW 6 (. ). CPU S5-115U - BCD- . .

    :

    FB 240 BCD BINARY (BCD .) FB 241 BINARY BCD (. BCD)

  • Siemens AG . 4-27/38 ST-S5SYS2 Training Center

  • :

    Siemens AG . 4-28/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4

    QW 6. ( ) BCD- QW 6. FB 241, CPU. , QW 6. , FB 241 FB 204.

    :

    : FB 241 FB 204 , FB 241 PLC.

    FB 241 FB 204.

    F1 : Editor STEP 5 Block ... (x)Program file

    : DUAL: , (FW 254). SBCD: ("1=; "0=). ""

    , ( ), . F 200.0 ( F).

    BCD2:

    , S5-115U BCD-. 4 . . FY 200 "" ("scratchpad" ).

    BCD1: ( 0 3) BCD- , , QW 6.

    , "T QW 6 FB 241!

    FB 204 PLC .

  • Siemens AG . 4-29/38 ST-S5SYS2 Training Center

  • Siemens AG . 4-30/38 ST-S5SYS2 Training Center

    SIMATIC S5

    FB , CPU .

    , . CPU :

    FB 240 BCD- ,

    FB 241 BCD-.

    . S5-115U 11 PLC.

    PLC FB , . . : High-End PLC :DUF ( BCD-) :DEF ( BCD- ) S5-115U (FB 242 FB 243

    ) PLC :

    :X F () : F ()

    , . PLC .

    (0 1) . OB 1. F 0.0 0, F 0.1 1. :

    OB1 :A F 0.0 :R F 0.0 Status always 0 / 0 :AN F 0.1 :S F 0.1 Status always 1 / 1 : . . . . .

  • Siemens AG . 4-31/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4-31

    . COD:B4, FB 240

    BCD

    SBCD

    DUAL

    I

    I

    Q

    W

    BI

    W

    0...+9999

    1 -0 +

    16

    BCD-

    BCD-

    .

    (STL)

    :JU FB 240NAME :COD : B4BCD :SBCD :DUAL :

    . COD:16, FB 241

    DUAL

    SBCD

    BCD2

    I

    Q

    Q

    W

    BI

    BY

    -32768 ... +32767

    1 -0 +

    1

    .

    BCD-

    (STL)

    :JU FB 241NAME :COD : 16DUAL :SBCD :BCD2 :BCD1 :

    BCD1 Q W 4

    BCD- 4

    BCD- 0 ... 3

    (FY 200 FY 255). , .

  • Siemens AG . 4-32/38 ST-S5SYS2 Training Center

  • Siemens AG . 4-33/38 ST-S5SYS2 Training Center

  • :

    Siemens AG . 4-34/38 ST-S5SYS2 Training Center

    SIMATIC S5

    3

    . , , , , - "", "" , I 1.0 ".".

    DW W 100 DB 105.

    IW 2 (, 500 ).

    , QW 6.

    , "FFFF" QW 6.

    PB 105 "JC PB 105.

    PB 105 ("" "." "." (OFF), I 1.0 - ON) PB 103.

    "" PB 105. PB 105 PB 103 PLC. .

  • :

    Siemens AG . 4-35/38 ST-S5SYS2 Training Center

    SIMATIC S5

    5

    10

    15

    20

    25

    30

    35

    5 10 15 20 25

  • :

    Siemens AG . 4-36/38 ST-S5SYS2 Training Center

    SIMATIC S5

    5

    10

    15

    20

    25

    30

    35

    5 10 15 20 25

  • - 4

    Siemens AG . 4-37/38 ST-S5SYS2 Training Center

    SIMATIC S5

    :

    1. .

    2. STEP 5 .

    3. "".

    2 : FB FB.

    FB "" "-". (, ) / , .

    FB "". PLC, .

    "" . . , . FB , FB , . , .

  • Siemens AG . 4-38/38 ST-S5SYS2 Training Center

    SIMATIC S5

    4

    "" .

    .

    .

    .

    "" FB CSF.

    .

    CPU.

    .

    .

    .

  • Siemens AG . 5-1/34 ST-S5SYS2 Training Center

    SIMATIC S5

    1

    2

    5

    1

    2

    3

    ................................................ 5-2

    ........................................................................ 5-2 , RUN ........................................ 5-2 , STOP ............................................. 5-4 CPU ............................................................... 5-6

    PG ................................................................. 5-8 "PLC Info ISTACK ............................................................... 5-8 ISTACK.................................................................................. 5-8 1 ............................................................. 5-8 2 ............................................................. 5-8 (Interrupt STACK, ISTACK) .................................. 5-10 ISTACK .................................................... 5-10 ....................................................................... 5-12 ....................................... 5-12 (Block Stack, BSTACK) ................................................ 5-14 "PLC Info BSTACK ............................................................ 5-14

    , RUN.................... 5-16 RUN ......................... 5-16 - "Block Status" .............................................. 5-16 "Status Variable" ............................................ 5-18 ...................................................................... 5-20 , .................................................... 5-20 ................................................................. 5-22 .................................................. 5-22 .............................................. 5-22 ................................ 5-24

    : .......................................... 5-28 ............................................................................................... 5-32 5. .................................................................................. 5-33 ........................................................... 5-34

  • Siemens AG . 5-2/34 ST-S5SYS2 Training Center

    SIMATIC S5

    , PG. , , S5-90U S5-115U.

    , , : - , PLC STOP,

    ; - ,

    , (RUN).

    () . RUN ,

    /. / , -, .

    PG

    , : - Block Status . . . - Status Variable - Force Variables - Force Outputs - I/Q/F List // - Search - Cross Reference List

  • Siemens AG . 5-3/34 ST-S5SYS2 Training Center

    SIMATIC S5

    RUN

    5-3

    CPU ...

    RN

    ST

    /

    /

    /

    - ()

    -

    -

  • Siemens AG . 5-4/34 ST-S5SYS2 Training Center

    SIMATIC S5

    , CPU STOP , STOP- : - , - CPU, - CPU, - "PLC info ISTACK, - "PLC info BSTACK.

  • Siemens AG . 5-5/34 ST-S5SYS2 Training Center

    SIMATIC S5

    , STOP

    5-5

    CPU ...

    RN

    ST

    - ,- .

    ST (STOP)

    - CPU

    - PG PLC INFO: ISTACK BSTACK

    RN

    ST

    !

    RUN

  • Siemens AG . 5-6/34 ST-S5SYS2 Training Center

    SIMATIC S5

    CPU CPU S5-115U

    . : QVZ [No Acknowledgement (NAK)] STOP RUN S5-115U

    . CPU PII PIQ. / Ready (), .

    , / . , , , , "L PY .., "L PW .., "T PY .. "T PW ...

    ZYK [Scan Time Exceeded (STE)] CPU

    . CPU S5-115U 500 . ( ) , CPU STOP "ZYK . , . . PLC.

    BASP [Command Output Disable] PLC STOP, , ..

    . "BASP.

    CPU

    . , , .

  • Siemens AG . 5-7/34 ST-S5SYS2 Training Center

    SIMATIC S5

    CPU

    5-7

    115 UCPU941

    RNST

    RNST

    NR

    RE

    OR

    QVZ

    ZYK

    BASP

    :

  • Siemens AG . 5-8/34 ST-S5SYS2 Training Center

    SIMATIC S5

    PG

    CPU STOP-, PG "PLC Info ISTACK" PLC,

    "PLC Info ISTACK.

    CPU STOP- , , " " [interrupt STACK (ISTACK)].

    F9 : PLC PLC Info ISTACK ISTACK S5-90US5-115U

    ISTACK: - " " ["Control bits"] - " ISTACK". Insert. " " ,

    PLC RUN-. "X" -. PG PLC. ( SHIFT: ; SHIFT: , "X").

    : 1 - [Control Bits, Group 1] CPU.

    . 2 [Control Bits, Group 2] ,

    .

  • PG

    Siemens AG . 5-9/34 ST-S5SYS2 Training Center

    SIMATIC S5

    ISTACK (S5-115U, 1- )

    5-9

  • Siemens AG . 5-10/34 ST-S5SYS2 Training Center

    SIMATIC S5

    " " ["Control (Interrupt STACK) bits"] " " ["Interrupt stack"]

    Insert. " " PLC STOP; . . , . "CC0, CC1 "OVFL . .

    (. ) , : ISTACK - (TRAF);

    - (OP-REG) MC-5 - "3364; - MC-5 - -

    "T DW 100; - PB 105;

    - (REL-SAC) 0010; - DB 105.

  • PG

    Siemens AG . 5-11/34 ST-S5SYS2 Training Center

    SIMATIC S5

    ISTACK (S5-115U, 2- )

    5-11

  • Siemens AG . 5-12/34 ST-S5SYS2 Training Center

    SIMATIC S5

    .

    PB 105, STL PLC. , , F1 Addresses. 0000, . S5-90US5-115U . , "".

    , , , , ISTACK, , . PB 105 , 0010 : "T DW 100. ISTACK , , .e. . DB 105 (. ISTACK), , DW 100 . DB 105.

    PLC. CPU STOP, ISTACK !

    : SUF (substitution error) -

    , STUEB (block stack overflow) - ZYK (scan time exceeded, "timeout") , BSTACK.

    . , , F1 Addresses.

    STEP 5 7 : F2

    ISTACK ( 2), PB 105; (. ).

  • PG

    Siemens AG . 5-13/34 ST-S5SYS2 Training Center

    SIMATIC S5

    5-13

    PB 105 C:[email protected] LEN=35

    Segment 1 Specified number of parts reached? / ?

    0000 :C DB 104 Call data block DB104 / DB 104

    0002 :L DW 1 Calculate total production /

    0004 :L DW 2 of all three shifts / 0006 :+F

    0008 :L DW 3

    000A :+F

    000C :C DB 105 Call data block DB 105 / DB 105 000E :T DW 100 Store total production in DW 100 / DW 100 0010 :

    0012 :JU FB 240 Convert setpoint to binary number/ 0014 Name:COD:B4

    0016 BCD : IW 2

    0018 SBCD: F 200.0

    001A DUAL: DW 99

    001C :

    001E :L DW 99 Compare setpoint with / 0020 :L DW 100 total production / 0022 :>F If setpoint > total production, / , 0024 :L KH FFFF display FFFF / FFFF 0028 :T QW 6 and / 002A :BEC exit block. /

    002C :

    002E :JU FB 241 Otherwise, call FB for conversion / FB - 0030 Name:COD:16 from binary to BCD / BCD 0032 DUAL: DW 100 Display total production / 0034 SBCD: F 200.0

    0036 BCD2: FY 200

    0038 BCD1: QW 6

    003A :BE

    /

  • Siemens AG . 5-14/34 ST-S5SYS2 Training Center

    SIMATIC S5

    ("BSTACK") (Block Stack, "BSTACK") . ,

    .

    , :

    - ; - , ,

    .., . , CPU , "" .

    F10 : PLC PLC Info BSTACK "

    - " ["last-in-first-out" (LIFO)], " ". () .

    , .

    ( " ") BSTACK

    PLC. , 32 BSTACK S5-115U, STOP STUEB ( ).

    PLC S5-90US5-115U ,

    BSTACK, , .

    S5-135U PLC BSTACK, , , .

    PLC , PLC STOP !

    "PLC Info BSTACK" BSTACK PG.

    PG , , .

  • PG

    Siemens AG . 5-15/34 ST-S5SYS2 Training Center

    SIMATIC S5

    BSTACK

    5-15

    .

    PB 30PB 23PB 21OB 1

    .

    9032901C9006906A

    .

    9040902690109070

    . .

    000E000A000A0006

    DB

    151212

    . DB

    905A904C904C

    .

    OB1

    906A

    9070

    JU PB 21

    BE

    PB21

    9006

    9010

    JU PB 23

    BE

    PB23

    901C

    9026

    JU PB 30

    BE

    PB30

    9032

    9040

    JU PB 33

    BE

    PB33

    BE

    BSTACK PB 33

    A DB 12 A DB 15

    DB 12

    904C

    DB15

    905A

  • Siemens AG . 5-16/34 ST-S5SYS2 Training Center

    SIMATIC S5

    RUN

    RUN , : - Block Status ... " " - Status Variable " " - Cross Reference List - Search

    , .

    - - Block Status - (Block Status) . PG

    CSF, LAD STL. , , .

    F6 : Test Block Status . . . , " " (CSF), CSF LAD, " " (LAD) :

    CSF: = = = = = 1 ( '1') . . . . . . . . '0' ( 0)

    CSF- RLO.

    LAD: = = = = = 1 . . . . . . . . 0 RLO .

    Block Status STL . Load, Transfer .

  • (RUN Mode)

    Siemens AG . 5-17/34 ST-S5SYS2 Training Center

    SIMATIC S5

    "Block Status"

    5-17

    (CSF) (LAD)

    Segment 1 Segment 1

    I 0.6 I 0.5 Q 4.3

    ( )

    I 0.3

    (STL)

    Segment 1 STL-STATUS RLO STATUS/ACCU1 --- ACCU2 ---

    :A( 1

    :O I 0.6 1 1

    :O I 0.3 1 0

    :) 1

    :AN I 0.5 1 0

    := Q 4.3 1 1

    :***

    (RLO)

    ACCU 1

    C ACCU 1

    +

    CODE

    000001110000011000000010

    0000011000000010

    00000011

    SAC

    70B870BA70BC

    70BE70C070C2

    I 0.6

    I 0.3

    = Q 4.3

    >=1

    I 0.5

    &

    ===

    ====

    +=

    +=== ===+===

    +

    ========+== =[]

    []

    [] /

  • Siemens AG . 5-18/34 ST-S5SYS2 Training Center

    SIMATIC S5

    . (" ") .

    , .

    F7 : Test Status Variable 20 : - F / Q / I KM - FY / QB / IB KH; KM; KY; KS; KF - FW / QW / IW KH; KM; KY; KS KF - T KT; KM; KH - C KC; KM; KH - DW / DL / DR KH; KM; KY; KS; KF

    . ,

    "Status Variable", .

  • (RUN Mode)

    Siemens AG . 5-19/34 ST-S5SYS2 Training Center

    SIMATIC S5

    " " ["Status Variable"]

    5-19

    PII()

    , ,

    ,

    ,

    ( )

    PIQ()

    :I 1.0IB 1IW 2F 60.2FY 60FW 60T 6C 61DB 60DW 1DW 2Q 4.4QB 4QW 6

    . ()KM=0KM=01011010KH=0603KM=1KM=00000110KM=00000110 00010100KT=StoppedKC= 34

    KF=+1143KH=47ADKM=0KM=00001101KH=6482

  • Siemens AG . 5-20/34 ST-S5SYS2 Training Center

    SIMATIC S5

    , , (XREF). T . 5-21a , Q 5.5 -K1

    - PB101, 1, AN. - PB101, 1, O. - PB102, 1, "=". .. Output Editor "Block Status",

    F2 Reference , F2 Disp XREF . ,

    (). .

    F

    1

    Addresses

    Disp Symb

    F

    2

    Lib No

    Reference

    F

    3

    Symb SYM

    Search

    F

    4

    .No Comm F

    5

    -> STL

    Seg Fct

    F

    6

    Seg Com

    Edit

    F

    7

    Save

    Enter

    F

    8

    Help

    Cancel

    F

    1 Gen XREF

    F

    2 Disp XREF

    F

    3

    F

    4 Dest Blk

    F

    5 Orig Blk

    F

    6

    F

    7

    F

    8

    Help

    Return

    Output Editor "Block Status", F2

    Reference , F1 Gen XREF :

    F11 : Management Generate XREF : T

    PLC! ,

    .

    : - (. ) - "[X] Update XREF Edit

    () (. . 5-21b).

  • (RUN Mode)

    Siemens AG . 5-21/34 ST-S5SYS2 Training Center

    SIMATIC S5

    5-21a

    5-21b

  • Siemens AG . 5-22/34 ST-S5SYS2 Training Center

    SIMATIC S5

    Output Editor "Block Status" ,

    , F2 Reference . F4 Dest Blk

    . , ,

    , F4 Dest Blk F5 Orig Blk .

    , ,

    . , F 101.7 , FY 101, FW 100 FD 98. , F4 Single .

    .

    , (, AND ), . , , F5 No Dupl .

  • (RUN Mode)

    Siemens AG . 5-23/34 ST-S5SYS2 Training Center

    SIMATIC S5

    5-23

    Gen XREF

    F

    1 Disp XREF

    F

    2

    F

    3 Dest Blk

    F

    4 Orig Blk

    F

    5

    F

    6

    F

    7

    Help

    Return

    F

    8

    ,

    Addresses

    Disp Symb

    F

    1

    Lib No

    Reference

    F

    2

    SymbSYM

    Search

    F

    3

    No CommF

    4

    STL

    Seg Fct

    F

    5

    Seg Com

    Edit

    F

    6

    Save

    Enter

    F

    7

    Help

    Cancel

    F

    8

  • Siemens AG . 5-24/34 ST-S5SYS2 Training Center

    SIMATIC S5

    (Search), "Search key" (" ") "Edit Block(s)" ( PLC )

    "Block Status".

    "Search key" , F7 Info.

    "Block list" , F7 Info . (Search),

    Output "Edit Block(s)" ( PLC ) - "Block Status", F3 Search . , , ( !).

    F3 Search

    F2 From seg1 , 1 . F3 Continue,

    ( ).

  • (RUN Mode)

    Siemens AG . 5-25/34 ST-S5SYS2 Training Center

    SIMATIC S5

    5-25

  • Siemens AG . 5-26/34 ST-S5SYS2 Training Center

  • Siemens AG . 5-27/34 ST-S5SYS2 Training Center

  • :

    Siemens AG . 5-28/34 ST-S5SYS2 Training Center

    SIMATIC S5

    4 PG,

    , . , :

    PLC Info ISTACK PLC Info BSTACK Block Status... Status Variable Cross reference list Search , ("") , .

    - PB 150 . - PB 151 . - PB 152 . - PB 153 ,

    , PB 154 PB 155. - PB 154 FB 254. - PB 155 , . - FB 254 DB104.

    . PLC

    STOP RUN. :

    PLC

    PB 150PB 155,

    OB 21, OB 22, FB 254, DB 154 DB 155.

    1 [[email protected]]

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2B

    2 [[email protected]]

    C:\S5_DATA\S5COURSE\S5SYS2\SYS2A

    F5 : File Blocks Transfer ....

  • :

    Siemens AG . 5-29/34 ST-S5SYS2 Training Center

    SIMATIC S5

    OB1 PLC:

    Segment 1

    :STL

    :A F 0.0

    :R F 0.0

    :AN F 0.1

    :S F 0.1

    :

    :AN F 0.3

    :R F 0.2

    :A F 0.2

    :R F 0.3

    :

    :JU PB 150

    :JU PB 151

    :JU PB 152

    :JU PB 153

    :

    :BE

    OFF PLC.

    , . .

    , . : F1 Addresses.

    , PLC STOP, PLC!

  • :

    Siemens AG . 5-30/34 ST-S5SYS2 Training Center

    SIMATIC S5

    1-

    ? ISTACK? ?

    -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------

    2- "", : 1, 2 3. .

    ? - ?

    , 5-205-24.

    -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------

  • :

    Siemens AG . 5-31/34 ST-S5SYS2 Training Center

    SIMATIC S5

    3- . .

    ?

    ISTACK? ?

    -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- 4-

    . . ? ISTACK? BSTACK! ?

    ---------------------------------------------------------