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.

Compiled Motion Profiling<br />

Gem6K Series products allow you to construct complex individual axis motion profiles which<br />

are compiled <strong>and</strong> saved. You can define separate <strong>and</strong> independent profiles for each individual<br />

axis. The profiles may contain:<br />

• Sequences of motion<br />

• Loops<br />

• Programmable output changes<br />

• Embedded dwells<br />

• Direction changes<br />

• Trigger functions<br />

Related Comm<strong>and</strong>s:<br />

Brief descriptions of related<br />

comm<strong>and</strong>s are found on page 139.<br />

For detailed descriptions, refer to the<br />

Gem6K Series Comm<strong>and</strong> Reference.<br />

☞<br />

PLCP programs are<br />

stored in compiled<br />

memory<br />

(see page 11).<br />

Compiled motion profiles are defined like programs (using the DEF <strong>and</strong> END comm<strong>and</strong>s); the<br />

comm<strong>and</strong>s used to construct the motion profile segments are stored in a program (stored in<br />

Program memory). This program is then compiled (using the PCOMP comm<strong>and</strong>) <strong>and</strong> the<br />

compiled profile segments (GOBUF, PLOOP, GOWHEN, TRGFN, <strong>and</strong> POUTA statements) from<br />

the program are stored in Compiled memory. (TIP: The TDIR comm<strong>and</strong> reports which<br />

programs are compiled as a compiled profile.) You can then execute the compiled profile with<br />

the PRUN comm<strong>and</strong>.<br />

The amount of RAM allocated for storing compiled profile segments is determined by the<br />

MEMORY comm<strong>and</strong> setting. The list below identifies memory allocation defaults <strong>and</strong> limits for<br />

Gem6K Series products. Further details on re-allocating memory are provided on page 11.<br />

Total memory (bytes) .........................................300,000<br />

Default allocation (program,compiled)...............MEMORY150000,150000<br />

Maximum allocation for compiled profiles ........MEMORY1000,299000<br />

Maximum # of compiled profiles .......................300<br />

Maximum # of compiled profile segments .........2069<br />

CAUTIONS<br />

• Issuing a memory allocation comm<strong>and</strong> (e.g., MEMORY70000,230000) will erase all existing<br />

programs <strong>and</strong> compiled path segments. However, issuing the MEMORY comm<strong>and</strong> by itself (i.e.,<br />

MEMORY—to request the status of how the memory is allocated) will not affect existing programs<br />

or segments.<br />

• After compiling (PCOMP) <strong>and</strong> running (PRUN) a compiled profile. The profile segments will be<br />

deleted from compiled memory if you cycle power or issue a RESET comm<strong>and</strong>.<br />

After compiling (PCOMP), you can execute the profiles with the PRUN comm<strong>and</strong>, <strong>and</strong> all of<br />

the motion <strong>and</strong> functions compiled into the profile are executed without any further<br />

comm<strong>and</strong>s during profile execution.<br />

Because the motion <strong>and</strong> functions are pre-compiled, delays associated with comm<strong>and</strong><br />

processing are eliminated during profile execution, allowing more rapid sequencing of actions<br />

than would be possible with programs which are not compiled. Comm<strong>and</strong> processing is then<br />

free to monitor other activities, such as I/O <strong>and</strong> communications.<br />

Chapter 6. Following 139

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

Saved successfully!

Ooh no, something went wrong!