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.

On-the-Fly Motion (pre-emptive GOs)<br />

While motion is in progress, you can change these motion parameters to affect a new profile:<br />

• Acceleration (A) — s-curve acceleration is not allowed<br />

• Deceleration (AD) — s-curve deceleration is not allowed<br />

• Velocity (V)<br />

• Distance (D)<br />

• Preset or Continuous Positioning Mode Selection (MC)<br />

• Incremental or Absolute Positioning Mode Selection (MA)<br />

• Following Ratio Numerator <strong>and</strong> Denominator (FOLRN <strong>and</strong> FOLRD, respectively)<br />

The motion parameters can be changed by sending the respective comm<strong>and</strong> (e.g., A, V, D, MC)<br />

followed by the GO comm<strong>and</strong>. If the continuous comm<strong>and</strong> execution mode is enabled<br />

(COMEXC1), you can execute buffered comm<strong>and</strong>s; otherwise (COMEXCØ), you must prefix each<br />

comm<strong>and</strong> with an immediate comm<strong>and</strong> identifier (e.g., !A, !V, !D, !MC, followed by !GO).<br />

The new GO comm<strong>and</strong> pre-empts the motion profile in progress with a new profile based on<br />

the new motion parameter(s). On-the-fly motion changes are applicable only for motion<br />

started with the GO comm<strong>and</strong>, <strong>and</strong> not for motion started with other comm<strong>and</strong>s such as HOM,<br />

JOG, JOY, or PRUN.<br />

On-the-fly motion changes are most likely to be used to change the velocity <strong>and</strong>/or goal<br />

position of a preset move already underway. In the event that the goal position is completely<br />

unknown before motion starts, a move may be started in continuous mode (MC1), with a switch<br />

to preset mode (MCØ), a distance comm<strong>and</strong> (D), <strong>and</strong> a GO given later. In absolute positioning<br />

mode (MA1) the new goal position given with a pre-emptive GO is explicit in the D comm<strong>and</strong>.<br />

In incremental positioning (MAØ) the distance given with a new pre-emptive GO is always<br />

measured from the at-rest position before the original GO. If a move is stopped (with the S<br />

comm<strong>and</strong>), <strong>and</strong> then resumed (with the C comm<strong>and</strong>), this resumed motion is considered to be<br />

part of the original GO. A subsequent distance given with a new pre-emptive GO is measured<br />

from the at rest position before the original GO, not the intermediate stopped position.<br />

Programming Example:<br />

This program creates a 2-tiered profile (single-axis) that changes velocity<br />

<strong>and</strong> deceleration at specific motor positions.<br />

SCALE0<br />

; Disable scaling<br />

DEL OTF<br />

; Delete program (in case program is already in memory)<br />

DEF OTF<br />

; Begin definition of program<br />

PSET0<br />

; Set position to zero<br />

COMEXC1<br />

; Enable continuous comm<strong>and</strong> processing mode<br />

MC0<br />

; Select preset positioning<br />

MA0<br />

; Select incremental positioning<br />

A20<br />

; Set accel to 20 revs/sec/sec<br />

AD20<br />

; Set decel to 20 revs/sec/sec<br />

V9<br />

; Set velocity to 9 revs/sec<br />

D500000<br />

; Set distance to 20 revs<br />

GO1<br />

; Initiate motion<br />

WAIT(PC>100000) ; Wait until comm<strong>and</strong>ed position > 100000 steps (4 revs)<br />

V4<br />

; Slow down for machine operation<br />

GO1<br />

; Initiate new profile with new velocity<br />

WAIT(PC>450000) ; Wait until the motor position > 450000 steps (18 revs)<br />

AD5<br />

; Set decel for gentle stop<br />

V1<br />

; Slow down for gentle stop<br />

GO1<br />

; Initiate new profile with new velocity<br />

END<br />

; End program definition<br />

Chapter 6. Following 155

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

Saved successfully!

Ooh no, something went wrong!