Win CC Training
Win CC Training
Taïo moät döï aùn, keát noái vôùi PLC vaø moâ phoûng moät nhaõn
- Creating a Project
- Configuring Tags
- Tag Simulation
                                                 - Cross Reference
                                                   Tham chieáu cheùo
- Type of Coupling
                                                                  - Process Tags
                                                                   PLC + Loaïi keát noái + Nhaõn quaù trình
            Office PC or
            Industrial PC                                                -one Single-User
                                                                     -one Server, several Clients
                                                                      without their own project
SIMATIC NET
PLC
                                                                                 .cur
                                                                                 .ani
                                                                                   Editors
                                                                         - Graphics system
                                                                         - Message system
                                                                         - Measured value
                                                                           acquisition and
                                                                           archiving
                                                                         - Report system
                                                                         - C-Programs, VBS and
                                                                           actions
                                                                         - Text library
                                                                         - Password protection
                                                                         - Cross Reference
       -Option
17.02.96 11:15:45
                                                                                                  Alarm Logging -
                 Motor picture          Bottling plant                         Trends             Messages
                   Setpoint speed
                   Actual speed
Data Management
Reports
                                                                  20
                                         SIMATIC S5
SIMATIC S7
                                                                  30
                                         SIMATIC 505
                                                                                      Archive
                                         Other drivers            35
                                                                                                    Setpoint value 95
              DB20
              DBW 6 Int=190
              DBW 8 Int=95                                      Image
                                                                            Actual speed       Setpoint speed
                                                                            DB20.DBW6          DB20.DBW8
                                                   Digital output
                                                                                                               LAN
                                                                                                Setpoint value 95
              V010
                              =190
                              =95                           Image
                                                                        Actual speed       Setpoint speed
                                                                        V010,              V010,
                                                Digital output
                                                                                                           LAN
                                                Digital input                                              MPI
          Lab Station:
                                                     WinCC communication drivers
                                                     (e.g. SIMATIC S/-Protocol Suite)
                                                                Hardware driver
          S7-DOS Driver                                         (e.g. S7-CP 5613)
                                                                 PLC
          S7-300                                   (e.g. SIMATIC S7-300 withCP 342)
A)
B)
                                            Always 0 for
                                            integrated MPI
                                            interface.
- We will configure the tags for this connection in the next exercise.
C:\Siemens\WinCC\Diagnose\SIMATIC_S7_PROTOCOL_SUITE_01.LOG
WinCC in RT
Project name
SIMATIC TI driver
                                                       Name of the
                                                       communication
                                                       connection
        Note
        Use of S7 symbols (TIA)
        is possible as of WinCC V5.
Shortcut menu
                                        ...
                                        ...
                                        ...
                                        ...
                                                                         .
                                                                       ..          .XFC
                                                    Cross Reference Lists
                                           Editor
                                                                 Filter
WinCC Data
Call
Call
                                                                                          Setpoint value 95
              DB20
              DBW 6 Int=190
              DBW 8 Int=95                            Image
                                                                  Actual speed      Setpoint speed
                                                                  DB20.DBW6         DB20.DBW8
                                          Digital output
                                                                                                     MPI
                                          Digital input
                         CP                                    CP Software
                         MPI interface of the CPU              -
                         CP                                    CP
                                                               Software
                           CP 5611                             (S7 DOS from WinCC)
                                                               SIMATIC Device Drivers
Step7 WinCC
Database Database
Communication (Mapping)
     STEP 7
     Symbol Table                                                                         WinCC Tag Management
Data Block
set
        Object
        Properties
set
2.
                                                                                                         Q
                                                                                                             Q
                                                                                                         I
                                                                                                             I
                                                                                  1. Select
Select
                                                                                  1
                                                  S7-Programm(3)/Motor_Area1.Slip_Speed1   Signed 16-bit Value          DB11,DW10
2 3
Drag&Drop
Drag&Drop
                                                                        WinCC:
                                                                        Block call from
                                                                        WinCC pictures
                                                                        directly to STEP7
                                                                        program
                                                                  STEP7:
       Create User with the function                              Linking STEP7 block.
       “STEP7 Writing Authority“                                  WinCC call from STEP7
                                                                        Necessary for
                                                                        ladder rung jump
                                                                        from WinCC
     Shortcut
     menu
                                                          - Configuration Interface
                                                          - Creating Pictures
