User Manual
Version 7.3
OpenPCS Programing
System
2 / 297
OpenPCS Programing System
Inhaltsverzeichnis
Content
1
A Quick Tour through OpenPCS
13
1.1 Installation ............................................................................................. 13
1.2
Hardware and Software Requirements .......................................................... 13
1.3
Starting OpenPCS .................................................................................... 13
1.4
OpenPCS Samples .................................................................................... 14
1.5
Guided Tour ............................................................................................ 15
Guided Tour: Intro ............................................................................. 151.5.1
Sample Program ................................................................................ 151.5.2
Executing code ................................................................................. 171.5.3
Monitoring code ................................................................................ 191.5.4
Control Data Analyzer ........................................................................ 211.5.5
Online Edit ....................................................................................... 211.5.6
1.6
Additional ............................................................................................... 23
Adding Hardware Support .................................................................... 231.6.1
Templates ........................................................................................ 241.6.2
XML-Import/Export ............................................................................ 241.6.3
About this manual ............................................................................. 251.6.4
More Information ............................................................................... 251.6.5
2 OpenPCS Tools
26
2.1
OpenPCS Framework ................................................................................ 26
OpenPCS Framework: Introduction ........................................................ 262.1.1
Output Window ................................................................................. 262.1.2
2.2
Browser ................................................................................................. 27
Browser: Introduction ........................................................................ 272.2.1
Browser: Overview ............................................................................ 272.2.2
Projects .......................................................................................... 312.2.3
Files ............................................................................................... 322.2.4
Resources and Tasks ......................................................................... 322.2.5
OPC - I/O ........................................................................................ 342.2.6
Compiler .......................................................................................... 352.2.7
Online ............................................................................................. 352.2.8
Other Browser Features ...................................................................... 382.2.9
2.3
Catalog .................................................................................................. 40
Catalog ........................................................................................... 402.3.1
Variable Catalog ................................................................................ 412.3.2
3 / 297
OpenPCS Programing System
Inhaltsverzeichnis
2.4 Declaration Editor .................................................................................... 42
Declaration Editor: introduction ............................................................ 422.4.1
Declaration Sections .......................................................................... 422.4.2
Structure of a Declaration Line ............................................................ 432.4.3
Elementary Data Types ...................................................................... 442.4.4
Directly represented variables .............................................................. 452.4.5
Derived datatypes ............................................................................. 462.4.6
Declaration of array datatypes ............................................................. 472.4.7
Declaration of structured datatypes ...................................................... 472.4.8
Declaration of enumeration datatypes ................................................... 482.4.9
2.5 Assignment Editor .................................................................................... 48
Assignment Editor: Introduction ........................................................... 482.5.1
2.6 IL Editor ................................................................................................. 49
IL Editor: Introduction ........................................................................ 492.6.1
Structure of Instruction List ................................................................ 502.6.2
Instructions in IL ............................................................................... 502.6.3
IL Editor Online ................................................................................. 502.6.4
2.7
ST Editor ............................................................................................... 51
ST Editor: introduction ....................................................................... 512.7.1
Instructions in ST .............................................................................. 512.7.2
Expressions in ST .............................................................................. 512.7.3
Comments in ST ................................................................................ 522.7.4
ST Editor Online ................................................................................ 522.7.5
Tooltips for structs and elements of structs ........................................... 532.7.6
AutoComplete / AutoDeclare ................................................................ 532.7.7
2.8 Ladder Diagram Editor ............................................................................... 53
Ladder Editor: introduction .................................................................. 532.8.1
Ladder Logic: introduction ................................................................... 542.8.2
Network .......................................................................................... 542.8.3
Operators ........................................................................................ 542.8.4
Coils ............................................................................................... 552.8.5
Contact ........................................................................................... 552.8.6
Control Relay .................................................................................... 562.8.7
Functionblocks and Functions .............................................................. 562.8.8
Ladder Editor Online ........................................................................... 562.8.9
Check over Variable ........................................................................... 572.8.10
AutoComplete / AutoDeclare ................................................................ 582.8.11
2.9
CFC Editor .............................................................................................. 58
Introduction CFC Editor ...................................................................... 582.9.1
Working with Blocks ........................................................................... 582.9.2
Connections ..................................................................................... 592.9.3
Margin Bars ...................................................................................... 592.9.4
CFC Editor Online .............................................................................. 602.9.5
4 / 297
OpenPCS Programing System
Inhaltsverzeichnis
Advanced CFC topics ......................................................................... 602.9.6
Compound Blocks .............................................................................. 732.9.7
2.10 SFC Editor .............................................................................................. 75
SFC: introduction .............................................................................. 752.10.1
Elements of a sequential function chart ................................................. 762.10.2
Steps and initial steps ........................................................................ 772.10.3
Transitions ....................................................................................... 782.10.4
Jumps ............................................................................................. 782.10.5
SFC Editor Online .............................................................................. 782.10.6
Common errors .................................................................................. 792.10.7
Selecting Elements ............................................................................ 812.10.8
Advanced SFC topics ......................................................................... 822.10.9
2.11 FBD Editor .............................................................................................. 83
Introduction FBD Editor ...................................................................... 832.11.1
Working with Blocks ........................................................................... 832.11.2
Connections ..................................................................................... 842.11.3
Margin Bars ...................................................................................... 852.11.4
Advanced ........................................................................................ 862.11.5
2.12
Test and Commissioning ............................................................................ 89
Test and Commissioning: Introduction ................................................... 892.12.1
Start and Stop ................................................................................. 892.12.2
Watch variables ................................................................................ 892.12.3
Set variables .................................................................................... 892.12.4
Force Variables ................................................................................. 892.12.5
Working with watchlists ...................................................................... 902.12.6
2.13
Control Data Analyzer ............................................................................... 91
Control Data Analyzer ........................................................................ 912.13.1
Oscilloscope ..................................................................................... 922.13.2
Trigger ............................................................................................ 922.13.3
2.14
SmartSIM ............................................................................................... 93
Overview SmartSIM ........................................................................... 932.14.1
Interrupt Tasks ................................................................................. 932.14.2
2.15 OPC Server ............................................................................................. 94
About OPC Server ............................................................................. 942.15.1
Remote OPC Server ........................................................................... 942.15.2
2.16 Online Server .......................................................................................... 96
Online Server: Overview ..................................................................... 962.16.1
Online Server Setup ........................................................................... 962.16.2
2.17 Hardware drivers ..................................................................................... 99
Hardware drivers: Overview ................................................................. 992.17.1
2.18
Compiler ................................................................................................. 99
Compiler: Overview ............................................................................ 992.18.1
5 / 297
OpenPCS Programing System
Inhaltsverzeichnis
Instruction List Compiler ..................................................................... 992.18.2
Linker ............................................................................................ 1002.18.3
Make ............................................................................................. 1012.18.4
2.19 Licence Editor ....................................................................................... 102
Licence Editor: Overview ................................................................... 1022.19.1
Usage without Licence Key ................................................................ 1032.19.2
3 Advanced Topics
103
3.1 Runtime issues ....................................................................................... 103
Multitasking .................................................................................... 1033.1.1
Interrupts ...................................................................................... 1043.1.2
Optimisation Settings ....................................................................... 1043.1.3
Multiple Resources ........................................................................... 1043.1.4
Variable Address .............................................................................. 1053.1.5
Performance ................................................................................... 1053.1.6
Adjusting order of cyclic tasks ........................................................... 1053.1.7
3.2
Native Code Compiler .............................................................................. 106
Native Code .................................................................................... 1063.2.1
Direct Calls ..................................................................................... 1073.2.2
Exception Handling in native code ....................................................... 1073.2.3
Unknown instructions ....................................................................... 1073.2.4
Span segments ............................................................................... 1073.2.5
NCC Intel Protected Mode ................................................................. 1073.2.6
NCC Infineon C16x (huge model) ......................................................... 1083.2.7
NCC Motorola 68K ............................................................................ 1083.2.8
NCC Hitachi H8/300H ........................................................................ 1083.2.9
NCC Motorola DSP563xx .................................................................... 1083.2.10
NCC Intel Real Mode ......................................................................... 1083.2.11
NCC Motorola PowerPC ..................................................................... 1083.2.12
NCC ARM ARM Mode ......................................................................... 1083.2.13
NCC ARM THUMB Mode ..................................................................... 1083.2.14
3.3
Documentation ...................................................................................... 108
Crossreference ................................................................................ 1083.3.1
Cross-Reference (per variable) ........................................................... 1093.3.2
Print IEC61131 Configuration .............................................................. 1093.3.3
CFC Crossreference .......................................................................... 1093.3.4
Print-Options .................................................................................. 1123.3.5
Active Document Server ................................................................... 1123.3.6
3.4 Libraries ............................................................................................... 113
Library: Overview ............................................................................ 1133.4.1
Create a Library .............................................................................. 1133.4.2
Install a Library ............................................................................... 1143.4.3
Adding a Library to a project .............................................................. 1143.4.4
评论5