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.

Output on Position<br />

(OUTFNCi-H)<br />

The Output on Position feature activates the designated output when the motor or load has<br />

reached a specified position. To use this feature, you must first assign the Output on Position<br />

function to output #1, <strong>and</strong> define the Output on Position characteristics with the OUTP<br />

comm<strong>and</strong>. Note: this is a firmware feature (not hardware) <strong>and</strong> the output on position is<br />

only updated every 1msec.<br />

OUTPA<br />

, , , <br />

Enable Bit:<br />

1 ... Enable the output-on-position function<br />

0 ... Disable the output-on-position function<br />

Servo Axes: If an SFB comm<strong>and</strong> is executed,<br />

the function is disabled.<br />

Increment or Absolute Position Comparison:<br />

1 ... Set position comparison to incremental<br />

...... (measured from the last start-motion<br />

...... comm<strong>and</strong>, such as GO, GOWHEN, etc.)<br />

0 ... Set position comparison to absolute<br />

Time (milliseconds):<br />

Time (milliseconds) the output is to stay active.<br />

The output activates when the specified<br />

position () is reached or exceeded, <strong>and</strong><br />

stays active for the specified time.<br />

If this field is set to zero, the output will stay<br />

active for as long as the actual distance equals<br />

or exceeds the position comparison distance<br />

(this is possible only for an absolute position<br />

comparison).<br />

Position:<br />

Scalable distance (distance is either<br />

incremental or absolute, depending on the<br />

second data field).<br />

Servos: Only the encoder position can be used.<br />

Steppers:<br />

If ENCCNT0, comm<strong>and</strong>ed position is used.<br />

If ENCCNT1, encoder position is used.<br />

Sample Code<br />

for Setup<br />

In this example, the user wants to turn on output when the motor (servo) reaches encoder<br />

position 50,000. The output must remain on for 50 milliseconds.<br />

; Define axis 1 as servo, axis 2 as stepper<br />

; Select encoder feedback for axis 1<br />

OUTFNC1-H<br />

; Define onboard output #1 as an "output on<br />

; position" output<br />

; Define onboard output #2 as an "output on<br />

; position" output<br />

OUTP1,0,+50000,50 ; Turn on onboard output #1 for 50 ms when the<br />

; encoder position is > or =<br />

; absolute position +50,000<br />

Notes about Output On Position<br />

• On servos, this feature can be used only with encoder feedback <strong>and</strong> is not operational with<br />

ANI (analog input) feedback.<br />

On steppers, this feature can be based on comm<strong>and</strong>ed position or encoder position,<br />

depending on the ENCCNT setting (default is ENCCNT0, which uses the comm<strong>and</strong>ed<br />

position).<br />

• The output activates only during motion; thus, issuing a PSET comm<strong>and</strong> to set the<br />

absolute position counter to activate the output on position will not turn on the output until<br />

the next motion occurs.<br />

Chapter 3. Basic Operation Setup 109

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

Saved successfully!

Ooh no, something went wrong!