- Making Dynamic
- Library
                                                                   - Process Pictures
                                                                   - Static Part
- Dynamic Part
- Action Configuration
                                                                   - Archiving Messages
                                                                   - Acquiring Measurement
                                                                     Values
- Reporting
- Passwords
                                             - Graphic screens
                                                                     aphic screens
                                             - Notes for creating gr
                                                                     hic screens
                                             - Elements in the grap
                                             - Digital value
                                                                               (1)
                                               (2)
                                                                                            (2)
(3) (3)
                                               (2)
                                                                                              (2)
(3)
Style palette
                                                                          Shortcut Menu
  Standard Objects
Smart Objects
Windows Objects
Windows Objects
                                                                               - aligning
                                                                               - selecting
                                                                               - changing of attributes
                                                                               - background grid
Shortcut Menu
                                                                       -deleting
                                                                       - changing
- shifting
- duplicating
                                                                       - rotate
                                                                       - mirror
- arrange
As of V5+SP2
Left Right
Top Bottom
1 - Tank
Line Style
Line Width
Line Ends
Fill Pattern
Activate Runtime
Alternative 2
                                                                                                      Shortcut
                                                                                                      menu
Switch on PC
                                                                       2)
                                                                       1)
                                                                                       2)
                                                                                       1)
Shortcut menu
Shortcut menu
Shortcut menu
Shortcut menu
The Wizard generates a C-script in the background that can be used for further applications.
The Wizard generates a C-script in the background that can be used for further applications.
green
Shortcut menu
Source Text
 Executing (The compiled and fully connected program can then be executed.)
                                                            // WINCC:TAGNAME_SECTION_START
                                                            // syntax: #define TagNameInAction "DMTagName"
                                                            // next TagID : 1
                                        #define TAG_ I_ Setpoint1 “Setpoint1 "
                                                            // WINCC:TAGNAME_SECTION_END
                                                         // WINCC:PICNAME_SECTION_START
                                                         // syntax: #define PicNameInAction "PictureName"
                                                         // next PicID : 1
                                                         // WINCC:PICNAME_SECTION_END
                                                                                .
                                                                                .
                                        SetTagDWord(TAG_ I_ Setpoint1 ,100);
                                            green or
                                            yellow
                                            lightning
                                            bolt
                                                                   Note: You will find a C-Operators list in Chapter 15
                                                                                  1)   {
                                                                                       WORD back;
                                                                                       back=GetTagWord("wert");
                                                                                       printf(“Outputfield \r\n");
                                                                                       return back;
                                                                                       }
                                                                             1)
V6.3
Note: From the WinCC V6 CD “Additional Software“, install the Microsoft Script Debugger
Note: Only syntax error-free Scripts can be adopted-> take out faulty lines
Runtime
error
   Breakpoint
                                                                               Script Editing
   Menu: Debug
   Drop-down menu: Step Into F(8)
                     Set objVariableTrigger =
                     objCircle.Radius.CreateDynamic(hmiDynamicCreationTypeVariableDirect, "'Soll1'")
                     With objVariableTrigger
                     .CycleType = hmiVariableCycleType_2s
                     End With
End Sub
SIEMENS
                     SICOMP
                     IPC RI 20
                                             zzz.pdl
CS
                                   yyy.pdl
     RT                            Properties
          OPEN                                      Default tr. e.g. 2 sec
                                 <81>    I1=GetTagxxx(Ist_Temp1);                       2sec
return();
  Application
  GraphicsRT
                                                         Announce            Data manager with image
                                                         all tags
                                                                                                * 1 sec
                                                                                   Ist_Temp1
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                       81
SIEMENS
                     SICOMP
                     IPC RI 20
                                              zzz.pdl
CS
                                    yyy.pdl
     RT                             Properties
          OPEN                                          Tag trigger 2 sec
                                   <81> I1=GetTagxxx(Ist_Temp1);                      ><Ist_Temp1
return();
  Application
  GraphicsRT
                                                          Announce           Data manager with image
                                                          all tags                              2 sec
                                                                                    Ist_Temp1
                                                                                    .
                                                                                    .
                                                                                    .
                                                                                        81
Note: You will find additional ‘The Way GetTag Works‘ in Chapter 15
                Type of Update
                                -tag trigger (use the same cycle for all tags)
                                -select a uniform update of a picture
                                -avoid using Change
                Functions
                                -SetTagMultiWait for several tags is better than many SetTagxxx
                                -GetTagxxx ( tag is cyclically introduced to the data manager) ,SetTagxxx
