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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setup Code (the drawing below shows the usable voltage configuration):<br />

1INFNC7-M ; Assign Joystick Release f(n) to brick 1, input 7<br />

1INFNC8-O ; Assign Joystick Velocity Select f(n) to brick 1, input 8<br />

JOYAXH1-17 ; Assign analog input 17 to control the motion,<br />

JOYVH1<br />

; Max. velocity is 10 units/sec when the<br />

; Velocity Select input (1IN.7) is open (high)<br />

JOYVL10<br />

; Max. velocity is 1 unit/sec when the<br />

; Velocity Select input (1IN.7) is closed (low)<br />

JOYA100<br />

; Set joystick accel to 100 units/sec/sec<br />

JOYAD100<br />

; Set joystick decel to 100 units/sec/sec<br />

;**** COMMANDS TO SET UP USABLE VOLTAGE: **********<br />

1JOYCTR.17=+1.0 ; Set center voltage for analog input 17<br />

; to+1.0V. The +1.0V value was<br />

; ascertained by checking the voltage of the both<br />

; inputs (with the 1TANI.17)<br />

; when the joystick was at rest.<br />

1JOYCDB.17=0.5 ; Set center deadb<strong>and</strong> to compensate for the fact that<br />

; when the joystick is at rest, the voltage received on<br />

; the analog input may fluctuate +/- 0.5V on either<br />

; side of the +1.0V center.<br />

1JOYEDB.17=2.0 ; Set end deadb<strong>and</strong> to compensate for the fact that the<br />

; joystick can produce only -8.0V to +8.0V.<br />

;**************************************************<br />

JOY1<br />

; Enable joystick mode<br />

Velocity<br />

(positive direction)<br />

JOYVH or JOYVL<br />

JOYCDB<br />

(zero-velocity range)<br />

JOYEDB<br />

-10V +10V<br />

Volts<br />

JOYEDB<br />

JOYCTR or JOYZ<br />

(voltage when joystick is at rest)<br />

JOYVH or JOYVL<br />

Velocity<br />

(negative direction)<br />

Analog Input Interface<br />

Refer to your product's<br />

Installation <strong>Guide</strong> for<br />

ANI connection<br />

information.<br />

Using analog (ANI) inputs on expansion I/O bricks, your controller can use analog voltage as a<br />

means to control the program based on external conditions.<br />

Each ANI SIM on an expansion I/O brick provides eight analog inputs. The 12-bit analog<br />

inputs have a default voltage range of -10VDC to +10VDC. Other ranges are selectable with<br />

the ANIRNG comm<strong>and</strong> (0 to +5VDC, 0 to +10VDC, <strong>and</strong> -5 to +5VDC). The voltage value of<br />

the ANI inputs can be transferred to the terminal with the TANI comm<strong>and</strong>, or used in an<br />

assignment or comparison operation with the ANI operator (e.g., IF(1ANI

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

Saved successfully!

Ooh no, something went wrong!