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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Continuous Positioning Mode<br />

The Continuous Mode (MC1) is useful in these situations:<br />

• Applications that require constant movement of the load<br />

• Synchronize the motor to external events such as trigger input signals<br />

• Changing the motion profile after a specified distance or after a specified time period<br />

(T comm<strong>and</strong>) has elapsed<br />

You can manipulate the motor movement with either buffered or immediate comm<strong>and</strong>s. After<br />

you issue the GO comm<strong>and</strong>, buffered comm<strong>and</strong>s are not executed unless the continuous<br />

comm<strong>and</strong> execution mode (COMEXC1 comm<strong>and</strong>) is enabled. Once COMEXC1 is enabled,<br />

buffered comm<strong>and</strong>s are executed in the order in which they were programmed. More<br />

information on the COMEXC mode is provided on page 14.<br />

The comm<strong>and</strong> can be specified as immediate by placing an exclamation mark (!) in front of<br />

the comm<strong>and</strong>. When a comm<strong>and</strong> is specified as immediate, it is placed at the front of the<br />

comm<strong>and</strong> queue <strong>and</strong> is executed immediately.<br />

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

COMEXS1<br />

; Allow comm<strong>and</strong> execution to continue after stop<br />

MC1<br />

; Sets mode to continuous<br />

A10 ; Sets acceleration to 10<br />

V1 ; Sets velocity to 1<br />

GO<br />

; Initiates move (Go)<br />

WAIT(VEL=1) ; Wait to reach continuous velocity<br />

T5<br />

; Time delay of 5 seconds<br />

S1<br />

; Initiate stop<br />

WAIT(MOV=b0) ; Wait for motion to completely stop<br />

COMEXC0<br />

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

; When the move is executed, the load will accelerate to 1 unit/sec,<br />

; continue at that rate for 5 seconds, <strong>and</strong> then decelerate to a stop.<br />

Example B DEF prog1 ; Begin definition of program prog1<br />

COMEXC1<br />

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

COMEXS1<br />

; Allow comm<strong>and</strong> execution to continue after stop<br />

MC1<br />

; Set to continuous positioning mode<br />

A10 ; Set acceleration to 10<br />

V1 ; Set velocity to 1<br />

GO<br />

; Initiate move (Go)<br />

WAIT(VEL=1) ; Wait for motor to reach continuous velocity<br />

T3<br />

; Time delay of 3 seconds<br />

A50 ; Set acceleration to 50<br />

V10 ; Set velocity to 10<br />

GO<br />

; Initiate acceleration <strong>and</strong> velocity changes<br />

T5<br />

; Time delay of 5 seconds<br />

S1<br />

; Initiate stop<br />

WAIT(MOV=b0) ; Wait for motion to completely stop<br />

COMEXC0<br />

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

END<br />

; End definition of program prog1<br />

While in continuous mode, motion can be stopped if:<br />

• You issue an immediate Stop (!S) or Kill (!K or ctrl/K) comm<strong>and</strong>.<br />

• The load trips an end-of-travel limit switch or encounters a software end-of-travel limit.<br />

• The load trips a registration input (a trigger input configured with the INFNCi-H<br />

comm<strong>and</strong> to function as a registration input).<br />

• The load trips an input configured as a kill input (INFNCi-C or LIMFNCi-C) or a<br />

stop input (INFNCi-D or LIMFNCi-D).<br />

NOTE<br />

While the axis is moving, you cannot change the parameters of some comm<strong>and</strong>s (such as DRIVE<br />

<strong>and</strong> HOM). This rule applies during the COMEXC1 mode <strong>and</strong> even if you prefix the comm<strong>and</strong> with an<br />

immediate comm<strong>and</strong> identifier (!). For more information, refer to Restricted Comm<strong>and</strong>s During<br />

Motion on page 17.<br />

Chapter 3. Basic Operation Setup 73

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

Saved successfully!

Ooh no, something went wrong!