Gemini GV6K and Gemini GT6K Programmer's Guide
Gemini GV6K and Gemini GT6K Programmer's Guide
Gemini GV6K and Gemini GT6K Programmer's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Trigger Functions (TRGFN)<br />
MC0<br />
; Set to preset move mode<br />
D20<br />
; Set distance end-point<br />
COMEXC1<br />
; Enable continuous comm<strong>and</strong> execution mode<br />
V1<br />
; Set velocity<br />
A100<br />
; Set acceleration<br />
GOWHEN(IN.2=b1) ; Delay profile. When expression is true (input #2 is<br />
; low) start motion.<br />
GO<br />
; Comm<strong>and</strong> to move. Motor will not start until<br />
; conditions in the GOWHEN statement are true.<br />
; Comm<strong>and</strong> processing does not wait, so other system<br />
; functions may be performed.<br />
The Trigger Functions comm<strong>and</strong> (TRGFN) allows you to assign additional functions to trigger<br />
inputs that have been defined as “trigger interrupt” inputs (INFNCi-H):<br />
TRGFNc bb<br />
Start New Master Cycle (FMCNEW) function<br />
Conditional GO (GOWHEN) function<br />
Trigger letter. Two triggers are available (A or B).<br />
The “Master Trigger” (letter M) may also be used.<br />
• “Conditional GO” Function (TRGFNc1x): Suspend execution of the next start-motion<br />
comm<strong>and</strong> until specified trigger input “c” goes active. Start-motion comm<strong>and</strong>s are listed<br />
below. Refer to page 163 or to the GOWHEN comm<strong>and</strong> description for additional details.<br />
- GO (st<strong>and</strong>ard comm<strong>and</strong> to begin motion)<br />
- FGADV (begin geared advance – for Following motion)<br />
- FSHFC (begin continuous shift – for Following motion)<br />
- FSHFD (begin preset shift – for Following motion)<br />
Axis status bit #26 (reported with TASF, TAS, or AS) is set to one (1) when there is a<br />
pending “Conditional GO” condition initiated by a TRGFN comm<strong>and</strong>; this bit is cleared<br />
when the trigger is activated or when a stop comm<strong>and</strong> (S) or a kill comm<strong>and</strong> (K) is issued.<br />
If you need execution to be triggered by other factors (e.g., input state, master position,<br />
encoder position, etc.) use the GOWHEN comm<strong>and</strong>.<br />
• “New Master Cycle” Function (TRGFNcx1): This is equivalent to executing the FMCNEW<br />
comm<strong>and</strong>. When specified trigger input “c” goes active, the controller begins a new<br />
Following master cycle. For more information on master cycles, refer to page 182 or to<br />
the FMCNEW comm<strong>and</strong> description.<br />
These trigger functions are cleared once the function is complete (trigger input is activated). To<br />
use the trigger to perform a GOWHEN function again, the TRGFN comm<strong>and</strong> must be given again.<br />
Sample<br />
Gem6K Code<br />
INFNC1-H<br />
INFNC2-H<br />
TRGFNBx1<br />
TRGFNB1x<br />
GO1<br />
; Define input #1 (TRG-A) as a trigger interrupt input<br />
; Define input #2 (TRG-B) as a trigger interrupt input<br />
; When TRG-1B goes active, motor will begin a new<br />
; master cycle<br />
; When TRG-2B goes active, motor will execute the move<br />
; comm<strong>and</strong>ed with the GO comm<strong>and</strong>.<br />
; The move is comm<strong>and</strong>ed, but will not execute<br />
; until trigger 2B goes active.<br />
166 Gem6K Series Programmer’s <strong>Guide</strong>