Set Clock
ProgramExecute("C:\\WINNT\\System32\\Control.exe timedate.cpl");
        Note: The directory where Control.exe is located depends on the installation of the
        Windows operating system.
A)
B)
start.pdl schalt.pdl
                                                                             F9
                                                 F3
Setpoint
                                                  kg       20
                                                         Type I
                                                        Actual value
                                                  kg       128
                                                         Type O
Speed
                                                  rpm      500
                                                         Type I/O
Runtime
Drag&Drop
Closed Open
                                                                                       Formats used:
                                                                           .wmf, .emf, .bmp, .gif, .jpg, .jpeg, .dib).
       Menu -> File,
       Drop-down ->Export
1.)
2.)
+0 Type I/O
                                                                                       C-action
                                        Toggle function with mouse-click
                                        with acknowledgement                           Direct Connection
                                                                                       Dynamic Wizard
                                                                                       C-action
                                                        4.Set
                                                                                              1       1
PA13A             0       1                                                                                          T_Value1
                                                         1.Get                         0          1
                                              BOOL T_Value1;
                                        1.Get T_Value1=GetTagBit("PA13A");
                                               T_Value1=! T_Value1;
                                        2.Set
                                              SetTagBit("I_Value2",T_Value1);
      I_tag memory from WinCC
2.Set
I_Value2          1                                             3.Get
                                                                                      3.Get   BOOL T_Value1;
                                                                                              T_Value1=GetTagBit("I_Value2");
                                                                                      4.Set   SetTagBit("PA13A",T_Value1);
                                                                                                   Diapa 13B,pdl
                                                                                      PA 13B
                                         Diapa14A.pdl
                                             PA 14A
     help.pdl                                    Configuring
                                                 -Properties/Static Text/ Object Name: helpText1
                                                                                 / Layer: 2
                                                                                 / Font/ Text: boiler temperature
                                                                                                    0 to 100
                                                                                 / Font/ X Alignment: centered
                                                                                 / Font/ Y Alignment: centered
                                                                                 / Miscellaneous/Display: no
Pos. X
2.
3. Shortcut menu
Result
Enable
The tag “namevariable“ must be created as an internal tag of the “Text tag 8-bit character set“ data type.
                                  -Tag Prefix
                                    (>=V5.0)
                                  -Indirect Addressing
                                    (regardless of the version)
                                                                                   Template with
                                                                                   type objects
  Tags (instances)
  generated from
   structure tag                                                                       Application
                                                                                       picture
                                                                                          Data records
                                                                                          in the
                                                                                          SIMATIC PLC
                                        Structure
                                          Type
                                         Editor
                                                             M                 M   M
Motor_3
                                        Tags for
                                        Instance Formation
y:190
                                        Additionally
                                        create as internal
                                        tag
                                                       2
                                                       3
                      SetTagPrefix();                                           SetTagPrefix();
                      SetPictureName();                                         SetPictureName();
