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.

Variables<br />

Gem6K Series controllers have four types of variables, each designated with a different<br />

comm<strong>and</strong>. All four types are automatically stored in non-volatile memory.<br />

Type Comm<strong>and</strong> Quantity Function<br />

Numeric<br />

(real)<br />

VAR 225 Store real numeric data (range is ±999,999,999.99999999). Can be<br />

used to perform mathematical (=, +, -, *, /, SQRT), trigonometric<br />

(ATAN, COS, PI, SIN, TAN), <strong>and</strong> Boolean (&, |, ^, ~) operations.<br />

Can also be used to store (“teach”) variable data in variable arrays<br />

(called data programs) <strong>and</strong> later use the stored data as a source for<br />

motion program parameters (see Variable Arrays on page 110 for<br />

details).<br />

Integer VARI 225 Store integer numeric data (range is ±2,147,483,647). Can be used<br />

to perform mathematical (=, +, -, *, /) <strong>and</strong> Boolean (&, |, ^, ~)<br />

operations.<br />

Binary VARB 125 Store 32-bit binary or hexadecimal values. Can also store the binary<br />

status bits from status registers. Frequently used registers are:<br />

inputs (IN), outputs (OUT), limits (LIM), system (SS), Following (FS),<br />

axis (AS & ASX), <strong>and</strong> error (ER). For example, the VARB2=IN.3<br />

comm<strong>and</strong> assigns the binary state of input 12 to binary variable 2.<br />

Also use to perform bitwise operations (&, |, ^, ~, >>,

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

Saved successfully!

Ooh no, something went wrong!