Long camqueuereset(void), Camqueuereset • camqueuetable – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 73

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-33

long CamQueueReset(void);

Resets the queue.

Returns 0 if successful, or -1 if there was an error.

long CamQueueTable(long table_number,long cycle_limit);

Queues a cam table.

• The table_number argument specifies the table number. Valid

tables are one, two, and three.

• The cycle_limit argument specifies the cycle limit to take effect

when the queued table becomes active.

Returns 0 if successful, or -1 if there was an error.

A table can only be queued if it is loaded and the cam is enabled.
When the cam is enabled, the primary table always becomes active.
Therefore, the primary table must be loaded before the cam is
enabled. The primary table defaults to table number one

When a table is queued, the table and cycle limit are applied when
the cam crosses the left or right boundary of the active cam table.
Disabling the cam while a table is queued does not make the queued
table active.

Only one table can be queued at a time. If another table is queued, it
replaces the currently queued table. Tables cannot be opened or
loaded if they are active or pending.

Advertising