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.

A FGADV move may not be performed:<br />

• During a preset (MC0) move<br />

• In a compiled profile or program<br />

Following Status (FS, TFS, <strong>and</strong> TFSF) bit #24 reports if a “FGADV move is underway”.<br />

Example COMEXC1 ; All comm<strong>and</strong> processing during motion<br />

FOLRN25 ; Set numerator of follower-to-master Following ratio<br />

FOLRD10 ; Set denominator of follower-to-master Following ratio<br />

FOLMD1000 ; Set master distance to 1000 units<br />

MC1<br />

; Enable continuous positioning mode<br />

D+ ; Set direction to positive<br />

FOLEN1<br />

; Enable Following<br />

GO<br />

; Ramp up to a 2.5:1 ratio over 1000 master distance units<br />

FOLMD500 ; Set master distance to 500 units<br />

FOLRN13 ; Superimposed ratio will be 1.3 (added to 2.5 = 3.8 total)<br />

WAIT(FS.23=B1) ; Wait for OK to do geared advance<br />

; (in this case, ramp is complete)<br />

FGAVD400 ; Advance the follower 400 counts over a distance<br />

; of 500 master counts<br />

WAIT (FS.23=B1) ; Wait for OK to do geared advance (in this case,<br />

; FGADV400 super-imposed profile is complete)<br />

FGADV-400 ; Retard the follower 400 counts over a distance of<br />

; 500 master counts (2.5 - 1.3 = 1.2 net ratio)<br />

Summary of Ratio Following Comm<strong>and</strong>s<br />

ANIMAS............................ Assigns an analog input to be used as a master in a FOLMAS assignment<br />

(requires a ANI SIM located on an expansion I/O brick)<br />

FGADV .............................. Defines the geared advance distance<br />

FOLEN .............................. Enables or disables Following mode<br />

FOLMAS............................ Defines masters<br />

FOLMD .............................. Defines the master distance over which follower acceleration or moves are<br />

to take place<br />

FOLRN <strong>and</strong> FOLRD............. Establishes the maximum follower-to-master ratio for a preset move or the<br />

final ratio for a continuous move (FOLRN for the numerator <strong>and</strong> FOLRD for<br />

the denominator)<br />

FSHFD .............................. Initiates preset advance or retard (shift) of follower position during<br />

continuous Following moves<br />

FSHFC .............................. Initiates continuous advance or retard (shift) of follower position (or kills or<br />

stops the shift portion of motion) during continuous Following moves<br />

FVMACC............................ Establishes the rate at which the virtual master count frequency (FVMFRQ)<br />

may change.<br />

FVMFRQ............................ Defines the frequency of the virtual master count.<br />

SCLD ................................ Sets the follower distance scale factor<br />

SCLMAS............................ Sets the master distance scale factor<br />

SINAMP............................ Defines the amplitude of the internal sine wave<br />

SINANG............................ Defines the phase angle of the internal sine wave<br />

SINGO .............................. Initiates the internal sine wave<br />

TPSHF or [ PSHF ]........... Transfers or assigns the net position shift since constant ratio<br />

TPSLV or [ PSLV ]........... Transfers or assigns the current follower position<br />

TVMAS or [ VMAS ]........... Transfers or assigns the velocity of the master<br />

Chapter 7. Multi-Tasking 181

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

Saved successfully!

Ooh no, something went wrong!