文件名称:
西门子_Windows Automation Center RTX Open Development Kit (WinAC ODK).pdf
开发工具:
文件大小: 1mb
下载次数: 0
上传时间: 2019-11-01
详细说明:西门子_Windows Automation Center RTX Open Development Kit (WinAC ODK)pdf,Table of contents
Product overview and installation
1.1
Overview
1.2
What's new?
1.3 System requirements
7890
Installing WinAC ODK
2 CCX- Custom Code extension
11
2.1.1 What is winAc odK ccx?
2.1.2 Process solutions with step 7 and ccx
2.1.3 CCX program overview
2. 1. 4 STEP 7 program overview
14
2.1.5 Synchronous or asynchronous execution?
2.1.6 Documentation organization
15
2.2
Development tasks
2.2.1 Creating a CCX object with the application wizard
6
2.2.1.1 Configuring project information
16
2.2.1.2 Entering CCX project subcommands
17
2.2.1.3 Enabling asynchronous processing
19
2.2.1.4 Enabling asynchronous monitoring-………
2.2.1.5 Specifying vendor informati
2.2.1.6 Generating the application wizard project
24
Programming the CCX applicatio
2.2.2.1 Programming task overview.
2.2.2.2 Programming the CCX extension object
2.2.2.3 Programming asynchronous events
2. 2.2. 4 Programming monitor threads
2. 2.2.5 Building the extension object
2.2.2.6 Developing C# or vb coⅩ applications…
2.2.3 Programming the sTEP 7 program to call the cCX extension object
35
2.2.3.1 Loading the WinAc odK library into STEP 7
2.2.3.2 Creating and executing the CCX extension object from the sTEP 7 program
36
2.2. 4 Debugging the CCX extension object
2.2.4.1 Debugging tasks
2.2.4.2 Building a debug version
2.2.4.3 Updating the STEP 7 project to use a new extension object
2.2. 4.4 Testing your software
40
2.2.4.5 Replacing an extension object
2.2.4.6 Ending a debug session
2.2.4.7 Updating the release version of the extension object
. Iinad0iia4i8d00n·a
国正国国面国
CCX references
2.3.1 CCX support software
42
23.2 STEP7 WinAc odK sfb references
2.3.2.1 SFB65001 references
2.3.2.2 SFB65002 references
45
2.3.2.3 SFB65003 references
Open Development Kit (WinAC ODK)
Programming Manual, 04/2009, A5E00340326-02
Table of contents
2.3.3 CCX data access helper classes
48
2.3.4 Auxiliary STEP 7 interface functions
49
2.3.4. ODK Readstate
49
2.3, 4.2 ODK Schedule
50
2.3, 4.3 oDK Create Thread
最国,国面面画
国面国面面面
52
2.3.4.4 Functions for reading and writing controller data
2.3.4.5 Functions for cyclic reads
2.3.4.6 Functions for getting STEP 7 block information
2.3.4.7 Memory areas and data types for reading and writing
2.3.4 8 ODK DATA STRUCT
2.3.5 CCX object web
6688
2.4
Examples
2. 4.1 CCX_SyncVsAsync example program
58
2.4.1.1 Differences between synchronous and asynchronous use of the CCX extension object
8
2.4.1.2 Introduction to the CCX SyncVsAsync example program
59
2. 4.1.3 Overview of the CCX program
60
24.1.4 Overview of the step7 user program……
60
2. 4.1.5 Building the CCx_ SyncVsAsync extension object
2. 4.1.6 Retrieving and running the STEP 7 CCx_SyncS Async program
2.4. 1.7 Using the STEP 7 program and calling the CCX extension object
2.4.2 Examples of auxiliary STEP 7 function usage
66666
2.4.2.1 Example: scheduling an OB
2.4.2.2 Example: creating a separate thread of execution
.64
2.4.2.3 Example: reading and writing controller data
65
24.24 Example; implementing cyclic reads……
6
2. 4.2.5 Example: accessing StEP 7 block information
68
2. 4.3 Additional cCX example programs
70
2. 4.4 GNU C++ example program for CCX....
72
3SMX- Shared Memory Extension……………………73
3.1
Overview…
3.1.1 Documentation organization
面面,面面E‘面音音面面面
3.2
Development tasks
74
3.2.1 Creating an SMX project with the application wizard
74
2.1.1 Configuring project information
75
3.2.1.2 Specifying vendor information
76
3.2.1.3 Generating the application wizard project
76
3. 2.2 Programming the SMX application
3.2.3 Programming the STEP 7 program to use SMX
79
3. 2. 4 Debugging an SMX object
3. 2.5 Considering scan cycle impact
80
3.2.6 Ensuring data consistency
80
3.3
SMX references
SMX support software................
3.3.2 SMX object web
34
Examples
82
3. 4.1 SMX_Start example program
3.4.1.1 Using the SMx_ Start C++ program
82
3.4.1.2 Using the SMX_ Start STEP 7 progra
8
3.4.2 Additional SMX example programs
85
3.4.3 Example: using the block copy functions
88
3.4.4 Example: using the array of boolean functions
89
3.4.5 GNU C++ example program for SMX
90
Kit (WinAC ODK)
Programming Manual, 04/2009, A5E00340326-02
able of contents
4cM- Controller Management Interface,,…,…
91
4
Overview
91
4.1.1 Capabilities of the Feature Provider
91
4.1.2 CMI Type Libraries(DLLs)
4.1.3 nterfaces of the feature provider
4.14 Methods of the iplc interface
4.1.
Methods of the feature interface
4.1.6 Methods of the fEature callback Interface
04
4.2
Features and attributes of winLC rtX
4.2.1 About attributes
10
4.2.2
ist of winlc rtX features and attributes
4.2.2.1 Autostart
4.2.2.2 ControllerHelp
112
4.2.2.3 CPULanguage
112
4.2.2.4 CPU Usage Extended
113
4.2.2.5 Diagnostic
13
4.2.2.6 DiagnosticLanguage……
14
4.2.2.7Err
4.2.28 Failsafe cpu
4.2.2.9 HW Data Storage
4.2.2.10 HW LEDS
116
4.2.2. 11 KeySwitch
4.2.2.12LED
118
4.2. 2.13 Memory CardFile(MCF
119
4.2.2. 14 Min CycleTime
4.2.2.15 Min SleepTime
120
4.2.2.16 OBExecution
4.2.2. 17 Personality.
22
4.22.18PLC
4.2.2.19 PLCInstance
4.2.2.20 PLC Memory Size
4.2.2.21 Priority
24
4.2.2.22 Securit
4.2.2.23 SpeedStep
4.2.2.24 tartAtBoot
4.2.2.25 Timing.…
27
Development tasks
4.3.1 Including the Controller Management Interface type libraries
…128
4.3.2 Including the feature and attribute definitions ...
4.3.3 Accessing the IPLC and IFeature interfaces
130
4.3.4 Including the FEature Callback interface
4.3.5 Browsing for available PLCs
4.3.6 Connecting to a PLC
4.3.7 Getting attributes of a Plc feature
137
4.3.8 Setting attribute values of a plc feature
39
4.3.9 Responding to changed feature attribute values in the Plc
41
4.3.10 Responding to loss of PLC connection
144
4.3. 11 Disconnecting from a plc
4.3.12 Programming tips and error handling……
国面面面1
着面面国国B
4.4
CMI references
149
4.4.1 CMI object web
149
4.4.2 Visual C++ ATL project use of i Feature Callback interface.....
150
4.5
Example
a:a.:::::::::(
151
Open Development Kit(WinAC ODK)
Programming Manual, 04/2009, A5E00340326-02
5
Table of contents
4.5. 1 Introduction to the CMI example programs
4.5.2 CMI_Connect__To_PLC example program
152
4.53 CMI Get And Set Feature example program……………
153
4.54
CMI_ Register_For_Feature_ Change example program
4.5.5 Additional CMI example programs
155
4.5.6 GNU C++ example programs for CMI
156
Index
15
Kit (WinAC ODK)
6
Programming Manual, 04/2009, A5E00340326-02
Product overview and installation
1.1
Overview
The Windows Automation Center Open Development Kit(WinAC OdK) is an open interface
to WinLC RTX. It provides a set of tools that enables you to implement custom software in
high-level programming languages that works with WinLC RTX
WinAC ODK supports three types of programming interfaces
e CCX- Custom Code extension
SMX-Shared Memory EXtension
CMI-Controller Management Interface
CCX
CCX provides tools for you to implement a dll or rtDll from a high-level programming
language environment. Your STEP 7 user program can call this dll or RTDLL(extension
object) from an SFB
The CCX chapter(Page 11)describes the full set of CCX features, contains software
references, and explains the use of CCX through an example program
SMX
SMX provides tools for you to create an application in a high-level programming language
that executes separately from your StEP 7 user program. The SMX application and the
STEP 7 user program can read and write controller data using a shared memory area
The SMX chapter(Page 73) describes the full set of SMX features, contains software
references, and explains the use of SMX through an example program
CMI
CMI provides tools for you to create an application in a high-level programming language
that can read and write specific WinLC rtX features and attributes. Your application can
access controller data such as status indicators, mode selector switch position, diagnostic
buffer data, and tuning panel data through a set of provided function calls
The CMI chapter( Page 91) describes the full set of CMI features, contains software
references, and explains the use of CMi through an example program
Open Development Kit(WinAC ODK)
Programming Manual, 04/2009, A5E00340326-02
Product overview and installation
1.2 What's new
1.2
What's new?
New features
The following features are new in WinAC ODK
Ability to call a ccx extension object asynchronously from SFB65003 in the STEP 7
program(Page 36
CCX data access functions for copying and replacing the WinAC RTX work memory
(Page 48
CCX auxiliary STEP 7 functions for obtaining time/date stamp, checksum, and length
nformation for STEP 7 blocks(Page 55)
o ccX interface functions to detect when a db has been created downloaded or deleted
(Page 25)
Improved error recovery such that ccX applications with improper RTX exception
handling do not jeopardize WinAC rTX execution, or the execution of other WinAC ODK
applications
Programming language support for C# and vB for CCX and sMX Windows applications
in addition to support for C/C++ for both Windows and rtss applications
SMX functions for reading and writing arrays of booleans(Page 89)
SMX functions for reading and writing blocks of the shared memory segment (Page 88
Support for debugging CCX RTDLLs in Visual Studio V6.0(Page 38)
Combination of CCX, SMX, and CMi documentation into a single help system with
corresponding PdF version for printing purposes
Updated example programs for CCX(Page 58), SMX(Page B2), and CMI(Page 151)in
the supported programming languages
obsolete features
The following features are no longer supported by winAC ODK
Support for the WinAc Slot controllers: CPU 412-2 PCI and CPU 416-2 PCI
Support for WinLC Basis
Support for Borland Delphi for CMI applications
Kit (WinAC ODK)
8
Programming Manual, 04/2009, A5E00340326-02
Product overview and installation
1.3 System requirements
1.3
System requirements
To install WinAc odK and execute WinAc odK applications your computer must satisfy the
hardware and software requirements listed below
Hardware requirements
To use WinAC ODK, your personal computer(PC)must meet the following criteria
·512 Mbytes Ram
Approximately 30 Mbytes on your hard disk
At least 1 Mbyte free memory capacity on drive C for the Setup program (Setup files are
deleted when the installation is complete.
Software requirements
To use WinAC OdK, your personal computer(PC)must have the following software
installed
e microsoft windows xp professional sp 2 or sP3
o For WinAc oDK CCx and SMX: WinLC RTX V4, 4 or winLC RTX V4.5
For WinAC ODK CMl: WinLC RTXV4.2 or higher
Internet Explorer 6.0(or higher), for viewing product documentation
An integrated development environment (IDE) from the following list
Microsoft Visual C++ 6.0 SP 5 or higher
Microsoft visual ctt net 2003
Microsoft visual ct+ 2005 or 2008
Microsoft visual basic 2005 or 2008
Microsoft visual ctf 2005 or 2008
WinAc oDK also supports the following IDES for some CMI example programs from
previous releases of WinAC ODK:
Microsoft visual basic 6.0 sP5
Microsoft visual basic net 2003
Microsoft visual ctt net 2003
Note
For developing CcX real-time projects, you must have the Intervalzero Software
Development Kit (sDK) version 8. 1. The Intervalzero sdK is not required for non
realtime projects that run in Windows only
For running C# or VB CCx extension objects on a computer other than the computer
here the extension object was built, the runtime computer must have visual studio
2005. Visual studio 2008 or the net 2.0 framework
Open Development Kit(WinAC ODK)
Programming Manual, 04/2009, A5E00340326-02
Product overview and installation
1. 4/stalling WinAC ODK
1.4
Installing winAC ODK
Before installing WinAc odK, ensure that your computer meets the system requirements
Page 9
N
ote
Do not install WinAc ODK or any other component of WinAc on a computer while any other
component of WinAc is executing(running)on that computer.
Because SIMATIC Computing, WinAC controllers, and other elements of WinAc use
common files, attempting to install any component of the WinAc software when any of the
components of WinAc are executing can corrupt the software files
Close all programs that are running before you install WinAC ODK
To install WinAC OdK, follow these steps
1.Insert the winac odk installation cd
2. Follow the step-by-step instructions that the Setup program displays. You can switch to
the next step or to the previous step from any step of the installation
Installing winac OdK when a version is already installed
If the Setup program finds another version of WinAc odK on your computer, it displays a
dialog that allows you to modify, repair or remove the installation. Select Remove on this
dialog to uninstall the previous version repeat the installation procedure to install
Your software is better organized if you uninstall any older versions before installing the new
version. Overwriting an old version with a new version has the disadvantage that if you then
uninstall, any remaining components of the old version are not removed
Uninstalling(removing)
To remove the WinAc OdK software, follow these steps
Select the Start Settings Control Panel menu command to display the Windows
control panel
2. Double-click the Add/ Remove Programs icon to display the Add/ Remove Programs
Properties dialog box
3. Select the entry for the SIMATIC WinAc Open development Kit and click the Remove
4. Follow the dialog instructions to remove the software
Note
Commands in instruction steps may vary depending on your operating system
Kit (WinAC ODK)
10
Programming Manual, 04/2009, A5E00340326-02
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.