Date: 22.04.2014
File: SWINCC_11e.1
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
User Openness API
Date: 22.04.2014
File: SWINCC_11e.2
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
Objectives
- API (Application Programming
Interface)
- ODK (Open Development Kit)
- CDK (Channel Development Kit)
Date: 22.04.2014
File: SWINCC_11e.3
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
WinCC Software Architecture
WinCC Explorer
ContorlPanel
. . .
Data Manager
CS
Text
library
RT
CS
Access
protection
RT
S7S5
CS
Tag management
Process data
RT
CS
RT
Signalling Option
RT
CSCS
Graphics
RT
CS
RT
Report
CS
RT
Custom
form
processing
CS
RT
Measured
values
user
archive
RT DB
DB
Date: 22.04.2014
File: SWINCC_11e.4
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
Application Programming Interface API (1/4)
 ANSI-C Functions
 Access to data
 in the Tag Management
 in the archives
 configuration data
 Using system functions (ODK)
 configuration functions
 Runtime functions
 Integration of communication channels (CDK)
 Basis for
 individual functions
 technological-type options
 industry-referenced function modules
API
API
API API API API API API
API API API API API API
Date: 22.04.2014
File: SWINCC_11e.5
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
Application Programming Interface API (2/4)
I
Integrating configuration
functions
Integrating Runtime
functions
Integrating comunication
channels
User
application
User
application
Date: 22.04.2014
File: SWINCC_11e.6
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
Application Programming Interface API (3/4)
Additional
application
WinCC API DLL
WinCC Module
Using functions
Communication
The following is needed for creating
applications:
External C compiler
(for example, Microsoft Visual C++ 5.0 )
Library file for the desired
WinCC API ( *.LIB )
Header file for the desired
WinCC API ( *.H )
Date: 22.04.2014
File: SWINCC_11e.7
SIMATIC HMI
Siemens AG 2000. All rights reserved.©
SITRAIN Training for
Automation and Drives
Application Programming Interface API (4/4)
 Application examples:
 Access to values from the Tag Management
 Access to archive data
 Integrating communications channels
 Direct display of processing results in Graphics
 Generic configuration based on API functions
 Integrating already existing processing programs
 Generating messages from user routines
 Controlling the measured value recording from user routines
 Controlling reports from the user programs

A d swincc11e

  • 1.
    Date: 22.04.2014 File: SWINCC_11e.1 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives User Openness API
  • 2.
    Date: 22.04.2014 File: SWINCC_11e.2 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives Objectives - API (Application Programming Interface) - ODK (Open Development Kit) - CDK (Channel Development Kit)
  • 3.
    Date: 22.04.2014 File: SWINCC_11e.3 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives WinCC Software Architecture WinCC Explorer ContorlPanel . . . Data Manager CS Text library RT CS Access protection RT S7S5 CS Tag management Process data RT CS RT Signalling Option RT CSCS Graphics RT CS RT Report CS RT Custom form processing CS RT Measured values user archive RT DB DB
  • 4.
    Date: 22.04.2014 File: SWINCC_11e.4 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives Application Programming Interface API (1/4)  ANSI-C Functions  Access to data  in the Tag Management  in the archives  configuration data  Using system functions (ODK)  configuration functions  Runtime functions  Integration of communication channels (CDK)  Basis for  individual functions  technological-type options  industry-referenced function modules API API API API API API API API API API API API API API
  • 5.
    Date: 22.04.2014 File: SWINCC_11e.5 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives Application Programming Interface API (2/4) I Integrating configuration functions Integrating Runtime functions Integrating comunication channels User application User application
  • 6.
    Date: 22.04.2014 File: SWINCC_11e.6 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives Application Programming Interface API (3/4) Additional application WinCC API DLL WinCC Module Using functions Communication The following is needed for creating applications: External C compiler (for example, Microsoft Visual C++ 5.0 ) Library file for the desired WinCC API ( *.LIB ) Header file for the desired WinCC API ( *.H )
  • 7.
    Date: 22.04.2014 File: SWINCC_11e.7 SIMATICHMI Siemens AG 2000. All rights reserved.© SITRAIN Training for Automation and Drives Application Programming Interface API (4/4)  Application examples:  Access to values from the Tag Management  Access to archive data  Integrating communications channels  Direct display of processing results in Graphics  Generic configuration based on API functions  Integrating already existing processing programs  Generating messages from user routines  Controlling the measured value recording from user routines  Controlling reports from the user programs