08.05.2014 Views

OPTOCONTROL USER'S GUIDE - Opto 22

OPTOCONTROL USER'S GUIDE - Opto 22

OPTOCONTROL USER'S GUIDE - Opto 22

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Peer-to-Peer Communication ....................................................................................10-38<br />

Using ARCNET Peer-to-Peer...............................................................................10-39<br />

Using Ethernet Peer-to-Peer...............................................................................10-39<br />

Pointer Commands ...........................................................................................................10-40<br />

Understanding Pointers.............................................................................................10-40<br />

Advantages of Using Pointers...................................................................................10-41<br />

Referencing Objects with Pointers............................................................................10-41<br />

Pointer Variables ................................................................................................10-41<br />

Pointer Tables.....................................................................................................10-42<br />

PID Commands .................................................................................................................10-42<br />

Using PIDs .................................................................................................................10-42<br />

Velocity PID Equation ................................................................................................10-43<br />

Gain (P) ...............................................................................................................10-43<br />

Integral (I) ...........................................................................................................10-43<br />

Derivative (D)......................................................................................................10-44<br />

Integral-Derivative Interaction ...........................................................................10-44<br />

Configuration Tips .....................................................................................................10-44<br />

Tuning Guidelines......................................................................................................10-45<br />

Setting the Scan Rate ........................................................................................10-45<br />

Determining the Loop Dead Time ......................................................................10-46<br />

Tuning.................................................................................................................10-46<br />

Solving Tuning Problems....................................................................................10-46<br />

Starting the Tuning Process for a New PID Loop...............................................10-47<br />

Derivative ...........................................................................................................10-47<br />

Tuning Graphs ...........................................................................................................10-48<br />

Simulation Commands .....................................................................................................10-49<br />

Chapter 11: Using <strong>Opto</strong>Script ................................................................ 11-1<br />

Introduction ........................................................................................................................11-1<br />

In This Chapter ............................................................................................................11-1<br />

About <strong>Opto</strong>Script................................................................................................................11-1<br />

When To Use <strong>Opto</strong>Script....................................................................................................11-2<br />

For Math Expressions..................................................................................................11-3<br />

For String Handling......................................................................................................11-4<br />

For Complex Loops ......................................................................................................11-6<br />

For Case Statements ...................................................................................................11-7<br />

For Conditions..............................................................................................................11-8<br />

For Combining Expressions, Operators, and Conditions .............................................11-9<br />

Converting to <strong>Opto</strong>Script..................................................................................................11-10<br />

Duplicate Object Names ...........................................................................................11-10<br />

File Sizes....................................................................................................................11-10<br />

Changing Code to <strong>Opto</strong>Script....................................................................................11-10<br />

xiv<br />

<strong>Opto</strong>Control User’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!