Math & Logic Help

Math & Logic Help

Math & Logic Help Math & Logic Engine for OPC Servers Version 9 Math & Logic Help MATH & LOGIC HELP For Cyberlogic OPC Servers Version 9 Copyright © 1994-2017, Cyberlogic® Technologies Inc. All rights reserved. This document and its contents are protected by all applicable copyright, trademark and patent laws and international treaties. No part of this document may be copied, reproduced, stored in a retrieval system or transmitted by any means, electronic, mechanical, photocopying, recording or otherwise, without the express written permission of Cyberlogic Technologies Inc. This document is subject to change without notice, and does not necessarily reflect all aspects of the mentioned products or services, their performance or applications. Cyberlogic Technologies Inc. is not responsible for any errors or omissions in this presentation. Cyberlogic Technologies Inc. makes no express or implied warranties or representations with respect to the contents of this document. No copyright, trademark or patent liability or other liability for any damages is assumed by Cyberlogic Technologies Inc. with respect to the use of the information contained herein by any other party. Cyberlogic®, DHX®, MBX®, WinConX® and Intelligent • Powerful • Reliable® are registered trademarks and DirectAccess™, OPC Crosslink™, OPC Datacenter™, DevNet™ and C-logic™ are trademarks of Cyberlogic Technologies Inc. All other trademarks and registered trademarks belong to their respective owners. Document last revision date May 5, 2017 Cyberlogic Technologies Inc. - 2 - Math & Logic Help TABLE OF CONTENTS Introduction ........................................................................................................ 7 Compatibility and Compliance ................................................................................. 8 What Should I Do Next?...................................................................................... 9 Learn How Math & Logic Works .............................................................................. 9 Read a Quick-Start Guide ....................................................................................... 9 Get Detailed Information on the Configuration Editors .............................................. 9 Verify That It’s Working or Troubleshoot a Problem .................................................. 9 Print a Copy of This Document ............................................................................... 9 Contact Technical Support ..................................................................................... 9 Theory of Operation ..........................................................................................10 Math & Logic ...................................................................................................... 10 Main Server Features ........................................................................................... 14 Quick Start Guide ..............................................................................................17 Creating a Math & Logic Device ............................................................................ 18 Creating a Math & Logic Data Item ....................................................................... 22 Editing the Math & Logic Program ......................................................................... 24 Saving the Configuration and Updating the Server ................................................. 40 Verifying Your Configuration................................................................................. 41 Configuration Editor Reference ........................................................................47 Address Space .................................................................................................... 48 Device Folders ................................................................................................. 48 Math & Logic Devices ....................................................................................... 51 Folders ........................................................................................................... 57 Math & Logic Data Items .................................................................................. 60 Math & Logic Program Types ............................................................................ 68 Math & Logic Editor .......................................................................................... 78 Conversions ........................................................................................................ 88 Simulation Signals ............................................................................................... 88 Alarm Definitions ................................................................................................. 89 Network Connections ........................................................................................... 89 Database Operations ........................................................................................... 89 OPC Crosslinks .................................................................................................... 90 Saving and Undoing Configuration Changes ........................................................... 90 Configuration Import/Export ................................................................................ 90 Editor Options ..................................................................................................... 91 Validation and Troubleshooting ........................................................................92 Data Monitor ...................................................................................................... 92 Cyberlogic OPC Client .......................................................................................... 92 Status Items ....................................................................................................... 92 Math & Logic Status Item Definitions ................................................................. 93 Debugging Aids ................................................................................................... 99 Appendix A: C-logic Language Reference ...................................................... 102 Comments ......................................................................................................... 103 Constants .......................................................................................................... 104 Integer Constants ........................................................................................... 104 Floating Point Constants .................................................................................. 106 String Constants ............................................................................................. 106 Cyberlogic Technologies Inc. - 3 - Math & Logic Help Predefined Constants ...................................................................................... 106 Local Declarations .............................................................................................. 108 Constant Declarations ..................................................................................... 108 Data Item Declarations .................................................................................... 108 Typed, Untyped and Public Variable Declarations ............................................... 110 Date & Time Variable Declarations ................................................................... 115 Standard Variable Properties ............................................................................ 116 Expressions ....................................................................................................... 117 Arithmetic ...................................................................................................... 118 Relational ....................................................................................................... 118 Logical ........................................................................................................... 119 Bitwise ........................................................................................................... 119 Operator Precedence and Associativity .............................................................. 120 Statements ........................................................................................................ 120 Conditional Branch (If-Else) Statements ............................................................ 121 Assignment (=) Statements ............................................................................. 122 Return Statements .......................................................................................... 123 Math Functions .................................................................................................. 124 Abs ................................................................................................................ 125 Acos .............................................................................................................. 126 Asin ............................................................................................................... 127 Atan .............................................................................................................. 128 Ceil ...............................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    222 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