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.
One-to-One<br />
Program Select<br />
• LIMFNCi-iP<br />
• INFNCi-iP<br />
An input defined as a One-to-One Program Select input is assigned to execute one specific<br />
program. The targeted program is reference by its number (see note).<br />
Program Numbers<br />
A program’s number is determined by the order in which the program was downloaded to the<br />
controller. The number of each program stored in the controller's memory can be obtained<br />
through the TDIR comm<strong>and</strong> — refer to the number reported in front of each program name.<br />
When selecting programs with One-to-One Program Select inputs, the program number is<br />
assigned to one specific input <strong>and</strong> is executed when the input is activated (see example<br />
below).<br />
Before you can execute programs using the One-to-One program select inputs, you must first<br />
enable scanning with the INSELP2 comm<strong>and</strong>. Once enabled, the controller will continuously<br />
scan the inputs <strong>and</strong> execute the program (by number) according to the program number<br />
assigned to the input. After executing <strong>and</strong> completing the selected program, the controller will<br />
scan the inputs again. NOTE: To disable scanning, enter !INSELPØ or place INSELPØ in a<br />
program that can be selected.<br />
The INSELP comm<strong>and</strong> also determines how long the program select input level must be<br />
maintained before the controller executes the program. This delay is referred to as debounce<br />
time (but is not affected by the INDEB setting).<br />
Example RESET ; Return controller to power-up default conditions<br />
DEF proga ; Begin definition of program proga<br />
TFB<br />
; Transfer position of feedback devices<br />
END<br />
; End program<br />
DEF progb ; Begin definition of program progb<br />
TREV ; Transfer software revision<br />
END<br />
; End program<br />
DEF progc ; Begin definition of program progc<br />
TSTAT ; Transfer statistics<br />
END<br />
; End program<br />
TDIR ; Response should show: *1 - PROGA USES 36 BYTES<br />
; *2 - PROGB USES 70 BYTES<br />
; *3 - PROGC USES 133 BYTES<br />
INFNC4-1P ; input 4 will select proga<br />
INFNC5-2P ; input 5 will select progb<br />
INFNC6-3P ; input 6 will select progc<br />
INSELP2,50 ; Enable scanning of inputs with a strobe time of 50 ms<br />
You can now execute programs by making a contact closure from an input to ground to<br />
activate the input:<br />
• Activate input #4 to execute program #1 (proga)<br />
• Activate input #5 to execute program #2 (progb)<br />
• Activate input #6 to execute program #3 (progc)<br />
Chapter 3. Basic Operation Setup 103