Note:          SetTagPrefix(); The “Tag Prefix“ attribute can be made dynamic with the name “TagPrefix“.
               SetPictureName(); The “Picture Name“ attribute can be made dynamic with the name “PictureName“.
                                                               2
                                                               3
                                             SetTagPrefix(lpszPictureName,"Bildfenster6",“Motor_1.");
                                             SetPictureName(lpszPictureName,"Bildfenster6",“Motor_Box.pdl");
              SetTagPrefix(lpszPictureName,"Bildfenster6",“Motor_2.");
              SetPictureName(lpszPictureName,"Bildfenster6",“Motor_Box.pdl");
                                        3)        sbb_ind_Adr_grafik.PDL                                            sbb_ind_Adr.PDL
2)
     Internal tags                            I_Setpoint
                                                                   Unter-
                                                           Value   objekt_1                                                      Picturewindow1
     I_Setpoint Value
     I_Actual Value                           I_Actual                                                                           Unter-
                                                                   Value   Unter-
                                                                           objekt_2
                                                                                                            I_Setpoint           objekt_1
     ...                                                                                                                 Value
                                                I_Manual
                                                           Value                                            I_Actual
                                                                   Unter-                                                        Value   Unter-
     Process tags                                                  objekt_n                                                              objekt_2
                                                           SetPictureName(lpszPictureName,“PictureWindow1","sbb_ind_Adr_grafik.PDL");
                                                           SetVisible(lpszPictureName,“PictureWindow1",1);
                                                           SetTagMultiWait("%s%s%s",
                                                                                            "I_Setpoint",“Drive1.Setpoint",
                                                                                            "I_Actual",“Drive1.Actual",
                                                                                            "I_Manual",“Drive1.Manual");
        Drive2.Actual
        ...
                                                                        4) Call graphic picture
                                                       Drive 1                                                   Drive 2
                                                                           xyz.PDL
                            5) Instance Wizard                                                                             5)
Performance Profile
      Instance Type 2:                  one module that can be displayed and that can be called
                                        using one button (per tag)
      Instance Type 3:                  several modules that can be displayed and that each can be
                                        called using one button (tag)
IndustrialX
  Shortcut menu:
  Open
Group
                                                                             Mouse
                                                                             double-click
                            Create a
                            window for
                            a group or
                            user
Setpoint
  Shortcut menu:
  Properties
Motor operation
     setpoint speed
     operation
 Zustandsanzeige.pdl
                                                                                  close
                                                                                          open
                                                                 Motor.pdl
              Operating picture: Mot1.pdl
Conveyer 2
Q0.1
Bandanlage.pdl
                                                 H
                                                                              Object name: Help Text
Tooltip text
Customized object
- Edit Messages
- Message Classes
- Message Archives
- Group Messages
- Acknowledgement Concept
- Evaluation
- Links
                                                                                                    New page
                                         Prepare message                                                                                         SICOMP
                                                                                                                                                 IPC RI 20
                                                                                                                                   - Shiftreporting
                                                                                                                                   - Daily reporting
                                                                                Integrated backup function                         - Monthy reporting
RT Master database
           ALG Master
            Database
                                                                                          Analysis / Evaluation
    Data acquistion
                                                                                          • WinCC Standard Tool (Control)
    • WinCC Data Manager                Long-term archiving                               • Protocols (Report Designer)
    • OPC Server                        • High performance archiving                      • WinBDE (recording operating data)
    • WinCC Server-Server               • Swap data in - swap data out
      Communication
                                                                                          • Dat@Monitor + Excel
                                                                                          • Connectivity Pack + External Appl.
                                                                                          • IndustrialDataBridge + Ext. Appl.
                                 Message list
                                                               Long-term archive
Short-term archive
        Number
                                               max. 10                                 max. 10
 Message
 line
Select Wizard
                                                                                         Editing window
                                            Analog Alarm
                                            Menu Bar: Options, drop-down menu: Add Ins ...
                                                                                              Table window
                                                    Navigation window
Wizard
                                                                                Configuration
                                                                                dialogs
Shortcut menu
Shortcut menu
Types 1... 16
   2) Priority Division
                      1...               16      Message Classes
Types 1... 16
Max. 16
Shortcut menu
OR
OR
Shortcut menu
Shortcut menu
RT Data
Shortcut menu for WinCC in CS mode Shortcut menu for WinCC in RT mode
                                Reset:                                             Connect:
                                All Database files in the                          Necessary when old archive files
                                long-term archive are deleted                      are to be evaluated
                                after check back.
                                In the first RT mode, DB files                     Disconnect:
                                are automatically recreated.                       “Opposite” of Connect
Shortcut menu
"Properties"
 Toolbar
                                          Double-click
                                                     Preview
                                                Message line
Status bar
Double-click
  - WinCC polls the message bits every 500ms        + message telegrams are only sent when events occur
                                                    + exact time-stamp for messages
  + easy to configure                                 (length of the CPU cycle; e.g. 50ms)
                                                    - with PMC “central acknowledgement“ without
  - “central acknowledgement“ through                 additional work
     acknowledgement tags                           - S5-PMC: higher capital expenditure (PMC channel;
                                                      PMCPRO and special FBs)
User blocks
Properties -4 characters
                                          Blast furnace
                                                                                     Alarm          Failure
         Acknowledgement                -Acknowledgement
                                         came in
                                                                                         Archive
Table window
                                                                                                   -Date
                                                                                                   -Time
                                                                                                   -Number
General                            Window Title: Blast furnace-W.                                  -Status
                                   Window Type: Message Window                                     -Message text
Message Line                                                                                       -Point of error
                                                                                                   -Cause
Parameters                                                                                         -Class
                                                                                                   -Type
Status Bar                      -Display
                                -Alignment down
                                -Select all
                                elements
                                 of the status bar                               -Separation lines horizontal and vertical
                                                                                  "activated"
Toolbar                         -Display                                         -Selection: Cell "activated"
                                -Alignment up                                    -Auto Scrolling not activated
                                -All key functions                                (for Window Type: Message Window)
                                                                                 -Line Title "activated"
                                                                                 -Column Title "activated"
                                                                                 -Change Column Width "activated"
Copy (if present) the picture melden.pdl into your project from the catalog ab_uebung.
In the start up list 1.) Alarm Logging RunTime and 2.) Text Library Runtime must be selected.
Message type 1 ....message type 16 ...... ... ..... Mess. type 1 .... mess. type 16
in Alarm - Logging
     15...                  8...          0
       00000001 00000001                      incoming not ackn.
     15...                  8...          0
       00000001 00000001                      incoming not ackn.
