14.01.2015 Views

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

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.

CONTENTS<br />

OVERVIEW.................................................................. I<br />

About This Manual......................................................i<br />

Organization of This Manual...................................i<br />

Programming Examples..........................................ii<br />

Reference Documentation.......................................ii<br />

Assumptions of Technical Experience....................ii<br />

Before You Begin......................................................iii<br />

Install <strong>and</strong> Use Motion Planner .............................iii<br />

Technical Support......................................................iii<br />

PROGRAMMING FUNDAMENTALS ..................... 1<br />

Motion Planner Programming Environment............... 2<br />

Wizard-Based Programming................................... 2<br />

Native Code Programming ..................................... 3<br />

Comm<strong>and</strong> Syntax........................................................ 4<br />

Introduction ............................................................ 4<br />

Description of Syntax Letters <strong>and</strong> Symbols............ 5<br />

General <strong>Guide</strong>lines for Syntax................................ 6<br />

Comm<strong>and</strong> Value Substitutions ............................... 7<br />

Assignment <strong>and</strong> Comparison Operators ................. 7<br />

Programmable Inputs <strong>and</strong> Outputs Bit Patterns...... 9<br />

Creating Programs .................................................... 10<br />

Program Example ................................................. 10<br />

Storing Programs ...................................................... 11<br />

Memory Allocation............................................... 11<br />

Checking Memory Status...................................... 12<br />

Executing Programs (options) .................................. 13<br />

Creating <strong>and</strong> Executing a Set-up Program................ 13<br />

Program Security ...................................................... 14<br />

Controlling Execution of Programs <strong>and</strong> the Comm<strong>and</strong><br />

Buffer........................................................................ 14<br />

COMEXC (Continuous Comm<strong>and</strong> Execution)..... 14<br />

COMEXL (Save Comm<strong>and</strong> Buffer on Limit) ...... 15<br />

COMEXR (Effect of Pause/Continue Input) ........ 15<br />

COMEXS (Save Comm<strong>and</strong> Buffer on Stop) ........ 16<br />

Restricted Comm<strong>and</strong>s During Motion...................... 17<br />

Variables................................................................... 18<br />

Converting Between Binary <strong>and</strong> Numeric Variables<br />

.............................................................................. 18<br />

Using Numeric (VAR <strong>and</strong> VARI) Variables.......... 19<br />

Using Binary Variables......................................... 22<br />

Unconditional Looping <strong>and</strong> Branching................. 23<br />

Conditional Looping <strong>and</strong> Branching..................... 25<br />

Program Interrupts (ON Conditions) ........................ 29<br />

Error H<strong>and</strong>ling.......................................................... 30<br />

Enabling Error Checking ...................................... 31<br />

Defining the Error Program .................................. 31<br />

Canceling the Branch to the Error Program.......... 32<br />

Error Program Set-up Example............................. 34<br />

Non-Volatile Memory .............................................. 35<br />

System Performance..................................................35<br />

COMMUNICATION..................................................37<br />

Communication Options ...........................................38<br />

Motion Planner Communication Features.................38<br />

Ethernet Networking .................................................39<br />

Overview...............................................................39<br />

Networking <strong>Guide</strong>lines .........................................42<br />

Configuring the Gem6K for Ethernet<br />

Communication.....................................................43<br />

Networking with Other 6K or Gem6K Products<br />

(Peer-to-Peer) ........................................................46<br />

Networking with OPTO22 SNAP I/O...................48<br />

Networking with a DVT Vision System ...............50<br />

Networking with an Allen-Bradley SLC 5/05 PLC<br />

...............................................................................51<br />

Error Conditions....................................................54<br />

Serial Communication...............................................56<br />

Controlling Multiple Serial Ports ..........................56<br />

RS-232C Daisy-Chaining......................................57<br />

Daisy-Chaining <strong>and</strong> RP240s .................................60<br />

RS-485 Multi-Drop ...............................................60<br />

BASIC OPERATION SETUP....................................63<br />

Before You Begin .....................................................64<br />

Setup Parameters Discussed in this Chapter .........64<br />

Using a Setup Program..........................................65<br />

Resetting the Controller ........................................65<br />

Memory Allocation ...................................................65<br />

Drive Setup ...............................................................66<br />

Drive Stall Detection (stepper only)......................66<br />

Drive Resolution (stepper only) ............................66<br />

Disable Drive On Kill (servo only) .......................66<br />

Scaling.......................................................................67<br />

Units of Measure without Scaling.........................67<br />

What is Scaling....................................................67<br />

When Should I Define Scaling Factors ...............67<br />

Acceleration & Deceleration Scaling (SCLA).......68<br />

Velocity Scaling (SCLV)......Error! Bookmark not<br />

defined.<br />

Distance Scaling (SCLD <strong>and</strong> SCLMAS)......... Error!<br />

Bookmark not defined.<br />

Positioning Modes.....................................................71<br />

Preset Positioning Mode........................................72<br />

Continuous Positioning Mode...............................73<br />

End-of-Travel Limits ................................................77<br />

Homing (Using the Home Inputs) .............................79<br />

Encoder-Based Stepper Operation (stepper only) .....84<br />

Encoder Resolution ...............................................84<br />

Stall Detection & Kill-on-Stall..............................84<br />

Encoder Set Up Example ......................................84

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

Saved successfully!

Ooh no, something went wrong!