PLC Operating System

Embed Size (px)

Citation preview

  • 8/11/2019 PLC Operating System

    1/243

    PLC Operating SystemSoftware manual

    PIC / PC400 / PC600 / CL100 / CL300 / CL400 / CL500

    104Version

  • 8/11/2019 PLC Operating System

    2/243

    PIC / PC400 / PC600 / CL100 / CL300 / CL400 / CL500

    PLC Operating System

    Software manual1070 066 889-104 (92.10) GB

    E 1987

    by Robert Bosch GmbH,All rights reserved, including applications for protective rights.

    Reproduction or handing over to third parties are subject to our written permission.

    Discretionary charge 30. DM

  • 8/11/2019 PLC Operating System

    3/243

    S a fe t y i n st r uc ti o ns an d r e ad i ng h e lp

    0VP.Nr. 3956

    R ea di ng h el p

    R e a d t h i s m a n u a l b e f o re yo u st a r t u s i n g t h e s o f t w ar e . K e e p t h i s s o f t wa r e

    manual in a place where it is always accessible for all users.

    These software instructions are intended for use by PLC programmers, and

    knowledge of the MS DOS operating system is required. For programming

    a c o n t r o ll e r y o u a l s o n ee d t o k n o w t h e c on t r o l le r c o m m an d s .

    Please support us in improv ing this manual, and use the form at the back of

    t h e m a n u a l f o r y o u r s u g g es t i o ns .

    ! .

    T h e s e s y m bo l s a r e u s e d t h r o u g h ou t t h i s m a n u a l t o i n d i c at e t h e f o l l o w i ng .

    !

    This symbol is used whenev er an insufficient or lacking compliance with in

    s t ru c ti o ns c a n r e su l t i n p e r so n al i n ju r y.

    This symbol is used whenev er an insufficient or lacking compliance with in

    s t ru c ti o ns c a n r e su l t i n d a m a ge t o e q u i p me n t o r f i l es.

    .

    T h i s s y m b ol i s u s e d t o d r a w t h e a t t e n t io n o f t h e r e a d e r t o s p ec i a l p o i n ts .

    This symbol is used to point out changes in diagrams.

  • 8/11/2019 PLC Operating System

    4/243

    Sa fe ty in s t ru c t ion s a n d r e a din g h el p

    0VI P.Nr. 3956

    S y mb o ls u s ed

    A

    Frequently, input has been simplified in that only one key has to be pressed.

    T h i s s y m bo l i n d i c a t es w h i c h key on the keyboard should be pressed.

    Shift + Del

    I f t h e r e i s a p l us s i gn +, between two or more keys, these must be pressed

    simultaneously.

    L

    T h i s s i g n i n d ic a t e s t h a t a n a c t iv i t y i s b e i n g d es c r i b ed w h i c h i s t o b e p e r

    formed by the reader, e.g.:

    L Insert disk 1 into the floppy disk driv e.

    T h i s s y m b ol a l w a y s co m e s a t t h e b e g i n ni n g o f a P LC p r og ra mm in g

    example, e .g .:

    U BEDIN1 ;Stepon condition 1

    T h i s s y m b ol i n d i c a t es t h a t s o m e t h in g m u s t b e e n t e r ed . T h e t e s t t o b e e n

    t e r e d i s t h e n g iv e n a f t er t h e s y mb o l . I f t h e e n t ry h a s t o b e a d a pt e d t o y o u r

    r e q u ir e m e nt s , t h e t ex t a f t e r t h e s ym b o l w il l b e i nitalics. The entry must be

    c o n f ir m e d b y p r e s si n g

    Enter .

    Example:

    TYPE file nameMORE

    This screen symbol is always followed by the r e a c ti o n o f t he s cr e e n to

    y o u r e n t r ie s . W h e n y o ur t e x t i s a d a p t ed t o y o u r r e q u ir e m e nt s i t i s s h o w n i n

    italics.

    Example:

    S a ve f i le f il e n am e.TXT? Yes / No

  • 8/11/2019 PLC Operating System

    5/243

    S a fe t y i n st r uc ti o ns an d r e ad i ng h e lp

    0VIIP.Nr. 3956

    Safety instructions

    Test each new program before operating the system!

    All PLC programs produced to date can be edited with the

    new version 3.0. PLC programs which have been edited

    with the new version 3.0 can no longer be read or edited

    with older versions!

    . In this description the floppy disk drive is always drive Aand the hard disk is always drive C.

    . In section A.3Alterations, changes to the E5 edition arelisted.

    . The chapters of the E5 edition8 IBMAT03 co mpatible PC,

    9 Software installation and

    10 P ro fes sio na l in te gr at or

    are now contained in the new Technical Documentation:

    P L C / DES I U t i l it i e s

    Professional Integrator

    Installation instructions

    P.Nr. 4308

    . The PLC utilities can only be run on computers with theIntel processors 80286, 80386 and 80486.

    . The following versions of the MS DOS operating systemhave been approved for use with PLC utilities:

    MS DOS Version 3.21

    MS DOS Version 3.30

    MS DOS Version 5.0

    !

  • 8/11/2019 PLC Operating System

    6/243

    Sa fe ty in s t ru c t ion s a n d r e a din g h el p

    0VIII P.Nr. 3956

  • 8/11/2019 PLC Operating System

    7/243

  • 8/11/2019 PLC Operating System

    8/243

    Contents

    0X P.Nr. 3956

  • 8/11/2019 PLC Operating System

    9/243

    Contents

    1iP.Nr. 3956

    Contents

    Page

    1 User gu ide and main menu 11. . . . . . . . . . . .

    1.1 Over view 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.2 St arting PLC utilities 13. . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.3 Exiting PLC ut il it ies a nd parking the hard disk 1 6. . . . . .

    1.4 St ructure of PLC ut ilities 1 8. . . . . . . . . . . . . . . . . . . . . . . . .

    1.5 Description of the main menu 1 11. . . . . . . . . . . . . . . . . . . .

    1.6 Using the Command utility 1 17. . . . . . . . . . . . . . . . . . . . . . .

    1.7 Entering defaul ts 1 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.8 Using t he pullup menus 127. . . . . . . . . . . . . . . . . . . . . . .

    1.9 Using t he TAB menu 130. . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.10 Description of the help funct ion 132. . . . . . . . . . . . . . . . . . .

    1.11 Editing functions 135. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    10/243

    Illustrations

    1ii P.Nr. 3956

    Illustrations

    Fig. Page

    1 1 Softwa re dongle 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    12 Professional integr ator 14. . . . . . . . . . . . . . . . . . . . . . . . . .

    13 Main menu 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    14 Function key bar 1 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    15 Professional integrator 1 6. . . . . . . . . . . . . . . . . . . . . . . . . .

    16 Genera l scr een layout 18. . . . . . . . . . . . . . . . . . . . . . . . . . .

    17 Main menu 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    18 Structure of PLC utilities 110. . . . . . . . . . . . . . . . . . . . . . . .

    19 Main men u 111. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    110 Fu nct ion blocks of the main menu 112. . . . . . . . . . . . . . . .

    111 Help function 115. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1 12 Function key bar 116. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1 13 Input line 117. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    114 Defaul ts function block 1 19. . . . . . . . . . . . . . . . . . . . . . . . . .

    115 Defau lts 1 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    116 Proj ect directory 1 22. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    117 Su bdirect ories for Z S0 a nd ZS1 123. . . . . . . . . . . . . . . . . .

    118 Editor menu 1 27. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    119 Search menu 127. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    120 Editor men u 128. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    121 Search menu 128. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    122 Sear ch string 128. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1 23 Sea rch select ion menu 129. . . . . . . . . . . . . . . . . . . . . . . . . .

    1 24 File name 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    125 Selection menu 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    126 Help and pullup menus 1 34. . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    11/243

    U se r g ui de a nd m ai n me nu

    11P.Nr. 3956

    1 User guide and main menu

    1.1 Overview

    This software handbook describes PLC utilities. This description applies to

    theVersion 3.0x.

    P L C u t i l i ti e s u s e d t o p r o g r a m t h e f o l lo w i n g B o s ch c o n t r o l l er s :

    D P IC

    D P C400

    D P C600

    D CL100

    D CL300

    D CL500

    I n c h ap t ers 1 User guide and main menu , 3 Editor, 4 Monitor, 5 Loader

    and 6 Lister the indiv idual functions of PLC utilities are described.

    Chapter 2 P rogramming depicts the general programming sequence on

    t h e b a s i s o f a n e x a m p le p r o g r a m . T h is c h a p t e r o f f er s a r a p i d i n t r o d uc t i o n t op r o g r am m i n g t h e PL C .

    . The description of software installation and the professional integrator can be found in the following technical

    documentation:

    P L C / DES I U t i l it i e s

    Professional Integrator

    Installation instructions

    P.Nr. 4308

  • 8/11/2019 PLC Operating System

    12/243

  • 8/11/2019 PLC Operating System

    13/243

    U se r g ui de a nd m ai n me nu

    13P.Nr. 3956

    1.2 Starting PLC utilities

    First of all, install the PLC utilities according to the instructions in the Techni

    c a l D o c u me n t a t io n :

    P L C / D ES I U t i l i ti e s

    P rof essional Integrator

    I n s t a ll a t i on i n s t r uc t i o n s

    P.Nr. 4308

    R e m e mb e r t o c o p y th e AUTOEXEC.BAT andCONFIG.S YS f i l e s i n t o t h e

    m a in d i re c to r y, o r, i f n e ce s s a ry, t o c h a ng e y o u r ex i s t i ng f i l e s.

    L Plug the s o f tw a re d o ng l e i nt o t h e parallel interface.

    Programming unit

    Software dongle

    Parallel interface

    F i g . 1 1 S o f t wa r e d o n g le

    L Please remove any f l o pp y d i sk w h i c h m a y b e p r es e n t i n t h e d is k d r i ve .

    L S w it c h o n p r o g r am m i n g u n i t .

    C:\>

    PROFI

    The P r of e s si o na l i n te g ra t or program is loaded and the menu is dis

    p l a y ed , s e e F i g.12.

  • 8/11/2019 PLC Operating System

    14/243

    User guide and mai n menu

    14 P. Nr. 3956

    Professional integrator

    Professional integra

    tor

    PLC.EXE Version 3.0 from 1st March 1992

    DESI.EXE Version 2.0 from 1st Mar ch 1992

    CONFIG.EXE Version 1.01 from 1st March 1992

    Version 1.01 (c) 198792 Robert Bosch GmbH

    PLC DESI CONFIG End Application

    Fig. 1 2Profe ssional inte grator

    LF1

    P LC

    P L C u t i l i ti e s a r e l o a d ed a n d t h e m ai n m e nu is displayed, see Fig.13.

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    15/243

    U se r g ui de a nd m ai n me nu

    15P.Nr. 3956

    PLC utilities

    S elect>

    Disk Name Type Len gth Informat ion

    > Disk Info > Memory Info >>

    Help

    C: PG

    Version 3.0 (c) 198792 Robert Bosch GmbH

    >> Extended Memory Info

  • 8/11/2019 PLC Operating System

    16/243

    User guide and mai n menu

    16 P. Nr. 3956

    1.3 Exiting PLC utilities and parking the hard disk

    The f u n ct i on k e y b ar is displayed in the bottom part of the screen in the

    m a in P L C u t il i t ie s m e nu , F i g.14.

    Command Editor Monitor Loader Lister End

    F i g . 1 4 Fu n c t i on k e y b a r

    LF6

    End

    Press twice

    The P r o f e s si o n a l i n t e g ra t o r program is called up.

    Professional integrator

    Professional integra

    tor

    PLC.EXE Version 3.0 from 1st March 1992

    DESI.EXE Version 2.0 from 1st March 1992

    CONFIG.EXE Version 1.01 from 1st March 1992

    Version 1.01 (c) 198792 Robert Bosch GmbH

    P LC DESI CONFIG End Applicat ion

    Fig. 1 5Profe ssional inte grator

    LF6

    End

  • 8/11/2019 PLC Operating System

    17/243

    U se r g ui de a nd m ai n me nu

    17P.Nr. 3956

    R e t u r n in g t o M S D O S

    To c o n t i nu e y o u r w o r k i n t h e M S D O S u t i li t i e s, p r e s s:

    LF1

    R e tu r n t o M S DO S.

    C:\>

    You are now in the MS DOS utilities.

    P a rk i n g t h e h a r d d i s kIf you wish to transport the programming unit, you must first secure the hard

    disk:

    LF2

    Park hard disk

    L S w i t c h o f f t h e p ro g r a m m in g u n i t at t h e ma i n s .

    You must also protect the floppy disk drive from damage

    by inserting a shipping card or a floppy disk!

  • 8/11/2019 PLC Operating System

    18/243

    User guide and mai n menu

    18 P. Nr. 3956

    1.4 Structure of PLC utilities

    The user guide system is based on the following general s c re e n l a yo u t.

    Variable screen area

    Main menu Utilities

    Contents

    Userspecific

    defaults

    Path display

    Edit field (Editor)

    Status display (Monitor)

    Program tracing (Monitor)

    Diagnostic messages(Monitor)

    Activ ity logs

    ( L i st e r, L o a d er )

    Input line

    Utilities / v ersion number of messages

    Function key bar

    1

    2

    3

    ..

    .

    21

    22232425

    Line

    D

    D

    D

    D

    D

    D

    D

    D

    InformationD

    MS DOS commandsD

    F i g . 1 6 Ge n e r a l s c r e en l a y o u t

  • 8/11/2019 PLC Operating System

    19/243

    U se r g ui de a nd m ai n me nu

    19P.Nr. 3956

    The m ai n m e nu is displayed when PLC utilities are called.

    PLC utilities

    S elect>

    Disk Name Type Len gth Informat ion

    > Disk Info > Memory Info >>

    Help

    C: PG

    Version 3.0 (c) 198792 Robert Bosch GmbH

    01.03.1992 13:13:13

    Command Edit or Monitor Loader Lister End

    >> Extended Memory Info

  • 8/11/2019 PLC Operating System

    20/243

    11

    0

    P.Nr.

    3956

    Main menu

    Function key bar to

    Command Editor Monitor Loader

    Defaults

    MS DOScommands

    LinkLoad

    E(E)PROM

    Compare

    Operate

    Direct change with

    Lister

    P

    < F2>

    Info status

    Configure

    SK tables

    Creating

    Creating

    Creating

    Creating

    Assigning

    modules

    symbol lists

    t e xt f i le s

    batch files

    Program

    Set

    Program

    Control

    Info

    test

    manipulation

    Module

    Symbol

    Text

    Crossref.

    L i s t p a r a m et e r

    documentation

    documentation

    documentation

    Printer

    Contents

    Fig.1

    8

    Structure

    ofPL

    Cutilities

  • 8/11/2019 PLC Operating System

    21/243

  • 8/11/2019 PLC Operating System

    22/243

    User guide and mai n menu

    112 P. Nr. 3956

    Path

    Contents Information

    Select info

    Help

    Function key bar

    Version/messages

    Time

    F i g. 1 10 Fu n ct i on b l oc k s o f t h e m a i n m e nu

    Path

    T h e f i r s t l i n e d i sp l a y ed o n t h e s c r ee n s h o w s th e path to the subdirectory

    you are currently in or whose contents are being displayed on the screen,

    e.g.:

    C:\PG\

    T h i s m e a n s y o u a r e in t h e P G s u b di r ec t or y w h i c h b r an c h e s of f f r o m t h e

    m a i n o r r o o t d i r e ct o r y.

    . You will find further information on file management in MSD O S d o cu m en t at i on .

    Contents

    The contents function block displays the contents of the driv e selected.

    The d i sk n a me (), if av ailable, is shown in the top line. Depend

    i n g o n t h e d i r ec t o r y s t r u c tu r e t h e n e xt l i n e s s h o w a p a r e n t d i r e ct o r y ( d i r e ct o r y ) a n d a n y subdirectories (ectories) at the next

    lev el. This is followed by a list of files.

  • 8/11/2019 PLC Operating System

    23/243

    U se r g ui de a nd m ai n me nu

    113P.Nr. 3956

    I n t h e Editor, Monitor, Loader and Lister utilities the display in the function

    block Contents i s a l wa y s proj ectrelated. You cannot l e av e t h e proj ect

    d i r e ct o r y s e t () in the defaults and go into thep a r e n t d i r e ct o r y

    ().

    I n t h e u ti l it y Command it is possible to select a n y d e s i r ed d i r ec t o r y, see

    section1.6.

    S c r o ll c o n t e nt s

    To startHome

    P age upPgUp

    S election baru p a li ne"

    S election bard o wn a li n e#

    P age down

    PgDn

    To endEnd

    The following is only possible in the Command utility, see also section 1.6:

    S elect

    +

    T h e d e s i re d directory is selected by positioning the selection bar at the line

    c o n t a in i n g t h e d i r e ct o r y n a m e (, or ).

    Copy

    A f il e n am e is copied

    D to the input line (see section1.6 ) or

    D to the def aults (see section1.7),

    by positioning the selection bar at the line containing a f i l e n a me, and using

    the

    +

    key.

  • 8/11/2019 PLC Operating System

    24/243

    User guide and mai n menu

    114 P. Nr. 3956

    Inf ormation

    T h e f u n c t io n b l o c k Inf ormation d i s p la y s i n f o r ma t i o n a b o u t t h e p r o g r a m

    m i ng u n it (P G) or about the files displayed in the contents (f ile). The selec

    t i o n i s m a d e i n t h e f un c t i o n b lo c k S e le c t i n fo.

    T h e f o ll o wi n g P G i n fo r m at i on i s d i sp l ay e d.

    D Driv e info: D N u m b er o f fi l e s i n

    (Disk Info) current directory

    D Free driv e capacity

    D Used driv e capacity

    D Total drive capacity

    D Main memory info: D Free RAM capacity

    (Memory Info) D Used RAM capacity

    D Total RAM capacity

    D Extended memory info: D Display of activ e HIMEM

    d r i v er w i t h ve r s i on

    D Free capacity in extended

    memory

    . HIMEM.SYS drivers from Version 2.77 may be used. Seealso MS DOS documentation and technical documenta

    tion:

    P L C / DES I U t i l it i e s

    Professional Integrator

    Installation instructions

    P.Nr. 4308

    Iff i l e i n f o r m at i o n i s s e l e ct e d , t h e d a t e a nd t i m e o f t h e l a s t s a v e i s a l so d i s

    p l ay e d f o r e a ch fi l e.

    S e le c t i n f o

    I n t h e f u nc t i o n b lo c k S e le c t i n fo, s el e ct t h e P G i n f o r m at i o n or File inf ormation display, see function block Inf ormation.

    O p en s e l ec t TA B k ey

    S c r o ll t h e d e f a u lt s i n t h e s e l e c t e d f i e l d!

    z

    Close select

  • 8/11/2019 PLC Operating System

    25/243

    U se r g ui de a nd m ai n me nu

    115P.Nr. 3956

    HelpF10

    LF10

    Help

    PLC utilities

    S elect >

    Disk Na me

    Help

    C: PG

    PgDn Exit wit h Esc

    PG help 01/09/001

    PLC Help FunctionWelcome to the Help function for PLC utilities.With the key

    you can request detailed help informationf o r t h e c u r r en t s i t u a t io n a t a n y t i m e .

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Command Editor Mon it or Loader List er End

    F i g . 1 1 1 H e l p f u n c t i on

    The h e lp f u n ct i on can be called up at any time and in any utility. Only the

    m ai n m en ud i s p l ay s t h e h e l p f u n ct i o n a s a n e x p l i ci t r e m i nd e r.

    You will receiv e assistance tailored to the current operating situation. The

    help is displayed in a window and the current screen is retained. The assist

    a n c e a l w a y s r e l a t es t o t h e current cursor position . F o r f u r t h er i n f o r ma t i o n

    r e f e r t o s e c t io n1.10 Description of theh e lp f u n ct i on.

    LF10

    orEsc

    Exit help

  • 8/11/2019 PLC Operating System

    26/243

    User guide and mai n menu

    116 P. Nr. 3956

    Function key bar

    The f unction key bar lists the utilities. Press the appropriate function key to

    c a l l u p t h e d e s i r e d u t i li t y.

    Command Editor Monitor Loader Lister End

    F i g . 1 1 2 Fu n c t i on k e y b a r

    D CommandF1

    D P L C E d i t or p r o g r amF2

    D P LC Monitor programF3

    D P LC Loader programF4

    D P LC Lister programF5

    Use

    F6End

    to exit the PLC utilities, see section1.3 E x i t in g P L C u t i l i t i es a n d p a r k i ng

    t h e h a rd d is k.

    Version/messages

    T h e b o t t o m l i n e f ir s t s h o w s t h e s o f tw a r e v e r si o n n u m b e r.

    During program execution this line displays:

    D U t il i ty n a me

    D System queries about file management

    D System messages

    D Error messages

  • 8/11/2019 PLC Operating System

    27/243

    U se r g ui de a nd m ai n me nu

    117P.Nr. 3956

    1.6 U sing the Co mmand utility

    The Command u t i l i ty i s u se d t o

    D e n t e r M S D OS c o m ma n d s i n t he i np u t l in e and

    D to display the contents independently of the proj ect.

    LF1

    Command

    T h i s a c t i va t e s t h e f u n c t io n bl o c k i np u t l in e, s ee Fi g.113.

    I np u t l in e

    At the beginning of the input line isthe drive name of the selected driv e to

    g e th e r w i th a p r om p t s y m bo l.

    Command Editor Monitor Loader List er End

    PLC program modules

    Help

    C>

    Version 3.0 (c) 198792 Robert Bosch GmbH

    F i g . 1 1 3 I n pu t l i n e

    You may enter any MS DOS commands in this line, e.g.:

    TREE

    L

    Esc

    Return

    LEsc

    E x it c o mm a nd

  • 8/11/2019 PLC Operating System

    28/243

  • 8/11/2019 PLC Operating System

    29/243

    U se r g ui de a nd m ai n me nu

    119P.Nr. 3956

    1.7 Enterin g defau lts

    T h is s e ct i on d e sc r ib e s t he c o mm o n d ef a ul t s f or t h e Editor, Monitor,

    Loader and Lister utilities.

    Defaults

    F i g . 1 1 4 De f a u l ts f u n c t i on b l o c k

    From the main menu, use the function keys

    F2

    to

    F5

    to call one of the utility programs. The screen will display the function block

    def aults. I n t h i s f u n c t io n b l o c k , t he p r o j e ct n a m e a n d f i l e n am e h a v e t o b e

    e n t e re d b e f o r e th e u t i l i ty p r o g r am c a n b e s t a r t ed .

    To create a new P LC proj ect you will first hav e to enter the necessary infor

    m a t i o n i n t h e d ef a u l t s. T h e u t il i t i e s a u t o m at i c a l l y t a k e o ve r t h e d ef a u l t s of

    t h e p r oj e ct .

  • 8/11/2019 PLC Operating System

    30/243

    User guide and mai n menu

    120 P. Nr. 3956

    W h e n y o u e xi t P L C u t i l it i e s b y p r e s si n g t h e f u n c t io n k e y

    F6End,

    the project defaults will be sav ed and are av ailable the next time the project

    is called up. Enter the file name under which your defaults are to be sav ed

    i n t he p r oj e ct s t at u s line.

    Def aults

    O p en d e fa u lt s

    Close def aults

    Take over directory name or f ile name

    +

    S croll through linesEnter

    S croll through def aults of the selected f ield!

    z

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    31/243

    U se r g ui de a nd m ai n me nu

    121P.Nr. 3956

    Command Editor Monitor Loader List er End

    PLC utilities

    S elect > Examp le

    Disk Na me Type Len gth

    C: PG

    P roj ect name

    C o n t r ol l e r t y p e

    Control unit

    Module file name

    Program file name

    Symbol file name

    CL300

    ZS0 >>>

    300

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Project status

    >>>

    Text file name

    PROJECT.PLC

    Fig. 1 15De faults

    L O p en d e fa u lt s

    P roj ect name

    A project unites all files which belong to one controller:

    D P r oj e ct s t at u s

    D Module f iles

    Organisation modules

    Utilities

    Library modules

    D S y mb o l f i le

    D P rogram f ile

    D O p e r a nd f i e l d f i l e

    D S K table

    D P rint f iles

    D Text files

  • 8/11/2019 PLC Operating System

    32/243

    User guide and mai n menu

    122 P. Nr. 3956

    A separate subdirectory i s c r e at e d f o r e a c h p r oj e c t .

    E XAMPLE .300 ZS0

    BS P 1.P LC

    PG

    S YMBOL.S 3S

    S YMBOL.S 3A

    S YMBOL.S 3B

    P M1.P 3O

    OM1.P 3O

    TEST.P3A

    F i g . 1 1 6 Pr o j e ct d i r e ct o r y

    The p r o je c t n a me m a y h a v e a m a x im u m o f 8 c h a r a ct e r s .

    In the Contents f u n c t io n b l o c k, a l l e x i s t i ng p r o j e ct s a r e d i s p l ay e d .

    The project name can

    D be entered manually

    EXAMPLE

    or

    D can be automatically taken ov er from the contents using

    +

    .

    The project name is automatically supplemented with the c o n t r ol l e r t y p e,

    e.g.:

    EXAMPLE.300, TEST.100.

    C o n tr o ll e r t y pe

    S e l e ct i o n o f c o n t r o ll e r t y p e :

    ! or

    z

    PIC, PC400, PC600, CL100, CL300 or CL500

  • 8/11/2019 PLC Operating System

    33/243

    U se r g ui de a nd m ai n me nu

    123P.Nr. 3956

    C o n tr o l u n it Z S

    T h i s l i n e c an only be changed on the CL500. You hav e to select one of the 4

    control units (ZS0, ZS1, ZS2 and ZS3). For ev ery control unit the correspon

    ding module, symbol and program files are stored in a separate subdirec

    tory.

    EXAMPLE.500 Z S 0

    BSP1.PLC

    PG

    SYMBOL.S5SSYMBOL.S5A

    SYMBOL.S5BPM1.P5O

    OM1.P5OTEST.P5A

    Z S 1

    BSP2.PLC

    SYMBOL.S5SSYMBOL.S5A

    SYMBOL.S5BPM1.P5O

    OM1.P5OTEST.P5A

    F i g. 1 1 7 S u bd i re c to r ie s f o r Z S 0 a n d Z S 1

    P r oj e ct s t at u s

    H e r e y o u en t e r t h e f il e n am es to sav eyour d e fa u l ts . I f s e ve r al u s e rs a r e

    w o r k i ng i n a n et w o r k o n o n e p r oj e ct, ev ery user can sav e his special de

    f a u l t s w i t h h i s f i l e n am e .

    I n t h e Contents function block, all existing project status file names are dis

    played.

    T h e f i l e na m e ca n b e

    D entered manually

    BSP1

    or

    D can be automatically taken ov er from the contents using

    +

    .

    The file name automatically receiv es the f i le t y pe . P LC.

  • 8/11/2019 PLC Operating System

    34/243

    User guide and mai n menu

    124 P. Nr. 3956

    M o du l e f i le n a me

    I n t h i s l i n e y o u en t e r th e n a me o f t h e m o du l e f i le y o u w i s h t o p r o c es s .

    In the Contents f u n c t io n b l o c k a l l ex i s t i ng m o d u l e f i l e s a r e d i s p l ay e d .

    The file name can be

    D entered manually

    O M1

    or

    D automatically taken ov er from the contents with

    +

    .

    The file name automatically receiv es a f il e t yp e:

    D .P xT f o r t h e f i le w h i ch i s not assigned.

    D .P xO for the correctly assigned file.

    x = c o nt r ol l er t y pe , e . g .: 1 = C L 1 0 0, 5 = C L 5 0 0.

    S ym b ol f il e n am e

    E n t e r t h e f i l e n a me f o r t h e s y mb o l f i le o f t h e p r o j e ct . T h e s y m bo l f i l e c o n

    tains:

    D T h e l i st o f t h e m o du l e f i le s.

    D The d a ta m o du l es .

    D The s y m b o l ic o p e r a nd d e s c r i p t i on s (symbolic addresses).

    In the Contents f u n c t io n b l o c k a l l ex i s t i ng s y m b ol f i l es a r e d is p l a ye d .

  • 8/11/2019 PLC Operating System

    35/243

    U se r g ui de a nd m ai n me nu

    125P.Nr. 3956

    The file name can be

    D entered manually

    SYMBO L

    or

    D automatically taken ov er from the contents with

    +

    .

    The file name automatically receiv es a f il e t yp e:

    D .S xS f o r t h e c o n te n t s o f th e s y m bo l f i le

    D .S xA f o r t h e a s s i gn m e n to f t he a b s o l ut e a d d re s s e s

    D .S xB f o r t h e a s s ig n m e nt o f t h e s y m b o l ic a d d r es s e s

    x = c o nt r ol l er t y pe , e . g .: 1 = C L 1 0 0, 5 = C L 5 0 0.

    P ro gr am f il e n am e

    Here you enter the file name for the operable PLC program. This program

    f i l e n a m e is u s e d w h e n l in k i n g a n d l o a di n g .

    After linking, the program file contains all modules and data modules which

    form the control program according to the symbol file.

    In the Contents f u n c t io n b l o c k a l l e xi s t i ng p r o g r a m f i l e s a r e di s p l a ye d .

    The file name can be

    D entered manually

    ANLAGE1

    orD automatically taken ov er from the contents with

    +

    .

    The file name automatically receiv es the f i le t y pe . P xA.

    x = c o nt r ol l er t y pe , e . g .: 1 = C L 1 0 0, 5 = C L 5 0 0.

  • 8/11/2019 PLC Operating System

    36/243

    User guide and mai n menu

    126 P. Nr. 3956

    Te xt f i le n am e

    P L C u t i l i t ie s a l s o co n t a i ns a t ex t e d i t or f o r a n y AS C I I f i l e s y o u wi s h , se e se c

    tion3.10Te x t f i le e d it o r.

    T he t ex t e di to r i s u se d f or :

    D Changing the AUTOEXEC.BAT or C O N F I G. S Y S f i l e.

    D V i e w i ng a n d p r o c es s i n g p r i n t f i l e s o n s c r e en w hi c h w e r e c r e a t ed

    u s in g t h e P L C L i s t e r p r o g r am.

    D P r oc e ss i ng a h e ad e r f i le f o r t h e p r og r a m p r in t o u t .

    D Creating a b at ch f il e.E n t e r t h e t e x t f i l e n a m e i n t hi s l i n e o f de f a u l ts . T h e f i le n a me can be up to 8

    c h a r a ct e r s l o n g . T he f il e t yp e m a y h a v e a m a x i mu m o f 3 c h a r a ct e r s .

    The file name and type can be

    D entered manually

    TEXT.TXT

    or

    D automatically taken ov er from the contents with

    +

    .

    L C l os e d e fa u lt s

    S toring def aults

    W h en y o u e x it P L C u t il i ti e s w i th

    F6 End

    the defaults are automatically sav ed in the file PROJECT.P LC. You specified

    t h i s f i l e n a m e i n t h e d e fa u l t s o n t h e p r oj e ct s t at u s line.

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    37/243

  • 8/11/2019 PLC Operating System

    38/243

    User guide and mai n menu

    128 P. Nr. 3956

    2 n d E x am p le

    S e a r ch f o r c h a r a ct e r s t r i ng 0.7.

    Bl ock Assign Symbol Search Command End Change

    F i g . 1 2 0 E d i t or m e n u

    LF4

    S earch

    S earch Command End

    S tring

    Next (repeat)

    Error line

    P r o g . i n st r u c t i on ( P I )

    S t a rt o f fi l e

    Change

    End of file

    Absol. address (symbol list)

    F i g . 1 2 1 S e a r ch m e n u

    LF3

    C h a r ac t e r s t r i n g

    S earch Command End

    S tring

    Next (repeat)

    Error line

    P r o g . i n st r u c t i on ( P I )

    S tring: 0.7

    Change

    Absol. address (symbol list)

    F i g . 1 2 2 S e ar c h s t r i n g

  • 8/11/2019 PLC Operating System

    39/243

    U se r g ui de a nd m ai n me nu

    129P.Nr. 3956

    0.7

    C a n c el a n in c o r r ec t c h a r a ct e r w i t h

    Del or (backspace).

    S earch Command End

    S tring

    Next (repeat)

    Error line

    P r o g . i n st r u c t i on ( P I )

    S tring: 0.7

    Change

    Full words only

    Ignore UPPER/lower case

    Backwards

    Absol. address (symbol list)

    F i g . 1 2 3 Se a r c h s e l e ct i o n m e n u

    An additional menu is opened on screen. Use

    A,

    B or

    C

    t o m a k e y o u r s e le c t i on . T h e k e y s h a v e a t o g g l e f u n c t io n. S e l e ct e d s e t t i n g s

    are highlighted by a bar. If a setting is not selected, then the c o n t r ar y s t a t e

    ment is true.

    A

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    40/243

    User guide and mai n menu

    130 P. Nr. 3956

    1.9 U sing the TAB menu

    F o r s o m e e n tr i e s y o u a r e r e q ui r e d t o s e le c t a f i l e . S o t h a t y o u d o n o t h a v e t o

    type in the file name ev ery time, the file names are listed together in a selec

    t i on m e nu .

    Command End

    Display/load

    Change

    Modul e file

    Text file

    File name:

    Symbol file

    TAB = selection menu

    Fig. 1 24file name

    L

    A menu with the av ailable file names is opened.

    Module files

    OM1 P5O

    PM1 P 5O

    file name: P M1.P 5O

    F i g . 1 2 5 S e le c t i on m e n u

  • 8/11/2019 PLC Operating System

    41/243

    U se r g ui de a nd m ai n me nu

    131P.Nr. 3956

    L S e l e ct f i l e n a m e :

    # or

    "

    The file name is taken ov er in the bottom line.

    L Take ov er current file name:

    Enter

    Enter new file name:

    LShift

    +Del

    L Enter new name.

    LEnter

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    42/243

    User guide and mai n menu

    132 P. Nr. 3956

    1.10 D escription o f the help function

    T h e u s e r g u i d e t o P L C u t i li t i e s p r o v id e s a s s is t a n c e i n t h e f o rm o f i n f o r m a

    t i o n s e l e ct e d t o s ui t y o u r c ur r e n t s it u a t i on . T h e c u r re n t d a t a is s t i l l l ar g e l y

    v isible ev en while help is being displayed.

    C a l l u p h e lp f u n c ti o nF10

    Exit help f unction

    Esc

    or

    F10

    P age upPgUp

    P age downPgDn

    All other functions are disabled while the help function is activ e.

    An example should illustrate the connection between the position of the

    s e le c ti o n b a r in the pullup menu and the information.

    Example

    You are in the m ai n m e nu.

    LF2

    Editor, Def aults

    LF2

    Editor, Call

    LEsc

    Toggle between Edit and Command level

    L Use

    z

    or!

    t o m o v e t h e se l e ct i o n b a r t o Change in the function key bar.

    LF10

    Help

    You are giv en help on the keyword Change.

  • 8/11/2019 PLC Operating System

    43/243

    U se r g ui de a nd m ai n me nu

    133P.Nr. 3956

    LEsc

    E x i t h e l p f u n c t i on

    LF7

    Change

    L Use

    "

    t o m o v e se l e c t b a r t o S ave in the pullup menu.

    LF10

    Help

    You are giv en help on the keyword S ave.

    LEsc

    E x i t h e l p f u n c t i on

    L Use

    #

    t o m o v e t he s e l ec t b a r t o D i sp l ay / L o ad in the pullup menu.

    LF10

    Help

    You are giv en help on the keyword D i sp l ay / L o ad.

    LEsc

    Exit help f unction

    The following table shows the connection between the help giv en and the

    position of the selection bar in the pullup menu.

  • 8/11/2019 PLC Operating System

    44/243

    User guide and mai n menu

    134 P. Nr. 3956

    Comma nd End Change

    Search Change

    S ave

    Display / Load

    Save

    Display / Load

    Po sition o f selectio n bar Help on keyword

    Loading and displayingmodule file

    Loading and displaying

    symbol file

    Sav e

    Display / Load

    Disp lay / Load

    Module f ile

    Symbol file

    Text fil e

    Disp lay / Load

    Module file

    S ymbol f ile

    Text fil e

    Comma nd End Change

    Search

    Comma nd End Change

    Search

    Comma nd End Change

    Search

    Comma nd End Change

    Search

    F i g. 1 2 6 H e lp a n d p u ll up m e nu s

  • 8/11/2019 PLC Operating System

    45/243

    U se r g ui de a nd m ai n me nu

    135P.Nr. 3956

    1.11 Editing fu nctio ns

    The processing of files is assisted by special key functions. These functions

    apply to the entire PLC utilities.

    C ur s or u p"

    Cursor down#

    Cursor right!

    Cursor lef tz

    Jump to end of lineShift

    +!

    Jump to beginning of line

    Shift

    +

    z

    Delete current characterDel

    Delete character to lef t of cursor Backspace

    Delete whole lineShift

    +Del

    Replace/Insert

    Ins

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    46/243

  • 8/11/2019 PLC Operating System

    47/243

    Contents

    2iP.Nr. 3956

    Contents

    Page

    2 Programmin g 21. . . . . . . . . . . . . . . . . . . . . . . . .

    2.1 Main menu and defaults 25. . . . . . . . . . . . . . . . . . . . . . . . .

    2.2 Edit module files 28. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2.3 Edit symbol file 219. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2.4 A ssign modul e files/symbol file 2 24. . . . . . . . . . . . . . . . . . .

    2.5 Load PLC progr am into th e cont roller 2 25. . . . . . . . . . . . .

    2.6 Test PLC program 2 28. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    48/243

    Illustrations

    2ii P.Nr. 3956

    Illustrations

    Fig. Page

    2 1 Programming sequence 22. . . . . . . . . . . . . . . . . . . . . . . . .

    2 2 Configurat ion 23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2 3 Main menu 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    24 Defaul ts 2 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    25 Proj ect directory EXA MPLE.300\ZS0 2 7. . . . . . . . . . . . . .

    26 OM1 2 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    27 PM1, Network 1 2 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    28 Network ov erv iew 2 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    29 Network overview with 5 n etworks 212. . . . . . . . . . . . . . . .

    210 PM1, Netw or k 2 213. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    211 PM1, Net work 3 214. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    212 PM1, Net work 4 215. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    213 PM1, Net work 5 216. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2 14 Networ k 1 in LD 217. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2 15 Netw ork 1 in FUD 218. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    216 O M form 219. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    217 I for m 2 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    218 O form 221. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    219 D M form 223. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    220 Project direct ory before assignment 223. . . . . . . . . . . . . . .

    221 Project direct ory a fter assignment 224. . . . . . . . . . . . . . . .

    222 Project directory after lin kin g 226. . . . . . . . . . . . . . . . . . . . .

    223 PLC Monitor program 228. . . . . . . . . . . . . . . . . . . . . . . . . . .

    2 24 LD monitor 229. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2 25 FUD monit or 230. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    49/243

    Programming

    21P.Nr. 3956

    2 Programming

    This chapter describes programming with PLC utilities, with the help of an

    example containing all the important steps for programming a PLC pro

    gram.

    B e f o re y o u p ro g r a m y o u r co n t r o ll e r w i t h t he e x a mp l e p ro g r a m i n t h i s

    chapter, you should familiariz e yourself with chapter1 User guide and

    m ai n m en u.

    For greater detail on programming your controller, please also consult the

    special dev ice or software manuals of the PIC, PC400, PC600, CL100,

    C L 3 00 o r C L 5 0 0 c o n t r o ll e r s .

    . The following example applies to the CL300 controller.

    P r o g r am m i n g t a k e s t h e fo r m o f a n i n s tr u c t i on l i s t .

    The program consists of an organisation module OM1, a program module

    P M1 and a symbol file S YMBOL .

    The following steps are required for programming:

    D Def aults

    D Edit module file OM1

    D Edit module file P M1

    D Edit symbol file S YMBOL

    D Assign

    D Set m e m o r y c o n f i g ur a t i on

    D Link modules

    D Load program into controller

    D Test program

  • 8/11/2019 PLC Operating System

    50/243

  • 8/11/2019 PLC Operating System

    51/243

    Programming

    23P.Nr. 3956

    T h e f o l l o wi n g c o n f i g ur a t i o n i s r e q u i r ed f o r t h e p r o g r am m i n g e x a m pl e .

    NT

    220 V

    CPU ZE300/ZE301

    K7Programming unit

    RAM16 k

    .

    .

    ZE

    Bosch EP/AG module

    PG

    X31

    CL300

    Program memory module

    e.g.: RAM 16k words, 052192

    Fig. 2 2Configuration

  • 8/11/2019 PLC Operating System

    52/243

    Programming

    24 P.Nr. 3956

    C r e a t e t h i s s m a l l c on f i g u ra t i o n a t y o ur o w n w o r k p l ac e , s o t h at y o u c a n r e

    construct all the steps of the example. You can also carry out this program

    m i n g e x a m pl e i n a m o d i f i ed f o r m u s i n g a c o nt r o l u n i t o t h e r t h an a C L 3 0 0 .

    Do not load this example program into a running system!

    !

  • 8/11/2019 PLC Operating System

    53/243

    Programming

    25P.Nr. 3956

    2.1 Main menu a nd defaults

    L P lu g t he s o f tw a re d o ng l e into thep a r a l le l i n t e r f ac e.

    L Remove any disk w h i c h m a y b e i n t h e f lo p p y d i s k dr i v e .

    L S w it c h o n p r o g r am m i n g u n i t .

    C:\>

    PROFI

    LF1

    P LC

    PLC utilities

    S elect>

    Disk Name Type Len gth Informat ion

    > Disk Info > Memory Info >>

    Help

    C: PG

    Version 3.0 (c) 198792 Robert Bosch GmbH

    01.03.1992

    13:13:13

    Command Editor Monit or Loader Lister End

    >> Extended Memory Info

  • 8/11/2019 PLC Operating System

    54/243

    Programming

    26 P.Nr. 3956

    E n t er d e fa u lt s

    L Call up def aults

    Command Editor Monitor Loader List er End

    PLC utilities

    S elect >

    Disk C Na me Type Length P roj ect name

    C o n t r ol l e r t y p e

    Control unit

    Module file name

    Program file name

    Symbol file name

    CL300

    ZS0 >>>

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Project status

    >>>

    Text file name

    C:\PG\

    Fig. 2 4De faults

    P r oj e ct n a me

    EXAMPLE

    Controller type

    L S e l e ct t h e c o nt r o l l er CL300.

    !

    LEnter

    Create new project EXAMP LE? Yes/No

    LY

  • 8/11/2019 PLC Operating System

    55/243

  • 8/11/2019 PLC Operating System

    56/243

    Programming

    28 P.Nr. 3956

    2.2 Edit module files

    C r ea t e t h e m o du le f il es O M1 andP M1 with the PLC Editor program.

    O r g a n is a t i o n m o d u l e OM 1

    LF2

    Editor

    O n t h e s c r e en , t h e f i r s t e m p t y n e tw o r k o f t h e O M 1 i s d i s p l ay e d . E n t er t h e

    n e tw o rk t i t le .

    LF5

    Command

    LF1

    Network

    LF1

    E di t t it le

    O M 1 , P M 1 m o du l e c al l

    The program module PM1 is called in the organisation module OM1. Enter

    t h e f o l l o wi n g P L C p r og r a m .

    ;Project EXAMPLE.300

    ;Organisation module OM1

    CM PM1 ;module call PM1

    EP

    Fig. 26 shows the completed OM1.

  • 8/11/2019 PLC Operating System

    57/243

    Programming

    29P.Nr. 3956

    PLC Editor program

    Z S0/OM1 PI: 2 RG: 0 Insert IL mode

    ;Project EXAMPLE.300

    ;Organisation module OM1

    CM PM1 ;module call PM1

    EP

    Version 3.0 (c) 198792 Robert Bosch GmbH

    1 OM1, module call of PM1

    Bl ock Assign Symbol Search Command End Change

    Fig. 2 6O M1

    C h a n g e t o p r o g r am m o d u l e P M1 .

    LF7

    Change

    LF2

    Display/Load

    LF1

    M o du l e f i le

    OM1.P3T

    PM1

    S a v e m o d u l e f i l e OM1.P 3T? Yes / No

    LY

  • 8/11/2019 PLC Operating System

    58/243

  • 8/11/2019 PLC Operating System

    59/243

  • 8/11/2019 PLC Operating System

    60/243

    Programming

    212 P.Nr. 3956

    E n t e r t h e n e t w o rk t i t le s f o r t h e n e t w o rk s 3 t o 5 .

    J u m p , wh e n IN P U T 2 = 1

    I N P UT 2 = 0 = > 0 10 1 0 1 01 a f te r D W 1 0

    . Terminate input of 5th network title without

    Enter.

    I N P UT 2 = 1 = > 0 0 0 01 1 1 1 a f t e r D W 1 0

    PLC Editor program

    ZS0/PM1 Insert IL

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Network ov erv iew

    1 PM1, AND connect ion of in pu ts

    2 L oa d c on st . t o A a ft er OU TP 10 t ra ns f. , a ct iv at e DM TE ST

    3 J ump, wh en INPUT2 = 1

    4 INPUT2 = 0 => 01010101 a fter DW10

    5 I N P U T 2 = 1 = > 0 0 0 0 11 1 1 a f t e r D W 1 0

    Block Assign Symbol Search Command End Change

    F i g . 2 9 N et w o r k o v e r vi e w w i t h 5 ne t w o rk s

    G o i n t o t h e 2n d n e t w or k :

    L 3 times

    "

    L F5 Command

  • 8/11/2019 PLC Operating System

    61/243

    Programming

    213P.Nr. 3956

    LF5

    Overview/Detail

    Enter the PLC program for the 2nd network.

    L BY K11110000B,A

    T BY A,OUTP10

    CM DMTEST

    PLC Editor program

    Z S0/PM1 PI: 9 RG: 1 Insert IL mode

    L BY K11110000B,A

    T BY A,OUTP10

    CM DMTEST

    Version 3.0 (c) 198792 Robert Bosch GmbH

    2 L oa d c on st . to A an d a ft er O UT P1 0 t ra ns f. , ac ti va te D MT ES T

    Bl ock Assign Symbol Search Command End Change

    F i g. 2 10 PM 1 , N e tw o rk 2

    J u m p t o t h e 3r d n e t wo r k :

    LControl

    +PgDn

    E n t e r t h e P LC p r o g r a m f o r t h e 3 r d n e t w or k .

    A B INPUT2

    JPC JUMP1

  • 8/11/2019 PLC Operating System

    62/243

    Programming

    214 P.Nr. 3956

    PLC Editor program

    Z S0/PM1 PI: 12 RG: 2 Insert IL mode

    A B INPUT2

    JPC JUMP1

    Version 3.0 (c) 198792 Robert Bosch GmbH

    3 Jump , when I NPUT2 = 1

    Bl ock Assign Symbol Search Command End Change

    F i g. 2 11 PM 1 , N e tw o rk 3

    J u m p t o t h e 4 t h n e tw o r k :

    LControl

    +PgDn

    Enter the PLC program for the 4th network.

    L BY K01010101B,A

    T BY A,DW10

    AN B INPUT2

    JPC JUMP0

  • 8/11/2019 PLC Operating System

    63/243

    Programming

    215P.Nr. 3956

    PLC Editor program

    Z S0/PM1 PI: 17 RG: 3 Insert IL mode

    L BY K01010101B,A

    T BY A,DW10

    AN B INPUT2

    JPC JUMP0

    Version 3.0 (c) 198792 Robert Bosch GmbH

    4 INP UT2 = 0 => 01010101 af ter D W10

    Bl ock Assign Symbol Search Command End Change

    F i g. 2 12 PM 1 , N e tw o rk 4

    J u mp t o t he l a st n e tw o rk :

    LControl

    +End

    Enter the PLC program for the 5th network.

    JUMP1

    L BY K00001111B,A

    T BY A,DW10

    JUMP0

    EM

  • 8/11/2019 PLC Operating System

    64/243

  • 8/11/2019 PLC Operating System

    65/243

    Programming

    217P.Nr. 3956

    We now want to hav e a look at the 1st network in the LD and F U D d i sp l ay.

    LControl

    +Home

    LF5

    Command

    LF7

    L a d de r d i a g ra m

    PLC Editor program

    LD mode: On

    ZS0/PM1

    ( = )

    RG: 1

    INPUT1 INPUT2

    INPUT5

    OUTPUT1

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Command Ret urn( )

    F i g. 2 1 4 N e tw o rk 1 i n L D

    LF7

    Return

    LF5

    Command

    LF8

    F u n ct i o n d i a g ra m

  • 8/11/2019 PLC Operating System

    66/243

    Programming

    218 P.Nr. 3956

    ZS0/PM1 Insert FUD

    1 P M1, AND conne ction of input s

    &

    =

    INPUT1

    INPUT2

    INPUT5

    >=1

    OUTPUT1

    O

    & >=1 =0 Command Opt imise Return

    PLC Editor program Version 3.0 (c) 198792 Robert Bosch GmbH

    F i g. 2 1 5 N e tw o rk 1 i n F U D

    C h a n g e t o s y mb o l f i le S YMBOL.S 3S .

    LF7

    Return

    LF7

    Change

    LF2

    D i sp l ay / L o ad

    LF2

    S ymbol f ile

    f i le n a me :

    SYMBOL

  • 8/11/2019 PLC Operating System

    67/243

    Programming

    219P.Nr. 3956

    2.3 Edit symbol file

    T h e f i r s t f o r m o f t h e s ym b o l f i le a p p e a rs o n t h e s c r ee n .

    Enter the name of the o r g a n is a t i o n m o d u l e.

    O M 1 ; O r g a n is a t i o n m o d u l e N o . 1

    PLC Editor program

    InsertZS0/SYMBOL

    Type Module name ;Comment R/E

    OM 1 OM1 ; OR GANI SATI ON MODULE NO. 1 ROMOMOMOMOMOMOMOM

    23456789

    RRRRRRRR

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Block Assign Symbol Search Command End Change

    F i g . 2 1 6 OM f o r m

    LPgDn

    E n t e r t h e n a me o f t h e p r og r am m o du l e.

    P M 1; P r og r am m o du l e No . 1

  • 8/11/2019 PLC Operating System

    68/243

    Programming

    220 P.Nr. 3956

    S c r o l l f u r t h er t o t h e i np ut f o rm.

    LEnd

    LPgDn

    E n t e r t h e i n pu t s f o r t h e a b so l u t e ad d r e ss e s .

    I0.0 INPUT1 Input No. 1 , sensor switch On

    I0.1 INPUT2 Input No. 2, limit switch Front

    I0.4 INPUT5 Input No. 5 , switch Manu al

    INPUT1 Input No. 1, sensor switch On

    INPUT2 Input No. 2, limit switch Front

    L TwiceEnter

    INPUT5 Input No. 5, switch Manual

    PLC Editor program

    InsertZS0/SYMBOL

    Address Type

    I 0.0 INPUT 1IIIIIII

    IIIIIIII

    0.10.20.30.40.50.60.7

    1.01.1

    1.31.41.51.61.7

    1.2

    I n p u t N o . 1 , s e n so r s w i t ch O n

    Symbol Comment

    INPUT 2 Input No. 2, limit sw it ch Front

    INP UT5 I nput No. 5, switch Manual

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Bl ock Assign Symbol Search Command End Change

    F i g . 2 1 7 I f o r m

  • 8/11/2019 PLC Operating System

    69/243

    Programming

    221P.Nr. 3956

    S c ro l l f u rt h er t o t h e o u tp u t f o r m.

    LEnd

    LPgDn

    Enter the outputs for the absolute addresses O0.0 and O1.0.

    Address Type

    O 0.0 OUT PUT1

    OOOOOOOOOOOOOO

    0.20.30.40.50.60.71.01.11.2

    1.41.51.61.7

    1.3

    Motor On

    Symbol Comment

    OUT P10 Display

    PLC Editor program

    ZS0/SYMBOL Insert

    O 0.1

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Bl ock Assign Symbol Search Command End Change

    F i g . 2 1 8 O f o r m

    J u mp f u rt h er t o d a t a m od u le D M 0 .

    LF4

    S earch

    LF5

    A b s o l . a d d r es s ( s y m b o l li s t )

    Address:

    DM0

  • 8/11/2019 PLC Operating System

    70/243

    Programming

    222 P.Nr. 3956

    Fill out the d a t a m o d u l e h e a d er and set thed a t a m o d u l e l e n g t h.

    LF3

    S ymbol

    LF3

    Edit data module header

    D a t a m o d u l e n a m e :

    DMTEST

    Comment:

    DM to be tested

    EPROM RAM

    L Select RAM.

    LEnter

    DM length 0

    20

    L Enter the data words D0 to D18 as shown in Fig . 219.

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    71/243

  • 8/11/2019 PLC Operating System

    72/243

    Programming

    224 P.Nr. 3956

    2.4 Assign module files/symbo l file

    The absolute and s y mb o li c a d dr e ss e s from them o du le f il es and the

    s y mb o l f i le must be assigned.

    LF2

    Assign

    LF2

    A c c . t o s ym b o l f i l e

    LF1

    P r i o ri t y s y m b o ls

    T h e p r o c es s i s l o g g e d o n t h e s c r e e n.

    PLC utilities has created the following files.

    PG

    SYMBOL.S3ASYMBOL.S3B

    SYMBOL.S3SP M1.P 3OOM1.P 3O

    INFO

    BOSCH.BIB

    EXA MPLE.300 ZS0PROJECT1.PLC

    F i g . 2 2 1 Pr o j e ct d i r e ct o r y a f t e r a s s i gn m e n t

    LF7

    Change

    LF1

    S ave

    Sav e S YMBOL.S 3S symbol file? Yes / No

    LY

  • 8/11/2019 PLC Operating System

    73/243

  • 8/11/2019 PLC Operating System

    74/243

    Programming

    226 P.Nr. 3956

    After linking, the following files exist.

    PG

    SYMBOL.S3ASYMBOL.S3B

    SYMBOL.S3S

    PM1.P3O

    OM1.P3O

    INFO

    BOSCH.BIB

    EXAMPLE.300 Z S0

    PROJECT1.PLC

    TEST.P3A

    F i g . 2 2 2 Pr o j e ct d i r e ct o r y a f t e r l i n k i n g

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    75/243

    Programming

    227P.Nr. 3956

    Loading

    W h e n y o u h a v e c r e a t ed t h e c o n t r o l l e r c o n f ig u r a t i on ( s e e F i g. 22) at your

    workplace, you can load the program into the central processing unit.

    Do not load example program into a running system!

    L Connect the connecting cable K7 to the PLC programming interface of the

    E P/ AG m od ul e and to thec e n t r al p r o c e ss i n g u n i t Z E 3 0 0/ Z E 3 0 1, see

    Fig. 22.

    L S w i t c h o n c o n t r o l l e r.

    LF2

    Load

    LF1

    L o a d p r o g r am i n t o t h e c o n t r o ll e r

    LF1

    With reset rem. markers/operands

    Controller operating in RUN (Monitor)! Switch to STOP (Edit)?Yes / No

    LY

    The PLC program is loaded. The process is logged on the screen.

    Controller is in STOP (Edit)! Switch back to RUN (Mon.)?Yes/No

    LY

    The creation of the PLC program with PLC utilities is thus completed.

    Change to the PLC Monitor program.

    LF6

    End

    LF3

    Monitor

    !

  • 8/11/2019 PLC Operating System

    76/243

  • 8/11/2019 PLC Operating System

    77/243

    Programming

    229P.Nr. 3956

    LF6

    S et

    LF1

    Bit

    B i t o p er a nd :

    INPUT1

    LF1

    S et v al ue 1

    The monitor display is updated. We would now also like to look at the result

    i n t h e LD a n d F UD d i sp l a y.

    LF5

    Command

    LF7

    L a d de r d i a g ra m

    PLC Monitor program

    LD mode: On

    ZS0/PM1

    ( = )

    PZ: 1

    INPUT1 INPUT2

    INPUT5

    OUTPUT1

    Version 3.0 (c) 198792 Robert Bosch GmbH

    Cont roller Info Sear ch Command ChangeEnd

    F i g . 2 24 L D m o n i t or

  • 8/11/2019 PLC Operating System

    78/243

    Programming

    230 P.Nr. 3956

    LF5

    Command

    LF8

    F u n ct i o n d i a g ra m

    ZS0/PM1 FUD

    1 P M1, AND conne ction of input s

    &

    =

    INP UT1

    INPUT2

    INPUT5

    >=1

    OUTP UT1

    O

    Controller Info Search Command End Change

    PLC Editor program Version 3.0 (c) 198792 Robert Bosch GmbH

    F i g . 2 2 5 F U D m o n i t or

    R e s et t h e se t t i n g:

    L

    F7

    Change

    LF2

    D i sp l ay / L o ad

    LF6

    S et

    LF1

    Bit

    B i t o p e r an d : IN P U T 1

  • 8/11/2019 PLC Operating System

    79/243

    Programming

    231P.Nr. 3956

    LEnter

    LF3

    R e se t s e t ti n g

    Data module

    . The contents of the data module can only be changedwhen the data module is in the RAM.

    The contents of the data word DW10 in the data module DMTEST is de

    p e n d en t o n t h e i n p u t I N PU T 2 .

    D I f I N P UT 2 = 1 , t h e n DW 1 0 = 0 0 0 00 0 0 00 0 0 0 11 1 1

    D I f I N P UT 2 = 0 , t h e n DW 1 0 = 0 0 0 00 0 0 00 1 0 1 01 0 1

    LF7

    Change

    LF2

    D i sp l ay / L o ad

    LF2

    S ymbol f ile

    f i l e n a m e : S Y M B O L .S 3 S

    LEnter

    B y s et t i n g I N P UT 2 t o 1 , DW 1 0 is c h a n ge d .

    LF7

    Change

    LF2

    D i sp l ay / L o ad

    LF6

    S et

    LF1

    Bit

    B i t o p er a nd :

  • 8/11/2019 PLC Operating System

    80/243

    Programming

    232 P.Nr. 3956

    INPUT2

    LF1

    S et v al ue 1

    The data word DW10 now has the v alue 0000000000001111.

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    81/243

    Contents

    3iP.Nr. 3956

    Contents

    Page

    3 Editor 31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.1 Netw or k 35. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.2 Screen layout 37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3 Module file editor IL 3 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.1 Edit field 3 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.2 Informat ion line 313. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.3 Block 314. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.4 Assign 317. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.5 Symbol 320. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.6 Search 321. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.7 Command 323. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.8 End 326. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.3.9 Change 328. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4 Module file editor LD 329. . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4.1 Edit field 330. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4.2 Normally open/closed circuits 332. . . . . . . . . . . . . . . . . . .

    3.4.3 Connect ion 332. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4.4 Output comma nds 333. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4.5 Command 335. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.4.6 Return 336. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5 Module file edit or FUD 337. . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.1 Edit fiel d 339. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.2 A nd element & 3 44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.3 OR element >=1 3 45. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.4 Input pin | 3 46. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.5 Complex elements =0 346. . . . . . . . . . . . . . . . . . . . . . .

    3.5.6 Command 352. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.7 Optimise 353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.5.8 Ret urn 353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    82/243

    Contents

    3ii P.Nr. 3956

    Page

    3.6 Netw ork overview 354. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.6.1 Block 357. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.7 Paramet er list/module file descript ion 358. . . . . . . . . . . . .

    3.7.1 Parameter list 359. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.7.2 Module file description 3 61. . . . . . . . . . . . . . . . . . . . . . . . . .

    3.8 Module library 3 62. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.9 Symbol file editor 364. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.9.1 Modu le list 365. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.9.2 Dat a module 366. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.9.3 Operand form 370. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.10 Tex t file edit or 371. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3.11 Bat ch file 374. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    83/243

    Illustrations

    3iiiP.Nr. 3956

    Illustrations

    Fig. Page

    3 1 Change menu 32. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    32 Special lines 34. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    33 Net work 3 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    34 Net work ov erv iew 3 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    35 Editor 3 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    36 Editor funct ion blocks 3 8. . . . . . . . . . . . . . . . . . . . . . . . . . .

    37 Singl e operand in struction 310. . . . . . . . . . . . . . . . . . . . . . .

    38 Dual operand instruction 310. . . . . . . . . . . . . . . . . . . . . . . .

    39 Time grid/code number 312. . . . . . . . . . . . . . . . . . . . . . . . .

    310 Informat ion line 313. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    311 Copying 315. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    312 Search cr it eria 321. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    313 La dder diagram 330. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    314 Forbidden bridge cir cuit 331. . . . . . . . . . . . . . . . . . . . . . . . .

    315 Networ k an d fu nct ion diagra m 338. . . . . . . . . . . . . . . . . . .

    316 Funct ion diagram wit h & element 339. . . . . . . . . . . . . . . . .

    3 17 Fiel ds in the function diagram 340. . . . . . . . . . . . . . . . . . . .

    3 18 AND element & 344. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3 19 OR element >=1 345. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    320 XOR element 347. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    321 Compar ator 3 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    322 SR flip flop 3 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    323 Time element 349. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    324 Counter element 350. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    325 Allocation 350. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    326 Branch 351. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    327 Module call 351. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    328 Opt imisation 353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    329 Network 354. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    84/243

    Illustrations

    3iv P.Nr. 3956

    Fig. Page

    3 30 Netw ork overview 355. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    331 Paramet er list 359. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    332 Module fil e description 361. . . . . . . . . . . . . . . . . . . . . . . . . .

    333 B OSCH.BIB directory 3 62. . . . . . . . . . . . . . . . . . . . . . . . . . .

    334 Symbol file forms 3 64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    335 Modul e list 365. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    336 Dat a module 366. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .337 Dat a module over view list 369. . . . . . . . . . . . . . . . . . . . . . . .

    338 Operand form 370. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    339 Change menu 371. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    3 40 ASCII line set 373. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

  • 8/11/2019 PLC Operating System

    85/243

    Editor

    31P.Nr. 3956

    3 Editor

    T h e P LC e d i to r p r o g r am i s u se d f o r e d i t in g

    D the m o du l e f i le

    D i n t he i n s t r u ct i o n l i s tIL, s e e s e ct i on3.3

    D in the l a d d er d i a g ra m L D, s ee s e ct i o n3.4

    D in the f u n c t io n d i a gr a mFUD, see section 3.5

    D the n e tw o rk o v er v ie w, s e e se c ti o n3.6

    D the p a r a m et e r l i s t / mo d u l e f i l e d e s c r ip t i o n,

    s e e s e ct i on3.7

    D the s y mb o l f i le, s e e se c ti o n3.9

    D any desired t ex t f il e, s e e se c ti o n3.10

    D a b at ch f il e a s a sp e c ia l t e x t f i l e , s e e s e c t io n3.11

    The m o du l e l i br a ry is described in section 3.8.

    editor

    The PLC editor program is called up from the m ai n m e nu by pressing

    F2editor

    twice.

    W i t h t h e f ir s t p r e s s o f t h e fu n c t i on k e y t h e d e fa u l t s a r e d is p l a ye d o n t he

    screen.

    C h a n g e d e f a u lt s :

    See section1.7 Entering def aults.

    B y p r e s si n g t h e f un c t i o n ke y a s e co n d t i m e th e P L C ed i t o r p r o g r a m is

    started.

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    86/243

    Editor

    32 P.Nr. 3956

    C h a n g e b e t w e e n mo d u l e , sy m b o l a nd t e x t f il e e d i t o r

    LF7

    Change

    LF2

    Display/load

    LF1

    Module f ile

    or

    F2S ymbol f ile

    or

    F3Text file

    Command End

    Display/load

    Change

    Module f ile

    Text file

    File name:

    Symbol file

    TAB = Selection menu

    F i g . 3 1 C h a n ge m e n u

    file name

  • 8/11/2019 PLC Operating System

    87/243

    Editor

    33P.Nr. 3956

    C h a n g e b e t w e e n I L , L D a n d F U D

    I n t h e m o d ul e f i l e e di t o r a d i f f e re n c e i s ma d e b e t we e n t h e IL , L D a n d F U D

    d i s p la y. T h e c u r r e nt s e t t i n g i s s h o w n i n t h e i n f o r m a ti o n l i n e .

    Toggle between IL, LD and FUD:

    LF5

    Command

    LF6

    I n s t r u ct i o n l i s t

    or

    F7Ladder diagram

    or

    F8Function diagram

    Edit / Command level

    T h e e d i t or d i s t in g u i s he s b et w e e n a n e di t l ev e l and ac o m ma n d l e ve l.

    D A f l as h in g c u rs o r i n t h e e d i t f i e l d d is p l a ys t h ee d it l e ve l.

    D A h i g h li g h t ed C o m m a n d in the function key bar displays thecom

    m an d l ev el.

    Toggle between edit and command levelEsc

    Call up a commandF1

    ...F7

    Language translation

    F o r e x a m p le , a n A W L P r o g r am m " w r i t t en i n t h e G e r m a n l an g u a g e s et u p i s a u t om a t i c al l y t r a ns l a t ed a s a n I L ( i n s tr u c t i on l i s t ) p r o g r am w h e n t he

    E n g l is h s e t u p i s c a ll e d , a n d v i ce v e rs a .

  • 8/11/2019 PLC Operating System

    88/243

    Editor

    34 P.Nr. 3956

    P e r m it t e d l i n e s

    I n t he s y m bo l f i le and m o du l e f i le e d it o r the following lines are permitted:

    D L e t t er s f r o m A t o Z

    D Numbers 0 to 9

    ASCII lines below 20H and abov e/equal to 80H are not permitted.

    I n t h e module lists of the symbol file the MS DOS wild cards * and ? are not

    permitted.

    T h e f o l l o wi n g t a b l e s h ow s w h i c h s p e ci a l l i ne s are permitted.

    S pecial line S ym bol f ile editor Modu le f ile editor

    S ym bol column Module list Symb olic

    operand

    S ymbolic

    module call

    " yes no yes no

    / yes no yes no

    \ yes yes yes no

    [ yes no yes no

    ] yes no yes no

    : yes yes yes no yes no yes no

    < yes no yes no

    > yes no yes no

    + yes no yes no

    yes no yes no

    = yes no yes no

    ; no yes no no

    , no no no no

    . yes yes yes no

    B lank no no no no

    F i g . 3 2 S pe c i a l l i n e s

  • 8/11/2019 PLC Operating System

    89/243

    Editor

    35P.Nr. 3956

    3.1 Network

    A module file can be div ided into indiv idual networks. When you are pro

    g r a m m in g i n t h e IL orL D d i sp l ay, t h i s d i v i si o n i n t o n e t w or k s i s u n n e ce s s

    a r y. T h e d iv i s i on o f a m o d ul e f i l e i n t o n et w o r k s is o n l y n e c e ss a r y fo r

    p r o g r am m i n g i n t he F U D d i sp l ay.

    A network consists of sev eral consecutiv e program lines. One network

    c o m p r is e s s e v er a l p r o g ra m b r a n c he s , a n d i t s m a x i m u m si z e i s t h at o f a

    m o du l e f i le .

    Test network 1

    Comment

    L W I2W,A

    L W I1W,B

    ;

    A B I2.0

    = B O1.0

    Test network 2

    A B M0.1

    A B I0.2

    = B O1.1

    Test network 3

    EM

    N et w or k 1

    Network 2

    Network 3

    u t il i ty P M 1

    Fig. 3 3Ne tw ork

    In the module editor only one network is displayed on the screen.

    S c r o ll t h r o u gh n e t w o rk s

    branch to next networkControl

    +PgDn

    orControl

    +PgUp

    branch to f irst networkControl

    +Home

    branch to last networkControl

    +End

  • 8/11/2019 PLC Operating System

    90/243

    Editor

    36 P.Nr. 3956

    Edit network title

    E a c h n e t w o rk r e c e i ve s a n e t wo r k t i tl e as a name.

    LF5

    Command

    LF1

    Network

    L

    F1

    E di t t it le

    N e tw o rk t i tl e

    N e t w o rk o v e r v ie w / d et a i l

    LF5

    Command

    LF5

    Overview/detail

    Block Assign Symbol Search Command End Change

    PLC Editor program

    ZS0/OM1 Insert FUD

    V e rs i o n 3 . 0 ( c) 1 9 8 7 9 2 R o b e rt B o s c h G mb H

    Network ov erv iew

    1 Net work 1

    2 N e tw or k 2

    F i g . 3 4 N e t w or k o v e r vi e w

    . See also section 3.6Network overview.

  • 8/11/2019 PLC Operating System

    91/243

    Editor

    37P.Nr. 3956

    3.2 Screen layout

    Fig. 3 5 shows the general screen layout in the PLC editor program.

    PLC Editor program

    ZS0/OM1 PI: 2 RG: 1 Insert IL mode

    ;Project EXAMPLE

    ;Organisation module OM1

    L EI0,A ;Bus master coupling

    T A,EO0 ;Bus master coupling

    CM PM1 ;Call up PM1

    EP

    V e rs i o n 3 . 0 ( c) 1 9 8 7 9 2 R o b e rt B o s c h G mb H

    1 Network 1

    Block Assign Symbol Search Command End Change

    Fig. 3 5Editor

  • 8/11/2019 PLC Operating System

    92/243

    Editor

    38 P.Nr. 3956

    T h e s c r ee n s p li t s i n t o 5 f u n c t io n b l o ck s :

    D N e t wo r k t i tl e

    D Edit f ield

    D Inf ormation line

    D Function key bar

    D Version/messages

    Block Assign Symbol Search Command End Change

    PLC Editor program

    ZS0/OM1 PI: 2 RG: 1 Insert

    IL mode

    ;Project EXAMPLE

    ;Organisation module OM1

    L EI0,A ;Bus master coupling

    T A,EO0 ;Bus master coupling

    CM PM1 ;Call up PM1

    EP

    V e rs i o n 3 . 0 ( c) 1 9 8 7 9 2 R o b e rt B o s c h G mb H

    Edit field

    Information line

    F un c ti o n k ey b a r

    Version/messages

    1 Networ k 1 Network title

    F i g . 3 6 Ed i t o r f u n c t i on b l o c ks

    T h e n e t w o rk t i t l e i s o n ly d i sp l a y ed i n IL a n d F U D m o d e .

    Information on the edit field and the information line can be found at the be

    g i n n i ng o f t h e i n d i vi d u a l s e ct i o n s o f t h i s c h a p t er.

  • 8/11/2019 PLC Operating System

    93/243

    Editor

    39P.Nr. 3956

    3.3 Module file editor IL

    C a l l i ng u p t h e m o d u l e f i l e e d i t o r I L :

    LF5

    Command

    LF6

    I n s t r u ct i o n l i s t

    3.3.1 Edit field

    T h e e d i t f ie l d i s s ub d i v id e d i n to t w o a r e a s.

    D The first 4 columns of each line are reserv ed for possible error mess

    ages.

    D In the remaining area you create the PLC program according to the

    r u l e s g o v er n i n g t h e co n t r o l le r t o b e p r o g r am m e d .

    I n s t r u ct i o n l i n e

    A module file in IL mode consists of indiv idual instruction lines. The instruc

    t i o n l i n e c om p r i se s a n i n st r u ct i on p a rt and acomment (line comment),

    separated by a semicolon. Figs. 37 a nd 38 show the structure of an in

    s t r u c ti o n l i n e f o r single and d u a l o p e r a nd i n s t r u c ti o n s.

  • 8/11/2019 PLC Operating System

    94/243

    Editor

    310 P.Nr. 3956

    F

    OP R OP E OID PAR PAA ; K

    A B I ; AND INPU T NO.1

    Example

    P r es s T AB k e y

    Press TAB key( f o r C L 1 0 0 a n d P C4 0 0 o n c e o n ly )

    F Error message/war nin g OID Operand identifier

    from editor /assigner PAR Parameter

    OPR Operat or PAA Parameter extension

    OPE Operat or extension K Comment

    2. 0 B

    F i g . 3 7 S i n gl e o p e r an d i n s t r uc t i o n

    F OP R OPE OID PAR PAA ,

    ADD W B ; ADD. ACC US A AN D B

    Example

    OI D PAR PAA ; K

    1. Source 2. Dest ina tion

    , A

    F i g . 3 8 D ua l o p e ra n d i n s t r uc t i o n

    Error message/warning

    Instructions are checked as soon as the cursor moves on to a new line. If an

    error is discov ered, it is shown by an error message at the beginning of the

    line. Errors are not recognized, howev er, if they result from contexts apply

    i n g t o s e ve r a l l in e s . E r r o r s s u c h a s t h i s a r e f o un d a n d m ar k e d o nl y w h e nassigning.

  • 8/11/2019 PLC Operating System

    95/243

    Editor

    311P.Nr. 3956

    A differentiation is made between a warning and an error.

    A warning is a reference to possible errors. A program containing only

    warnings is assigned without any error.

    Wa rn in g >

    This pointed bracket indicates that no symbolic operand description for an

    a b s o l ut e o p e r a nd e n t e re d w a s f o u n d i n th i s l i n e d u ri n g a s si g n m en t .

    Error message

    T h e r e i s a n a u t o m a t i c s e ar c h f u n c t io n f o r l i n e s w i t h e r r o r m e s sa g e s .

    LF4

    S earch

    LF6

    Error line

    The cursor branches to the next line containing errors.

    The Help function prov ides additional indisplayion on an error message.

    L

    F10

    Help

    Comment

    A comment can be entered in ev ery line. The start of a comment is marked

    by a s e m ic o lo n ;.

    ; utility PM1

    A B I0.0 ;And input I0.0 key 1

    Pa ge f e ed

    When you require a page feed at a position in the PLC program when print

    i n g , y o u m u s t e nt e r t h e l i ne $P preceded by a semicolon.

    EM ;End of module

    ;$P

    S y m b o li c o p e r a nd d e s c r i p t i o n

    In the symbolic notation, the operand is marked by a preceding h y ph e n .

    T h e s y m b ol i c o p e ra n d d e s cr i p t i on , s y m b ol i c a d d r es s , c a n c on s i s t o f a

    m a x i m um o f 8 li n e s .

    A B INPUT1

  • 8/11/2019 PLC Operating System

    96/243

    Editor

    312 P.Nr. 3956

    T i m e p r o g r am m i n g

    The times are programmed via time grids and code numbers.

    Time grid Code numb er

    10 ms 0

    100 ms 1

    1 s 2

    10 s 3

    F i g . 3 9 Ti m e g r i d / co d e n u m b e r

    The desired time is programmed by specifying an integer multiplier and the

    c o d e n u m b e r o f t he t i m e g r i d.

    Examples

    1. Desired time 1s

    SP K100.0 ;time grid 10 ms,

    ;code number 0

    or

    SP K1.2 ;time grid 1 s,

    ;code number 2

    P r o g r am m i n g w i t h t h e t i me g r i d 1 0 m s i s m o r e p r ec i s e .

    2. Desired time 250ms

    SP K25.0 ;time grid 10 ms,

    ;code number 0

    T h e d e s i re d t i m e o f 2 5 0 m s cannot b e p r o g r am m e d u s in g t h e t i me g r i d

    1 0 0 m s ( c o d e n u mb e r 1 ) .

    P C400

    For the PC400 the time v alue is entered on the display and control panel oft h e t i m e /c o u n t er m o d u l e .

    P C600

    For the PC600 the times are programmed directly.

    SR K80.3,T30 ;Time value 800 s

    CL300/CL500

    F o r t h e C L 3 00 t h e t i m e s a re l o a d e d i nd i r e ct l y v i a b a t t er y A .

    L K20.1,A ;Time value 2000 ms

  • 8/11/2019 PLC Operating System

    97/243

    Editor

    313P.Nr. 3956

    3.3.2 In formatio n line

    ReplaceZS0/PM1 PI: 4 RG: 1 IL mode

    F i g . 3 1 0 I n fo r m a t io n l i n e

    C o n t r o l u n i t / m od u l e f il e

    T h e d e s cr i p t i on o f t h e t h e c o n t r o l u n i t a n d t h e n a m e o f t h e c u r r en t m o d u l efile are shown at the beginning of the line.

    P I

    P I r e f e rs t o t h e p o si t i o n o f t he c u r s or i n t h e e d it f i e l d a n d in d i c a te s t h e

    n u mb e r o f t h e p r o g r am i n s t r uc t i o n li n e.

    RG

    R G r e fe r s t o t h e po s it i on o f t h e cu r so r i n t he e d it f i el d a n d in d ic a te s t h e

    n u mb e r o f t h e p r og r am b r an c h.

    Replace/Insert

    T h e f u n c t io n o f t h e ed i t o r i s s ho w n b y Replace or Insert. Toggle:

    Ins

    I L m od e

    The end of the line indicates the operating mode in which the editor is work

    i n g. T h e f o ll o wi n g o p er a ti n g mo d es a re a va i la b le , s e e a l so s ec

    tion3.4 M o d u l e f i l e e d i t or L D and section3.5 M o d u le f i l e e d i t or F U D:

    D IL modeD LD mode: On

    D LD mode: Of f

    D F UD m od e

  • 8/11/2019 PLC Operating System

    98/243

    Editor

    314 P.Nr. 3956

    3.3.3 Blo ck

    The commands are used to copy, mov e and delete file blocks.

    M e nu s t ru c tu r e

    D Block

    D Start

    D D e le t e m a rk e r

    D StoreD Delete

    Delete block? Yes / No

    D Store and delete

    D Copy

    The siz e of the block may not exceed the entire module file.

    S tore

    The block marked by the block start marker and the current cursor position

    i s s t or e d in a buf f er. This block can also be copied to another file.

    Only one block can be stored in a buffer at any one time.

    Further storing overwrites the contents of the buffer. The

    buffer is cleared when you exit the editor!

    Delete

    The block marked by the block start marker and the current cursor position

    is deleted a f t e r a n a d d i t i o n a l i n q u ir y.

    The block is not stored in the buffer!

  • 8/11/2019 PLC Operating System

    99/243

    Editor

    315P.Nr. 3956

    S t o r e a n d d e l e te

    The block marked by the block start marker and the current cursor position

    i s d e l e te d f r o m t he f i l e a n d s t o r e d i n t h e bu f f e r.

    Only one block can be stored in the buffer at any one time.

    Further storing overwrites the contents of the buffer. The

    buffer is cleared when you exit the editor!

    Copy

    The c o n t e nt s o f t h e b uf f e r are inserted at the current cursor position. Thecontentsof the buffer are thus retained. The Copy command can therefore

    be used sev eral times in succession.

    It is also possible to copy the contents of one f i le t y pe to a file of another file

    t yp e. F ig.311 shows the permitted copy operations.

    Cop y to

    pos sible f rom Modu le f ile Symb ol f ile Te xt f ile

    Module file yes no yes

    Symbol file no yes yes

    Tex t file yes yes yes

    Fig. 3 11Copying

    C o p y i ng b e t w e e n d if f e r e n t f i le s

    A block has to be copied from one file to another.

    Store block:

    LF1

    Block

    LF1

    S tart

    L Place cursor at block end.

    LF1

    Block

  • 8/11/2019 PLC Operating System

    100/243

    Editor

    316 P.Nr. 3956

    LF3

    S tore

    Load another file:

    LF7

    Change

    LF2

    Display/load

    LF1

    M o du l e f i le

    or

    F3Text file

    f i le n a me :

    Text.txt

    L Place cursor at the desired position in the new file.

    LF1

    Block

    LF6

    Copy

    .F10

    Help.

  • 8/11/2019 PLC Operating System

    101/243

    Editor

    317P.Nr. 3956

    3.3.4 Assign

    When assigning, the symbolic and absolute operands (addresses) from

    the module files and the symbol file are assigned to one another.

    T h e m o d u l e f i l e s a r e a d d i t io n a l l y s e a r ch e d f o r e r r o r s a n d t h e l i n e s w i t h e r

    r o r s a r e m a r k e d, s e e s u b s e ct i o n3.3.1 Edit f ield.

    The f i le t yp e of the module file is.P xT before assignment.

    After assignment the module file has the file type .P xO.

    M e nu s t r uc t ur e

    D Assign

    D C u r r e nt m o d u l e f i l e

    D P r i o r it y s y m b ol s

    D P r i o r it y a b s o l ut e v a l u e s

    D G e n er a t e l i b r a ry m o d u l e

    D According to symbol file (not PIC/PC400/CL100)

    D P r i o r it y s y m b ol s

    D P r i o r it y a b s o l ut e v a l u e s

    D According to batch file (not PIC/PC400/CL100)

    D P r i o r it y s y m b ol s

    D P r i o r it y a b s o l ut e v a l u e s

  • 8/11/2019 PLC Operating System

    102/243

    Editor

    318 P.Nr. 3956

    G e ne r at e l i br a ry m o du l e

    I n c o n t r as t t o a n o r m a l m o d u l e f i l e . Px O , a l i b r ar y m o d u l e c on s i s ts s o l e l y o f

    one compact, operable machine code. The l i b r ar y m o d u l e . P x L must no

    longer be assigned and is transferred to the program file during linking.

    . Library modules lead to considerable timesaving whenlinking.

    Library modules can be protected against user interv ention.

    T h e l i br a ry m o du l e must be independent of a symbol f ile; symbolic oper

    ands may only be used when they hav e been specified v ia DEF instructions

    i n t h e l i b r a ry m o d u l e. T h e i n p u t a n d o u t p u t p a r a me t e r s a r e d ef i n e d b y t h e

    p a r a m et e r l i s t .

    . See also sections 3.7Parameter list/Module file description and 3.8Module library.

    F o l l ow i n g a n o n e r r o re d g e n e ra t i n g s e q ue n c e , a l i b r ar y m o d u l e . P xL i s

    f o r m ed i n a d d i t io n t o t h e . P x O m o d u le f i l e . B o t h m o d u le s a r e i n t er l i n k ed

    w i t h t h e s a m e c r e a ti o n d a t e t o d i s t i n gu i s h b e t w e en v e r s i o ns .

    T h e l i br a ry m o du l e . Px L c a n b e co p ie d i n to a s p e c ia l s u bd i re c to r yBOS CH.BIB . I n t h i s w a y, t h e m od u l e ca n b e se t t o encompass more than

    o n e p r oj e ct.

    . If the same file is present in the subdirectory BOSCH.BIBand in the project directory, the file in the project directory

    has priority.

    If a .PxL file and a .PxO file with the same date are present in the same subdi

    rectory, the PxL file is always used.

    By copying the .PxO file into another directory and then deleting the .PxO

    f i l e f r o m t h e c u r r en t p r o j e c t d i r ec t o r y, t h e . P x L f i l e i s sealed.

    If the .PxO file is deleted the .PxL file can no longer be

    edited!

  • 8/11/2019 PLC Operating System

    103/243

    Editor

    319P.Nr. 3956

    A c c o rd i n g t o b a t ch f i l e

    I f t h e as s i g nm e n t a c c o rd i n g t o b a t c h f i l e i s s e l ec t e d , a l l t h e m o d u l es e n

    tered in the batch file are assigned. Pl