Incoming Incoming
Display only in RT
Archive segments
- Measurement Point
- Trend Display
- Trend Archive
- Archive Description
- Trend Analysis
                                                                                                                                                            SICOMP
                                                                                                                                                            IPC RI 20
                                                                                                                                              - Shiftreport
                                                                                                                                              - Daily report
                                                                                                   Integrated backup function                 - Monthly report
RT Master Database
    Data acquistion
    • WinCC Data Manager
    • OPC Server
    • WinCC Server-Server                                                                     Analysis / Evaluation
      Communication                                                                           • WinCC Standard Tool (Control)
                                                                                              • Protocols (Report Designer)
                                                                                              • WinBDE (recording operating data)
                                            Long-term archiving
                                            • High performance archiving                      • Dat@Monitor + Excel
                                            • Swap data in and swap data out                  • Connectivity Pack + External Appl.
                                                                                              • IndustrialDataBridge + Ext. Appl.
Data acquisition
+WinCC Data Manager
+OPC Server                       Runtime Data Tag Logging Fast Segment:
+WinCC Server-Server              COMPUTER_PROJECT_TLG_Fast_<Time_from>_<Time_to>.LDF
 Communication(max.11)            COMPUTER_PROJECT_TLG_Fast_<Time_from>_<Time_to>.MDF
                                  COMPUTER_PROJECT_TLG_Fast_YYYYMMDDHHMM.MDF
                                  Example: DOZENT_ab#graf#V5.1_TLG_F_200306020629.mdf
                                  DOZENT_ab#graf#V5.1_TLG_F_200306020901_200306021000.mdf
                                                               Calculations
                                                                  Sum
                                                                                    Archiving 1)
                                                                 Mean Value
Minimum
Maximum
Action
                                                           Last acquired
                                                           value
 Acquisiton Cycle                                      Time
 Archiving/Display Cycle
                                           1)     1)
(1)
                                                                  Data window
                Navigation window
Table window
                                (1) Shortcut
                                    menu
                      Shortcut menu:
                      -Properties
OR
OR
Cyclic archive
Cyclic archive
RT Data
Shortcut menu for WinCC in CS mode Shortcut menu for WinCC in RT mode
                                Reset:                                             Connect:
                                All Database files in the                          Necessary when old archive files
                                long-term archive are deleted                      are to be evaluated
                                after check back.
                                In the first RT mode, DB files                     Disconnect:
                                are automatically recreated.                       “Opposite” of Connect
Double-click
                                                                                Acquisition:            1 sec
                                                                                Archiving/Display:      5 sec
                                                                                Acquisition:            1 sec
                                                                                Archiving/Display:      1 sec
                                                                                Acquisition:             2 sec
                                                                                Archiving/Display:       10 sec
          Note: You have to take into
          consideration that the acquisition cycle
                                                                                Makes sense for arithmetic, e.g. mean
          is a permanent load in the background
                                                                                value
          (communication)
               Start Events and Stop Events are functions that are called every 500 ms for every trend!
               Better: Global Script Action (*.pas) with TLGLockArchiv
                                        (1) Shortcut
                                            menu
Copy the picture "kurven.pdl" from the catalog "ab_uebung" into your project.
Double-click
Display only in RT
Archive segments
                                        Archive segments
                                                                                      Open Table->Return all rows