Zenon Manual Controls

Zenon Manual Controls

zenon manual Controls v.7.00 1 © 2012 Ing. Punzenberger COPA-DATA GmbH All rights reserved. Distribution and/or reproduction of this document or parts thereof in any form are permitted solely with the written permission of the company COPA-DATA. The technical data contained herein has been provided solely for informational purposes and is not legally binding. Subject to change, technical or otherwise. Contents 1. Welcome to COPA-DATA help ...................................................................................................... 5 2. Controls ...................................................................................................................................... 5 3. General ....................................................................................................................................... 6 3.1 Access zenon API ......................................................................................................................................... 6 3.2 Methods ...................................................................................................................................................... 8 3.2.1 CanUseVariables ........................................................................................................................... 8 3.2.2 MaxVariables ................................................................................................................................ 9 3.2.3 VariableTypes ............................................................................................................................... 9 3.2.4 zenonExit .................................................................................................................................... 10 3.2.5 zenonExitEd ................................................................................................................................ 10 3.2.6 zenonInit ..................................................................................................................................... 10 3.2.7 zenonInitEd ................................................................................................................................. 11 4. ActiveX ...................................................................................................................................... 11 4.1 Develop ActiveX elements ........................................................................................................................ 11 4.1.1 Methods ..................................................................................................................................... 12 4.2 Exampel LatchedSwitch (C++) ................................................................................................................... 15 4.2.1 Interface ..................................................................................................................................... 15 4.2.2 Control ........................................................................................................................................ 16 4.2.3 Methods ..................................................................................................................................... 19 4.2.4 Operate and display ................................................................................................................... 21 4.2.5 zenon Interface........................................................................................................................... 24 4.3 Exampel CD_SliderCtrl (C++) ..................................................................................................................... 24 4.3.1 Interface ..................................................................................................................................... 24 4.3.2 Control ........................................................................................................................................ 25 4.3.3 Methods ..................................................................................................................................... 28 4.3.4 Operate and display ................................................................................................................... 31 4.3.5 zenon Interface........................................................................................................................... 32 4.4 Example .NET Control as ActiveX (C#) ....................................................................................................... 33 4.4.1 Create Windows Form Control ................................................................................................... 33 4.4.2 Convert .NET User Control in Dual Control ................................................................................ 36 3 4.4.3 Work with ActiveX in the Editor via VBA .................................................................................... 41 4.4.4 Connect zenon variables with the .NET User Control ................................................................ 42 5. .NET Controls ............................................................................................................................. 46 5.1 Different use .Net Control in Control Container or ActiveX ...................................................................... 47 5.2 Example .NET Control Container ............................................................................................................... 47 5.2.1 General ....................................................................................................................................... 47 5.2.2 Create .Net User Control ............................................................................................................ 50 5.2.3 Add CD_DotNetControlContainer and .NET User Control .......................................................... 59 5.2.4 Access to the User Control via VSTA or VBA .............................................................................. 64 5.3 Example .NET Control as ActiveX (C#) ....................................................................................................... 68 5.3.1 Create Windows Form Control ................................................................................................... 68 5.3.2 Convert .NET User Control in Dual Control ................................................................................ 71 5.3.3 Work with ActiveX in the Editor via VBA .................................................................................... 76 5.3.4 Connect zenon variables with the .NET User Control ................................................................ 77 6. WPF-Element............................................................................................................................. 81 6.1 Basics ......................................................................................................................................................... 82 6.1.1 WPF in process visualization ...................................................................................................... 82 6.1.2 Transfer of values from zenon to WPF ....................................................................................... 84 6.1.3 Referenced objects ..................................................................................................................... 85 6.1.4 Allocation of zenon object to WPF content ................................................................................ 86 6.1.5 Workflows .................................................................................................................................. 87 6.2 Manual for designer .................................................................................................................................. 88 6.2.1 Workflow with Microsoft Expression Blend ............................................................................... 89 6.2.2 Workflow with Adobe Illustrator ................................................................................................ 93 6.3 Engineering in zenon ............................................................................................................................... 101 6.3.1 Configuration of the link ........................................................................................................... 103 6.3.2 Validity of XAML Files ............................................................................................................... 118 6.3.3 Pre-built elements .................................................................................................................... 120 6.3.4 Examples: Integration of WPF in zenon ................................................................................... 132 6.3.5 Troubleshooting ....................................................................................................................... 146 4 Welcome to COPA-DATA help 1. Welcome to COPA-DATA help GENERAL HELP If you miss any information in this help chapter or have any suggestions for additions, please feel free to contact us via e-mail: [email protected] (mailto:[email protected]). PROJECT SUPPORT If you have concrete questions relating to your project, please feel free to contact the support team via e-mail: [email protected] (mailto:[email protected]) LICENSES AND MODULES If you

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    146 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us