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.

Programmable Inputs <strong>and</strong> Outputs (onboard <strong>and</strong> external inputs & outputs)<br />

Programmable inputs <strong>and</strong> outputs allow the controller to detect <strong>and</strong> respond to the state of<br />

switches, thumbwheels, electronic sensors, <strong>and</strong> outputs of other equipment such as drives <strong>and</strong><br />

PLCs. The I/O that may be used as programmable inputs <strong>and</strong> outputs are:<br />

• Onboard I/O:<br />

− Limit inputs on the Drive I/O connector (pins 28, 29, <strong>and</strong> 31)<br />

− Trigger inputs on the Drive I/O connector (pins 37 <strong>and</strong> 38). A “master trigger” is<br />

also available on the Drive I/O connector (pin 35). These are general purpose on<br />

board digital inputs but can be redefined as trigger inputs.<br />

− Digital outputs on the Drive I/O connector (pins 41, 43, 45, 46, 48, <strong>and</strong> 49)<br />

− Relay output on the +24VDC power input connector (screw terminals)<br />

• Expansion I/O located on I/O bricks connected to the Gem6K controller’s “EXPANSION<br />

I/O” connector. Each I/O brick can hold from 1 to 4 of these I/O SIM modules in any<br />

combination (each SIM module provides 8 inputs or outputs, for a total of 32 I/O points<br />

per I/O brick):<br />

− Digital inputs<br />

− Digital outputs<br />

− Analog inputs<br />

− Analog outputs<br />

USING THE STATE OF I/O TO CONTROL PROGRAMMED EVENTS: Based on the<br />

binary state of the inputs <strong>and</strong> outputs (binary status can be used in assignment/comparison<br />

operations using the LIM, IN <strong>and</strong> OUT operators), the controller can make program flow<br />

decisions <strong>and</strong> assign values to binary variables for subsequent mathematical operations. These<br />

operations <strong>and</strong> the associated program flow, branching, <strong>and</strong> variable comm<strong>and</strong>s are listed below.<br />

Operation based on I/O State Associated Comm<strong>and</strong>s See Also*<br />

I/O state assigned to a binary variable LIM, [IN], [OUT], VARB Variables (page 18)<br />

I/O state used as a basis for<br />

comparison in conditional branching &<br />

looping statements<br />

Input state used as a basis for a<br />

conditional GO<br />

I/O state used as a basis for a<br />

program interrupt (GOSUB)<br />

conditional statement<br />

Mimic PLC functionality by scanning<br />

I/O states with a compiled program<br />

LIM, [IN], [OUT], IF,<br />

ELSE, NIF, REPEAT,<br />

UNTIL, WAIT, WHILE,<br />

NWHILE<br />

Program Flow Control (page 23)<br />

[IN], GOWHEN, LIM Synchronizing Motion (page 163)<br />

ONIN Program Interrupts (page 29)<br />

PLCP, SCANP PLC Scan Mode (page 120)<br />

* Refer also to the respective comm<strong>and</strong> descriptions in the Gem6K Series Comm<strong>and</strong> Reference.<br />

I/O UPDATE RATE: The programmable inputs <strong>and</strong> outputs are sampled at the “system<br />

update rate,” which is every 2 ms.<br />

EXPANSION I/O BRICKS: If the I/O brick is disconnected or if it loses power, the<br />

controller will perform a kill (all tasks) <strong>and</strong> set error bit #18 (see ERROR). (If you disable the<br />

“Kill on I/O Disconnect” mode with KIOENØ, the Gem6K will not perform the kill.) The<br />

controller will remember the brick configuration (volatile memory) in effect at the time the<br />

disconnection occurred. When you reconnect the I/O brick, the controller checks to see if<br />

anything changed (SIM by SIM) from the state when it was disconnected. If an existing SIM<br />

slot is changed (different SIM, vacant SIM slot, or jumper setting), the controller will set the<br />

SIM to factory default INEN <strong>and</strong> OUTLVL settings. If a new SIM is installed where there was<br />

none before, the new SIM is auto-configured to factory defaults.<br />

90 Gem6K Series Programmer’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!